bkui-vue 0.0.1-beta.180 → 0.0.1-beta.183
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 +33 -33
- package/dist/index.esm.js +942 -782
- package/dist/index.umd.js +33 -33
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/cascader-panel.d.ts +38 -4
- package/lib/cascader/cascader.css +23 -0
- package/lib/cascader/cascader.d.ts +19 -5
- package/lib/cascader/cascader.less +26 -0
- package/lib/cascader/cascader.variable.css +23 -0
- package/lib/cascader/index.d.ts +93 -17
- package/lib/cascader/index.js +1 -1
- package/lib/cascader/interface.d.ts +4 -0
- package/lib/cascader/node.d.ts +7 -1
- package/lib/cascader/store.d.ts +5 -1
- package/lib/components.d.ts +1 -1
- package/lib/components.js +1 -1
- package/lib/date-picker/index.js +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/icon/help.js +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -1
- package/lib/plugins/index.js +1 -1
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +1 -1
- package/lib/shared/utils.d.ts +1 -0
- package/lib/table/index.js +1 -1
- package/lib/tag-input/index.d.ts +4 -4
- package/lib/tag-input/tag-input.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -33,7 +33,7 @@ var __publicField = (obj, key2, value) => {
|
|
33
33
|
__defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
|
34
34
|
return value;
|
35
35
|
};
|
36
|
-
import { inject, createVNode, h as h$1, mergeProps, defineComponent, reactive, ref, computed, watch, onMounted, onBeforeUnmount, getCurrentInstance, nextTick, Transition, provide, createTextVNode, isVNode, withDirectives, vShow, renderSlot, Fragment, toRefs, onUnmounted, Teleport, resolveDirective,
|
36
|
+
import { inject, createVNode, h as h$1, mergeProps, defineComponent, reactive, ref, computed, watch, onMounted, onBeforeUnmount, getCurrentInstance, nextTick, Transition, provide, createTextVNode, isVNode, withDirectives, vShow, renderSlot, Fragment, toRefs, createApp, onUnmounted, Teleport, resolveDirective, customRef, onBeforeMount, toRef, vModelText, watchEffect, onUpdated, render as render$1, shallowRef, toRaw, withModifiers, TransitionGroup } from "vue";
|
37
37
|
var reset = "";
|
38
38
|
var alert = "";
|
39
39
|
var affix = "";
|
@@ -1531,13 +1531,13 @@ function popperGenerator(generatorOptions) {
|
|
1531
1531
|
state.orderedModifiers.forEach(function(modifier) {
|
1532
1532
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
1533
1533
|
});
|
1534
|
-
for (var
|
1534
|
+
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
1535
1535
|
if (state.reset === true) {
|
1536
1536
|
state.reset = false;
|
1537
|
-
|
1537
|
+
index = -1;
|
1538
1538
|
continue;
|
1539
1539
|
}
|
1540
|
-
var _state$orderedModifie = state.orderedModifiers[
|
1540
|
+
var _state$orderedModifie = state.orderedModifiers[index], fn2 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
|
1541
1541
|
if (typeof fn2 === "function") {
|
1542
1542
|
state = fn2({
|
1543
1543
|
state,
|
@@ -2274,17 +2274,17 @@ var lodash = { exports: {} };
|
|
2274
2274
|
return func.apply(thisArg, args);
|
2275
2275
|
}
|
2276
2276
|
function arrayAggregator(array, setter, iteratee, accumulator) {
|
2277
|
-
var
|
2278
|
-
while (++
|
2279
|
-
var value = array[
|
2277
|
+
var index = -1, length = array == null ? 0 : array.length;
|
2278
|
+
while (++index < length) {
|
2279
|
+
var value = array[index];
|
2280
2280
|
setter(accumulator, value, iteratee(value), array);
|
2281
2281
|
}
|
2282
2282
|
return accumulator;
|
2283
2283
|
}
|
2284
2284
|
function arrayEach(array, iteratee) {
|
2285
|
-
var
|
2286
|
-
while (++
|
2287
|
-
if (iteratee(array[
|
2285
|
+
var index = -1, length = array == null ? 0 : array.length;
|
2286
|
+
while (++index < length) {
|
2287
|
+
if (iteratee(array[index], index, array) === false) {
|
2288
2288
|
break;
|
2289
2289
|
}
|
2290
2290
|
}
|
@@ -2300,19 +2300,19 @@ var lodash = { exports: {} };
|
|
2300
2300
|
return array;
|
2301
2301
|
}
|
2302
2302
|
function arrayEvery(array, predicate) {
|
2303
|
-
var
|
2304
|
-
while (++
|
2305
|
-
if (!predicate(array[
|
2303
|
+
var index = -1, length = array == null ? 0 : array.length;
|
2304
|
+
while (++index < length) {
|
2305
|
+
if (!predicate(array[index], index, array)) {
|
2306
2306
|
return false;
|
2307
2307
|
}
|
2308
2308
|
}
|
2309
2309
|
return true;
|
2310
2310
|
}
|
2311
2311
|
function arrayFilter(array, predicate) {
|
2312
|
-
var
|
2313
|
-
while (++
|
2314
|
-
var value = array[
|
2315
|
-
if (predicate(value,
|
2312
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
2313
|
+
while (++index < length) {
|
2314
|
+
var value = array[index];
|
2315
|
+
if (predicate(value, index, array)) {
|
2316
2316
|
result[resIndex++] = value;
|
2317
2317
|
}
|
2318
2318
|
}
|
@@ -2323,35 +2323,35 @@ var lodash = { exports: {} };
|
|
2323
2323
|
return !!length && baseIndexOf(array, value, 0) > -1;
|
2324
2324
|
}
|
2325
2325
|
function arrayIncludesWith(array, value, comparator) {
|
2326
|
-
var
|
2327
|
-
while (++
|
2328
|
-
if (comparator(value, array[
|
2326
|
+
var index = -1, length = array == null ? 0 : array.length;
|
2327
|
+
while (++index < length) {
|
2328
|
+
if (comparator(value, array[index])) {
|
2329
2329
|
return true;
|
2330
2330
|
}
|
2331
2331
|
}
|
2332
2332
|
return false;
|
2333
2333
|
}
|
2334
2334
|
function arrayMap(array, iteratee) {
|
2335
|
-
var
|
2336
|
-
while (++
|
2337
|
-
result[
|
2335
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
2336
|
+
while (++index < length) {
|
2337
|
+
result[index] = iteratee(array[index], index, array);
|
2338
2338
|
}
|
2339
2339
|
return result;
|
2340
2340
|
}
|
2341
2341
|
function arrayPush(array, values) {
|
2342
|
-
var
|
2343
|
-
while (++
|
2344
|
-
array[offset2 +
|
2342
|
+
var index = -1, length = values.length, offset2 = array.length;
|
2343
|
+
while (++index < length) {
|
2344
|
+
array[offset2 + index] = values[index];
|
2345
2345
|
}
|
2346
2346
|
return array;
|
2347
2347
|
}
|
2348
2348
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
2349
|
-
var
|
2349
|
+
var index = -1, length = array == null ? 0 : array.length;
|
2350
2350
|
if (initAccum && length) {
|
2351
|
-
accumulator = array[++
|
2351
|
+
accumulator = array[++index];
|
2352
2352
|
}
|
2353
|
-
while (++
|
2354
|
-
accumulator = iteratee(accumulator, array[
|
2353
|
+
while (++index < length) {
|
2354
|
+
accumulator = iteratee(accumulator, array[index], index, array);
|
2355
2355
|
}
|
2356
2356
|
return accumulator;
|
2357
2357
|
}
|
@@ -2366,9 +2366,9 @@ var lodash = { exports: {} };
|
|
2366
2366
|
return accumulator;
|
2367
2367
|
}
|
2368
2368
|
function arraySome(array, predicate) {
|
2369
|
-
var
|
2370
|
-
while (++
|
2371
|
-
if (predicate(array[
|
2369
|
+
var index = -1, length = array == null ? 0 : array.length;
|
2370
|
+
while (++index < length) {
|
2371
|
+
if (predicate(array[index], index, array)) {
|
2372
2372
|
return true;
|
2373
2373
|
}
|
2374
2374
|
}
|
@@ -2392,10 +2392,10 @@ var lodash = { exports: {} };
|
|
2392
2392
|
return result;
|
2393
2393
|
}
|
2394
2394
|
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
2395
|
-
var length = array.length,
|
2396
|
-
while (fromRight ?
|
2397
|
-
if (predicate(array[
|
2398
|
-
return
|
2395
|
+
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
2396
|
+
while (fromRight ? index-- : ++index < length) {
|
2397
|
+
if (predicate(array[index], index, array)) {
|
2398
|
+
return index;
|
2399
2399
|
}
|
2400
2400
|
}
|
2401
2401
|
return -1;
|
@@ -2404,10 +2404,10 @@ var lodash = { exports: {} };
|
|
2404
2404
|
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
2405
2405
|
}
|
2406
2406
|
function baseIndexOfWith(array, value, fromIndex, comparator) {
|
2407
|
-
var
|
2408
|
-
while (++
|
2409
|
-
if (comparator(array[
|
2410
|
-
return
|
2407
|
+
var index = fromIndex - 1, length = array.length;
|
2408
|
+
while (++index < length) {
|
2409
|
+
if (comparator(array[index], value)) {
|
2410
|
+
return index;
|
2411
2411
|
}
|
2412
2412
|
}
|
2413
2413
|
return -1;
|
@@ -2430,8 +2430,8 @@ var lodash = { exports: {} };
|
|
2430
2430
|
};
|
2431
2431
|
}
|
2432
2432
|
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
2433
|
-
eachFunc(collection, function(value,
|
2434
|
-
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value,
|
2433
|
+
eachFunc(collection, function(value, index, collection2) {
|
2434
|
+
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection2);
|
2435
2435
|
});
|
2436
2436
|
return accumulator;
|
2437
2437
|
}
|
@@ -2444,9 +2444,9 @@ var lodash = { exports: {} };
|
|
2444
2444
|
return array;
|
2445
2445
|
}
|
2446
2446
|
function baseSum(array, iteratee) {
|
2447
|
-
var result,
|
2448
|
-
while (++
|
2449
|
-
var current = iteratee(array[
|
2447
|
+
var result, index = -1, length = array.length;
|
2448
|
+
while (++index < length) {
|
2449
|
+
var current = iteratee(array[index]);
|
2450
2450
|
if (current !== undefined$1) {
|
2451
2451
|
result = result === undefined$1 ? current : result + current;
|
2452
2452
|
}
|
@@ -2454,9 +2454,9 @@ var lodash = { exports: {} };
|
|
2454
2454
|
return result;
|
2455
2455
|
}
|
2456
2456
|
function baseTimes(n2, iteratee) {
|
2457
|
-
var
|
2458
|
-
while (++
|
2459
|
-
result[
|
2457
|
+
var index = -1, result = Array(n2);
|
2458
|
+
while (++index < n2) {
|
2459
|
+
result[index] = iteratee(index);
|
2460
2460
|
}
|
2461
2461
|
return result;
|
2462
2462
|
}
|
@@ -2482,16 +2482,16 @@ var lodash = { exports: {} };
|
|
2482
2482
|
return cache.has(key2);
|
2483
2483
|
}
|
2484
2484
|
function charsStartIndex(strSymbols, chrSymbols) {
|
2485
|
-
var
|
2486
|
-
while (++
|
2485
|
+
var index = -1, length = strSymbols.length;
|
2486
|
+
while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {
|
2487
2487
|
}
|
2488
|
-
return
|
2488
|
+
return index;
|
2489
2489
|
}
|
2490
2490
|
function charsEndIndex(strSymbols, chrSymbols) {
|
2491
|
-
var
|
2492
|
-
while (
|
2491
|
+
var index = strSymbols.length;
|
2492
|
+
while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {
|
2493
2493
|
}
|
2494
|
-
return
|
2494
|
+
return index;
|
2495
2495
|
}
|
2496
2496
|
function countHolders(array, placeholder) {
|
2497
2497
|
var length = array.length, result = 0;
|
@@ -2524,9 +2524,9 @@ var lodash = { exports: {} };
|
|
2524
2524
|
return result;
|
2525
2525
|
}
|
2526
2526
|
function mapToArray(map) {
|
2527
|
-
var
|
2527
|
+
var index = -1, result = Array(map.size);
|
2528
2528
|
map.forEach(function(value, key2) {
|
2529
|
-
result[++
|
2529
|
+
result[++index] = [key2, value];
|
2530
2530
|
});
|
2531
2531
|
return result;
|
2532
2532
|
}
|
@@ -2536,47 +2536,47 @@ var lodash = { exports: {} };
|
|
2536
2536
|
};
|
2537
2537
|
}
|
2538
2538
|
function replaceHolders(array, placeholder) {
|
2539
|
-
var
|
2540
|
-
while (++
|
2541
|
-
var value = array[
|
2539
|
+
var index = -1, length = array.length, resIndex = 0, result = [];
|
2540
|
+
while (++index < length) {
|
2541
|
+
var value = array[index];
|
2542
2542
|
if (value === placeholder || value === PLACEHOLDER) {
|
2543
|
-
array[
|
2544
|
-
result[resIndex++] =
|
2543
|
+
array[index] = PLACEHOLDER;
|
2544
|
+
result[resIndex++] = index;
|
2545
2545
|
}
|
2546
2546
|
}
|
2547
2547
|
return result;
|
2548
2548
|
}
|
2549
2549
|
function setToArray(set) {
|
2550
|
-
var
|
2550
|
+
var index = -1, result = Array(set.size);
|
2551
2551
|
set.forEach(function(value) {
|
2552
|
-
result[++
|
2552
|
+
result[++index] = value;
|
2553
2553
|
});
|
2554
2554
|
return result;
|
2555
2555
|
}
|
2556
2556
|
function setToPairs(set) {
|
2557
|
-
var
|
2557
|
+
var index = -1, result = Array(set.size);
|
2558
2558
|
set.forEach(function(value) {
|
2559
|
-
result[++
|
2559
|
+
result[++index] = [value, value];
|
2560
2560
|
});
|
2561
2561
|
return result;
|
2562
2562
|
}
|
2563
2563
|
function strictIndexOf(array, value, fromIndex) {
|
2564
|
-
var
|
2565
|
-
while (++
|
2566
|
-
if (array[
|
2567
|
-
return
|
2564
|
+
var index = fromIndex - 1, length = array.length;
|
2565
|
+
while (++index < length) {
|
2566
|
+
if (array[index] === value) {
|
2567
|
+
return index;
|
2568
2568
|
}
|
2569
2569
|
}
|
2570
2570
|
return -1;
|
2571
2571
|
}
|
2572
2572
|
function strictLastIndexOf(array, value, fromIndex) {
|
2573
|
-
var
|
2574
|
-
while (
|
2575
|
-
if (array[
|
2576
|
-
return
|
2573
|
+
var index = fromIndex + 1;
|
2574
|
+
while (index--) {
|
2575
|
+
if (array[index] === value) {
|
2576
|
+
return index;
|
2577
2577
|
}
|
2578
2578
|
}
|
2579
|
-
return
|
2579
|
+
return index;
|
2580
2580
|
}
|
2581
2581
|
function stringSize(string) {
|
2582
2582
|
return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
|
@@ -2585,10 +2585,10 @@ var lodash = { exports: {} };
|
|
2585
2585
|
return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
|
2586
2586
|
}
|
2587
2587
|
function trimmedEndIndex(string) {
|
2588
|
-
var
|
2589
|
-
while (
|
2588
|
+
var index = string.length;
|
2589
|
+
while (index-- && reWhitespace2.test(string.charAt(index))) {
|
2590
2590
|
}
|
2591
|
-
return
|
2591
|
+
return index;
|
2592
2592
|
}
|
2593
2593
|
var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
|
2594
2594
|
function unicodeSize(string) {
|
@@ -2716,15 +2716,15 @@ var lodash = { exports: {} };
|
|
2716
2716
|
return result2;
|
2717
2717
|
}
|
2718
2718
|
function lazyValue() {
|
2719
|
-
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray2(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start2 = view.start, end2 = view.end, length = end2 - start2,
|
2719
|
+
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray2(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start2 = view.start, end2 = view.end, length = end2 - start2, index = isRight ? end2 : start2 - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__);
|
2720
2720
|
if (!isArr || !isRight && arrLength == length && takeCount == length) {
|
2721
2721
|
return baseWrapperValue(array, this.__actions__);
|
2722
2722
|
}
|
2723
2723
|
var result2 = [];
|
2724
2724
|
outer:
|
2725
2725
|
while (length-- && resIndex < takeCount) {
|
2726
|
-
|
2727
|
-
var iterIndex = -1, value = array[
|
2726
|
+
index += dir;
|
2727
|
+
var iterIndex = -1, value = array[index];
|
2728
2728
|
while (++iterIndex < iterLength) {
|
2729
2729
|
var data2 = iteratees[iterIndex], iteratee2 = data2.iteratee, type = data2.type, computed2 = iteratee2(value);
|
2730
2730
|
if (type == LAZY_MAP_FLAG) {
|
@@ -2744,10 +2744,10 @@ var lodash = { exports: {} };
|
|
2744
2744
|
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
|
2745
2745
|
LazyWrapper.prototype.constructor = LazyWrapper;
|
2746
2746
|
function Hash(entries) {
|
2747
|
-
var
|
2747
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
2748
2748
|
this.clear();
|
2749
|
-
while (++
|
2750
|
-
var entry = entries[
|
2749
|
+
while (++index < length) {
|
2750
|
+
var entry = entries[index];
|
2751
2751
|
this.set(entry[0], entry[1]);
|
2752
2752
|
}
|
2753
2753
|
}
|
@@ -2784,10 +2784,10 @@ var lodash = { exports: {} };
|
|
2784
2784
|
Hash.prototype.has = hashHas;
|
2785
2785
|
Hash.prototype.set = hashSet;
|
2786
2786
|
function ListCache(entries) {
|
2787
|
-
var
|
2787
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
2788
2788
|
this.clear();
|
2789
|
-
while (++
|
2790
|
-
var entry = entries[
|
2789
|
+
while (++index < length) {
|
2790
|
+
var entry = entries[index];
|
2791
2791
|
this.set(entry[0], entry[1]);
|
2792
2792
|
}
|
2793
2793
|
}
|
@@ -2796,33 +2796,33 @@ var lodash = { exports: {} };
|
|
2796
2796
|
this.size = 0;
|
2797
2797
|
}
|
2798
2798
|
function listCacheDelete(key2) {
|
2799
|
-
var data2 = this.__data__,
|
2800
|
-
if (
|
2799
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key2);
|
2800
|
+
if (index < 0) {
|
2801
2801
|
return false;
|
2802
2802
|
}
|
2803
2803
|
var lastIndex = data2.length - 1;
|
2804
|
-
if (
|
2804
|
+
if (index == lastIndex) {
|
2805
2805
|
data2.pop();
|
2806
2806
|
} else {
|
2807
|
-
splice.call(data2,
|
2807
|
+
splice.call(data2, index, 1);
|
2808
2808
|
}
|
2809
2809
|
--this.size;
|
2810
2810
|
return true;
|
2811
2811
|
}
|
2812
2812
|
function listCacheGet(key2) {
|
2813
|
-
var data2 = this.__data__,
|
2814
|
-
return
|
2813
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key2);
|
2814
|
+
return index < 0 ? undefined$1 : data2[index][1];
|
2815
2815
|
}
|
2816
2816
|
function listCacheHas(key2) {
|
2817
2817
|
return assocIndexOf(this.__data__, key2) > -1;
|
2818
2818
|
}
|
2819
2819
|
function listCacheSet(key2, value) {
|
2820
|
-
var data2 = this.__data__,
|
2821
|
-
if (
|
2820
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key2);
|
2821
|
+
if (index < 0) {
|
2822
2822
|
++this.size;
|
2823
2823
|
data2.push([key2, value]);
|
2824
2824
|
} else {
|
2825
|
-
data2[
|
2825
|
+
data2[index][1] = value;
|
2826
2826
|
}
|
2827
2827
|
return this;
|
2828
2828
|
}
|
@@ -2832,10 +2832,10 @@ var lodash = { exports: {} };
|
|
2832
2832
|
ListCache.prototype.has = listCacheHas;
|
2833
2833
|
ListCache.prototype.set = listCacheSet;
|
2834
2834
|
function MapCache(entries) {
|
2835
|
-
var
|
2835
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
2836
2836
|
this.clear();
|
2837
|
-
while (++
|
2838
|
-
var entry = entries[
|
2837
|
+
while (++index < length) {
|
2838
|
+
var entry = entries[index];
|
2839
2839
|
this.set(entry[0], entry[1]);
|
2840
2840
|
}
|
2841
2841
|
}
|
@@ -2870,10 +2870,10 @@ var lodash = { exports: {} };
|
|
2870
2870
|
MapCache.prototype.has = mapCacheHas;
|
2871
2871
|
MapCache.prototype.set = mapCacheSet;
|
2872
2872
|
function SetCache(values2) {
|
2873
|
-
var
|
2873
|
+
var index = -1, length = values2 == null ? 0 : values2.length;
|
2874
2874
|
this.__data__ = new MapCache();
|
2875
|
-
while (++
|
2876
|
-
this.add(values2[
|
2875
|
+
while (++index < length) {
|
2876
|
+
this.add(values2[index]);
|
2877
2877
|
}
|
2878
2878
|
}
|
2879
2879
|
function setCacheAdd(value) {
|
@@ -2988,9 +2988,9 @@ var lodash = { exports: {} };
|
|
2988
2988
|
}
|
2989
2989
|
}
|
2990
2990
|
function baseAt(object, paths) {
|
2991
|
-
var
|
2992
|
-
while (++
|
2993
|
-
result2[
|
2991
|
+
var index = -1, length = paths.length, result2 = Array2(length), skip = object == null;
|
2992
|
+
while (++index < length) {
|
2993
|
+
result2[index] = skip ? undefined$1 : get(object, paths[index]);
|
2994
2994
|
}
|
2995
2995
|
return result2;
|
2996
2996
|
}
|
@@ -3094,7 +3094,7 @@ var lodash = { exports: {} };
|
|
3094
3094
|
}, wait);
|
3095
3095
|
}
|
3096
3096
|
function baseDifference(array, values2, iteratee2, comparator) {
|
3097
|
-
var
|
3097
|
+
var index = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length;
|
3098
3098
|
if (!length) {
|
3099
3099
|
return result2;
|
3100
3100
|
}
|
@@ -3110,8 +3110,8 @@ var lodash = { exports: {} };
|
|
3110
3110
|
values2 = new SetCache(values2);
|
3111
3111
|
}
|
3112
3112
|
outer:
|
3113
|
-
while (++
|
3114
|
-
var value = array[
|
3113
|
+
while (++index < length) {
|
3114
|
+
var value = array[index], computed2 = iteratee2 == null ? value : iteratee2(value);
|
3115
3115
|
value = comparator || value !== 0 ? value : 0;
|
3116
3116
|
if (isCommon && computed2 === computed2) {
|
3117
3117
|
var valuesIndex = valuesLength;
|
@@ -3131,16 +3131,16 @@ var lodash = { exports: {} };
|
|
3131
3131
|
var baseEachRight = createBaseEach(baseForOwnRight, true);
|
3132
3132
|
function baseEvery(collection, predicate) {
|
3133
3133
|
var result2 = true;
|
3134
|
-
baseEach(collection, function(value,
|
3135
|
-
result2 = !!predicate(value,
|
3134
|
+
baseEach(collection, function(value, index, collection2) {
|
3135
|
+
result2 = !!predicate(value, index, collection2);
|
3136
3136
|
return result2;
|
3137
3137
|
});
|
3138
3138
|
return result2;
|
3139
3139
|
}
|
3140
3140
|
function baseExtremum(array, iteratee2, comparator) {
|
3141
|
-
var
|
3142
|
-
while (++
|
3143
|
-
var value = array[
|
3141
|
+
var index = -1, length = array.length;
|
3142
|
+
while (++index < length) {
|
3143
|
+
var value = array[index], current = iteratee2(value);
|
3144
3144
|
if (current != null && (computed2 === undefined$1 ? current === current && !isSymbol(current) : comparator(current, computed2))) {
|
3145
3145
|
var computed2 = current, result2 = value;
|
3146
3146
|
}
|
@@ -3165,19 +3165,19 @@ var lodash = { exports: {} };
|
|
3165
3165
|
}
|
3166
3166
|
function baseFilter(collection, predicate) {
|
3167
3167
|
var result2 = [];
|
3168
|
-
baseEach(collection, function(value,
|
3169
|
-
if (predicate(value,
|
3168
|
+
baseEach(collection, function(value, index, collection2) {
|
3169
|
+
if (predicate(value, index, collection2)) {
|
3170
3170
|
result2.push(value);
|
3171
3171
|
}
|
3172
3172
|
});
|
3173
3173
|
return result2;
|
3174
3174
|
}
|
3175
3175
|
function baseFlatten(array, depth, predicate, isStrict, result2) {
|
3176
|
-
var
|
3176
|
+
var index = -1, length = array.length;
|
3177
3177
|
predicate || (predicate = isFlattenable);
|
3178
3178
|
result2 || (result2 = []);
|
3179
|
-
while (++
|
3180
|
-
var value = array[
|
3179
|
+
while (++index < length) {
|
3180
|
+
var value = array[index];
|
3181
3181
|
if (depth > 0 && predicate(value)) {
|
3182
3182
|
if (depth > 1) {
|
3183
3183
|
baseFlatten(value, depth - 1, predicate, isStrict, result2);
|
@@ -3205,11 +3205,11 @@ var lodash = { exports: {} };
|
|
3205
3205
|
}
|
3206
3206
|
function baseGet(object, path) {
|
3207
3207
|
path = castPath(path, object);
|
3208
|
-
var
|
3209
|
-
while (object != null &&
|
3210
|
-
object = object[toKey(path[
|
3208
|
+
var index = 0, length = path.length;
|
3209
|
+
while (object != null && index < length) {
|
3210
|
+
object = object[toKey(path[index++])];
|
3211
3211
|
}
|
3212
|
-
return
|
3212
|
+
return index && index == length ? object : undefined$1;
|
3213
3213
|
}
|
3214
3214
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
3215
3215
|
var result2 = keysFunc(object);
|
@@ -3244,10 +3244,10 @@ var lodash = { exports: {} };
|
|
3244
3244
|
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1;
|
3245
3245
|
}
|
3246
3246
|
array = arrays[0];
|
3247
|
-
var
|
3247
|
+
var index = -1, seen = caches[0];
|
3248
3248
|
outer:
|
3249
|
-
while (++
|
3250
|
-
var value = array[
|
3249
|
+
while (++index < length && result2.length < maxLength) {
|
3250
|
+
var value = array[index], computed2 = iteratee2 ? iteratee2(value) : value;
|
3251
3251
|
value = comparator || value !== 0 ? value : 0;
|
3252
3252
|
if (!(seen ? cacheHas(seen, computed2) : includes2(result2, computed2, comparator))) {
|
3253
3253
|
othIndex = othLength;
|
@@ -3329,19 +3329,19 @@ var lodash = { exports: {} };
|
|
3329
3329
|
return isObjectLike(value) && getTag(value) == mapTag;
|
3330
3330
|
}
|
3331
3331
|
function baseIsMatch(object, source, matchData, customizer) {
|
3332
|
-
var
|
3332
|
+
var index = matchData.length, length = index, noCustomizer = !customizer;
|
3333
3333
|
if (object == null) {
|
3334
3334
|
return !length;
|
3335
3335
|
}
|
3336
3336
|
object = Object2(object);
|
3337
|
-
while (
|
3338
|
-
var data2 = matchData[
|
3337
|
+
while (index--) {
|
3338
|
+
var data2 = matchData[index];
|
3339
3339
|
if (noCustomizer && data2[2] ? data2[1] !== object[data2[0]] : !(data2[0] in object)) {
|
3340
3340
|
return false;
|
3341
3341
|
}
|
3342
3342
|
}
|
3343
|
-
while (++
|
3344
|
-
data2 = matchData[
|
3343
|
+
while (++index < length) {
|
3344
|
+
data2 = matchData[index];
|
3345
3345
|
var key2 = data2[0], objValue = object[key2], srcValue = data2[1];
|
3346
3346
|
if (noCustomizer && data2[2]) {
|
3347
3347
|
if (objValue === undefined$1 && !(key2 in object)) {
|
@@ -3415,9 +3415,9 @@ var lodash = { exports: {} };
|
|
3415
3415
|
return value < other;
|
3416
3416
|
}
|
3417
3417
|
function baseMap(collection, iteratee2) {
|
3418
|
-
var
|
3418
|
+
var index = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
3419
3419
|
baseEach(collection, function(value, key2, collection2) {
|
3420
|
-
result2[++
|
3420
|
+
result2[++index] = iteratee2(value, key2, collection2);
|
3421
3421
|
});
|
3422
3422
|
return result2;
|
3423
3423
|
}
|
@@ -3520,13 +3520,13 @@ var lodash = { exports: {} };
|
|
3520
3520
|
} else {
|
3521
3521
|
iteratees = [identity];
|
3522
3522
|
}
|
3523
|
-
var
|
3523
|
+
var index = -1;
|
3524
3524
|
iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
|
3525
3525
|
var result2 = baseMap(collection, function(value, key2, collection2) {
|
3526
3526
|
var criteria = arrayMap(iteratees, function(iteratee2) {
|
3527
3527
|
return iteratee2(value);
|
3528
3528
|
});
|
3529
|
-
return { "criteria": criteria, "index": ++
|
3529
|
+
return { "criteria": criteria, "index": ++index, "value": value };
|
3530
3530
|
});
|
3531
3531
|
return baseSortBy(result2, function(object, other) {
|
3532
3532
|
return compareMultiple(object, other, orders);
|
@@ -3538,9 +3538,9 @@ var lodash = { exports: {} };
|
|
3538
3538
|
});
|
3539
3539
|
}
|
3540
3540
|
function basePickBy(object, paths, predicate) {
|
3541
|
-
var
|
3542
|
-
while (++
|
3543
|
-
var path = paths[
|
3541
|
+
var index = -1, length = paths.length, result2 = {};
|
3542
|
+
while (++index < length) {
|
3543
|
+
var path = paths[index], value = baseGet(object, path);
|
3544
3544
|
if (predicate(value, path)) {
|
3545
3545
|
baseSet(result2, castPath(path, object), value);
|
3546
3546
|
}
|
@@ -3553,15 +3553,15 @@ var lodash = { exports: {} };
|
|
3553
3553
|
};
|
3554
3554
|
}
|
3555
3555
|
function basePullAll(array, values2, iteratee2, comparator) {
|
3556
|
-
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf,
|
3556
|
+
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index = -1, length = values2.length, seen = array;
|
3557
3557
|
if (array === values2) {
|
3558
3558
|
values2 = copyArray(values2);
|
3559
3559
|
}
|
3560
3560
|
if (iteratee2) {
|
3561
3561
|
seen = arrayMap(array, baseUnary(iteratee2));
|
3562
3562
|
}
|
3563
|
-
while (++
|
3564
|
-
var fromIndex = 0, value = values2[
|
3563
|
+
while (++index < length) {
|
3564
|
+
var fromIndex = 0, value = values2[index], computed2 = iteratee2 ? iteratee2(value) : value;
|
3565
3565
|
while ((fromIndex = indexOf2(seen, computed2, fromIndex, comparator)) > -1) {
|
3566
3566
|
if (seen !== array) {
|
3567
3567
|
splice.call(seen, fromIndex, 1);
|
@@ -3574,13 +3574,13 @@ var lodash = { exports: {} };
|
|
3574
3574
|
function basePullAt(array, indexes) {
|
3575
3575
|
var length = array ? indexes.length : 0, lastIndex = length - 1;
|
3576
3576
|
while (length--) {
|
3577
|
-
var
|
3578
|
-
if (length == lastIndex ||
|
3579
|
-
var previous =
|
3580
|
-
if (isIndex(
|
3581
|
-
splice.call(array,
|
3577
|
+
var index = indexes[length];
|
3578
|
+
if (length == lastIndex || index !== previous) {
|
3579
|
+
var previous = index;
|
3580
|
+
if (isIndex(index)) {
|
3581
|
+
splice.call(array, index, 1);
|
3582
3582
|
} else {
|
3583
|
-
baseUnset(array,
|
3583
|
+
baseUnset(array, index);
|
3584
3584
|
}
|
3585
3585
|
}
|
3586
3586
|
}
|
@@ -3590,9 +3590,9 @@ var lodash = { exports: {} };
|
|
3590
3590
|
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
3591
3591
|
}
|
3592
3592
|
function baseRange(start2, end2, step, fromRight) {
|
3593
|
-
var
|
3593
|
+
var index = -1, length = nativeMax(nativeCeil((end2 - start2) / (step || 1)), 0), result2 = Array2(length);
|
3594
3594
|
while (length--) {
|
3595
|
-
result2[fromRight ? length : ++
|
3595
|
+
result2[fromRight ? length : ++index] = start2;
|
3596
3596
|
start2 += step;
|
3597
3597
|
}
|
3598
3598
|
return result2;
|
@@ -3628,17 +3628,17 @@ var lodash = { exports: {} };
|
|
3628
3628
|
return object;
|
3629
3629
|
}
|
3630
3630
|
path = castPath(path, object);
|
3631
|
-
var
|
3632
|
-
while (nested != null && ++
|
3633
|
-
var key2 = toKey(path[
|
3631
|
+
var index = -1, length = path.length, lastIndex = length - 1, nested = object;
|
3632
|
+
while (nested != null && ++index < length) {
|
3633
|
+
var key2 = toKey(path[index]), newValue = value;
|
3634
3634
|
if (key2 === "__proto__" || key2 === "constructor" || key2 === "prototype") {
|
3635
3635
|
return object;
|
3636
3636
|
}
|
3637
|
-
if (
|
3637
|
+
if (index != lastIndex) {
|
3638
3638
|
var objValue = nested[key2];
|
3639
3639
|
newValue = customizer ? customizer(objValue, key2, nested) : undefined$1;
|
3640
3640
|
if (newValue === undefined$1) {
|
3641
|
-
newValue = isObject2(objValue) ? objValue : isIndex(path[
|
3641
|
+
newValue = isObject2(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
|
3642
3642
|
}
|
3643
3643
|
}
|
3644
3644
|
assignValue(nested, key2, newValue);
|
@@ -3662,7 +3662,7 @@ var lodash = { exports: {} };
|
|
3662
3662
|
return shuffleSelf(values(collection));
|
3663
3663
|
}
|
3664
3664
|
function baseSlice(array, start2, end2) {
|
3665
|
-
var
|
3665
|
+
var index = -1, length = array.length;
|
3666
3666
|
if (start2 < 0) {
|
3667
3667
|
start2 = -start2 > length ? 0 : length + start2;
|
3668
3668
|
}
|
@@ -3673,15 +3673,15 @@ var lodash = { exports: {} };
|
|
3673
3673
|
length = start2 > end2 ? 0 : end2 - start2 >>> 0;
|
3674
3674
|
start2 >>>= 0;
|
3675
3675
|
var result2 = Array2(length);
|
3676
|
-
while (++
|
3677
|
-
result2[
|
3676
|
+
while (++index < length) {
|
3677
|
+
result2[index] = array[index + start2];
|
3678
3678
|
}
|
3679
3679
|
return result2;
|
3680
3680
|
}
|
3681
3681
|
function baseSome(collection, predicate) {
|
3682
3682
|
var result2;
|
3683
|
-
baseEach(collection, function(value,
|
3684
|
-
result2 = predicate(value,
|
3683
|
+
baseEach(collection, function(value, index, collection2) {
|
3684
|
+
result2 = predicate(value, index, collection2);
|
3685
3685
|
return !result2;
|
3686
3686
|
});
|
3687
3687
|
return !!result2;
|
@@ -3732,10 +3732,10 @@ var lodash = { exports: {} };
|
|
3732
3732
|
return nativeMin(high, MAX_ARRAY_INDEX);
|
3733
3733
|
}
|
3734
3734
|
function baseSortedUniq(array, iteratee2) {
|
3735
|
-
var
|
3736
|
-
while (++
|
3737
|
-
var value = array[
|
3738
|
-
if (!
|
3735
|
+
var index = -1, length = array.length, resIndex = 0, result2 = [];
|
3736
|
+
while (++index < length) {
|
3737
|
+
var value = array[index], computed2 = iteratee2 ? iteratee2(value) : value;
|
3738
|
+
if (!index || !eq(computed2, seen)) {
|
3739
3739
|
var seen = computed2;
|
3740
3740
|
result2[resIndex++] = value === 0 ? 0 : value;
|
3741
3741
|
}
|
@@ -3765,7 +3765,7 @@ var lodash = { exports: {} };
|
|
3765
3765
|
return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
|
3766
3766
|
}
|
3767
3767
|
function baseUniq(array, iteratee2, comparator) {
|
3768
|
-
var
|
3768
|
+
var index = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
|
3769
3769
|
if (comparator) {
|
3770
3770
|
isCommon = false;
|
3771
3771
|
includes2 = arrayIncludesWith;
|
@@ -3781,8 +3781,8 @@ var lodash = { exports: {} };
|
|
3781
3781
|
seen = iteratee2 ? [] : result2;
|
3782
3782
|
}
|
3783
3783
|
outer:
|
3784
|
-
while (++
|
3785
|
-
var value = array[
|
3784
|
+
while (++index < length) {
|
3785
|
+
var value = array[index], computed2 = iteratee2 ? iteratee2(value) : value;
|
3786
3786
|
value = comparator || value !== 0 ? value : 0;
|
3787
3787
|
if (isCommon && computed2 === computed2) {
|
3788
3788
|
var seenIndex = seen.length;
|
@@ -3813,10 +3813,10 @@ var lodash = { exports: {} };
|
|
3813
3813
|
return baseSet(object, path, updater(baseGet(object, path)), customizer);
|
3814
3814
|
}
|
3815
3815
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
3816
|
-
var length = array.length,
|
3817
|
-
while ((fromRight ?
|
3816
|
+
var length = array.length, index = fromRight ? length : -1;
|
3817
|
+
while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {
|
3818
3818
|
}
|
3819
|
-
return isDrop ? baseSlice(array, fromRight ? 0 :
|
3819
|
+
return isDrop ? baseSlice(array, fromRight ? 0 : index, fromRight ? index + 1 : length) : baseSlice(array, fromRight ? index + 1 : 0, fromRight ? length : index);
|
3820
3820
|
}
|
3821
3821
|
function baseWrapperValue(value, actions) {
|
3822
3822
|
var result2 = value;
|
@@ -3832,22 +3832,22 @@ var lodash = { exports: {} };
|
|
3832
3832
|
if (length < 2) {
|
3833
3833
|
return length ? baseUniq(arrays[0]) : [];
|
3834
3834
|
}
|
3835
|
-
var
|
3836
|
-
while (++
|
3837
|
-
var array = arrays[
|
3835
|
+
var index = -1, result2 = Array2(length);
|
3836
|
+
while (++index < length) {
|
3837
|
+
var array = arrays[index], othIndex = -1;
|
3838
3838
|
while (++othIndex < length) {
|
3839
|
-
if (othIndex !=
|
3840
|
-
result2[
|
3839
|
+
if (othIndex != index) {
|
3840
|
+
result2[index] = baseDifference(result2[index] || array, arrays[othIndex], iteratee2, comparator);
|
3841
3841
|
}
|
3842
3842
|
}
|
3843
3843
|
}
|
3844
3844
|
return baseUniq(baseFlatten(result2, 1), iteratee2, comparator);
|
3845
3845
|
}
|
3846
3846
|
function baseZipObject(props2, values2, assignFunc) {
|
3847
|
-
var
|
3848
|
-
while (++
|
3849
|
-
var value =
|
3850
|
-
assignFunc(result2, props2[
|
3847
|
+
var index = -1, length = props2.length, valsLength = values2.length, result2 = {};
|
3848
|
+
while (++index < length) {
|
3849
|
+
var value = index < valsLength ? values2[index] : undefined$1;
|
3850
|
+
assignFunc(result2, props2[index], value);
|
3851
3851
|
}
|
3852
3852
|
return result2;
|
3853
3853
|
}
|
@@ -3915,14 +3915,14 @@ var lodash = { exports: {} };
|
|
3915
3915
|
return 0;
|
3916
3916
|
}
|
3917
3917
|
function compareMultiple(object, other, orders) {
|
3918
|
-
var
|
3919
|
-
while (++
|
3920
|
-
var result2 = compareAscending(objCriteria[
|
3918
|
+
var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
3919
|
+
while (++index < length) {
|
3920
|
+
var result2 = compareAscending(objCriteria[index], othCriteria[index]);
|
3921
3921
|
if (result2) {
|
3922
|
-
if (
|
3922
|
+
if (index >= ordersLength) {
|
3923
3923
|
return result2;
|
3924
3924
|
}
|
3925
|
-
var order2 = orders[
|
3925
|
+
var order2 = orders[index];
|
3926
3926
|
return result2 * (order2 == "desc" ? -1 : 1);
|
3927
3927
|
}
|
3928
3928
|
}
|
@@ -3960,19 +3960,19 @@ var lodash = { exports: {} };
|
|
3960
3960
|
return result2;
|
3961
3961
|
}
|
3962
3962
|
function copyArray(source, array) {
|
3963
|
-
var
|
3963
|
+
var index = -1, length = source.length;
|
3964
3964
|
array || (array = Array2(length));
|
3965
|
-
while (++
|
3966
|
-
array[
|
3965
|
+
while (++index < length) {
|
3966
|
+
array[index] = source[index];
|
3967
3967
|
}
|
3968
3968
|
return array;
|
3969
3969
|
}
|
3970
3970
|
function copyObject(source, props2, object, customizer) {
|
3971
3971
|
var isNew = !object;
|
3972
3972
|
object || (object = {});
|
3973
|
-
var
|
3974
|
-
while (++
|
3975
|
-
var key2 = props2[
|
3973
|
+
var index = -1, length = props2.length;
|
3974
|
+
while (++index < length) {
|
3975
|
+
var key2 = props2[index];
|
3976
3976
|
var newValue = customizer ? customizer(object[key2], source[key2], key2, object, source) : undefined$1;
|
3977
3977
|
if (newValue === undefined$1) {
|
3978
3978
|
newValue = source[key2];
|
@@ -3999,17 +3999,17 @@ var lodash = { exports: {} };
|
|
3999
3999
|
}
|
4000
4000
|
function createAssigner(assigner) {
|
4001
4001
|
return baseRest(function(object, sources) {
|
4002
|
-
var
|
4002
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined$1, guard = length > 2 ? sources[2] : undefined$1;
|
4003
4003
|
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined$1;
|
4004
4004
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
4005
4005
|
customizer = length < 3 ? undefined$1 : customizer;
|
4006
4006
|
length = 1;
|
4007
4007
|
}
|
4008
4008
|
object = Object2(object);
|
4009
|
-
while (++
|
4010
|
-
var source = sources[
|
4009
|
+
while (++index < length) {
|
4010
|
+
var source = sources[index];
|
4011
4011
|
if (source) {
|
4012
|
-
assigner(object, source,
|
4012
|
+
assigner(object, source, index, customizer);
|
4013
4013
|
}
|
4014
4014
|
}
|
4015
4015
|
return object;
|
@@ -4023,9 +4023,9 @@ var lodash = { exports: {} };
|
|
4023
4023
|
if (!isArrayLike(collection)) {
|
4024
4024
|
return eachFunc(collection, iteratee2);
|
4025
4025
|
}
|
4026
|
-
var length = collection.length,
|
4027
|
-
while (fromRight ?
|
4028
|
-
if (iteratee2(iterable[
|
4026
|
+
var length = collection.length, index = fromRight ? length : -1, iterable = Object2(collection);
|
4027
|
+
while (fromRight ? index-- : ++index < length) {
|
4028
|
+
if (iteratee2(iterable[index], index, iterable) === false) {
|
4029
4029
|
break;
|
4030
4030
|
}
|
4031
4031
|
}
|
@@ -4034,9 +4034,9 @@ var lodash = { exports: {} };
|
|
4034
4034
|
}
|
4035
4035
|
function createBaseFor(fromRight) {
|
4036
4036
|
return function(object, iteratee2, keysFunc) {
|
4037
|
-
var
|
4037
|
+
var index = -1, iterable = Object2(object), props2 = keysFunc(object), length = props2.length;
|
4038
4038
|
while (length--) {
|
4039
|
-
var key2 = props2[fromRight ? length : ++
|
4039
|
+
var key2 = props2[fromRight ? length : ++index];
|
4040
4040
|
if (iteratee2(iterable[key2], key2, iterable) === false) {
|
4041
4041
|
break;
|
4042
4042
|
}
|
@@ -4094,9 +4094,9 @@ var lodash = { exports: {} };
|
|
4094
4094
|
function createCurry(func, bitmask, arity) {
|
4095
4095
|
var Ctor = createCtor(func);
|
4096
4096
|
function wrapper() {
|
4097
|
-
var length = arguments.length, args = Array2(length),
|
4098
|
-
while (
|
4099
|
-
args[
|
4097
|
+
var length = arguments.length, args = Array2(length), index = length, placeholder = getHolder(wrapper);
|
4098
|
+
while (index--) {
|
4099
|
+
args[index] = arguments[index];
|
4100
4100
|
}
|
4101
4101
|
var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder);
|
4102
4102
|
length -= holders.length;
|
@@ -4118,18 +4118,18 @@ var lodash = { exports: {} };
|
|
4118
4118
|
return iteratee2(iterable[key2], key2, iterable);
|
4119
4119
|
};
|
4120
4120
|
}
|
4121
|
-
var
|
4122
|
-
return
|
4121
|
+
var index = findIndexFunc(collection, predicate, fromIndex);
|
4122
|
+
return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined$1;
|
4123
4123
|
};
|
4124
4124
|
}
|
4125
4125
|
function createFlow(fromRight) {
|
4126
4126
|
return flatRest(function(funcs) {
|
4127
|
-
var length = funcs.length,
|
4127
|
+
var length = funcs.length, index = length, prereq = LodashWrapper.prototype.thru;
|
4128
4128
|
if (fromRight) {
|
4129
4129
|
funcs.reverse();
|
4130
4130
|
}
|
4131
|
-
while (
|
4132
|
-
var func = funcs[
|
4131
|
+
while (index--) {
|
4132
|
+
var func = funcs[index];
|
4133
4133
|
if (typeof func != "function") {
|
4134
4134
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
4135
4135
|
}
|
@@ -4137,9 +4137,9 @@ var lodash = { exports: {} };
|
|
4137
4137
|
var wrapper = new LodashWrapper([], true);
|
4138
4138
|
}
|
4139
4139
|
}
|
4140
|
-
|
4141
|
-
while (++
|
4142
|
-
func = funcs[
|
4140
|
+
index = wrapper ? index : length;
|
4141
|
+
while (++index < length) {
|
4142
|
+
func = funcs[index];
|
4143
4143
|
var funcName = getFuncName(func), data2 = funcName == "wrapper" ? getData(func) : undefined$1;
|
4144
4144
|
if (data2 && isLaziable(data2[0]) && data2[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data2[4].length && data2[9] == 1) {
|
4145
4145
|
wrapper = wrapper[getFuncName(data2[0])].apply(wrapper, data2[3]);
|
@@ -4152,9 +4152,9 @@ var lodash = { exports: {} };
|
|
4152
4152
|
if (wrapper && args.length == 1 && isArray2(value)) {
|
4153
4153
|
return wrapper.plant(value).value();
|
4154
4154
|
}
|
4155
|
-
var
|
4156
|
-
while (++
|
4157
|
-
result2 = funcs[
|
4155
|
+
var index2 = 0, result2 = length ? funcs[index2].apply(this, args) : value;
|
4156
|
+
while (++index2 < length) {
|
4157
|
+
result2 = funcs[index2].call(this, result2);
|
4158
4158
|
}
|
4159
4159
|
return result2;
|
4160
4160
|
};
|
@@ -4163,9 +4163,9 @@ var lodash = { exports: {} };
|
|
4163
4163
|
function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
|
4164
4164
|
var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined$1 : createCtor(func);
|
4165
4165
|
function wrapper() {
|
4166
|
-
var length = arguments.length, args = Array2(length),
|
4167
|
-
while (
|
4168
|
-
args[
|
4166
|
+
var length = arguments.length, args = Array2(length), index = length;
|
4167
|
+
while (index--) {
|
4168
|
+
args[index] = arguments[index];
|
4169
4169
|
}
|
4170
4170
|
if (isCurried) {
|
4171
4171
|
var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder);
|
@@ -4422,13 +4422,13 @@ var lodash = { exports: {} };
|
|
4422
4422
|
if (arrStacked && othStacked) {
|
4423
4423
|
return arrStacked == other && othStacked == array;
|
4424
4424
|
}
|
4425
|
-
var
|
4425
|
+
var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1;
|
4426
4426
|
stack.set(array, other);
|
4427
4427
|
stack.set(other, array);
|
4428
|
-
while (++
|
4429
|
-
var arrValue = array[
|
4428
|
+
while (++index < arrLength) {
|
4429
|
+
var arrValue = array[index], othValue = other[index];
|
4430
4430
|
if (customizer) {
|
4431
|
-
var compared = isPartial ? customizer(othValue, arrValue,
|
4431
|
+
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
4432
4432
|
}
|
4433
4433
|
if (compared !== undefined$1) {
|
4434
4434
|
if (compared) {
|
@@ -4506,9 +4506,9 @@ var lodash = { exports: {} };
|
|
4506
4506
|
if (objLength != othLength && !isPartial) {
|
4507
4507
|
return false;
|
4508
4508
|
}
|
4509
|
-
var
|
4510
|
-
while (
|
4511
|
-
var key2 = objProps[
|
4509
|
+
var index = objLength;
|
4510
|
+
while (index--) {
|
4511
|
+
var key2 = objProps[index];
|
4512
4512
|
if (!(isPartial ? key2 in other : hasOwnProperty.call(other, key2))) {
|
4513
4513
|
return false;
|
4514
4514
|
}
|
@@ -4522,8 +4522,8 @@ var lodash = { exports: {} };
|
|
4522
4522
|
stack.set(object, other);
|
4523
4523
|
stack.set(other, object);
|
4524
4524
|
var skipCtor = isPartial;
|
4525
|
-
while (++
|
4526
|
-
key2 = objProps[
|
4525
|
+
while (++index < objLength) {
|
4526
|
+
key2 = objProps[index];
|
4527
4527
|
var objValue = object[key2], othValue = other[key2];
|
4528
4528
|
if (customizer) {
|
4529
4529
|
var compared = isPartial ? customizer(othValue, objValue, key2, other, object, stack) : customizer(objValue, othValue, key2, object, other, stack);
|
@@ -4647,9 +4647,9 @@ var lodash = { exports: {} };
|
|
4647
4647
|
};
|
4648
4648
|
}
|
4649
4649
|
function getView(start2, end2, transforms) {
|
4650
|
-
var
|
4651
|
-
while (++
|
4652
|
-
var data2 = transforms[
|
4650
|
+
var index = -1, length = transforms.length;
|
4651
|
+
while (++index < length) {
|
4652
|
+
var data2 = transforms[index], size2 = data2.size;
|
4653
4653
|
switch (data2.type) {
|
4654
4654
|
case "drop":
|
4655
4655
|
start2 += size2;
|
@@ -4673,15 +4673,15 @@ var lodash = { exports: {} };
|
|
4673
4673
|
}
|
4674
4674
|
function hasPath(object, path, hasFunc) {
|
4675
4675
|
path = castPath(path, object);
|
4676
|
-
var
|
4677
|
-
while (++
|
4678
|
-
var key2 = toKey(path[
|
4676
|
+
var index = -1, length = path.length, result2 = false;
|
4677
|
+
while (++index < length) {
|
4678
|
+
var key2 = toKey(path[index]);
|
4679
4679
|
if (!(result2 = object != null && hasFunc(object, key2))) {
|
4680
4680
|
break;
|
4681
4681
|
}
|
4682
4682
|
object = object[key2];
|
4683
4683
|
}
|
4684
|
-
if (result2 || ++
|
4684
|
+
if (result2 || ++index != length) {
|
4685
4685
|
return result2;
|
4686
4686
|
}
|
4687
4687
|
length = object == null ? 0 : object.length;
|
@@ -4749,13 +4749,13 @@ var lodash = { exports: {} };
|
|
4749
4749
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
4750
4750
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
4751
4751
|
}
|
4752
|
-
function isIterateeCall(value,
|
4752
|
+
function isIterateeCall(value, index, object) {
|
4753
4753
|
if (!isObject2(object)) {
|
4754
4754
|
return false;
|
4755
4755
|
}
|
4756
|
-
var type = typeof
|
4757
|
-
if (type == "number" ? isArrayLike(object) && isIndex(
|
4758
|
-
return eq(object[
|
4756
|
+
var type = typeof index;
|
4757
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
|
4758
|
+
return eq(object[index], value);
|
4759
4759
|
}
|
4760
4760
|
return false;
|
4761
4761
|
}
|
@@ -4864,14 +4864,14 @@ var lodash = { exports: {} };
|
|
4864
4864
|
function overRest(func, start2, transform2) {
|
4865
4865
|
start2 = nativeMax(start2 === undefined$1 ? func.length - 1 : start2, 0);
|
4866
4866
|
return function() {
|
4867
|
-
var args = arguments,
|
4868
|
-
while (++
|
4869
|
-
array[
|
4867
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start2, 0), array = Array2(length);
|
4868
|
+
while (++index < length) {
|
4869
|
+
array[index] = args[start2 + index];
|
4870
4870
|
}
|
4871
|
-
|
4871
|
+
index = -1;
|
4872
4872
|
var otherArgs = Array2(start2 + 1);
|
4873
|
-
while (++
|
4874
|
-
otherArgs[
|
4873
|
+
while (++index < start2) {
|
4874
|
+
otherArgs[index] = args[index];
|
4875
4875
|
}
|
4876
4876
|
otherArgs[start2] = transform2(array);
|
4877
4877
|
return apply(func, this, otherArgs);
|
@@ -4883,8 +4883,8 @@ var lodash = { exports: {} };
|
|
4883
4883
|
function reorder(array, indexes) {
|
4884
4884
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
4885
4885
|
while (length--) {
|
4886
|
-
var
|
4887
|
-
array[length] = isIndex(
|
4886
|
+
var index = indexes[length];
|
4887
|
+
array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined$1;
|
4888
4888
|
}
|
4889
4889
|
return array;
|
4890
4890
|
}
|
@@ -4922,12 +4922,12 @@ var lodash = { exports: {} };
|
|
4922
4922
|
};
|
4923
4923
|
}
|
4924
4924
|
function shuffleSelf(array, size2) {
|
4925
|
-
var
|
4925
|
+
var index = -1, length = array.length, lastIndex = length - 1;
|
4926
4926
|
size2 = size2 === undefined$1 ? length : size2;
|
4927
|
-
while (++
|
4928
|
-
var rand = baseRandom(
|
4929
|
-
array[rand] = array[
|
4930
|
-
array[
|
4927
|
+
while (++index < size2) {
|
4928
|
+
var rand = baseRandom(index, lastIndex), value = array[rand];
|
4929
|
+
array[rand] = array[index];
|
4930
|
+
array[index] = value;
|
4931
4931
|
}
|
4932
4932
|
array.length = size2;
|
4933
4933
|
return array;
|
@@ -4991,16 +4991,16 @@ var lodash = { exports: {} };
|
|
4991
4991
|
if (!length || size2 < 1) {
|
4992
4992
|
return [];
|
4993
4993
|
}
|
4994
|
-
var
|
4995
|
-
while (
|
4996
|
-
result2[resIndex++] = baseSlice(array,
|
4994
|
+
var index = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2));
|
4995
|
+
while (index < length) {
|
4996
|
+
result2[resIndex++] = baseSlice(array, index, index += size2);
|
4997
4997
|
}
|
4998
4998
|
return result2;
|
4999
4999
|
}
|
5000
5000
|
function compact(array) {
|
5001
|
-
var
|
5002
|
-
while (++
|
5003
|
-
var value = array[
|
5001
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = [];
|
5002
|
+
while (++index < length) {
|
5003
|
+
var value = array[index];
|
5004
5004
|
if (value) {
|
5005
5005
|
result2[resIndex++] = value;
|
5006
5006
|
}
|
@@ -5012,9 +5012,9 @@ var lodash = { exports: {} };
|
|
5012
5012
|
if (!length) {
|
5013
5013
|
return [];
|
5014
5014
|
}
|
5015
|
-
var args = Array2(length - 1), array = arguments[0],
|
5016
|
-
while (
|
5017
|
-
args[
|
5015
|
+
var args = Array2(length - 1), array = arguments[0], index = length;
|
5016
|
+
while (index--) {
|
5017
|
+
args[index - 1] = arguments[index];
|
5018
5018
|
}
|
5019
5019
|
return arrayPush(isArray2(array) ? copyArray(array) : [array], baseFlatten(args, 1));
|
5020
5020
|
}
|
@@ -5074,23 +5074,23 @@ var lodash = { exports: {} };
|
|
5074
5074
|
if (!length) {
|
5075
5075
|
return -1;
|
5076
5076
|
}
|
5077
|
-
var
|
5078
|
-
if (
|
5079
|
-
|
5077
|
+
var index = fromIndex == null ? 0 : toInteger2(fromIndex);
|
5078
|
+
if (index < 0) {
|
5079
|
+
index = nativeMax(length + index, 0);
|
5080
5080
|
}
|
5081
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
5081
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index);
|
5082
5082
|
}
|
5083
5083
|
function findLastIndex(array, predicate, fromIndex) {
|
5084
5084
|
var length = array == null ? 0 : array.length;
|
5085
5085
|
if (!length) {
|
5086
5086
|
return -1;
|
5087
5087
|
}
|
5088
|
-
var
|
5088
|
+
var index = length - 1;
|
5089
5089
|
if (fromIndex !== undefined$1) {
|
5090
|
-
|
5091
|
-
|
5090
|
+
index = toInteger2(fromIndex);
|
5091
|
+
index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
|
5092
5092
|
}
|
5093
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
5093
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index, true);
|
5094
5094
|
}
|
5095
5095
|
function flatten(array) {
|
5096
5096
|
var length = array == null ? 0 : array.length;
|
@@ -5109,9 +5109,9 @@ var lodash = { exports: {} };
|
|
5109
5109
|
return baseFlatten(array, depth);
|
5110
5110
|
}
|
5111
5111
|
function fromPairs(pairs) {
|
5112
|
-
var
|
5113
|
-
while (++
|
5114
|
-
var pair = pairs[
|
5112
|
+
var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
5113
|
+
while (++index < length) {
|
5114
|
+
var pair = pairs[index];
|
5115
5115
|
result2[pair[0]] = pair[1];
|
5116
5116
|
}
|
5117
5117
|
return result2;
|
@@ -5124,11 +5124,11 @@ var lodash = { exports: {} };
|
|
5124
5124
|
if (!length) {
|
5125
5125
|
return -1;
|
5126
5126
|
}
|
5127
|
-
var
|
5128
|
-
if (
|
5129
|
-
|
5127
|
+
var index = fromIndex == null ? 0 : toInteger2(fromIndex);
|
5128
|
+
if (index < 0) {
|
5129
|
+
index = nativeMax(length + index, 0);
|
5130
5130
|
}
|
5131
|
-
return baseIndexOf(array, value,
|
5131
|
+
return baseIndexOf(array, value, index);
|
5132
5132
|
}
|
5133
5133
|
function initial(array) {
|
5134
5134
|
var length = array == null ? 0 : array.length;
|
@@ -5167,12 +5167,12 @@ var lodash = { exports: {} };
|
|
5167
5167
|
if (!length) {
|
5168
5168
|
return -1;
|
5169
5169
|
}
|
5170
|
-
var
|
5170
|
+
var index = length;
|
5171
5171
|
if (fromIndex !== undefined$1) {
|
5172
|
-
|
5173
|
-
|
5172
|
+
index = toInteger2(fromIndex);
|
5173
|
+
index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
|
5174
5174
|
}
|
5175
|
-
return value === value ? strictLastIndexOf(array, value,
|
5175
|
+
return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true);
|
5176
5176
|
}
|
5177
5177
|
function nth(array, n2) {
|
5178
5178
|
return array && array.length ? baseNth(array, toInteger2(n2)) : undefined$1;
|
@@ -5189,8 +5189,8 @@ var lodash = { exports: {} };
|
|
5189
5189
|
}
|
5190
5190
|
var pullAt = flatRest(function(array, indexes) {
|
5191
5191
|
var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
|
5192
|
-
basePullAt(array, arrayMap(indexes, function(
|
5193
|
-
return isIndex(
|
5192
|
+
basePullAt(array, arrayMap(indexes, function(index) {
|
5193
|
+
return isIndex(index, length) ? +index : index;
|
5194
5194
|
}).sort(compareAscending));
|
5195
5195
|
return result2;
|
5196
5196
|
});
|
@@ -5199,13 +5199,13 @@ var lodash = { exports: {} };
|
|
5199
5199
|
if (!(array && array.length)) {
|
5200
5200
|
return result2;
|
5201
5201
|
}
|
5202
|
-
var
|
5202
|
+
var index = -1, indexes = [], length = array.length;
|
5203
5203
|
predicate = getIteratee(predicate, 3);
|
5204
|
-
while (++
|
5205
|
-
var value = array[
|
5206
|
-
if (predicate(value,
|
5204
|
+
while (++index < length) {
|
5205
|
+
var value = array[index];
|
5206
|
+
if (predicate(value, index, array)) {
|
5207
5207
|
result2.push(value);
|
5208
|
-
indexes.push(
|
5208
|
+
indexes.push(index);
|
5209
5209
|
}
|
5210
5210
|
}
|
5211
5211
|
basePullAt(array, indexes);
|
@@ -5237,9 +5237,9 @@ var lodash = { exports: {} };
|
|
5237
5237
|
function sortedIndexOf(array, value) {
|
5238
5238
|
var length = array == null ? 0 : array.length;
|
5239
5239
|
if (length) {
|
5240
|
-
var
|
5241
|
-
if (
|
5242
|
-
return
|
5240
|
+
var index = baseSortedIndex(array, value);
|
5241
|
+
if (index < length && eq(array[index], value)) {
|
5242
|
+
return index;
|
5243
5243
|
}
|
5244
5244
|
}
|
5245
5245
|
return -1;
|
@@ -5253,9 +5253,9 @@ var lodash = { exports: {} };
|
|
5253
5253
|
function sortedLastIndexOf(array, value) {
|
5254
5254
|
var length = array == null ? 0 : array.length;
|
5255
5255
|
if (length) {
|
5256
|
-
var
|
5257
|
-
if (eq(array[
|
5258
|
-
return
|
5256
|
+
var index = baseSortedIndex(array, value, true) - 1;
|
5257
|
+
if (eq(array[index], value)) {
|
5258
|
+
return index;
|
5259
5259
|
}
|
5260
5260
|
}
|
5261
5261
|
return -1;
|
@@ -5328,8 +5328,8 @@ var lodash = { exports: {} };
|
|
5328
5328
|
return true;
|
5329
5329
|
}
|
5330
5330
|
});
|
5331
|
-
return baseTimes(length, function(
|
5332
|
-
return arrayMap(array, baseProperty(
|
5331
|
+
return baseTimes(length, function(index) {
|
5332
|
+
return arrayMap(array, baseProperty(index));
|
5333
5333
|
});
|
5334
5334
|
}
|
5335
5335
|
function unzipWith(array, iteratee2) {
|
@@ -5514,9 +5514,9 @@ var lodash = { exports: {} };
|
|
5514
5514
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
5515
5515
|
}
|
5516
5516
|
var invokeMap = baseRest(function(collection, path, args) {
|
5517
|
-
var
|
5517
|
+
var index = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
5518
5518
|
baseEach(collection, function(value) {
|
5519
|
-
result2[++
|
5519
|
+
result2[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
|
5520
5520
|
});
|
5521
5521
|
return result2;
|
5522
5522
|
});
|
@@ -5802,9 +5802,9 @@ var lodash = { exports: {} };
|
|
5802
5802
|
transforms = transforms.length == 1 && isArray2(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
|
5803
5803
|
var funcsLength = transforms.length;
|
5804
5804
|
return baseRest(function(args) {
|
5805
|
-
var
|
5806
|
-
while (++
|
5807
|
-
args[
|
5805
|
+
var index = -1, length = nativeMin(args.length, funcsLength);
|
5806
|
+
while (++index < length) {
|
5807
|
+
args[index] = transforms[index].call(this, args[index]);
|
5808
5808
|
}
|
5809
5809
|
return apply(func, this, args);
|
5810
5810
|
});
|
@@ -6119,14 +6119,14 @@ var lodash = { exports: {} };
|
|
6119
6119
|
}
|
6120
6120
|
var defaults = baseRest(function(object, sources) {
|
6121
6121
|
object = Object2(object);
|
6122
|
-
var
|
6122
|
+
var index = -1;
|
6123
6123
|
var length = sources.length;
|
6124
6124
|
var guard = length > 2 ? sources[2] : undefined$1;
|
6125
6125
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
6126
6126
|
length = 1;
|
6127
6127
|
}
|
6128
|
-
while (++
|
6129
|
-
var source = sources[
|
6128
|
+
while (++index < length) {
|
6129
|
+
var source = sources[index];
|
6130
6130
|
var props2 = keysIn(source);
|
6131
6131
|
var propsIndex = -1;
|
6132
6132
|
var propsLength = props2.length;
|
@@ -6264,15 +6264,15 @@ var lodash = { exports: {} };
|
|
6264
6264
|
}
|
6265
6265
|
function result(object, path, defaultValue) {
|
6266
6266
|
path = castPath(path, object);
|
6267
|
-
var
|
6267
|
+
var index = -1, length = path.length;
|
6268
6268
|
if (!length) {
|
6269
6269
|
length = 1;
|
6270
6270
|
object = undefined$1;
|
6271
6271
|
}
|
6272
|
-
while (++
|
6273
|
-
var value = object == null ? undefined$1 : object[toKey(path[
|
6272
|
+
while (++index < length) {
|
6273
|
+
var value = object == null ? undefined$1 : object[toKey(path[index])];
|
6274
6274
|
if (value === undefined$1) {
|
6275
|
-
|
6275
|
+
index = length;
|
6276
6276
|
value = defaultValue;
|
6277
6277
|
}
|
6278
6278
|
object = isFunction(value) ? value.call(object) : value;
|
@@ -6301,8 +6301,8 @@ var lodash = { exports: {} };
|
|
6301
6301
|
accumulator = {};
|
6302
6302
|
}
|
6303
6303
|
}
|
6304
|
-
(isArrLike ? arrayEach : baseForOwn)(object, function(value,
|
6305
|
-
return iteratee2(accumulator, value,
|
6304
|
+
(isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object2) {
|
6305
|
+
return iteratee2(accumulator, value, index, object2);
|
6306
6306
|
});
|
6307
6307
|
return accumulator;
|
6308
6308
|
}
|
@@ -6384,9 +6384,9 @@ var lodash = { exports: {} };
|
|
6384
6384
|
}
|
6385
6385
|
return baseRandom(lower, upper);
|
6386
6386
|
}
|
6387
|
-
var camelCase = createCompounder(function(result2, word2,
|
6387
|
+
var camelCase = createCompounder(function(result2, word2, index) {
|
6388
6388
|
word2 = word2.toLowerCase();
|
6389
|
-
return result2 + (
|
6389
|
+
return result2 + (index ? capitalize2(word2) : word2);
|
6390
6390
|
});
|
6391
6391
|
function capitalize2(string) {
|
6392
6392
|
return upperFirst(toString(string).toLowerCase());
|
@@ -6412,11 +6412,11 @@ var lodash = { exports: {} };
|
|
6412
6412
|
string = toString(string);
|
6413
6413
|
return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string;
|
6414
6414
|
}
|
6415
|
-
var kebabCase = createCompounder(function(result2, word2,
|
6416
|
-
return result2 + (
|
6415
|
+
var kebabCase = createCompounder(function(result2, word2, index) {
|
6416
|
+
return result2 + (index ? "-" : "") + word2.toLowerCase();
|
6417
6417
|
});
|
6418
|
-
var lowerCase = createCompounder(function(result2, word2,
|
6419
|
-
return result2 + (
|
6418
|
+
var lowerCase = createCompounder(function(result2, word2, index) {
|
6419
|
+
return result2 + (index ? " " : "") + word2.toLowerCase();
|
6420
6420
|
});
|
6421
6421
|
var lowerFirst = createCaseFirst("toLowerCase");
|
6422
6422
|
function pad2(string, length, chars) {
|
@@ -6461,8 +6461,8 @@ var lodash = { exports: {} };
|
|
6461
6461
|
var args = arguments, string = toString(args[0]);
|
6462
6462
|
return args.length < 3 ? string : string.replace(args[1], args[2]);
|
6463
6463
|
}
|
6464
|
-
var snakeCase = createCompounder(function(result2, word2,
|
6465
|
-
return result2 + (
|
6464
|
+
var snakeCase = createCompounder(function(result2, word2, index) {
|
6465
|
+
return result2 + (index ? "_" : "") + word2.toLowerCase();
|
6466
6466
|
});
|
6467
6467
|
function split(string, separator2, limit) {
|
6468
6468
|
if (limit && typeof limit != "number" && isIterateeCall(string, separator2, limit)) {
|
@@ -6481,8 +6481,8 @@ var lodash = { exports: {} };
|
|
6481
6481
|
}
|
6482
6482
|
return string.split(separator2, limit);
|
6483
6483
|
}
|
6484
|
-
var startCase = createCompounder(function(result2, word2,
|
6485
|
-
return result2 + (
|
6484
|
+
var startCase = createCompounder(function(result2, word2, index) {
|
6485
|
+
return result2 + (index ? " " : "") + upperFirst(word2);
|
6486
6486
|
});
|
6487
6487
|
function startsWith(string, target, position) {
|
6488
6488
|
string = toString(string);
|
@@ -6498,12 +6498,12 @@ var lodash = { exports: {} };
|
|
6498
6498
|
string = toString(string);
|
6499
6499
|
options = assignInWith({}, options, settings, customDefaultsAssignIn);
|
6500
6500
|
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
6501
|
-
var isEscaping, isEvaluating,
|
6501
|
+
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
6502
6502
|
var reDelimiters = RegExp2((options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", "g");
|
6503
6503
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
6504
6504
|
string.replace(reDelimiters, function(match2, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset2) {
|
6505
6505
|
interpolateValue || (interpolateValue = esTemplateValue);
|
6506
|
-
source += string.slice(
|
6506
|
+
source += string.slice(index, offset2).replace(reUnescapedString, escapeStringChar);
|
6507
6507
|
if (escapeValue) {
|
6508
6508
|
isEscaping = true;
|
6509
6509
|
source += "' +\n__e(" + escapeValue + ") +\n'";
|
@@ -6515,7 +6515,7 @@ var lodash = { exports: {} };
|
|
6515
6515
|
if (interpolateValue) {
|
6516
6516
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
6517
6517
|
}
|
6518
|
-
|
6518
|
+
index = offset2 + match2.length;
|
6519
6519
|
return match2;
|
6520
6520
|
});
|
6521
6521
|
source += "';\n";
|
@@ -6615,9 +6615,9 @@ var lodash = { exports: {} };
|
|
6615
6615
|
result2 = result2.slice(0, newEnd === undefined$1 ? end2 : newEnd);
|
6616
6616
|
}
|
6617
6617
|
} else if (string.indexOf(baseToString(separator2), end2) != end2) {
|
6618
|
-
var
|
6619
|
-
if (
|
6620
|
-
result2 = result2.slice(0,
|
6618
|
+
var index = result2.lastIndexOf(separator2);
|
6619
|
+
if (index > -1) {
|
6620
|
+
result2 = result2.slice(0, index);
|
6621
6621
|
}
|
6622
6622
|
}
|
6623
6623
|
return result2 + omission;
|
@@ -6626,8 +6626,8 @@ var lodash = { exports: {} };
|
|
6626
6626
|
string = toString(string);
|
6627
6627
|
return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
|
6628
6628
|
}
|
6629
|
-
var upperCase = createCompounder(function(result2, word2,
|
6630
|
-
return result2 + (
|
6629
|
+
var upperCase = createCompounder(function(result2, word2, index) {
|
6630
|
+
return result2 + (index ? " " : "") + word2.toUpperCase();
|
6631
6631
|
});
|
6632
6632
|
var upperFirst = createCaseFirst("toUpperCase");
|
6633
6633
|
function words(string, pattern, guard) {
|
@@ -6661,9 +6661,9 @@ var lodash = { exports: {} };
|
|
6661
6661
|
return [toIteratee(pair[0]), pair[1]];
|
6662
6662
|
});
|
6663
6663
|
return baseRest(function(args) {
|
6664
|
-
var
|
6665
|
-
while (++
|
6666
|
-
var pair = pairs[
|
6664
|
+
var index = -1;
|
6665
|
+
while (++index < length) {
|
6666
|
+
var pair = pairs[index];
|
6667
6667
|
if (apply(pair[0], this, args)) {
|
6668
6668
|
return apply(pair[1], this, args);
|
6669
6669
|
}
|
@@ -6779,12 +6779,12 @@ var lodash = { exports: {} };
|
|
6779
6779
|
if (n2 < 1 || n2 > MAX_SAFE_INTEGER) {
|
6780
6780
|
return [];
|
6781
6781
|
}
|
6782
|
-
var
|
6782
|
+
var index = MAX_ARRAY_LENGTH, length = nativeMin(n2, MAX_ARRAY_LENGTH);
|
6783
6783
|
iteratee2 = getIteratee(iteratee2);
|
6784
6784
|
n2 -= MAX_ARRAY_LENGTH;
|
6785
6785
|
var result2 = baseTimes(length, iteratee2);
|
6786
|
-
while (++
|
6787
|
-
iteratee2(
|
6786
|
+
while (++index < n2) {
|
6787
|
+
iteratee2(index);
|
6788
6788
|
}
|
6789
6789
|
return result2;
|
6790
6790
|
}
|
@@ -7156,10 +7156,10 @@ var lodash = { exports: {} };
|
|
7156
7156
|
arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
7157
7157
|
lodash2[methodName].placeholder = lodash2;
|
7158
7158
|
});
|
7159
|
-
arrayEach(["drop", "take"], function(methodName,
|
7159
|
+
arrayEach(["drop", "take"], function(methodName, index) {
|
7160
7160
|
LazyWrapper.prototype[methodName] = function(n2) {
|
7161
7161
|
n2 = n2 === undefined$1 ? 1 : nativeMax(toInteger2(n2), 0);
|
7162
|
-
var result2 = this.__filtered__ && !
|
7162
|
+
var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone();
|
7163
7163
|
if (result2.__filtered__) {
|
7164
7164
|
result2.__takeCount__ = nativeMin(n2, result2.__takeCount__);
|
7165
7165
|
} else {
|
@@ -7174,8 +7174,8 @@ var lodash = { exports: {} };
|
|
7174
7174
|
return this.reverse()[methodName](n2).reverse();
|
7175
7175
|
};
|
7176
7176
|
});
|
7177
|
-
arrayEach(["filter", "map", "takeWhile"], function(methodName,
|
7178
|
-
var type =
|
7177
|
+
arrayEach(["filter", "map", "takeWhile"], function(methodName, index) {
|
7178
|
+
var type = index + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
|
7179
7179
|
LazyWrapper.prototype[methodName] = function(iteratee2) {
|
7180
7180
|
var result2 = this.clone();
|
7181
7181
|
result2.__iteratees__.push({
|
@@ -7186,14 +7186,14 @@ var lodash = { exports: {} };
|
|
7186
7186
|
return result2;
|
7187
7187
|
};
|
7188
7188
|
});
|
7189
|
-
arrayEach(["head", "last"], function(methodName,
|
7190
|
-
var takeName = "take" + (
|
7189
|
+
arrayEach(["head", "last"], function(methodName, index) {
|
7190
|
+
var takeName = "take" + (index ? "Right" : "");
|
7191
7191
|
LazyWrapper.prototype[methodName] = function() {
|
7192
7192
|
return this[takeName](1).value()[0];
|
7193
7193
|
};
|
7194
7194
|
});
|
7195
|
-
arrayEach(["initial", "tail"], function(methodName,
|
7196
|
-
var dropName = "drop" + (
|
7195
|
+
arrayEach(["initial", "tail"], function(methodName, index) {
|
7196
|
+
var dropName = "drop" + (index ? "" : "Right");
|
7197
7197
|
LazyWrapper.prototype[methodName] = function() {
|
7198
7198
|
return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
|
7199
7199
|
};
|
@@ -7354,6 +7354,7 @@ const observerResize$1 = (root, callbackFn, delay = 60, immediate = false) => {
|
|
7354
7354
|
}
|
7355
7355
|
};
|
7356
7356
|
};
|
7357
|
+
const capitalize = (str) => str[0].toUpperCase() + str.slice(1);
|
7357
7358
|
class BkMaskManager {
|
7358
7359
|
constructor(config) {
|
7359
7360
|
this.multiInstance = false;
|
@@ -8017,6 +8018,9 @@ function arrayEqual(arr1 = [], arr2 = []) {
|
|
8017
8018
|
return false;
|
8018
8019
|
}
|
8019
8020
|
for (let i2 = 0; i2 < arr1.length; i2++) {
|
8021
|
+
if (Array.isArray(arr1[i2])) {
|
8022
|
+
return arrayEqual(arr1[i2], arr2[i2]);
|
8023
|
+
}
|
8020
8024
|
if (arr1[i2] !== arr2[i2]) {
|
8021
8025
|
return false;
|
8022
8026
|
}
|
@@ -8028,7 +8032,7 @@ function generate(node, key2, rootAttrs) {
|
|
8028
8032
|
key: key2
|
8029
8033
|
}, node.attributes), {
|
8030
8034
|
style: `${node.attributes.style} ${rootAttrs || ""}`
|
8031
|
-
}), (node.elements || []).map((element,
|
8035
|
+
}), (node.elements || []).map((element, index) => generate(element, `${key2}-${node.name}-${index}`)));
|
8032
8036
|
}
|
8033
8037
|
const bkIcon = (props2, context) => {
|
8034
8038
|
const _a = __spreadValues(__spreadValues({}, context.attrs), props2), {
|
@@ -9780,9 +9784,9 @@ var BkCheckboxGroup = defineComponent({
|
|
9780
9784
|
checkboxInstanceList.push(checkboxContext);
|
9781
9785
|
};
|
9782
9786
|
const unregister = (checkboxContext) => {
|
9783
|
-
const
|
9784
|
-
if (
|
9785
|
-
checkboxInstanceList.splice(
|
9787
|
+
const index = checkboxInstanceList.indexOf(checkboxContext);
|
9788
|
+
if (index > -1) {
|
9789
|
+
checkboxInstanceList.splice(index, 1);
|
9786
9790
|
}
|
9787
9791
|
};
|
9788
9792
|
const handleChange = () => {
|
@@ -10088,39 +10092,39 @@ var Collapse = defineComponent({
|
|
10088
10092
|
}
|
10089
10093
|
})]);
|
10090
10094
|
}
|
10091
|
-
const collapseData = computed(() => (props2.list || []).map((item,
|
10095
|
+
const collapseData = computed(() => (props2.list || []).map((item, index) => {
|
10092
10096
|
if (typeof item === "string" || typeof item === "number" || typeof item === "boolean") {
|
10093
10097
|
return {
|
10094
|
-
$index:
|
10098
|
+
$index: index,
|
10095
10099
|
name: item
|
10096
10100
|
};
|
10097
10101
|
}
|
10098
10102
|
return __spreadValues({
|
10099
|
-
$index:
|
10103
|
+
$index: index
|
10100
10104
|
}, item);
|
10101
10105
|
}));
|
10102
|
-
const renderItems = () => collapseData.value.map((item,
|
10106
|
+
const renderItems = () => collapseData.value.map((item, index) => {
|
10103
10107
|
var _a, _b, _c;
|
10104
|
-
const name = item[props2.idFiled] ||
|
10108
|
+
const name = item[props2.idFiled] || index;
|
10105
10109
|
let title = item[props2.titleField];
|
10106
10110
|
if (slots.title) {
|
10107
10111
|
if (typeof slots.title === "function") {
|
10108
|
-
title = slots.title(item,
|
10112
|
+
title = slots.title(item, index);
|
10109
10113
|
} else {
|
10110
10114
|
title = slots.title;
|
10111
10115
|
}
|
10112
10116
|
}
|
10113
10117
|
if (slots.default) {
|
10114
|
-
title = (_a = slots.default) == null ? void 0 : _a.call(slots, item,
|
10118
|
+
title = (_a = slots.default) == null ? void 0 : _a.call(slots, item, index);
|
10115
10119
|
}
|
10116
10120
|
return createVNode(CollapsePanel, {
|
10117
|
-
"key":
|
10121
|
+
"key": index,
|
10118
10122
|
"item-click": handleItemClick,
|
10119
10123
|
"disabled": item.disabled,
|
10120
10124
|
"name": name,
|
10121
10125
|
"isFormList": true,
|
10122
10126
|
"title": title,
|
10123
|
-
"content": (_c = (_b = slots.content) == null ? void 0 : _b.call(slots, item,
|
10127
|
+
"content": (_c = (_b = slots.content) == null ? void 0 : _b.call(slots, item, index)) != null ? _c : item[props2.contentField]
|
10124
10128
|
}, null);
|
10125
10129
|
});
|
10126
10130
|
return () => createVNode("div", {
|
@@ -11267,10 +11271,153 @@ function hide$1(el) {
|
|
11267
11271
|
onHide();
|
11268
11272
|
}
|
11269
11273
|
}
|
11270
|
-
|
11271
|
-
|
11272
|
-
|
11273
|
-
}
|
11274
|
+
const isAvailableId = (query) => {
|
11275
|
+
const container2 = document.querySelector(query);
|
11276
|
+
return container2 instanceof HTMLElement;
|
11277
|
+
};
|
11278
|
+
function createPopoverComponent(options) {
|
11279
|
+
let $PopoverInstance = null;
|
11280
|
+
let $PopoverInstanceVm = null;
|
11281
|
+
let $PopoverInstanceEl = null;
|
11282
|
+
const resolvedOptions = __spreadProps(__spreadValues({
|
11283
|
+
boundary: "body",
|
11284
|
+
placement: "top",
|
11285
|
+
autoVisibility: false
|
11286
|
+
}, options), {
|
11287
|
+
trigger: "manual"
|
11288
|
+
});
|
11289
|
+
const isElement2 = (element) => element instanceof Element || element instanceof HTMLDocument;
|
11290
|
+
const popoverComponent = {
|
11291
|
+
name: "$popover",
|
11292
|
+
setup(_2, {
|
11293
|
+
expose
|
11294
|
+
}) {
|
11295
|
+
const refProps = ref(resolvedOptions);
|
11296
|
+
const refReference = ref();
|
11297
|
+
const referStyle = ref({
|
11298
|
+
position: "absolute",
|
11299
|
+
pointerEvents: "none",
|
11300
|
+
left: 0,
|
11301
|
+
top: 0,
|
11302
|
+
width: "auto",
|
11303
|
+
height: "auto",
|
11304
|
+
transform: ""
|
11305
|
+
});
|
11306
|
+
const updateStyle = (target) => {
|
11307
|
+
if (isElement2(target)) {
|
11308
|
+
const {
|
11309
|
+
x: x2,
|
11310
|
+
y: y2,
|
11311
|
+
width,
|
11312
|
+
height
|
11313
|
+
} = target.getBoundingClientRect();
|
11314
|
+
Object.assign(referStyle.value, {
|
11315
|
+
width: `${width}px`,
|
11316
|
+
height: `${height}px`,
|
11317
|
+
transform: `translate3d(${x2}px,${y2}px,0)`
|
11318
|
+
});
|
11319
|
+
return;
|
11320
|
+
}
|
11321
|
+
const {
|
11322
|
+
clientX,
|
11323
|
+
clientY
|
11324
|
+
} = target;
|
11325
|
+
Object.assign(referStyle.value, {
|
11326
|
+
transform: `translate3d(${clientX}px,${clientY}px,0)`,
|
11327
|
+
width: "10px",
|
11328
|
+
height: "10px"
|
11329
|
+
});
|
11330
|
+
};
|
11331
|
+
updateStyle(refProps.value.target);
|
11332
|
+
const show3 = () => {
|
11333
|
+
var _a, _b;
|
11334
|
+
(_b = (_a = refReference.value) == null ? void 0 : _a.show) == null ? void 0 : _b.call(_a);
|
11335
|
+
};
|
11336
|
+
const hide3 = () => {
|
11337
|
+
var _a, _b;
|
11338
|
+
(_b = (_a = refReference.value) == null ? void 0 : _a.hide) == null ? void 0 : _b.call(_a);
|
11339
|
+
};
|
11340
|
+
const attrs = computed(() => {
|
11341
|
+
const excludeKeys = ["target"];
|
11342
|
+
return Object.keys(refProps.value).filter((key2) => !excludeKeys.includes(key2)).reduce((out, curKey) => __spreadProps(__spreadValues({}, out), {
|
11343
|
+
[curKey]: refProps.value[curKey]
|
11344
|
+
}), {});
|
11345
|
+
});
|
11346
|
+
const updateTarget = (target) => {
|
11347
|
+
var _a, _b;
|
11348
|
+
refProps.value.target = target;
|
11349
|
+
updateStyle(target);
|
11350
|
+
(_b = (_a = refReference.value) == null ? void 0 : _a.updatePopover) == null ? void 0 : _b.call(_a);
|
11351
|
+
nextTick(() => {
|
11352
|
+
var _a2, _b2;
|
11353
|
+
(_b2 = (_a2 = refReference.value) == null ? void 0 : _a2.updatePopover) == null ? void 0 : _b2.call(_a2);
|
11354
|
+
});
|
11355
|
+
};
|
11356
|
+
expose({
|
11357
|
+
show: show3,
|
11358
|
+
hide: hide3,
|
11359
|
+
updateTarget
|
11360
|
+
});
|
11361
|
+
return () => createVNode(Component$p, mergeProps(attrs.value, {
|
11362
|
+
"ref": refReference
|
11363
|
+
}), {
|
11364
|
+
default: () => [createVNode("span", {
|
11365
|
+
"style": referStyle.value
|
11366
|
+
}, null)]
|
11367
|
+
});
|
11368
|
+
}
|
11369
|
+
};
|
11370
|
+
function getBoundaryDom(boundary) {
|
11371
|
+
if (/^body$/i.test(boundary)) {
|
11372
|
+
return document.body;
|
11373
|
+
}
|
11374
|
+
if (/^parent$/i.test(boundary)) {
|
11375
|
+
if (isElement2(resolvedOptions.target)) {
|
11376
|
+
return resolvedOptions.target.parentNode;
|
11377
|
+
}
|
11378
|
+
return resolvedOptions.target.target.parentNode;
|
11379
|
+
}
|
11380
|
+
if (typeof boundary === "string" && isAvailableId(boundary)) {
|
11381
|
+
return document.querySelector(boundary);
|
11382
|
+
}
|
11383
|
+
return document.body;
|
11384
|
+
}
|
11385
|
+
if ($PopoverInstance === null) {
|
11386
|
+
$PopoverInstanceEl = document.createElement("div");
|
11387
|
+
getBoundaryDom(resolvedOptions.boundary).append($PopoverInstanceEl);
|
11388
|
+
setTimeout(() => {
|
11389
|
+
$PopoverInstance = createApp(popoverComponent);
|
11390
|
+
$PopoverInstanceVm = $PopoverInstance.mount($PopoverInstanceEl);
|
11391
|
+
});
|
11392
|
+
}
|
11393
|
+
function close2() {
|
11394
|
+
if ($PopoverInstance) {
|
11395
|
+
$PopoverInstance.unmount();
|
11396
|
+
$PopoverInstanceVm = null;
|
11397
|
+
$PopoverInstance = null;
|
11398
|
+
$PopoverInstanceEl.remove();
|
11399
|
+
}
|
11400
|
+
}
|
11401
|
+
function show2() {
|
11402
|
+
$PopoverInstanceVm == null ? void 0 : $PopoverInstanceVm.show();
|
11403
|
+
}
|
11404
|
+
function update(e) {
|
11405
|
+
$PopoverInstanceVm == null ? void 0 : $PopoverInstanceVm.updateTarget(e);
|
11406
|
+
}
|
11407
|
+
function hide2() {
|
11408
|
+
$PopoverInstanceVm == null ? void 0 : $PopoverInstanceVm.hide();
|
11409
|
+
}
|
11410
|
+
return {
|
11411
|
+
close: close2,
|
11412
|
+
show: show2,
|
11413
|
+
hide: hide2,
|
11414
|
+
update,
|
11415
|
+
vm: $PopoverInstanceVm,
|
11416
|
+
get $el() {
|
11417
|
+
return $PopoverInstanceVm.$el;
|
11418
|
+
}
|
11419
|
+
};
|
11420
|
+
}
|
11274
11421
|
const resolveOptions = (el, binding) => {
|
11275
11422
|
const options = {
|
11276
11423
|
content: "",
|
@@ -12987,10 +13134,6 @@ var useFloating = (props2, ctx, refReference, refContent, refArrow, refRoot) =>
|
|
12987
13134
|
cleanup
|
12988
13135
|
};
|
12989
13136
|
};
|
12990
|
-
const isAvailableId = (query) => {
|
12991
|
-
const container2 = document.querySelector(query);
|
12992
|
-
return container2 instanceof HTMLElement;
|
12993
|
-
};
|
12994
13137
|
let popContainerId = null;
|
12995
13138
|
let fullscreenReferId = null;
|
12996
13139
|
let parentNodeReferId = null;
|
@@ -13297,149 +13440,6 @@ var Component$p = defineComponent({
|
|
13297
13440
|
});
|
13298
13441
|
}
|
13299
13442
|
});
|
13300
|
-
function createPopoverComponent(options) {
|
13301
|
-
let $PopoverInstance = null;
|
13302
|
-
let $PopoverInstanceVm = null;
|
13303
|
-
let $PopoverInstanceEl = null;
|
13304
|
-
const resolvedOptions = __spreadProps(__spreadValues({
|
13305
|
-
boundary: "body",
|
13306
|
-
placement: "top",
|
13307
|
-
autoVisibility: false
|
13308
|
-
}, options), {
|
13309
|
-
trigger: "manual"
|
13310
|
-
});
|
13311
|
-
const isElement2 = (element) => element instanceof Element || element instanceof HTMLDocument;
|
13312
|
-
const popoverComponent = {
|
13313
|
-
name: "$popover",
|
13314
|
-
setup(_2, {
|
13315
|
-
expose
|
13316
|
-
}) {
|
13317
|
-
const refProps = ref(resolvedOptions);
|
13318
|
-
const refReference = ref();
|
13319
|
-
const referStyle = ref({
|
13320
|
-
position: "absolute",
|
13321
|
-
pointerEvents: "none",
|
13322
|
-
left: 0,
|
13323
|
-
top: 0,
|
13324
|
-
width: "auto",
|
13325
|
-
height: "auto",
|
13326
|
-
transform: ""
|
13327
|
-
});
|
13328
|
-
const updateStyle = (target) => {
|
13329
|
-
if (isElement2(target)) {
|
13330
|
-
const {
|
13331
|
-
x: x2,
|
13332
|
-
y: y2,
|
13333
|
-
width,
|
13334
|
-
height
|
13335
|
-
} = target.getBoundingClientRect();
|
13336
|
-
Object.assign(referStyle.value, {
|
13337
|
-
width: `${width}px`,
|
13338
|
-
height: `${height}px`,
|
13339
|
-
transform: `translate3d(${x2}px,${y2}px,0)`
|
13340
|
-
});
|
13341
|
-
return;
|
13342
|
-
}
|
13343
|
-
const {
|
13344
|
-
clientX,
|
13345
|
-
clientY
|
13346
|
-
} = target;
|
13347
|
-
Object.assign(referStyle.value, {
|
13348
|
-
transform: `translate3d(${clientX}px,${clientY}px,0)`,
|
13349
|
-
width: "10px",
|
13350
|
-
height: "10px"
|
13351
|
-
});
|
13352
|
-
};
|
13353
|
-
updateStyle(refProps.value.target);
|
13354
|
-
const show3 = () => {
|
13355
|
-
var _a, _b;
|
13356
|
-
(_b = (_a = refReference.value) == null ? void 0 : _a.show) == null ? void 0 : _b.call(_a);
|
13357
|
-
};
|
13358
|
-
const hide3 = () => {
|
13359
|
-
var _a, _b;
|
13360
|
-
(_b = (_a = refReference.value) == null ? void 0 : _a.hide) == null ? void 0 : _b.call(_a);
|
13361
|
-
};
|
13362
|
-
const attrs = computed(() => {
|
13363
|
-
const excludeKeys = ["target"];
|
13364
|
-
return Object.keys(refProps.value).filter((key2) => !excludeKeys.includes(key2)).reduce((out, curKey) => __spreadProps(__spreadValues({}, out), {
|
13365
|
-
[curKey]: refProps.value[curKey]
|
13366
|
-
}), {});
|
13367
|
-
});
|
13368
|
-
const updateTarget = (target) => {
|
13369
|
-
var _a, _b;
|
13370
|
-
refProps.value.target = target;
|
13371
|
-
updateStyle(target);
|
13372
|
-
(_b = (_a = refReference.value) == null ? void 0 : _a.updatePopover) == null ? void 0 : _b.call(_a);
|
13373
|
-
nextTick(() => {
|
13374
|
-
var _a2, _b2;
|
13375
|
-
(_b2 = (_a2 = refReference.value) == null ? void 0 : _a2.updatePopover) == null ? void 0 : _b2.call(_a2);
|
13376
|
-
});
|
13377
|
-
};
|
13378
|
-
expose({
|
13379
|
-
show: show3,
|
13380
|
-
hide: hide3,
|
13381
|
-
updateTarget
|
13382
|
-
});
|
13383
|
-
return () => createVNode(Component$p, mergeProps(attrs.value, {
|
13384
|
-
"ref": refReference
|
13385
|
-
}), {
|
13386
|
-
default: () => [createVNode("span", {
|
13387
|
-
"style": referStyle.value
|
13388
|
-
}, null)]
|
13389
|
-
});
|
13390
|
-
}
|
13391
|
-
};
|
13392
|
-
function getBoundaryDom(boundary) {
|
13393
|
-
if (/^body$/i.test(boundary)) {
|
13394
|
-
return document.body;
|
13395
|
-
}
|
13396
|
-
if (/^parent$/i.test(boundary)) {
|
13397
|
-
if (isElement2(resolvedOptions.target)) {
|
13398
|
-
return resolvedOptions.target.parentNode;
|
13399
|
-
}
|
13400
|
-
return resolvedOptions.target.target.parentNode;
|
13401
|
-
}
|
13402
|
-
if (typeof boundary === "string" && isAvailableId(boundary)) {
|
13403
|
-
return document.querySelector(boundary);
|
13404
|
-
}
|
13405
|
-
return document.body;
|
13406
|
-
}
|
13407
|
-
if ($PopoverInstance === null) {
|
13408
|
-
$PopoverInstanceEl = document.createElement("div");
|
13409
|
-
getBoundaryDom(resolvedOptions.boundary).append($PopoverInstanceEl);
|
13410
|
-
setTimeout(() => {
|
13411
|
-
$PopoverInstance = createApp(popoverComponent);
|
13412
|
-
$PopoverInstanceVm = $PopoverInstance.mount($PopoverInstanceEl);
|
13413
|
-
});
|
13414
|
-
}
|
13415
|
-
function close2() {
|
13416
|
-
if ($PopoverInstance) {
|
13417
|
-
$PopoverInstance.unmount();
|
13418
|
-
$PopoverInstanceVm = null;
|
13419
|
-
$PopoverInstance = null;
|
13420
|
-
$PopoverInstanceEl.remove();
|
13421
|
-
}
|
13422
|
-
}
|
13423
|
-
function show2() {
|
13424
|
-
$PopoverInstanceVm == null ? void 0 : $PopoverInstanceVm.show();
|
13425
|
-
}
|
13426
|
-
function update(e) {
|
13427
|
-
$PopoverInstanceVm == null ? void 0 : $PopoverInstanceVm.updateTarget(e);
|
13428
|
-
}
|
13429
|
-
function hide2() {
|
13430
|
-
$PopoverInstanceVm == null ? void 0 : $PopoverInstanceVm.hide();
|
13431
|
-
}
|
13432
|
-
return {
|
13433
|
-
close: close2,
|
13434
|
-
show: show2,
|
13435
|
-
hide: hide2,
|
13436
|
-
update,
|
13437
|
-
vm: $PopoverInstanceVm,
|
13438
|
-
get $el() {
|
13439
|
-
return $PopoverInstanceVm.$el;
|
13440
|
-
}
|
13441
|
-
};
|
13442
|
-
}
|
13443
13443
|
const BkPopover2 = withInstall(Component$p);
|
13444
13444
|
const Circle = (_2, {
|
13445
13445
|
attrs,
|
@@ -13860,9 +13860,9 @@ var RadioGroup = defineComponent({
|
|
13860
13860
|
radioInstanceList.push(radioContext);
|
13861
13861
|
};
|
13862
13862
|
const unregister = (radioContext) => {
|
13863
|
-
const
|
13864
|
-
if (
|
13865
|
-
radioInstanceList.splice(
|
13863
|
+
const index = radioInstanceList.indexOf(radioContext);
|
13864
|
+
if (index > -1) {
|
13865
|
+
radioInstanceList.splice(index, 1);
|
13866
13866
|
}
|
13867
13867
|
};
|
13868
13868
|
const handleChange = (checkedRadioInstance) => {
|
@@ -13919,20 +13919,20 @@ var star = defineComponent({
|
|
13919
13919
|
setup(props2, {
|
13920
13920
|
emit
|
13921
13921
|
}) {
|
13922
|
-
const chooseRate = (
|
13922
|
+
const chooseRate = (index) => {
|
13923
13923
|
if (!props2.editable)
|
13924
13924
|
return;
|
13925
|
-
const rate2 =
|
13925
|
+
const rate2 = index + 1;
|
13926
13926
|
emit("chooseRate", rate2);
|
13927
13927
|
};
|
13928
|
-
const changeHover = (
|
13928
|
+
const changeHover = (index) => {
|
13929
13929
|
if (!props2.editable)
|
13930
13930
|
return;
|
13931
|
-
const rate2 =
|
13931
|
+
const rate2 = index + 1;
|
13932
13932
|
emit("changeHover", rate2);
|
13933
13933
|
};
|
13934
|
-
const starClass = (
|
13935
|
-
"bk-is-select":
|
13934
|
+
const starClass = (index) => classes({
|
13935
|
+
"bk-is-select": index < Math.floor(displayRate.value),
|
13936
13936
|
"bk-is-edit": props2.editable,
|
13937
13937
|
"bk-rate-star": true
|
13938
13938
|
});
|
@@ -13944,14 +13944,14 @@ var star = defineComponent({
|
|
13944
13944
|
};
|
13945
13945
|
return () => createVNode("p", {
|
13946
13946
|
"class": "bk-rate-stars"
|
13947
|
-
}, [Array(props2.max).fill(1).map((_2,
|
13948
|
-
"class": starClass(
|
13947
|
+
}, [Array(props2.max).fill(1).map((_2, index) => createVNode("svg", {
|
13948
|
+
"class": starClass(index),
|
13949
13949
|
"style": starStyle,
|
13950
13950
|
"x": "0px",
|
13951
13951
|
"y": "0px",
|
13952
13952
|
"viewBox": "0 0 64 64",
|
13953
|
-
"onClick": () => chooseRate(
|
13954
|
-
"onMouseenter": () => changeHover(
|
13953
|
+
"onClick": () => chooseRate(index),
|
13954
|
+
"onMouseenter": () => changeHover(index)
|
13955
13955
|
}, [createVNode("g", {
|
13956
13956
|
"transform": "translate(-143.000000, -635.000000)"
|
13957
13957
|
}, [createVNode("g", {
|
@@ -14088,12 +14088,12 @@ var Component$l = defineComponent({
|
|
14088
14088
|
width: `${renderWidth.value}px`,
|
14089
14089
|
height: `${renderHeight.value}px`
|
14090
14090
|
}));
|
14091
|
-
const changeIndex = (
|
14092
|
-
let showIndex =
|
14093
|
-
if (
|
14091
|
+
const changeIndex = (index) => {
|
14092
|
+
let showIndex = index;
|
14093
|
+
if (index >= computedRenderDataList.value.length) {
|
14094
14094
|
showIndex = 0;
|
14095
14095
|
}
|
14096
|
-
if (
|
14096
|
+
if (index < 0) {
|
14097
14097
|
showIndex = computedRenderDataList.value.length - 1;
|
14098
14098
|
}
|
14099
14099
|
swiperIndex.value = showIndex;
|
@@ -14111,8 +14111,8 @@ var Component$l = defineComponent({
|
|
14111
14111
|
"background-image": `url(${renderData.url})`,
|
14112
14112
|
"background-color": renderData.color
|
14113
14113
|
});
|
14114
|
-
const getRenderIndexStyle = (
|
14115
|
-
"bk-current-index": swiperIndex.value ===
|
14114
|
+
const getRenderIndexStyle = (index) => ({
|
14115
|
+
"bk-current-index": swiperIndex.value === index
|
14116
14116
|
});
|
14117
14117
|
const startLoop = () => {
|
14118
14118
|
if (isLoop.value) {
|
@@ -14190,9 +14190,9 @@ var Component$l = defineComponent({
|
|
14190
14190
|
}, null)]);
|
14191
14191
|
})]), createVNode("ul", {
|
14192
14192
|
"class": "bk-swiper-index"
|
14193
|
-
}, [computedRenderDataList.value.map((_2,
|
14194
|
-
"class": getRenderIndexStyle(
|
14195
|
-
"onMouseover": () => changeIndex(
|
14193
|
+
}, [computedRenderDataList.value.map((_2, index) => createVNode("li", {
|
14194
|
+
"class": getRenderIndexStyle(index),
|
14195
|
+
"onMouseover": () => changeIndex(index)
|
14196
14196
|
}, null))]), createVNode("span", {
|
14197
14197
|
"class": "bk-swiper-nav bk-nav-prev",
|
14198
14198
|
"onClick": () => changeIndex(swiperIndex.value - 1)
|
@@ -14713,8 +14713,8 @@ var Component$k = defineComponent({
|
|
14713
14713
|
refRoot.value.scrollTo(0, 0);
|
14714
14714
|
}
|
14715
14715
|
};
|
14716
|
-
const localList = computed(() => (props2.list || []).map((item,
|
14717
|
-
$index:
|
14716
|
+
const localList = computed(() => (props2.list || []).map((item, index) => __spreadProps(__spreadValues({}, item), {
|
14717
|
+
$index: index
|
14718
14718
|
})));
|
14719
14719
|
const calcList = computed(() => localList.value.slice(pagination2.startIndex * props2.groupItemCount, (pagination2.endIndex + props2.preloadItemCount) * props2.groupItemCount));
|
14720
14720
|
const innerContentStyle = computed(() => props2.scrollPosition === "content" ? {
|
@@ -14887,9 +14887,9 @@ var SelectTagInput = defineComponent({
|
|
14887
14887
|
}
|
14888
14888
|
}
|
14889
14889
|
};
|
14890
|
-
const getTagDOM = (
|
14890
|
+
const getTagDOM = (index) => {
|
14891
14891
|
const tags = [...proxy.$el.querySelectorAll(".bk-tag")];
|
14892
|
-
return typeof
|
14892
|
+
return typeof index === "number" ? tags[index] : tags;
|
14893
14893
|
};
|
14894
14894
|
const calcOverflow = () => {
|
14895
14895
|
if (!collapseTags.value)
|
@@ -14897,11 +14897,11 @@ var SelectTagInput = defineComponent({
|
|
14897
14897
|
overflowTagIndex.value = null;
|
14898
14898
|
setTimeout(() => {
|
14899
14899
|
const tags = getTagDOM();
|
14900
|
-
const tagIndexInSecondRow = tags.findIndex((currentUser,
|
14901
|
-
if (!
|
14900
|
+
const tagIndexInSecondRow = tags.findIndex((currentUser, index) => {
|
14901
|
+
if (!index) {
|
14902
14902
|
return false;
|
14903
14903
|
}
|
14904
|
-
const previousTag = tags[
|
14904
|
+
const previousTag = tags[index - 1];
|
14905
14905
|
return previousTag.offsetTop !== currentUser.offsetTop;
|
14906
14906
|
});
|
14907
14907
|
if (tagIndexInSecondRow - 1 > -1) {
|
@@ -14939,11 +14939,11 @@ var SelectTagInput = defineComponent({
|
|
14939
14939
|
"class": selectTagClass
|
14940
14940
|
}, [(_b = (_a = this.$slots) == null ? void 0 : _a.prefix) == null ? void 0 : _b.call(_a), createVNode("span", {
|
14941
14941
|
"class": tagWrapperClass
|
14942
|
-
}, [(_e = (_d = (_c = this.$slots).default) == null ? void 0 : _d.call(_c)) != null ? _e : this.selected.map((item,
|
14942
|
+
}, [(_e = (_d = (_c = this.$slots).default) == null ? void 0 : _d.call(_c)) != null ? _e : this.selected.map((item, index) => createVNode(BkTag, {
|
14943
14943
|
"closable": true,
|
14944
14944
|
"theme": this.tagTheme,
|
14945
14945
|
"style": {
|
14946
|
-
display: this.collapseTags && this.overflowTagIndex &&
|
14946
|
+
display: this.collapseTags && this.overflowTagIndex && index >= this.overflowTagIndex ? "none" : ""
|
14947
14947
|
},
|
14948
14948
|
"onClose": () => this.handleRemoveTag(item.value)
|
14949
14949
|
}, {
|
@@ -15234,9 +15234,9 @@ var Component$i = defineComponent({
|
|
15234
15234
|
if (isDisabled.value || !option)
|
15235
15235
|
return;
|
15236
15236
|
if (multiple.value) {
|
15237
|
-
const
|
15238
|
-
if (
|
15239
|
-
selected.value.splice(
|
15237
|
+
const index = selected.value.findIndex((item) => item.value === option.value);
|
15238
|
+
if (index > -1) {
|
15239
|
+
selected.value.splice(index, 1);
|
15240
15240
|
} else {
|
15241
15241
|
selected.value.push({
|
15242
15242
|
value: option.value,
|
@@ -15307,9 +15307,9 @@ var Component$i = defineComponent({
|
|
15307
15307
|
const handleDeleteTag = (val) => {
|
15308
15308
|
if (isDisabled.value)
|
15309
15309
|
return;
|
15310
|
-
const
|
15311
|
-
if (
|
15312
|
-
selected.value.splice(
|
15310
|
+
const index = selected.value.findIndex((item) => item.value === val);
|
15311
|
+
if (index > -1) {
|
15312
|
+
selected.value.splice(index, 1);
|
15313
15313
|
emitChange(selected.value.map((item) => item.value));
|
15314
15314
|
}
|
15315
15315
|
};
|
@@ -15335,19 +15335,19 @@ var Component$i = defineComponent({
|
|
15335
15335
|
if (!((_a = triggerRef.value) == null ? void 0 : _a.contains(e.target)) && !((_b = contentRef.value) == null ? void 0 : _b.contains(e.target)) && !customContent.value)
|
15336
15336
|
return;
|
15337
15337
|
const availableOptions = options.value.filter((option) => !option.disabled && option.visible);
|
15338
|
-
const
|
15339
|
-
if (!availableOptions.length ||
|
15338
|
+
const index = availableOptions.findIndex((option) => option.value === activeOptionValue.value);
|
15339
|
+
if (!availableOptions.length || index === -1)
|
15340
15340
|
return;
|
15341
15341
|
switch (e.code) {
|
15342
15342
|
case "ArrowDown": {
|
15343
15343
|
e.preventDefault();
|
15344
|
-
const nextIndex =
|
15344
|
+
const nextIndex = index >= availableOptions.length - 1 ? 0 : index + 1;
|
15345
15345
|
activeOptionValue.value = (_c = availableOptions[nextIndex]) == null ? void 0 : _c.value;
|
15346
15346
|
break;
|
15347
15347
|
}
|
15348
15348
|
case "ArrowUp": {
|
15349
15349
|
e.preventDefault();
|
15350
|
-
const preIndex =
|
15350
|
+
const preIndex = index === 0 ? availableOptions.length - 1 : index - 1;
|
15351
15351
|
activeOptionValue.value = (_d = availableOptions[preIndex]) == null ? void 0 : _d.value;
|
15352
15352
|
break;
|
15353
15353
|
}
|
@@ -15773,17 +15773,17 @@ var Component$g = defineComponent({
|
|
15773
15773
|
updateSteps(props2.steps);
|
15774
15774
|
}
|
15775
15775
|
};
|
15776
|
-
const jumpTo = async (
|
15776
|
+
const jumpTo = async (index) => {
|
15777
15777
|
try {
|
15778
|
-
if (props2.controllable &&
|
15778
|
+
if (props2.controllable && index !== props2.curStep) {
|
15779
15779
|
if (typeof props2.beforeChange === "function") {
|
15780
15780
|
await new Promise(async (resolve, reject) => {
|
15781
|
-
const confirmed = await props2.beforeChange(
|
15781
|
+
const confirmed = await props2.beforeChange(index);
|
15782
15782
|
confirmed ? resolve(confirmed) : reject(confirmed);
|
15783
15783
|
});
|
15784
15784
|
}
|
15785
|
-
emit("update:curStep",
|
15786
|
-
emit("click",
|
15785
|
+
emit("update:curStep", index);
|
15786
|
+
emit("click", index);
|
15787
15787
|
}
|
15788
15788
|
} catch (e) {
|
15789
15789
|
console.warn(e);
|
@@ -15814,8 +15814,8 @@ var Component$g = defineComponent({
|
|
15814
15814
|
[`bk-steps-${this.direction}`]: this.direction,
|
15815
15815
|
[`bk-steps-${this.lineType}`]: this.lineType
|
15816
15816
|
}, `${stepsThemeCls} ${stepsClsPrefix} ${stepsSizeCls}`);
|
15817
|
-
const isDone = (
|
15818
|
-
const isCurrent = (
|
15817
|
+
const isDone = (index) => this.curStep > index + 1 || this.defaultSteps[index].status === "done";
|
15818
|
+
const isCurrent = (index) => this.curStep === index + 1;
|
15819
15819
|
const iconType = (step) => {
|
15820
15820
|
const {
|
15821
15821
|
icon
|
@@ -15825,47 +15825,47 @@ var Component$g = defineComponent({
|
|
15825
15825
|
}
|
15826
15826
|
return typeof step === "string";
|
15827
15827
|
};
|
15828
|
-
const isNumberIcon = (
|
15828
|
+
const isNumberIcon = (index, step) => {
|
15829
15829
|
if (!step.icon) {
|
15830
|
-
step.icon =
|
15830
|
+
step.icon = index;
|
15831
15831
|
}
|
15832
15832
|
return !isNaN(step.icon);
|
15833
15833
|
};
|
15834
15834
|
const isLoadingStatus = (step) => step.status === "loading";
|
15835
15835
|
const isErrorStatus = (step) => step.status === "error";
|
15836
|
-
const renderIcon = (
|
15837
|
-
if (isCurrent(
|
15836
|
+
const renderIcon = (index, step) => {
|
15837
|
+
if (isCurrent(index) && this.status === "loading" || isLoadingStatus(step)) {
|
15838
15838
|
return createVNode(circle, {
|
15839
15839
|
"class": "bk-icon bk-steps-icon icon-loading"
|
15840
15840
|
}, null);
|
15841
15841
|
}
|
15842
|
-
if (isCurrent(
|
15842
|
+
if (isCurrent(index) && this.status === "error" || isErrorStatus(step)) {
|
15843
15843
|
return createVNode(error, {
|
15844
15844
|
"class": "bk-steps-icon"
|
15845
15845
|
}, null);
|
15846
15846
|
}
|
15847
|
-
if (isDone(
|
15847
|
+
if (isDone(index)) {
|
15848
15848
|
return createVNode(done, {
|
15849
15849
|
"class": "bk-steps-icon"
|
15850
15850
|
}, null);
|
15851
15851
|
}
|
15852
|
-
return createVNode("span", null, [isNumberIcon(
|
15852
|
+
return createVNode("span", null, [isNumberIcon(index, step) ? index + 1 : createVNode(step.icon, null, null)]);
|
15853
15853
|
};
|
15854
15854
|
return createVNode("div", {
|
15855
15855
|
"class": stepsCls
|
15856
|
-
}, [this.defaultSteps.map((step,
|
15856
|
+
}, [this.defaultSteps.map((step, index) => {
|
15857
15857
|
var _a, _b, _c;
|
15858
15858
|
return createVNode("div", {
|
15859
|
-
"class": ["bk-step", !step.title ? "bk-step-no-content" : "", isDone(
|
15859
|
+
"class": ["bk-step", !step.title ? "bk-step-no-content" : "", isDone(index) ? "done" : "", isCurrent(index) ? "current" : "", isCurrent(index) && this.status === "error" ? "isError" : "", step.status && isCurrent(index) ? [`bk-step-${step.status}`] : ""]
|
15860
15860
|
}, [createVNode("span", {
|
15861
15861
|
"class": ["bk-step-indicator", `bk-step-${iconType(step) ? "icon" : "number"}`, `bk-step-icon${step.status}`],
|
15862
15862
|
"style": {
|
15863
15863
|
cursor: this.controllable ? "pointer" : ""
|
15864
15864
|
},
|
15865
15865
|
"onClick": () => {
|
15866
|
-
this.jumpTo(
|
15866
|
+
this.jumpTo(index + 1);
|
15867
15867
|
}
|
15868
|
-
}, [(_c = (_b = (_a = this.$slots)[
|
15868
|
+
}, [(_c = (_b = (_a = this.$slots)[index + 1]) == null ? void 0 : _b.call(_a)) != null ? _c : renderIcon(index, step)]), step.title ? createVNode("div", {
|
15869
15869
|
"class": "bk-step-content"
|
15870
15870
|
}, [createVNode("div", {
|
15871
15871
|
"class": "bk-step-title",
|
@@ -15873,7 +15873,7 @@ var Component$g = defineComponent({
|
|
15873
15873
|
cursor: this.controllable ? "pointer" : ""
|
15874
15874
|
},
|
15875
15875
|
"onClick": () => {
|
15876
|
-
this.jumpTo(
|
15876
|
+
this.jumpTo(index + 1);
|
15877
15877
|
}
|
15878
15878
|
}, [step.title]), step.description && createVNode("div", {
|
15879
15879
|
"class": "bk-step-description",
|
@@ -16180,7 +16180,7 @@ var userPagination = (props2, indexData) => {
|
|
16180
16180
|
};
|
16181
16181
|
const filter = (sourceData, filterFn) => {
|
16182
16182
|
if (typeof filterFn === "function") {
|
16183
|
-
const filterVals = sourceData.filter((row,
|
16183
|
+
const filterVals = sourceData.filter((row, index) => filterFn(row, index, props2.data));
|
16184
16184
|
sourceData.splice(0, sourceData.length, ...filterVals);
|
16185
16185
|
}
|
16186
16186
|
};
|
@@ -16305,10 +16305,10 @@ var useLimit = () => {
|
|
16305
16305
|
"modelValue": localLimit.value,
|
16306
16306
|
"onChange": handleLimitChange,
|
16307
16307
|
"disabled": proxy.disabled
|
16308
|
-
}, _isSlot$4(_slot = proxy.limitList.map((num,
|
16308
|
+
}, _isSlot$4(_slot = proxy.limitList.map((num, index) => createVNode(BkOption, {
|
16309
16309
|
"value": num,
|
16310
16310
|
"label": `${num}`,
|
16311
|
-
"key": `${
|
16311
|
+
"key": `${index}_${num}`
|
16312
16312
|
}, null))) ? _slot : {
|
16313
16313
|
default: () => [_slot]
|
16314
16314
|
}), createVNode("div", null, [createTextVNode("\u6761")])]);
|
@@ -16693,9 +16693,9 @@ var Component$e = defineComponent({
|
|
16693
16693
|
};
|
16694
16694
|
return createVNode("div", {
|
16695
16695
|
"class": paginationClass
|
16696
|
-
}, [this.layout.map((layout,
|
16697
|
-
isFirst:
|
16698
|
-
isLast:
|
16696
|
+
}, [this.layout.map((layout, index) => layoutMap[layout]({
|
16697
|
+
isFirst: index === 0,
|
16698
|
+
isLast: index === this.layout.length - 1
|
16699
16699
|
}))]);
|
16700
16700
|
}
|
16701
16701
|
});
|
@@ -16786,7 +16786,7 @@ const resolveColumnWidth = (root, colgroups, autoWidth = 20, offsetWidth = 0) =>
|
|
16786
16786
|
}
|
16787
16787
|
}
|
16788
16788
|
};
|
16789
|
-
colgroups.forEach((col,
|
16789
|
+
colgroups.forEach((col, index) => {
|
16790
16790
|
if (!col.isHidden) {
|
16791
16791
|
const order2 = ["resizeWidth", "width"];
|
16792
16792
|
const colWidth = String(getColumnReactWidth(col, order2));
|
@@ -16806,7 +16806,7 @@ const resolveColumnWidth = (root, colgroups, autoWidth = 20, offsetWidth = 0) =>
|
|
16806
16806
|
isAutoWidthCol = false;
|
16807
16807
|
}
|
16808
16808
|
if (isAutoWidthCol) {
|
16809
|
-
avgColIndexList.push(
|
16809
|
+
avgColIndexList.push(index);
|
16810
16810
|
}
|
16811
16811
|
}
|
16812
16812
|
});
|
@@ -16871,10 +16871,10 @@ const formatPropAsArray = (prop, args) => {
|
|
16871
16871
|
}
|
16872
16872
|
return [];
|
16873
16873
|
};
|
16874
|
-
const getRowKey = (item, props2,
|
16874
|
+
const getRowKey = (item, props2, index) => {
|
16875
16875
|
if (typeof props2.rowKey === "string") {
|
16876
16876
|
if (props2.rowKey === TABLE_ROW_ATTRIBUTE.ROW_INDEX) {
|
16877
|
-
return `__ROW_INDEX_${
|
16877
|
+
return `__ROW_INDEX_${index}`;
|
16878
16878
|
}
|
16879
16879
|
const keys = props2.rowKey.split(".");
|
16880
16880
|
return keys.reduce((pre, cur) => {
|
@@ -16984,7 +16984,7 @@ var TableCell = defineComponent({
|
|
16984
16984
|
}
|
16985
16985
|
});
|
16986
16986
|
onBeforeUnmount(() => {
|
16987
|
-
observerIns.stop();
|
16987
|
+
observerIns == null ? void 0 : observerIns.stop();
|
16988
16988
|
bkEllipsisIns == null ? void 0 : bkEllipsisIns.destroyInstance(refRoot.value);
|
16989
16989
|
});
|
16990
16990
|
return () => {
|
@@ -17073,7 +17073,7 @@ var HeadFilter = defineComponent({
|
|
17073
17073
|
}
|
17074
17074
|
return checked.some((str) => getRegExp(str, "img").test(matchText));
|
17075
17075
|
};
|
17076
|
-
const filterFn = typeof column.filter.filterFn === "function" ? (checked, row,
|
17076
|
+
const filterFn = typeof column.filter.filterFn === "function" ? (checked, row, index, data2) => column.filter.filterFn(checked, row, props2.column, index, data2) : (checked, row) => checked.length ? defaultFilterFn(checked, row) : true;
|
17077
17077
|
const handleBtnSaveClick = () => {
|
17078
17078
|
handleFilterChange(true);
|
17079
17079
|
emit("filterSave", [...state.checked]);
|
@@ -17319,9 +17319,9 @@ var Settings = defineComponent({
|
|
17319
17319
|
checkAll.value = !checkAll.value;
|
17320
17320
|
const fields = localSettings.value.fields || props2.columns || [];
|
17321
17321
|
if (checkAll.value) {
|
17322
|
-
checkedFields.value = fields.map((item,
|
17322
|
+
checkedFields.value = fields.map((item, index) => resolvePropVal(item, "field", [item, index]));
|
17323
17323
|
} else {
|
17324
|
-
const readonlyFields = fields.filter((item) => item.disabled).map((item,
|
17324
|
+
const readonlyFields = fields.filter((item) => item.disabled).map((item, index) => resolvePropVal(item, "field", [item, index]));
|
17325
17325
|
checkedFields.value.splice(0, checkedFields.value.length, ...readonlyFields);
|
17326
17326
|
}
|
17327
17327
|
};
|
@@ -17331,7 +17331,7 @@ var Settings = defineComponent({
|
|
17331
17331
|
});
|
17332
17332
|
const sizeList = localSettings.value.sizeList || defaultSizeList;
|
17333
17333
|
const isFiledDisabled = computed(() => isLimit.value && (localSettings.value.limit ? localSettings.value.limit : 0) <= checkedFields.value.length);
|
17334
|
-
const isItemReadonly = (item,
|
17334
|
+
const isItemReadonly = (item, index) => item.disabled || isFiledDisabled.value && !checkedFields.value.includes(resolvePropVal(item, "field", [item, index]));
|
17335
17335
|
const handleSizeItemClick = (item) => {
|
17336
17336
|
activeSize.value = item.value;
|
17337
17337
|
activeHeight.value = item.height;
|
@@ -17349,12 +17349,12 @@ var Settings = defineComponent({
|
|
17349
17349
|
"onClick": () => handleSizeItemClick(item)
|
17350
17350
|
}, [item.label]));
|
17351
17351
|
const renderFields = computed(() => localSettings.value.fields || props2.columns || []);
|
17352
|
-
const indeterminate = computed(() => checkedFields.value.length > 0 && !renderFields.value.every((field,
|
17352
|
+
const indeterminate = computed(() => checkedFields.value.length > 0 && !renderFields.value.every((field, index) => checkedFields.value.includes(resolvePropVal(field, "field", [field, index]))));
|
17353
17353
|
watch(() => [checkedFields.value], () => {
|
17354
17354
|
if (!checkedFields.value.length) {
|
17355
17355
|
checkAll.value = false;
|
17356
17356
|
}
|
17357
|
-
if (checkedFields.value.length && renderFields.value.every((field,
|
17357
|
+
if (checkedFields.value.length && renderFields.value.every((field, index) => checkedFields.value.includes(resolvePropVal(field, "field", [field, index])))) {
|
17358
17358
|
checkAll.value = true;
|
17359
17359
|
}
|
17360
17360
|
}, {
|
@@ -17413,15 +17413,15 @@ var Settings = defineComponent({
|
|
17413
17413
|
"class": "setting-body-fields",
|
17414
17414
|
"modelValue": checkedFields.value,
|
17415
17415
|
"onUpdate:modelValue": ($event) => checkedFields.value = $event
|
17416
|
-
}, _isSlot$2(_slot2 = renderFields.value.map((item,
|
17416
|
+
}, _isSlot$2(_slot2 = renderFields.value.map((item, index) => {
|
17417
17417
|
let _slot;
|
17418
17418
|
return createVNode("div", {
|
17419
17419
|
"class": "field-item"
|
17420
17420
|
}, [createVNode(BkCheckbox, {
|
17421
|
-
"label": resolvePropVal(item, "field", [item,
|
17422
|
-
"checked": checkedFields.value.includes(resolvePropVal(item, "field", [item,
|
17423
|
-
"disabled": isItemReadonly(item,
|
17424
|
-
}, _isSlot$2(_slot = resolvePropVal(item, "label", [item,
|
17421
|
+
"label": resolvePropVal(item, "field", [item, index]),
|
17422
|
+
"checked": checkedFields.value.includes(resolvePropVal(item, "field", [item, index])),
|
17423
|
+
"disabled": isItemReadonly(item, index)
|
17424
|
+
}, _isSlot$2(_slot = resolvePropVal(item, "label", [item, index])) ? _slot : {
|
17425
17425
|
default: () => [_slot]
|
17426
17426
|
})]);
|
17427
17427
|
})) ? _slot2 : {
|
@@ -17456,12 +17456,12 @@ var useFixedColumn = (props2, colgroups, hasScrollY) => {
|
|
17456
17456
|
});
|
17457
17457
|
const resolveFixColPos = (column) => column.fixed === "right" ? "right" : "left";
|
17458
17458
|
const resolveFixOffset = {
|
17459
|
-
left: (ignoreFirst = true) => colgroups.filter((col) => col.fixed && col.fixed !== "right").reduce((offset2, curr,
|
17460
|
-
const outOffset = ignoreFirst &&
|
17459
|
+
left: (ignoreFirst = true) => colgroups.filter((col) => col.fixed && col.fixed !== "right").reduce((offset2, curr, index) => {
|
17460
|
+
const outOffset = ignoreFirst && index === 0 ? offset2 : offset2 + getColumnReactWidth(curr);
|
17461
17461
|
return outOffset;
|
17462
17462
|
}, 0),
|
17463
|
-
right: (ignoreFirst = true) => colgroups.filter((col) => col.fixed === "right").reduce((offset2, curr,
|
17464
|
-
const outOffset = ignoreFirst &&
|
17463
|
+
right: (ignoreFirst = true) => colgroups.filter((col) => col.fixed === "right").reduce((offset2, curr, index) => {
|
17464
|
+
const outOffset = ignoreFirst && index === 0 ? offset2 : offset2 + getColumnReactWidth(curr);
|
17465
17465
|
return outOffset;
|
17466
17466
|
}, hasScrollY ? SCROLLY_WIDTH : 0)
|
17467
17467
|
};
|
@@ -17638,31 +17638,31 @@ class TableRender {
|
|
17638
17638
|
});
|
17639
17639
|
this.context.emit(EMITEVENTS.PAGE_VALUE_CHANGE, current);
|
17640
17640
|
}
|
17641
|
-
setColumnActive(
|
17642
|
-
const col = this.propActiveCols.find((item) => item.index ===
|
17641
|
+
setColumnActive(index, single = false) {
|
17642
|
+
const col = this.propActiveCols.find((item) => item.index === index);
|
17643
17643
|
Object.assign(col, {
|
17644
17644
|
active: !col.active
|
17645
17645
|
});
|
17646
17646
|
if (single) {
|
17647
|
-
this.propActiveCols.filter((item) => item.index !==
|
17647
|
+
this.propActiveCols.filter((item) => item.index !== index && item.active).forEach((col2) => {
|
17648
17648
|
Object.assign(col2, {
|
17649
17649
|
active: false
|
17650
17650
|
});
|
17651
17651
|
});
|
17652
17652
|
}
|
17653
17653
|
}
|
17654
|
-
handleColumnHeadClick(
|
17654
|
+
handleColumnHeadClick(index) {
|
17655
17655
|
if (this.props.columnPick !== "disabled") {
|
17656
|
-
this.setColumnActive(
|
17656
|
+
this.setColumnActive(index, this.props.columnPick === "single");
|
17657
17657
|
this.context.emit(EMITEVENTS.COLUMN_PICK, this.propActiveCols);
|
17658
17658
|
}
|
17659
17659
|
}
|
17660
|
-
getSortCell(column,
|
17660
|
+
getSortCell(column, index) {
|
17661
17661
|
const hanldeSortClick = (sortFn, type) => {
|
17662
17662
|
this.emitEvent(EVENTS$1.ON_SORT_BY_CLICK, [{
|
17663
17663
|
sortFn,
|
17664
17664
|
column,
|
17665
|
-
index
|
17665
|
+
index,
|
17666
17666
|
type
|
17667
17667
|
}]);
|
17668
17668
|
};
|
@@ -17671,14 +17671,14 @@ class TableRender {
|
|
17671
17671
|
"onChange": hanldeSortClick
|
17672
17672
|
}, null);
|
17673
17673
|
}
|
17674
|
-
getFilterCell(column,
|
17674
|
+
getFilterCell(column, index) {
|
17675
17675
|
const handleFilterChange = (checked, filterFn) => {
|
17676
|
-
const filterFn0 = (row,
|
17676
|
+
const filterFn0 = (row, index2) => filterFn(checked, row, index2);
|
17677
17677
|
this.emitEvent(EVENTS$1.ON_FILTER_CLICK, [{
|
17678
17678
|
filterFn: filterFn0,
|
17679
17679
|
checked,
|
17680
17680
|
column,
|
17681
|
-
index
|
17681
|
+
index
|
17682
17682
|
}]);
|
17683
17683
|
};
|
17684
17684
|
const filterSave = (values) => {
|
@@ -17702,19 +17702,19 @@ class TableRender {
|
|
17702
17702
|
const rowStyle = {
|
17703
17703
|
"--row-height": `${resolvePropVal(config, "height", ["thead"])}px`
|
17704
17704
|
};
|
17705
|
-
const renderHeadCell = (column,
|
17705
|
+
const renderHeadCell = (column, index) => {
|
17706
17706
|
const cells = [];
|
17707
17707
|
if (column.sort) {
|
17708
|
-
cells.push(this.getSortCell(column,
|
17708
|
+
cells.push(this.getSortCell(column, index));
|
17709
17709
|
}
|
17710
17710
|
if (column.filter) {
|
17711
|
-
cells.push(this.getFilterCell(column,
|
17711
|
+
cells.push(this.getFilterCell(column, index));
|
17712
17712
|
}
|
17713
17713
|
if (typeof cellFn === "function") {
|
17714
|
-
cells.unshift(cellFn(column,
|
17714
|
+
cells.unshift(cellFn(column, index));
|
17715
17715
|
return cells;
|
17716
17716
|
}
|
17717
|
-
cells.unshift(resolvePropVal(column, "label", [column,
|
17717
|
+
cells.unshift(resolvePropVal(column, "label", [column, index]));
|
17718
17718
|
return cells;
|
17719
17719
|
};
|
17720
17720
|
const resolveEventListener = (col) => Array.from(col.listeners.keys()).reduce((handle, key2) => {
|
@@ -17735,15 +17735,15 @@ class TableRender {
|
|
17735
17735
|
return createVNode("thead", {
|
17736
17736
|
"style": rowStyle
|
17737
17737
|
}, [createVNode(TableRow, null, {
|
17738
|
-
default: () => [createVNode("tr", null, [this.filterColgroups.map((column,
|
17738
|
+
default: () => [createVNode("tr", null, [this.filterColgroups.map((column, index) => {
|
17739
17739
|
let _slot;
|
17740
17740
|
return createVNode("th", mergeProps({
|
17741
17741
|
"colspan": 1,
|
17742
17742
|
"rowspan": 1,
|
17743
|
-
"class": this.getHeadColumnClass(column,
|
17743
|
+
"class": this.getHeadColumnClass(column, index),
|
17744
17744
|
"style": resolveFixedColumnStyle(column, fixedOffset),
|
17745
|
-
"onClick": () => this.handleColumnHeadClick(
|
17746
|
-
}, resolveEventListener(column)), [createVNode(TableCell, null, _isSlot$1(_slot = renderHeadCell(column,
|
17745
|
+
"onClick": () => this.handleColumnHeadClick(index)
|
17746
|
+
}, resolveEventListener(column)), [createVNode(TableCell, null, _isSlot$1(_slot = renderHeadCell(column, index)) ? _slot : {
|
17747
17747
|
default: () => [_slot]
|
17748
17748
|
})]);
|
17749
17749
|
})])]
|
@@ -17771,17 +17771,17 @@ class TableRender {
|
|
17771
17771
|
"class": rowClass,
|
17772
17772
|
"onClick": (e) => this.handleRowClick(e, row, rowIndex, rows),
|
17773
17773
|
"onDblclick": (e) => this.handleRowDblClick(e, row, rowIndex, rows)
|
17774
|
-
}, [this.filterColgroups.map((column,
|
17774
|
+
}, [this.filterColgroups.map((column, index) => {
|
17775
17775
|
let _slot2;
|
17776
|
-
const cellStyle = [resolveFixedColumnStyle(column, fixedOffset), ...formatPropAsArray(this.props.cellStyle, [column,
|
17777
|
-
const cellClass = [this.getColumnClass(column,
|
17776
|
+
const cellStyle = [resolveFixedColumnStyle(column, fixedOffset), ...formatPropAsArray(this.props.cellStyle, [column, index, row, rowIndex, this])];
|
17777
|
+
const cellClass = [this.getColumnClass(column, index), ...formatPropAsArray(this.props.cellClass, [column, index, row, rowIndex, this]), {
|
17778
17778
|
"expand-row": row[TABLE_ROW_ATTRIBUTE.ROW_EXPAND]
|
17779
17779
|
}];
|
17780
17780
|
const tdCtxClass = {
|
17781
17781
|
cell: true,
|
17782
17782
|
"expand-cell": column.type === "expand"
|
17783
17783
|
};
|
17784
|
-
const cellKey = `__CELL_${rowIndex}_${
|
17784
|
+
const cellKey = `__CELL_${rowIndex}_${index}`;
|
17785
17785
|
return createVNode("td", {
|
17786
17786
|
"class": cellClass,
|
17787
17787
|
"style": cellStyle,
|
@@ -17823,42 +17823,42 @@ class TableRender {
|
|
17823
17823
|
});
|
17824
17824
|
}
|
17825
17825
|
}
|
17826
|
-
handleRowClick(e, row,
|
17827
|
-
this.context.emit(EMITEVENTS.ROW_CLICK, e, row,
|
17826
|
+
handleRowClick(e, row, index, rows) {
|
17827
|
+
this.context.emit(EMITEVENTS.ROW_CLICK, e, row, index, rows, this);
|
17828
17828
|
}
|
17829
|
-
handleRowDblClick(e, row,
|
17830
|
-
this.context.emit(EMITEVENTS.ROW_DBL_CLICK, e, row,
|
17829
|
+
handleRowDblClick(e, row, index, rows) {
|
17830
|
+
this.context.emit(EMITEVENTS.ROW_DBL_CLICK, e, row, index, rows, this);
|
17831
17831
|
}
|
17832
17832
|
getExpandCell(row) {
|
17833
17833
|
const isExpand = !!row[TABLE_ROW_ATTRIBUTE.ROW_EXPAND];
|
17834
17834
|
return isExpand ? createVNode(downShape, null, null) : createVNode(rightShape, null, null);
|
17835
17835
|
}
|
17836
|
-
handleRowExpandClick(row, column,
|
17836
|
+
handleRowExpandClick(row, column, index, rows, e) {
|
17837
17837
|
this.emitEvent(EVENTS$1.ON_ROW_EXPAND_CLICK, [{
|
17838
17838
|
row,
|
17839
17839
|
column,
|
17840
|
-
index
|
17840
|
+
index,
|
17841
17841
|
rows,
|
17842
17842
|
e
|
17843
17843
|
}]);
|
17844
17844
|
}
|
17845
|
-
renderCell(row, column,
|
17845
|
+
renderCell(row, column, index, rows) {
|
17846
17846
|
if (column.type === "expand") {
|
17847
17847
|
const renderExpandSlot = () => {
|
17848
17848
|
var _a, _b, _c;
|
17849
17849
|
if (typeof column.render === "function") {
|
17850
|
-
return column.render(null, row,
|
17850
|
+
return column.render(null, row, index, rows);
|
17851
17851
|
}
|
17852
17852
|
return (_c = (_b = (_a = this.context.slots).expandCell) == null ? void 0 : _b.call(_a, {
|
17853
17853
|
row,
|
17854
17854
|
column,
|
17855
|
-
index
|
17855
|
+
index,
|
17856
17856
|
rows
|
17857
17857
|
})) != null ? _c : this.getExpandCell(row);
|
17858
17858
|
};
|
17859
17859
|
return createVNode("span", {
|
17860
17860
|
"class": "expand-btn-action",
|
17861
|
-
"onClick": (e) => this.handleRowExpandClick(row, column,
|
17861
|
+
"onClick": (e) => this.handleRowExpandClick(row, column, index, rows, e)
|
17862
17862
|
}, [renderExpandSlot()]);
|
17863
17863
|
}
|
17864
17864
|
const cell = getRowText(row, resolvePropVal(column, "field", [column, row]), column);
|
@@ -17869,7 +17869,7 @@ class TableRender {
|
|
17869
17869
|
data: data2,
|
17870
17870
|
row,
|
17871
17871
|
column,
|
17872
|
-
index
|
17872
|
+
index,
|
17873
17873
|
rows
|
17874
17874
|
});
|
17875
17875
|
}
|
@@ -17879,9 +17879,9 @@ class TableRender {
|
|
17879
17879
|
return this.props.columnPick !== "disabled" && this.propActiveCols.some((col) => col.index === colIndex && col.active);
|
17880
17880
|
}
|
17881
17881
|
renderColGroup() {
|
17882
|
-
return createVNode("colgroup", null, [(this.filterColgroups || []).map((column,
|
17882
|
+
return createVNode("colgroup", null, [(this.filterColgroups || []).map((column, index) => {
|
17883
17883
|
const colCls = classes({
|
17884
|
-
active: this.isColActive(
|
17884
|
+
active: this.isColActive(index)
|
17885
17885
|
});
|
17886
17886
|
const width = `${resolveWidth(getColumnReactWidth(column))}`.replace(/px$/i, "");
|
17887
17887
|
return createVNode("col", {
|
@@ -17914,17 +17914,17 @@ var useActiveColumns = (props2) => {
|
|
17914
17914
|
};
|
17915
17915
|
}
|
17916
17916
|
const activeCols = reactive(resolveActiveColumns(props2));
|
17917
|
-
const getActiveColumns = () => (props2.columns || []).map((_column,
|
17918
|
-
index
|
17919
|
-
active: activeCols.some((colIndex) => colIndex ===
|
17917
|
+
const getActiveColumns = () => (props2.columns || []).map((_column, index) => ({
|
17918
|
+
index,
|
17919
|
+
active: activeCols.some((colIndex) => colIndex === index),
|
17920
17920
|
_column
|
17921
17921
|
}));
|
17922
17922
|
watchEffect(() => {
|
17923
17923
|
activeColumns = getActiveColumns();
|
17924
17924
|
const cols = resolveActiveColumns(props2);
|
17925
|
-
activeColumns.forEach((col,
|
17925
|
+
activeColumns.forEach((col, index) => {
|
17926
17926
|
Object.assign(col, {
|
17927
|
-
active: cols.some((colIndex) => colIndex ===
|
17927
|
+
active: cols.some((colIndex) => colIndex === index)
|
17928
17928
|
});
|
17929
17929
|
});
|
17930
17930
|
});
|
@@ -18218,10 +18218,10 @@ const useInit = (props2) => {
|
|
18218
18218
|
};
|
18219
18219
|
const indexData = reactive([]);
|
18220
18220
|
const initIndexData = (keepLocalAction = false) => {
|
18221
|
-
indexData.splice(0, indexData.length, ...props2.data.map((item,
|
18222
|
-
const rowId = getRowKey(item, props2,
|
18221
|
+
indexData.splice(0, indexData.length, ...props2.data.map((item, index) => {
|
18222
|
+
const rowId = getRowKey(item, props2, index);
|
18223
18223
|
return __spreadProps(__spreadValues({}, item), {
|
18224
|
-
[TABLE_ROW_ATTRIBUTE.ROW_INDEX]:
|
18224
|
+
[TABLE_ROW_ATTRIBUTE.ROW_INDEX]: index,
|
18225
18225
|
[TABLE_ROW_ATTRIBUTE.ROW_UID]: rowId,
|
18226
18226
|
[TABLE_ROW_ATTRIBUTE.ROW_EXPAND]: keepLocalAction ? isRowExpand(rowId) : false
|
18227
18227
|
});
|
@@ -18324,7 +18324,7 @@ var Component$d = defineComponent({
|
|
18324
18324
|
const {
|
18325
18325
|
sortFn,
|
18326
18326
|
column,
|
18327
|
-
index
|
18327
|
+
index,
|
18328
18328
|
type
|
18329
18329
|
} = args;
|
18330
18330
|
if (typeof sortFn === "function") {
|
@@ -18335,7 +18335,7 @@ var Component$d = defineComponent({
|
|
18335
18335
|
}
|
18336
18336
|
ctx.emit(EMITEVENTS.COLUMN_SORT, {
|
18337
18337
|
column,
|
18338
|
-
index
|
18338
|
+
index,
|
18339
18339
|
type
|
18340
18340
|
});
|
18341
18341
|
}).on(EVENTS$1.ON_FILTER_CLICK, (args) => {
|
@@ -18344,7 +18344,7 @@ var Component$d = defineComponent({
|
|
18344
18344
|
filterFn,
|
18345
18345
|
checked,
|
18346
18346
|
column,
|
18347
|
-
index
|
18347
|
+
index
|
18348
18348
|
} = args;
|
18349
18349
|
if (typeof filterFn === "function") {
|
18350
18350
|
columnFilterFn = filterFn;
|
@@ -18354,7 +18354,7 @@ var Component$d = defineComponent({
|
|
18354
18354
|
ctx.emit(EMITEVENTS.COLUMN_FILTER, {
|
18355
18355
|
checked,
|
18356
18356
|
column,
|
18357
|
-
index
|
18357
|
+
index
|
18358
18358
|
});
|
18359
18359
|
}).on(EVENTS$1.ON_SETTING_CHANGE, (args) => {
|
18360
18360
|
const {
|
@@ -18378,14 +18378,14 @@ var Component$d = defineComponent({
|
|
18378
18378
|
const {
|
18379
18379
|
row,
|
18380
18380
|
column,
|
18381
|
-
index
|
18381
|
+
index,
|
18382
18382
|
rows,
|
18383
18383
|
e
|
18384
18384
|
} = args;
|
18385
18385
|
ctx.emit(EMITEVENTS.ROW_EXPAND_CLICK, {
|
18386
18386
|
row,
|
18387
18387
|
column,
|
18388
|
-
index
|
18388
|
+
index,
|
18389
18389
|
rows,
|
18390
18390
|
e
|
18391
18391
|
});
|
@@ -18852,8 +18852,8 @@ var Component$c = defineComponent({
|
|
18852
18852
|
const renderList = computed(() => {
|
18853
18853
|
if (props2.useGroup) {
|
18854
18854
|
const groupMap = {};
|
18855
|
-
pageState.curPageList.forEach((item,
|
18856
|
-
item.__index__ =
|
18855
|
+
pageState.curPageList.forEach((item, index) => {
|
18856
|
+
item.__index__ = index;
|
18857
18857
|
if (!groupMap[item.group.groupId]) {
|
18858
18858
|
groupMap[item.group.groupId] = {
|
18859
18859
|
id: item.group.groupId,
|
@@ -18916,7 +18916,7 @@ var Component$c = defineComponent({
|
|
18916
18916
|
}
|
18917
18917
|
initPage(filterData2);
|
18918
18918
|
};
|
18919
|
-
const activeClass = (data2,
|
18919
|
+
const activeClass = (data2, index) => {
|
18920
18920
|
const style = {
|
18921
18921
|
"bk-selector-actived": false,
|
18922
18922
|
"bk-selector-selected": tagList.value.includes(data2[props2.saveKey])
|
@@ -18924,7 +18924,7 @@ var Component$c = defineComponent({
|
|
18924
18924
|
if (props2.useGroup) {
|
18925
18925
|
style["bk-selector-actived"] = data2.__index__ === state.focusItemIndex;
|
18926
18926
|
} else {
|
18927
|
-
style["bk-selector-actived"] =
|
18927
|
+
style["bk-selector-actived"] = index === state.focusItemIndex;
|
18928
18928
|
}
|
18929
18929
|
return style;
|
18930
18930
|
};
|
@@ -18944,10 +18944,10 @@ var Component$c = defineComponent({
|
|
18944
18944
|
return 0;
|
18945
18945
|
}
|
18946
18946
|
const childNodes = getSelectedTagNodes();
|
18947
|
-
const
|
18947
|
+
const index = childNodes.findIndex(({
|
18948
18948
|
id
|
18949
18949
|
}) => id === "tagInputItem");
|
18950
|
-
return
|
18950
|
+
return index >= 0 ? index : 0;
|
18951
18951
|
};
|
18952
18952
|
const swapElementPositions = (newNode, referenceNode, isNextElementSibling = false) => {
|
18953
18953
|
if (!referenceNode || !newNode)
|
@@ -19034,9 +19034,9 @@ var Component$c = defineComponent({
|
|
19034
19034
|
clearInput();
|
19035
19035
|
popoverProps.isShow = false;
|
19036
19036
|
};
|
19037
|
-
const handleTagRemove = (data2,
|
19037
|
+
const handleTagRemove = (data2, index, e) => {
|
19038
19038
|
e == null ? void 0 : e.stopPropagation();
|
19039
|
-
removeTag(data2,
|
19039
|
+
removeTag(data2, index);
|
19040
19040
|
clearInput();
|
19041
19041
|
handleChange("remove", data2);
|
19042
19042
|
tagInputRef.value.style.width = `${INPUT_MIN_WIDTH}px`;
|
@@ -19079,10 +19079,10 @@ var Component$c = defineComponent({
|
|
19079
19079
|
}
|
19080
19080
|
});
|
19081
19081
|
};
|
19082
|
-
const backspaceHandler = (
|
19082
|
+
const backspaceHandler = (index, target) => {
|
19083
19083
|
const nodes = getSelectedTagNodes();
|
19084
|
-
swapElementPositions(tagInputItemRef.value, nodes[
|
19085
|
-
listState.selectedTagList.splice(
|
19084
|
+
swapElementPositions(tagInputItemRef.value, nodes[index - 1]);
|
19085
|
+
listState.selectedTagList.splice(index - 1, 1);
|
19086
19086
|
focusInputTrigger();
|
19087
19087
|
const isExistInit = formatList.some((item) => item === target[props2.saveKey]);
|
19088
19088
|
if ((props2.allowCreate && isExistInit || !props2.allowCreate) && !isSingleSelect.value) {
|
@@ -19195,7 +19195,7 @@ var Component$c = defineComponent({
|
|
19195
19195
|
let tags = valArr.map((value2) => value2[saveKey]);
|
19196
19196
|
if (tags.length) {
|
19197
19197
|
const nodes = getSelectedTagNodes();
|
19198
|
-
const
|
19198
|
+
const index = getTagInputItemSite();
|
19199
19199
|
const localInitData = listState.localList.map((data2) => data2[saveKey]);
|
19200
19200
|
tags = tags.filter((tag2) => {
|
19201
19201
|
const canSelected = (tag2 == null ? void 0 : tag2.trim()) && !tagList.value.includes(tag2);
|
@@ -19220,8 +19220,8 @@ var Component$c = defineComponent({
|
|
19220
19220
|
};
|
19221
19221
|
}) : listState.localList.filter((tag2) => tags.includes(tag2[saveKey]));
|
19222
19222
|
if (tags.length) {
|
19223
|
-
listState.selectedTagList.splice(
|
19224
|
-
swapElementPositions(tagInputItemRef.value, nodes[
|
19223
|
+
listState.selectedTagList.splice(index, 0, ...localTags);
|
19224
|
+
swapElementPositions(tagInputItemRef.value, nodes[index]);
|
19225
19225
|
tagInputRef.value.style.width = `${INPUT_MIN_WIDTH}px`;
|
19226
19226
|
listState.localList = listState.localList.filter((val) => !tags.includes(val[saveKey]));
|
19227
19227
|
handleChange("select");
|
@@ -19305,8 +19305,8 @@ var Component$c = defineComponent({
|
|
19305
19305
|
});
|
19306
19306
|
}
|
19307
19307
|
};
|
19308
|
-
const removeTag = (data2,
|
19309
|
-
listState.selectedTagList.splice(
|
19308
|
+
const removeTag = (data2, index) => {
|
19309
|
+
listState.selectedTagList.splice(index, 1);
|
19310
19310
|
const isExistInit = formatList.some((item) => item === data2[props2.saveKey]);
|
19311
19311
|
if ((props2.allowCreate && isExistInit || !props2.allowCreate) && !isSingleSelect.value) {
|
19312
19312
|
listState.localList.push(data2);
|
@@ -19350,10 +19350,10 @@ var Component$c = defineComponent({
|
|
19350
19350
|
"class": "group-name"
|
19351
19351
|
}, [group.name, createTextVNode(" ("), group.children.length, createTextVNode(")")]), createVNode("ul", {
|
19352
19352
|
"class": "bk-selector-group-list-item"
|
19353
|
-
}, [group.children.map((item,
|
19353
|
+
}, [group.children.map((item, index) => createVNode("li", {
|
19354
19354
|
"class": ["bk-selector-list-item", {
|
19355
19355
|
disabled: item.disabled
|
19356
|
-
}, this.activeClass(item,
|
19356
|
+
}, this.activeClass(item, index)],
|
19357
19357
|
"onClick": this.handleTagSelected.bind(this, item, "select")
|
19358
19358
|
}, [createVNode(ListTagRender, {
|
19359
19359
|
"node": item,
|
@@ -19363,10 +19363,10 @@ var Component$c = defineComponent({
|
|
19363
19363
|
"searchKeyword": this.curInputValue
|
19364
19364
|
}, null)]))])]));
|
19365
19365
|
}
|
19366
|
-
return this.renderList.map((item,
|
19366
|
+
return this.renderList.map((item, index) => createVNode("li", {
|
19367
19367
|
"class": ["bk-selector-list-item", {
|
19368
19368
|
disabled: item.disabled
|
19369
|
-
}, this.activeClass(item,
|
19369
|
+
}, this.activeClass(item, index)],
|
19370
19370
|
"onClick": this.handleTagSelected.bind(this, item, "select")
|
19371
19371
|
}, [createVNode(ListTagRender, {
|
19372
19372
|
"node": item,
|
@@ -19402,7 +19402,7 @@ var Component$c = defineComponent({
|
|
19402
19402
|
"style": {
|
19403
19403
|
marginLeft: `${this.leftSpace}px`
|
19404
19404
|
}
|
19405
|
-
}, [this.selectedTagList.map((item,
|
19405
|
+
}, [this.selectedTagList.map((item, index) => {
|
19406
19406
|
const tooltips2 = {
|
19407
19407
|
boundary: "window",
|
19408
19408
|
theme: "light",
|
@@ -19419,7 +19419,7 @@ var Component$c = defineComponent({
|
|
19419
19419
|
"displayKey": this.displayKey
|
19420
19420
|
}, null), this.showTagClose ? createVNode(error, {
|
19421
19421
|
"class": "remove-tag",
|
19422
|
-
"onClick": this.handleTagRemove.bind(this, item,
|
19422
|
+
"onClick": this.handleTagRemove.bind(this, item, index)
|
19423
19423
|
}, null) : null]), [[resolveDirective("bk-tooltips"), tooltips2]]);
|
19424
19424
|
}), withDirectives(createVNode("li", {
|
19425
19425
|
"ref": "tagInputItemRef",
|
@@ -19570,7 +19570,7 @@ var TabNav = defineComponent({
|
|
19570
19570
|
}
|
19571
19571
|
const list = [];
|
19572
19572
|
let hasFindActive = false;
|
19573
|
-
props2.panels.filter((item,
|
19573
|
+
props2.panels.filter((item, index) => {
|
19574
19574
|
if (!item.props) {
|
19575
19575
|
return null;
|
19576
19576
|
}
|
@@ -19593,7 +19593,7 @@ var TabNav = defineComponent({
|
|
19593
19593
|
return h$1(item.slots.label);
|
19594
19594
|
}
|
19595
19595
|
if ([void 0, ""].includes(label2)) {
|
19596
|
-
return `\u9009\u9879\u5361${
|
19596
|
+
return `\u9009\u9879\u5361${index + 1}`;
|
19597
19597
|
}
|
19598
19598
|
if (typeof label2 === "string") {
|
19599
19599
|
return label2;
|
@@ -19626,17 +19626,17 @@ var TabNav = defineComponent({
|
|
19626
19626
|
handleTabAdd(e) {
|
19627
19627
|
props2.tabAdd(e);
|
19628
19628
|
},
|
19629
|
-
dragstart(
|
19630
|
-
dragStartIndex.value =
|
19629
|
+
dragstart(index, $event) {
|
19630
|
+
dragStartIndex.value = index;
|
19631
19631
|
draggingEle.value = props2.guid;
|
19632
19632
|
Object.assign($event.dataTransfer, {
|
19633
19633
|
effectAllowed: "move"
|
19634
19634
|
});
|
19635
|
-
props2.tabDrag(
|
19635
|
+
props2.tabDrag(index, $event);
|
19636
19636
|
},
|
19637
|
-
dragenter(
|
19637
|
+
dragenter(index) {
|
19638
19638
|
if (distinctRoots(draggingEle.value, props2.guid)) {
|
19639
|
-
dragenterIndex.value =
|
19639
|
+
dragenterIndex.value = index;
|
19640
19640
|
}
|
19641
19641
|
},
|
19642
19642
|
dragend() {
|
@@ -19644,17 +19644,17 @@ var TabNav = defineComponent({
|
|
19644
19644
|
dragStartIndex.value = -1;
|
19645
19645
|
draggingEle.value = null;
|
19646
19646
|
},
|
19647
|
-
drop(
|
19647
|
+
drop(index, sortType) {
|
19648
19648
|
if (!distinctRoots(draggingEle.value, props2.guid)) {
|
19649
19649
|
return false;
|
19650
19650
|
}
|
19651
|
-
props2.tabSort(dragStartIndex.value,
|
19651
|
+
props2.tabSort(dragStartIndex.value, index, sortType);
|
19652
19652
|
},
|
19653
19653
|
handleTabChange(name) {
|
19654
19654
|
props2.tabChange(name);
|
19655
19655
|
},
|
19656
|
-
handleTabRemove(
|
19657
|
-
props2.tabRemove(
|
19656
|
+
handleTabRemove(index, panel) {
|
19657
|
+
props2.tabRemove(index, panel);
|
19658
19658
|
}
|
19659
19659
|
};
|
19660
19660
|
return __spreadProps(__spreadValues({}, methods), {
|
@@ -19678,7 +19678,7 @@ var TabNav = defineComponent({
|
|
19678
19678
|
dragend,
|
19679
19679
|
drop
|
19680
19680
|
} = this;
|
19681
|
-
const renderNavs = () => this.navs.map((item,
|
19681
|
+
const renderNavs = () => this.navs.map((item, index) => {
|
19682
19682
|
if (!item) {
|
19683
19683
|
return null;
|
19684
19684
|
}
|
@@ -19702,10 +19702,10 @@ var TabNav = defineComponent({
|
|
19702
19702
|
"key": name,
|
19703
19703
|
"onClick": () => this.handleTabChange(name),
|
19704
19704
|
"draggable": getValue(item.sortable, sortable),
|
19705
|
-
"onDragstart": (e) => dragstart(
|
19705
|
+
"onDragstart": (e) => dragstart(index, e),
|
19706
19706
|
"onDragenter": (e) => {
|
19707
19707
|
e.preventDefault();
|
19708
|
-
dragenter(
|
19708
|
+
dragenter(index);
|
19709
19709
|
},
|
19710
19710
|
"onDragleave": (e) => {
|
19711
19711
|
e.preventDefault();
|
@@ -19719,12 +19719,12 @@ var TabNav = defineComponent({
|
|
19719
19719
|
},
|
19720
19720
|
"onDrop": (e) => {
|
19721
19721
|
e.preventDefault();
|
19722
|
-
drop(
|
19722
|
+
drop(index, sortType);
|
19723
19723
|
},
|
19724
19724
|
"class": getNavItemClass()
|
19725
19725
|
}, [createVNode("div", null, [tabLabel]), getValue(item.closable, closable) && createVNode(close$1, {
|
19726
19726
|
"class": "bk-tab-header-item-close",
|
19727
|
-
"onClick": () => this.handleTabRemove(
|
19727
|
+
"onClick": () => this.handleTabRemove(index, item)
|
19728
19728
|
}, null)]);
|
19729
19729
|
});
|
19730
19730
|
const renderSlot2 = () => {
|
@@ -19743,9 +19743,9 @@ var TabNav = defineComponent({
|
|
19743
19743
|
if (list.length) {
|
19744
19744
|
return createVNode("div", {
|
19745
19745
|
"class": "bk-tab-header-operation"
|
19746
|
-
}, [list.map((item,
|
19746
|
+
}, [list.map((item, index) => createVNode("div", {
|
19747
19747
|
"class": "bk-tab-header-item",
|
19748
|
-
"key":
|
19748
|
+
"key": index
|
19749
19749
|
}, [item]))]);
|
19750
19750
|
}
|
19751
19751
|
return null;
|
@@ -19841,9 +19841,9 @@ var Tab = defineComponent({
|
|
19841
19841
|
emit("tab-change", name);
|
19842
19842
|
emit("update:active", name);
|
19843
19843
|
},
|
19844
|
-
tabRemove(
|
19845
|
-
emit("remove",
|
19846
|
-
emit("remove-panel",
|
19844
|
+
tabRemove(index, panel) {
|
19845
|
+
emit("remove", index, panel);
|
19846
|
+
emit("remove-panel", index, panel);
|
19847
19847
|
},
|
19848
19848
|
tabSort(dragTabIndex, dropTabIndex, sortType) {
|
19849
19849
|
const list = panels.value;
|
@@ -20013,9 +20013,9 @@ function close(id, position, spacing, userOnClose) {
|
|
20013
20013
|
userOnClose == null ? void 0 : userOnClose();
|
20014
20014
|
const verticalProperty = position.startsWith("top") ? "top" : "bottom";
|
20015
20015
|
let instanceIndex = -1;
|
20016
|
-
instances[position].forEach((item,
|
20016
|
+
instances[position].forEach((item, index) => {
|
20017
20017
|
if (item.props.id === id) {
|
20018
|
-
instanceIndex =
|
20018
|
+
instanceIndex = index;
|
20019
20019
|
}
|
20020
20020
|
});
|
20021
20021
|
const vm = instances[position][instanceIndex];
|
@@ -21504,8 +21504,8 @@ function buildLocalizeFn(args) {
|
|
21504
21504
|
var _width = options.width ? String(options.width) : args.defaultWidth;
|
21505
21505
|
valuesArray = args.values[_width] || args.values[_defaultWidth];
|
21506
21506
|
}
|
21507
|
-
var
|
21508
|
-
return valuesArray[
|
21507
|
+
var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
|
21508
|
+
return valuesArray[index];
|
21509
21509
|
};
|
21510
21510
|
}
|
21511
21511
|
var eraValues = {
|
@@ -21770,8 +21770,8 @@ var match = {
|
|
21770
21770
|
defaultMatchWidth: "wide",
|
21771
21771
|
parsePatterns: parseQuarterPatterns,
|
21772
21772
|
defaultParseWidth: "any",
|
21773
|
-
valueCallback: function(
|
21774
|
-
return
|
21773
|
+
valueCallback: function(index) {
|
21774
|
+
return index + 1;
|
21775
21775
|
}
|
21776
21776
|
}),
|
21777
21777
|
month: buildMatchFn({
|
@@ -22779,9 +22779,9 @@ function shorten(arr, sLen) {
|
|
22779
22779
|
}
|
22780
22780
|
function monthUpdate(arrName) {
|
22781
22781
|
return (d2, v2, i18n) => {
|
22782
|
-
const
|
22783
|
-
if (~
|
22784
|
-
d2.month =
|
22782
|
+
const index = i18n[arrName].indexOf(v2.charAt(0).toUpperCase() + v2.substr(1).toLowerCase());
|
22783
|
+
if (~index) {
|
22784
|
+
d2.month = index;
|
22785
22785
|
}
|
22786
22786
|
};
|
22787
22787
|
}
|
@@ -23000,13 +23000,13 @@ fecha.parse = (dateStr, format2, i18nSettings) => {
|
|
23000
23000
|
format2.replace(token, ($0) => {
|
23001
23001
|
if (parseFlags[$0]) {
|
23002
23002
|
const info2 = parseFlags[$0];
|
23003
|
-
const
|
23004
|
-
if (!~
|
23003
|
+
const index = dateStr.search(info2[0]);
|
23004
|
+
if (!~index) {
|
23005
23005
|
isValid2 = false;
|
23006
23006
|
} else {
|
23007
23007
|
dateStr.replace(info2[0], (result) => {
|
23008
23008
|
info2[1](dateInfo, result, i18n);
|
23009
|
-
dateStr = dateStr.substr(
|
23009
|
+
dateStr = dateStr.substr(index + result.length);
|
23010
23010
|
return result;
|
23011
23011
|
});
|
23012
23012
|
}
|
@@ -23313,7 +23313,6 @@ const mergeDateHMS = (date, ...hms) => {
|
|
23313
23313
|
newDate.setSeconds(hms[2]);
|
23314
23314
|
return newDate;
|
23315
23315
|
};
|
23316
|
-
const capitalize = (str) => str[0].toUpperCase() + str.slice(1);
|
23317
23316
|
const dateTableProps = {
|
23318
23317
|
tableDate: {
|
23319
23318
|
type: Date,
|
@@ -23849,19 +23848,19 @@ var TimeSpinner = defineComponent({
|
|
23849
23848
|
emit("change", changes);
|
23850
23849
|
emit("pick-click");
|
23851
23850
|
}
|
23852
|
-
function scroll(type,
|
23851
|
+
function scroll(type, index) {
|
23853
23852
|
const domRef = getDomRef(type);
|
23854
23853
|
const from = domRef.scrollTop;
|
23855
|
-
const to = 32 * getScrollIndex(type,
|
23854
|
+
const to = 32 * getScrollIndex(type, index);
|
23856
23855
|
scrollTop(domRef, from, to, 500);
|
23857
23856
|
}
|
23858
|
-
function getScrollIndex(type,
|
23857
|
+
function getScrollIndex(type, index) {
|
23859
23858
|
const t2 = firstUpperCase(type);
|
23860
23859
|
const disabled = props2[`disabled${t2}`];
|
23861
|
-
let ret =
|
23860
|
+
let ret = index;
|
23862
23861
|
if (disabled.length && props2.hideDisabledOptions) {
|
23863
23862
|
let count = 0;
|
23864
|
-
disabled.forEach((item) => item <=
|
23863
|
+
disabled.forEach((item) => item <= index ? count += 1 : "");
|
23865
23864
|
ret -= count;
|
23866
23865
|
}
|
23867
23866
|
return ret;
|
@@ -24602,12 +24601,12 @@ var DateRangePanel = defineComponent({
|
|
24602
24601
|
changePanelDate(otherPanel, "Month", increment, false);
|
24603
24602
|
}
|
24604
24603
|
};
|
24605
|
-
const handleShortcutClick = (shortcut,
|
24604
|
+
const handleShortcutClick = (shortcut, index) => {
|
24606
24605
|
if (!(shortcut == null ? void 0 : shortcut.value)) {
|
24607
24606
|
return false;
|
24608
24607
|
}
|
24609
24608
|
if (shortcut.onClick) {
|
24610
|
-
shortcut.onClick(shortcut,
|
24609
|
+
shortcut.onClick(shortcut, index);
|
24611
24610
|
}
|
24612
24611
|
const value = typeof shortcut.value === "function" ? shortcut.value() : shortcut.value;
|
24613
24612
|
const [form2, to] = value;
|
@@ -24813,10 +24812,10 @@ var DateRangePanel = defineComponent({
|
|
24813
24812
|
"class": "bk-picker-panel-sidebar"
|
24814
24813
|
}, [this.$slots.shortcuts ? typeof this.$slots.shortcuts === "function" ? this.$slots.shortcuts() : this.$slots.shortcuts : this.shortcuts.length ? createVNode("div", {
|
24815
24814
|
"class": "bk-picker-panel-shortcuts"
|
24816
|
-
}, [this.shortcuts.map((item,
|
24817
|
-
"key":
|
24815
|
+
}, [this.shortcuts.map((item, index) => createVNode("div", {
|
24816
|
+
"key": index,
|
24818
24817
|
"class": "shortcuts-item",
|
24819
|
-
"onClick": () => this.handleShortcutClick(item,
|
24818
|
+
"onClick": () => this.handleShortcutClick(item, index)
|
24820
24819
|
}, [item.text]))]) : ""]) : null]);
|
24821
24820
|
}
|
24822
24821
|
});
|
@@ -26006,8 +26005,8 @@ var Component$8 = defineComponent({
|
|
26006
26005
|
const handleItemClick = (itemKey, isLeft) => {
|
26007
26006
|
const from = isLeft ? selectList : selectedList;
|
26008
26007
|
const to = isLeft ? selectedList : selectList;
|
26009
|
-
const
|
26010
|
-
to.value.push(...from.value.splice(
|
26008
|
+
const index = from.value.findIndex((item) => item[settingCode.value] === itemKey);
|
26009
|
+
to.value.push(...from.value.splice(index, 1));
|
26011
26010
|
handleEmitUpdateTargetList();
|
26012
26011
|
};
|
26013
26012
|
const handleEmitUpdateTargetList = () => {
|
@@ -26264,8 +26263,8 @@ var useNodeAttribute = (flatData, props2) => {
|
|
26264
26263
|
const getSourceNodeByPath = (path) => {
|
26265
26264
|
const paths = path.split("-");
|
26266
26265
|
return paths.reduce((pre, nodeIndex) => {
|
26267
|
-
const
|
26268
|
-
return Array.isArray(pre) ? pre[
|
26266
|
+
const index = Number(nodeIndex);
|
26267
|
+
return Array.isArray(pre) ? pre[index] : pre[props2.children][index];
|
26269
26268
|
}, props2.data);
|
26270
26269
|
};
|
26271
26270
|
const getChildNodes = (node) => {
|
@@ -26405,8 +26404,8 @@ const updateTreeNode = (path, treeData, childKey, nodekey, nodeValue) => {
|
|
26405
26404
|
const assignTreeNode = (path, treeData, childKey, assignVal) => {
|
26406
26405
|
const paths = path.split("-");
|
26407
26406
|
const targetNode = paths.reduce((pre, nodeIndex) => {
|
26408
|
-
const
|
26409
|
-
return Array.isArray(pre) ? pre[
|
26407
|
+
const index = Number(nodeIndex);
|
26408
|
+
return Array.isArray(pre) ? pre[index] : pre[childKey][index];
|
26410
26409
|
}, treeData);
|
26411
26410
|
Object.assign(targetNode, assignVal || {});
|
26412
26411
|
};
|
@@ -26758,9 +26757,9 @@ var useNodeAction = (props2, ctx, flatData, _renderData, schemaValues, initOptio
|
|
26758
26757
|
"--depth": dpth
|
26759
26758
|
});
|
26760
26759
|
const maxDeep = getNodeAttr2(node, NODE_ATTRIBUTES.DEPTH) + 1;
|
26761
|
-
return new Array(maxDeep).fill("").map((_2,
|
26760
|
+
return new Array(maxDeep).fill("").map((_2, index) => index).filter((depth) => filterNextNode(depth, node)).filter((depth) => depth > 0).map((index) => createVNode("span", {
|
26762
26761
|
"class": "node-virtual-line",
|
26763
|
-
"style": getNodeLineStyle(maxDeep -
|
26762
|
+
"style": getNodeLineStyle(maxDeep - index)
|
26764
26763
|
}, null));
|
26765
26764
|
};
|
26766
26765
|
const renderTreeNode = (item) => {
|
@@ -27148,14 +27147,14 @@ var useTreeInit = (props2) => {
|
|
27148
27147
|
const target = nextLoopEvents.get(key2);
|
27149
27148
|
if (Array.isArray(target)) {
|
27150
27149
|
const clearList = [];
|
27151
|
-
target.forEach((event,
|
27150
|
+
target.forEach((event, index) => {
|
27152
27151
|
const result = executeFn(event);
|
27153
27152
|
if (result === "once") {
|
27154
|
-
clearList.unshift(
|
27153
|
+
clearList.unshift(index);
|
27155
27154
|
}
|
27156
27155
|
});
|
27157
27156
|
if (clearList.length) {
|
27158
|
-
clearList.forEach((
|
27157
|
+
clearList.forEach((index) => target.splice(index, 1));
|
27159
27158
|
}
|
27160
27159
|
if (target.length === 0) {
|
27161
27160
|
nextLoopEvents.delete(key2);
|
@@ -27978,7 +27977,11 @@ var CascaderPanel = defineComponent({
|
|
27978
27977
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).def("auto"),
|
27979
27978
|
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).def(216),
|
27980
27979
|
store: PropTypes.object.def({}),
|
27981
|
-
|
27980
|
+
separator: PropTypes.string.def(""),
|
27981
|
+
suggestions: PropTypes.arrayOf(A()),
|
27982
|
+
isFiltering: PropTypes.bool.def(false),
|
27983
|
+
searchKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def(""),
|
27984
|
+
modelValue: PropTypes.arrayOf(PropTypes.oneOfType([q(), String, Number]))
|
27982
27985
|
},
|
27983
27986
|
emits: ["update:modelValue"],
|
27984
27987
|
setup(props2, {
|
@@ -28012,6 +28015,9 @@ var CascaderPanel = defineComponent({
|
|
28012
28015
|
checkValue.value = value;
|
28013
28016
|
};
|
28014
28017
|
const nodeCheckHandler = (node) => {
|
28018
|
+
if (node.isDisabled) {
|
28019
|
+
return;
|
28020
|
+
}
|
28015
28021
|
if (node.config.multiple) {
|
28016
28022
|
checkValue.value = store.getCheckedNodes().map((node2) => node2.path);
|
28017
28023
|
} else {
|
@@ -28061,6 +28067,23 @@ var CascaderPanel = defineComponent({
|
|
28061
28067
|
};
|
28062
28068
|
return events;
|
28063
28069
|
};
|
28070
|
+
const searchPanelEvents = (node) => {
|
28071
|
+
const {
|
28072
|
+
multiple
|
28073
|
+
} = node.config;
|
28074
|
+
const events = {
|
28075
|
+
onClick: (e) => {
|
28076
|
+
if (multiple) {
|
28077
|
+
e.stopPropagation();
|
28078
|
+
checkNode(node, !node.checked);
|
28079
|
+
return;
|
28080
|
+
}
|
28081
|
+
nodeExpandHandler(node);
|
28082
|
+
node.isLeaf && !multiple && nodeCheckHandler(node);
|
28083
|
+
}
|
28084
|
+
};
|
28085
|
+
return events;
|
28086
|
+
};
|
28064
28087
|
const isNodeInPath = (node) => {
|
28065
28088
|
const currentLevel = activePath.value[node.level - 1] || {};
|
28066
28089
|
return currentLevel.id === node.id;
|
@@ -28070,12 +28093,12 @@ var CascaderPanel = defineComponent({
|
|
28070
28093
|
multiple
|
28071
28094
|
} = node.config;
|
28072
28095
|
if (multiple) {
|
28073
|
-
return
|
28096
|
+
return checkValue2.some((val) => arrayEqual(val, node.path));
|
28074
28097
|
}
|
28075
28098
|
return arrayEqual(checkValue2, node.path);
|
28076
28099
|
};
|
28077
28100
|
const checkNode = (node, value) => {
|
28078
|
-
node.setNodeCheck(value);
|
28101
|
+
node.setNodeCheck(value ? value : false);
|
28079
28102
|
nodeCheckHandler(node);
|
28080
28103
|
};
|
28081
28104
|
const iconRender = (node) => node.loading ? createVNode(spinner, {
|
@@ -28102,13 +28125,35 @@ var CascaderPanel = defineComponent({
|
|
28102
28125
|
checkNode,
|
28103
28126
|
iconRender,
|
28104
28127
|
panelWidth,
|
28105
|
-
panelHeight
|
28128
|
+
panelHeight,
|
28129
|
+
searchPanelEvents
|
28106
28130
|
};
|
28107
28131
|
},
|
28108
28132
|
render() {
|
28133
|
+
const emptyWidth = parseInt(this.panelWidth, 10) > 200 ? this.panelWidth : `${200}px`;
|
28134
|
+
const searchPanelRender = () => this.suggestions.length ? createVNode("ul", {
|
28135
|
+
"class": "bk-cascader-panel bk-scroll-y",
|
28136
|
+
"style": {
|
28137
|
+
height: this.panelHeight,
|
28138
|
+
width: this.panelWidth
|
28139
|
+
}
|
28140
|
+
}, [this.suggestions.map((node) => createVNode("li", mergeProps({
|
28141
|
+
"class": ["bk-cascader-node", {
|
28142
|
+
"is-selected": this.isNodeInPath(node)
|
28143
|
+
}, {
|
28144
|
+
"is-disabled": node.isDisabled
|
28145
|
+
}, {
|
28146
|
+
"is-checked": this.isCheckedNode(node, this.checkValue)
|
28147
|
+
}]
|
28148
|
+
}, this.searchPanelEvents(node)), [node.pathNames.join(this.separator)]))]) : createVNode("div", {
|
28149
|
+
"class": "bk-cascader-search-empty",
|
28150
|
+
"style": {
|
28151
|
+
width: emptyWidth
|
28152
|
+
}
|
28153
|
+
}, [createVNode("span", null, [createTextVNode("\u6682\u65E0\u641C\u7D22\u7ED3\u679C")])]);
|
28109
28154
|
return createVNode("div", {
|
28110
28155
|
"class": "bk-cascader-panel-wrapper"
|
28111
|
-
}, [this.menus.list.map((menu2) => createVNode("ul", {
|
28156
|
+
}, [this.isFiltering ? searchPanelRender() : this.menus.list.map((menu2) => createVNode("ul", {
|
28112
28157
|
"class": "bk-cascader-panel bk-scroll-y",
|
28113
28158
|
"style": {
|
28114
28159
|
height: this.panelHeight,
|
@@ -28122,12 +28167,13 @@ var CascaderPanel = defineComponent({
|
|
28122
28167
|
}, {
|
28123
28168
|
"is-disabled": node.isDisabled
|
28124
28169
|
}, {
|
28125
|
-
"is-checked": this.isCheckedNode(node, this.checkValue)
|
28170
|
+
"is-checked": !node.config.multiple && this.isCheckedNode(node, this.checkValue)
|
28126
28171
|
}]
|
28127
|
-
}, this.nodeEvent(node)), [node.config.multiple && createVNode(BkCheckbox, {
|
28172
|
+
}, Object.assign(this.nodeEvent(node), node.config.multiple ? {} : {})), [node.config.multiple && createVNode(BkCheckbox, {
|
28128
28173
|
"disabled": node.isDisabled,
|
28129
28174
|
"modelValue": node.checked,
|
28130
28175
|
"onUpdate:modelValue": ($event) => node.checked = $event,
|
28176
|
+
"indeterminate": node.isIndeterminate,
|
28131
28177
|
"onChange": (val) => this.checkNode(node, val)
|
28132
28178
|
}, null), (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a, {
|
28133
28179
|
node,
|
@@ -28136,6 +28182,15 @@ var CascaderPanel = defineComponent({
|
|
28136
28182
|
})]))]);
|
28137
28183
|
}
|
28138
28184
|
});
|
28185
|
+
function isNodeDisabled(node) {
|
28186
|
+
if (node.data.disabled) {
|
28187
|
+
return true;
|
28188
|
+
}
|
28189
|
+
if (node.level !== 1) {
|
28190
|
+
return isNodeDisabled(node.parent);
|
28191
|
+
}
|
28192
|
+
return node.data.disabled;
|
28193
|
+
}
|
28139
28194
|
class Node$1 {
|
28140
28195
|
constructor(node, config, parent) {
|
28141
28196
|
this.data = node;
|
@@ -28167,10 +28222,58 @@ class Node$1 {
|
|
28167
28222
|
return !(Array.isArray(this.children) && ((_a = this.children) == null ? void 0 : _a.length) !== 0);
|
28168
28223
|
}
|
28169
28224
|
get isDisabled() {
|
28170
|
-
return this
|
28225
|
+
return isNodeDisabled(this);
|
28226
|
+
}
|
28227
|
+
broadcast(event, checkStatus) {
|
28228
|
+
const handlerName = `onParent${capitalize(event)}`;
|
28229
|
+
this.children.forEach((child) => {
|
28230
|
+
var _a;
|
28231
|
+
if (child) {
|
28232
|
+
child.broadcast(event, checkStatus);
|
28233
|
+
(_a = child[handlerName]) == null ? void 0 : _a.call(child, checkStatus);
|
28234
|
+
}
|
28235
|
+
});
|
28236
|
+
}
|
28237
|
+
emit(event) {
|
28238
|
+
var _a;
|
28239
|
+
const { parent } = this;
|
28240
|
+
const handlerName = `onChild${capitalize(event)}`;
|
28241
|
+
if (parent) {
|
28242
|
+
(_a = parent[handlerName]) == null ? void 0 : _a.call(parent);
|
28243
|
+
parent.emit(event);
|
28244
|
+
}
|
28245
|
+
}
|
28246
|
+
onParentCheck(checked) {
|
28247
|
+
if (!this.isDisabled) {
|
28248
|
+
this.setCheckState(checked);
|
28249
|
+
}
|
28250
|
+
}
|
28251
|
+
onChildCheck() {
|
28252
|
+
const { children } = this;
|
28253
|
+
const validChildren = children.filter((child) => !child.isDisabled);
|
28254
|
+
const checked = validChildren.length ? validChildren.every((child) => child.checked) : false;
|
28255
|
+
this.setCheckState(checked);
|
28256
|
+
}
|
28257
|
+
setCheckState(checked) {
|
28258
|
+
const totalNum = this.children.length;
|
28259
|
+
const checkedNum = this.children.reduce((c2, p2) => {
|
28260
|
+
const tempNum = p2.isIndeterminate ? 0.5 : 0;
|
28261
|
+
const num = p2.checked ? 1 : tempNum;
|
28262
|
+
return c2 + num;
|
28263
|
+
}, 0);
|
28264
|
+
this.checked = checked;
|
28265
|
+
this.isIndeterminate = checkedNum !== totalNum && checkedNum > 0;
|
28171
28266
|
}
|
28172
28267
|
setNodeCheck(status) {
|
28173
|
-
this.checked
|
28268
|
+
if (this.checked !== status) {
|
28269
|
+
if (this.config.checkAnyLevel) {
|
28270
|
+
this.checked = status;
|
28271
|
+
return;
|
28272
|
+
}
|
28273
|
+
this.broadcast("check", status);
|
28274
|
+
this.setCheckState(status);
|
28275
|
+
this.emit("check");
|
28276
|
+
}
|
28174
28277
|
}
|
28175
28278
|
calculateNodesPath() {
|
28176
28279
|
const nodes = [this];
|
@@ -28201,6 +28304,21 @@ class Store {
|
|
28201
28304
|
getNodes() {
|
28202
28305
|
return this.nodes;
|
28203
28306
|
}
|
28307
|
+
clearChecked() {
|
28308
|
+
this.getFlattedNodes().forEach((node) => {
|
28309
|
+
node.checked = false;
|
28310
|
+
node.isIndeterminate = false;
|
28311
|
+
});
|
28312
|
+
}
|
28313
|
+
removeTag(tag2) {
|
28314
|
+
this.getFlattedNodes().find((node) => {
|
28315
|
+
if (arrayEqual(tag2, node.path)) {
|
28316
|
+
node.checked = false;
|
28317
|
+
return true;
|
28318
|
+
}
|
28319
|
+
return false;
|
28320
|
+
});
|
28321
|
+
}
|
28204
28322
|
getFlattedNodes(leafOnly = false) {
|
28205
28323
|
return flatNodes(this.nodes, leafOnly);
|
28206
28324
|
}
|
@@ -28234,7 +28352,7 @@ var Component$6 = defineComponent({
|
|
28234
28352
|
BkPopover: BkPopover2
|
28235
28353
|
},
|
28236
28354
|
props: {
|
28237
|
-
modelValue: PropTypes.
|
28355
|
+
modelValue: PropTypes.arrayOf(PropTypes.oneOfType([q(), String, Number])),
|
28238
28356
|
list: PropTypes.array.def([]),
|
28239
28357
|
placeholder: PropTypes.string.def("\u8BF7\u9009\u62E9"),
|
28240
28358
|
filterable: PropTypes.bool.def(false),
|
@@ -28276,6 +28394,9 @@ var Component$6 = defineComponent({
|
|
28276
28394
|
modelValue
|
28277
28395
|
} = toRefs(props2);
|
28278
28396
|
const cascaderPanel = ref();
|
28397
|
+
const searchKey = ref("");
|
28398
|
+
const suggestions = ref([]);
|
28399
|
+
const isFiltering = ref(false);
|
28279
28400
|
const checkedValue = computed({
|
28280
28401
|
get: () => modelValue.value,
|
28281
28402
|
set: (value) => {
|
@@ -28284,6 +28405,9 @@ var Component$6 = defineComponent({
|
|
28284
28405
|
});
|
28285
28406
|
const popover3 = ref(null);
|
28286
28407
|
const getShowText = (node) => props2.showCompleteName ? node.pathNames.join(separator2) : node.pathNames[node.pathNames.length - 1];
|
28408
|
+
const updateSearchKey = () => {
|
28409
|
+
searchKey.value = selectedText.value;
|
28410
|
+
};
|
28287
28411
|
const updateValue = (val) => {
|
28288
28412
|
var _a;
|
28289
28413
|
if (multiple) {
|
@@ -28302,18 +28426,23 @@ var Component$6 = defineComponent({
|
|
28302
28426
|
return;
|
28303
28427
|
selectedText.value = getShowText(node);
|
28304
28428
|
}
|
28429
|
+
updateSearchKey();
|
28305
28430
|
};
|
28306
28431
|
const handleClear = (e) => {
|
28307
28432
|
e.stopPropagation();
|
28433
|
+
store.value.clearChecked();
|
28434
|
+
searchKey.value = "";
|
28308
28435
|
updateValue([]);
|
28309
28436
|
emit("update:modelValue", []);
|
28310
28437
|
emit("clear", JSON.parse(JSON.stringify(props2.modelValue)));
|
28311
28438
|
};
|
28312
|
-
const removeTag = (value,
|
28439
|
+
const removeTag = (value, index, e) => {
|
28313
28440
|
e.stopPropagation();
|
28314
28441
|
const current = JSON.parse(JSON.stringify(value));
|
28315
|
-
current.splice(
|
28442
|
+
const tag2 = current.splice(index, 1)[0];
|
28443
|
+
store.value.removeTag(tag2);
|
28316
28444
|
updateValue(current);
|
28445
|
+
emit("update:modelValue", store.value.getCheckedNodes().map((node) => node.path));
|
28317
28446
|
};
|
28318
28447
|
const modelValueChangeHandler = (value, oldValue) => {
|
28319
28448
|
updateValue(value);
|
@@ -28326,7 +28455,27 @@ var Component$6 = defineComponent({
|
|
28326
28455
|
};
|
28327
28456
|
const popoverChangeEmitter = (val) => {
|
28328
28457
|
emit("toggle", val.isShow);
|
28458
|
+
if (!val.isShow) {
|
28459
|
+
isFiltering.value = false;
|
28460
|
+
}
|
28329
28461
|
};
|
28462
|
+
const searchInputHandler = debounce(200, (e) => {
|
28463
|
+
const target = e.target;
|
28464
|
+
searchKey.value = target.value;
|
28465
|
+
if (searchKey.value === "") {
|
28466
|
+
isFiltering.value = false;
|
28467
|
+
return;
|
28468
|
+
}
|
28469
|
+
isFiltering.value = true;
|
28470
|
+
const targetNodes = store.value.getFlattedNodes().filter((node) => {
|
28471
|
+
if (props2.checkAnyLevel) {
|
28472
|
+
return node.pathNames.join(props2.separator).includes(searchKey.value);
|
28473
|
+
}
|
28474
|
+
return node.isLeaf && node.pathNames.join(props2.separator).includes(searchKey.value);
|
28475
|
+
});
|
28476
|
+
suggestions.value = targetNodes;
|
28477
|
+
!(popover3 == null ? void 0 : popover3.value.isShow) && (popover3 == null ? void 0 : popover3.value.show());
|
28478
|
+
});
|
28330
28479
|
watch(() => props2.modelValue, modelValueChangeHandler, {
|
28331
28480
|
immediate: true
|
28332
28481
|
});
|
@@ -28348,7 +28497,11 @@ var Component$6 = defineComponent({
|
|
28348
28497
|
selectedTags,
|
28349
28498
|
removeTag,
|
28350
28499
|
cascaderPanel,
|
28351
|
-
popoverChangeEmitter
|
28500
|
+
popoverChangeEmitter,
|
28501
|
+
searchKey,
|
28502
|
+
suggestions,
|
28503
|
+
isFiltering,
|
28504
|
+
searchInputHandler
|
28352
28505
|
};
|
28353
28506
|
},
|
28354
28507
|
render() {
|
@@ -28369,20 +28522,21 @@ var Component$6 = defineComponent({
|
|
28369
28522
|
}
|
28370
28523
|
return createVNode("div", {
|
28371
28524
|
"class": "cascader-tag-list"
|
28372
|
-
}, [this.selectedTags.map((tag2,
|
28525
|
+
}, [this.selectedTags.map((tag2, index) => createVNode("span", {
|
28373
28526
|
"class": "cascader-tag-item"
|
28374
28527
|
}, [createVNode("span", {
|
28375
28528
|
"class": "cascader-tag-item-name"
|
28376
28529
|
}, [tag2.text]), createVNode(error, {
|
28377
28530
|
"class": "bk-icon-clear-icon",
|
28378
|
-
"onClick": (e) => this.removeTag(this.modelValue,
|
28531
|
+
"onClick": (e) => this.removeTag(this.modelValue, index, e)
|
28379
28532
|
}, null)]))]);
|
28380
28533
|
};
|
28381
28534
|
return createVNode("div", {
|
28382
28535
|
"class": ["bk-cascader", "bk-cascader-wrapper", this.extCls, {
|
28383
28536
|
"bk-is-show-panel": this.panelShow,
|
28384
28537
|
"is-unselected": this.modelValue.length === 0,
|
28385
|
-
"is-hover": this.isHover
|
28538
|
+
"is-hover": this.isHover,
|
28539
|
+
"is-filterable": this.filterable
|
28386
28540
|
}],
|
28387
28541
|
"tabindex": "0",
|
28388
28542
|
"data-placeholder": this.placeholder,
|
@@ -28401,10 +28555,12 @@ var Component$6 = defineComponent({
|
|
28401
28555
|
}, {
|
28402
28556
|
default: () => createVNode("div", {
|
28403
28557
|
"class": "bk-cascader-name"
|
28404
|
-
}, [this.multiple && renderTags(), this.filterable ? createVNode("input", {
|
28558
|
+
}, [this.multiple && this.selectedTags.length > 0 && renderTags(), this.filterable ? createVNode("input", {
|
28405
28559
|
"class": "bk-cascader-search-input",
|
28406
28560
|
"type": "text",
|
28407
|
-
"
|
28561
|
+
"onInput": this.searchInputHandler,
|
28562
|
+
"placeholder": this.placeholder,
|
28563
|
+
"value": this.searchKey
|
28408
28564
|
}, null) : createVNode("span", null, [this.selectedText])]),
|
28409
28565
|
content: () => createVNode("div", {
|
28410
28566
|
"class": "bk-cascader-popover"
|
@@ -28413,6 +28569,10 @@ var Component$6 = defineComponent({
|
|
28413
28569
|
"ref": "cascaderPanel",
|
28414
28570
|
"width": this.scrollWidth,
|
28415
28571
|
"height": this.scrollHeight,
|
28572
|
+
"search-key": this.searchKey,
|
28573
|
+
"separator": this.separator,
|
28574
|
+
"is-filtering": this.isFiltering,
|
28575
|
+
"suggestions": this.suggestions,
|
28416
28576
|
"modelValue": this.checkedValue,
|
28417
28577
|
"onUpdate:modelValue": ($event) => this.checkedValue = $event
|
28418
28578
|
}, {
|
@@ -28836,7 +28996,7 @@ var Component$5 = defineComponent({
|
|
28836
28996
|
};
|
28837
28997
|
const valueChanged = () => {
|
28838
28998
|
if (props2.range) {
|
28839
|
-
return ![rangeMinValue.value, rangeMaxValue.value].every((item,
|
28999
|
+
return ![rangeMinValue.value, rangeMaxValue.value].every((item, index) => item === oldValue.value[index]);
|
28840
29000
|
}
|
28841
29001
|
return props2.modelValue !== oldValue.value;
|
28842
29002
|
};
|
@@ -28953,14 +29113,14 @@ var Component$5 = defineComponent({
|
|
28953
29113
|
disable: props2.disable
|
28954
29114
|
}],
|
28955
29115
|
"style": barStyle.value
|
28956
|
-
}, null), props2.showInterval ? intervals.value.map((interval,
|
28957
|
-
"key":
|
29116
|
+
}, null), props2.showInterval ? intervals.value.map((interval, index) => createVNode("div", {
|
29117
|
+
"key": index,
|
28958
29118
|
"class": ["bk-slider-interval", {
|
28959
29119
|
vertical: props2.vertical
|
28960
29120
|
}],
|
28961
29121
|
"style": getIntervalStyle(interval)
|
28962
|
-
}, null)) : void 0, props2.customContent ? customList.value.map((custom,
|
28963
|
-
"key":
|
29122
|
+
}, null)) : void 0, props2.customContent ? customList.value.map((custom, index) => createVNode("div", {
|
29123
|
+
"key": index,
|
28964
29124
|
"class": ["bk-slider-interval", {
|
28965
29125
|
vertical: props2.vertical
|
28966
29126
|
}],
|
@@ -28982,16 +29142,16 @@ var Component$5 = defineComponent({
|
|
28982
29142
|
}, [props2.formatterLabel(props2.maxValue)])];
|
28983
29143
|
}
|
28984
29144
|
if (props2.showIntervalLabel) {
|
28985
|
-
return intervalLabels.value.map((intervalLabel,
|
29145
|
+
return intervalLabels.value.map((intervalLabel, index) => createVNode("div", {
|
28986
29146
|
"class": ["bk-slider-label", props2.vertical ? "vertical" : "horizontal"],
|
28987
|
-
"key":
|
29147
|
+
"key": index,
|
28988
29148
|
"style": getIntervalStyle(intervalLabel.stepWidth)
|
28989
29149
|
}, [intervalLabel.stepLabel]));
|
28990
29150
|
}
|
28991
29151
|
if (props2.customContent) {
|
28992
|
-
return customList.value.map((item,
|
29152
|
+
return customList.value.map((item, index) => createVNode("div", {
|
28993
29153
|
"class": ["bk-slider-label", props2.vertical ? "vertical" : "horizontal"],
|
28994
|
-
"key":
|
29154
|
+
"key": index,
|
28995
29155
|
"style": getIntervalStyle(item.percent)
|
28996
29156
|
}, [item.label]));
|
28997
29157
|
}
|
@@ -29446,11 +29606,11 @@ var Component$2 = defineComponent({
|
|
29446
29606
|
defaultProcessList.value.splice(0, defaultProcessList.value.length, ...props2.list);
|
29447
29607
|
}
|
29448
29608
|
};
|
29449
|
-
const jumpTo = async (
|
29609
|
+
const jumpTo = async (index) => {
|
29450
29610
|
try {
|
29451
|
-
if (props2.controllable &&
|
29452
|
-
emit("update:curProcess",
|
29453
|
-
emit("click",
|
29611
|
+
if (props2.controllable && index !== props2.curProcess) {
|
29612
|
+
emit("update:curProcess", index);
|
29613
|
+
emit("click", index);
|
29454
29614
|
}
|
29455
29615
|
} catch (e) {
|
29456
29616
|
console.warn(e);
|
@@ -29470,10 +29630,10 @@ var Component$2 = defineComponent({
|
|
29470
29630
|
}, `${processClsPrefix}`);
|
29471
29631
|
const isLoadingStatus = (item) => item.status === "loading";
|
29472
29632
|
const isErrorStatus = (item) => item.status === "error";
|
29473
|
-
const isDone = (
|
29633
|
+
const isDone = (index) => this.curProcess >= index + 1 || this.defaultProcessList[index].status === "done";
|
29474
29634
|
const isIcon = (item) => item.icon ? item.icon : "";
|
29475
|
-
const renderIcon = (
|
29476
|
-
if (
|
29635
|
+
const renderIcon = (index, item) => {
|
29636
|
+
if (index === this.curProcess - 1 && isLoadingStatus(item)) {
|
29477
29637
|
return createVNode(circle, {
|
29478
29638
|
"class": "bk-icon bk-process-icon icon-loading"
|
29479
29639
|
}, null);
|
@@ -29483,7 +29643,7 @@ var Component$2 = defineComponent({
|
|
29483
29643
|
"class": "bk-process-icon"
|
29484
29644
|
}, null);
|
29485
29645
|
}
|
29486
|
-
if (isDone(
|
29646
|
+
if (isDone(index)) {
|
29487
29647
|
return createVNode(done, {
|
29488
29648
|
"class": "bk-process-icon-done"
|
29489
29649
|
}, null);
|
@@ -29498,18 +29658,18 @@ var Component$2 = defineComponent({
|
|
29498
29658
|
"style": {
|
29499
29659
|
paddingBottom: `${this.paddingBottom}px`
|
29500
29660
|
}
|
29501
|
-
}, [this.defaultProcessList.map((item,
|
29661
|
+
}, [this.defaultProcessList.map((item, index) => createVNode("li", {
|
29502
29662
|
"onClick": () => {
|
29503
|
-
this.jumpTo(
|
29663
|
+
this.jumpTo(index + 1);
|
29504
29664
|
},
|
29505
29665
|
"style": {
|
29506
29666
|
cursor: this.controllable ? "pointer" : ""
|
29507
29667
|
},
|
29508
29668
|
"class": {
|
29509
|
-
success: this.curProcess >=
|
29510
|
-
current: isLoadingStatus(item) &&
|
29669
|
+
success: this.curProcess >= index + 1,
|
29670
|
+
current: isLoadingStatus(item) && index === this.curProcess - 1
|
29511
29671
|
}
|
29512
|
-
}, [item[this.displayKey], renderIcon(
|
29672
|
+
}, [item[this.displayKey], renderIcon(index, item)]))])]);
|
29513
29673
|
}
|
29514
29674
|
});
|
29515
29675
|
const BkSteps = withInstall(Component$2);
|
@@ -29682,9 +29842,9 @@ var UploadList = defineComponent({
|
|
29682
29842
|
}));
|
29683
29843
|
function formatSize(value) {
|
29684
29844
|
const uints = ["Bytes", "KB", "MB", "GB", "TB"];
|
29685
|
-
const
|
29686
|
-
const size = value / 1024 **
|
29687
|
-
return `${size.toFixed(2)}${uints[
|
29845
|
+
const index = Math.floor(Math.log(value) / Math.log(1024));
|
29846
|
+
const size = value / 1024 ** index;
|
29847
|
+
return `${size.toFixed(2)}${uints[index]}`;
|
29688
29848
|
}
|
29689
29849
|
function handleRemove(file, e) {
|
29690
29850
|
emit("remove", file, e);
|
@@ -30663,8 +30823,8 @@ const hashFile = (file, chunkSize) => new Promise((resolve, reject) => {
|
|
30663
30823
|
}).catch((err) => {
|
30664
30824
|
console.log(err);
|
30665
30825
|
});
|
30666
|
-
function buildFileId(
|
30667
|
-
return Date.now() +
|
30826
|
+
function buildFileId(index) {
|
30827
|
+
return Date.now() + index;
|
30668
30828
|
}
|
30669
30829
|
var useFileHandler = (props2, hooks) => {
|
30670
30830
|
const maxImgSize = computed(() => {
|
@@ -31573,7 +31733,7 @@ function parse(diffInput, config) {
|
|
31573
31733
|
var renameTo = /^rename to "?(.+)"?/;
|
31574
31734
|
var similarityIndex = /^similarity index (\d+)%/;
|
31575
31735
|
var dissimilarityIndex = /^dissimilarity index (\d+)%/;
|
31576
|
-
var
|
31736
|
+
var index = /^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/;
|
31577
31737
|
var binaryFiles = /^Binary files (.*) and (.*) differ/;
|
31578
31738
|
var binaryDiff = /^GIT binary patch/;
|
31579
31739
|
var combinedIndex = /^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/;
|
@@ -31783,7 +31943,7 @@ function parse(diffInput, config) {
|
|
31783
31943
|
currentFile.unchangedPercentage = parseInt(values[1], 10);
|
31784
31944
|
} else if (values = dissimilarityIndex.exec(line)) {
|
31785
31945
|
currentFile.changedPercentage = parseInt(values[1], 10);
|
31786
|
-
} else if (values =
|
31946
|
+
} else if (values = index.exec(line)) {
|
31787
31947
|
currentFile.checksumBefore = values[1];
|
31788
31948
|
currentFile.checksumAfter = values[2];
|
31789
31949
|
values[3] && (currentFile.mode = values[3]);
|
@@ -32879,8 +33039,8 @@ var compiler = {};
|
|
32879
33039
|
seenTag = false;
|
32880
33040
|
lineStart = tokens.length;
|
32881
33041
|
}
|
32882
|
-
function changeDelimiters(text2,
|
32883
|
-
var close2 = "=" + ctag, closeIndex = text2.indexOf(close2,
|
33042
|
+
function changeDelimiters(text2, index) {
|
33043
|
+
var close2 = "=" + ctag, closeIndex = text2.indexOf(close2, index), delimiters2 = trim(text2.substring(text2.indexOf("=", index) + 1, closeIndex)).split(" ");
|
32884
33044
|
otag = delimiters2[0];
|
32885
33045
|
ctag = delimiters2[delimiters2.length - 1];
|
32886
33046
|
return closeIndex + close2.length - 1;
|
@@ -32955,12 +33115,12 @@ var compiler = {};
|
|
32955
33115
|
}
|
32956
33116
|
return s2.replace(/^\s*|\s*$/g, "");
|
32957
33117
|
}
|
32958
|
-
function tagChange(tag2, text,
|
32959
|
-
if (text.charAt(
|
33118
|
+
function tagChange(tag2, text, index) {
|
33119
|
+
if (text.charAt(index) != tag2.charAt(0)) {
|
32960
33120
|
return false;
|
32961
33121
|
}
|
32962
33122
|
for (var i2 = 1, l2 = tag2.length; i2 < l2; i2++) {
|
32963
|
-
if (text.charAt(
|
33123
|
+
if (text.charAt(index + i2) != tag2.charAt(i2)) {
|
32964
33124
|
return false;
|
32965
33125
|
}
|
32966
33126
|
}
|
@@ -35144,45 +35304,45 @@ var RecommendColors = defineComponent({
|
|
35144
35304
|
deep: true
|
35145
35305
|
});
|
35146
35306
|
const colors = computed(() => getColorsFromRecommend(props2.recommend));
|
35147
|
-
const getColorClass = (color,
|
35307
|
+
const getColorClass = (color, index) => classes({
|
35148
35308
|
"bk-color-picker-empty": color === "",
|
35149
|
-
"bk-color-picker-recommend-selected-color": isFocused.value && selectedIndex.value ===
|
35309
|
+
"bk-color-picker-recommend-selected-color": isFocused.value && selectedIndex.value === index
|
35150
35310
|
}, "bk-color-picker-recommend-color");
|
35151
35311
|
const handleKeydown = (e) => {
|
35152
35312
|
if (e.code === "Tab") {
|
35153
35313
|
emit("tab", e);
|
35154
35314
|
} else {
|
35155
|
-
let
|
35315
|
+
let index = 0;
|
35156
35316
|
const rowNum = 10;
|
35157
35317
|
const max2 = colors.value.length - 1;
|
35158
35318
|
switch (e.code) {
|
35159
35319
|
case "ArrowLeft":
|
35160
35320
|
e.preventDefault();
|
35161
|
-
|
35321
|
+
index = clamp(selectedIndex.value - 1, 0, max2);
|
35162
35322
|
break;
|
35163
35323
|
case "ArrowRight":
|
35164
35324
|
e.preventDefault();
|
35165
|
-
|
35325
|
+
index = clamp(selectedIndex.value + 1, 0, max2);
|
35166
35326
|
break;
|
35167
35327
|
case "ArrowUp":
|
35168
35328
|
e.preventDefault();
|
35169
|
-
|
35329
|
+
index = clamp(selectedIndex.value - rowNum, 0, max2);
|
35170
35330
|
break;
|
35171
35331
|
case "ArrowDown":
|
35172
35332
|
e.preventDefault();
|
35173
|
-
|
35333
|
+
index = clamp(selectedIndex.value + rowNum, 0, max2);
|
35174
35334
|
break;
|
35175
35335
|
default:
|
35176
35336
|
return;
|
35177
35337
|
}
|
35178
|
-
selectColor(
|
35338
|
+
selectColor(index);
|
35179
35339
|
}
|
35180
35340
|
};
|
35181
|
-
const selectColor = (
|
35182
|
-
const color = colors.value[
|
35341
|
+
const selectColor = (index) => {
|
35342
|
+
const color = colors.value[index];
|
35183
35343
|
emit("change", color);
|
35184
35344
|
nextTick(() => {
|
35185
|
-
selectedIndex.value =
|
35345
|
+
selectedIndex.value = index;
|
35186
35346
|
selectedColor.value = color;
|
35187
35347
|
});
|
35188
35348
|
};
|
@@ -35200,11 +35360,11 @@ var RecommendColors = defineComponent({
|
|
35200
35360
|
"onFocus": () => isFocused.value = true,
|
35201
35361
|
"onBlur": () => isFocused.value = false,
|
35202
35362
|
"onKeydown": handleKeydown
|
35203
|
-
}, [colors.value.map((color,
|
35363
|
+
}, [colors.value.map((color, index) => createVNode("div", {
|
35204
35364
|
"style": `background: ${color || "#fff"}`,
|
35205
|
-
"class": getColorClass(color,
|
35206
|
-
"onClick": () => selectColor(
|
35207
|
-
}, [selectedIndex.value ===
|
35365
|
+
"class": getColorClass(color, index),
|
35366
|
+
"onClick": () => selectColor(index)
|
35367
|
+
}, [selectedIndex.value === index ? createVNode("div", {
|
35208
35368
|
"class": "bk-color-picker-pointer"
|
35209
35369
|
}, [createVNode("div", {
|
35210
35370
|
"class": "bk-color-picker-circle"
|
@@ -35584,7 +35744,7 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
35584
35744
|
CodeDiff: BkCodeDiff,
|
35585
35745
|
ColorPicker: BkColorPicker,
|
35586
35746
|
TimePicker: BkTimePicker,
|
35587
|
-
|
35747
|
+
$bkPopover: createPopoverComponent
|
35588
35748
|
}, Symbol.toStringTag, { value: "Module" }));
|
35589
35749
|
const createInstall = (prefix = "Bk") => (app) => {
|
35590
35750
|
const pre = app.config.globalProperties.bkUIPrefix || prefix;
|
@@ -35602,4 +35762,4 @@ var preset = {
|
|
35602
35762
|
install: createInstall(),
|
35603
35763
|
version: "0.0.1"
|
35604
35764
|
};
|
35605
|
-
export { BkAffix as Affix, BkAlert as Alert, BkAnimateNumber as AnimateNumber, BkBacktop as Backtop, BkBadge as Badge, BkBreadcrumb as Breadcrumb, BkButton as Button, BkCard as Card, BkCascader as Cascader, BkCheckbox as Checkbox, BkCodeDiff as CodeDiff, BkCollapse as Collapse, BkColorPicker as ColorPicker, BkContainer as Container, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkDropdown as Dropdown, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, InfoBox, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkPagination as Pagination, BkPopover as Popover, BkPopover2 as Popover2, BkSteps as Process, BkProgress as Progress, BkRadio as Radio, BkRate as Rate, BkResizeLayout as ResizeLayout, BkSelect as Select, BkSideslider as Sideslider, Slider, BkSteps$2 as Steps, BkSwiper as Swiper, BkSwitcher as Switcher, BkTab as Tab, BkTable as Table, BkTag as Tag, TagInput, BkSteps$1 as TimeLine, BkTimePicker as TimePicker, Transfer, BkTree as Tree, Upload, BkVirtualRender as VirtualRender, ellipsis as bkEllipsis, createInstance as bkEllipsisInstance, tooltips as bkTooltips, ClickOutside as clickoutside, BkContainer as containerProps, preset as default, mousewheel
|
35765
|
+
export { createPopoverComponent as $bkPopover, BkAffix as Affix, BkAlert as Alert, BkAnimateNumber as AnimateNumber, BkBacktop as Backtop, BkBadge as Badge, BkBreadcrumb as Breadcrumb, BkButton as Button, BkCard as Card, BkCascader as Cascader, BkCheckbox as Checkbox, BkCodeDiff as CodeDiff, BkCollapse as Collapse, BkColorPicker as ColorPicker, BkContainer as Container, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkDropdown as Dropdown, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, InfoBox, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkPagination as Pagination, BkPopover as Popover, BkPopover2 as Popover2, BkSteps as Process, BkProgress as Progress, BkRadio as Radio, BkRate as Rate, BkResizeLayout as ResizeLayout, BkSelect as Select, BkSideslider as Sideslider, Slider, BkSteps$2 as Steps, BkSwiper as Swiper, BkSwitcher as Switcher, BkTab as Tab, BkTable as Table, BkTag as Tag, TagInput, BkSteps$1 as TimeLine, BkTimePicker as TimePicker, Transfer, BkTree as Tree, Upload, BkVirtualRender as VirtualRender, ellipsis as bkEllipsis, createInstance as bkEllipsisInstance, tooltips as bkTooltips, ClickOutside as clickoutside, BkContainer as containerProps, preset as default, mousewheel };
|