bkui-vue 0.0.1-beta.172 → 0.0.1-beta.175
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 +24 -24
- package/dist/index.esm.js +619 -614
- package/dist/index.umd.js +24 -24
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/directives/index.d.ts +1 -2
- package/lib/directives/index.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -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 index2 = 0; index2 < state.orderedModifiers.length; index2++) {
|
1535
1535
|
if (state.reset === true) {
|
1536
1536
|
state.reset = false;
|
1537
|
-
|
1537
|
+
index2 = -1;
|
1538
1538
|
continue;
|
1539
1539
|
}
|
1540
|
-
var _state$orderedModifie = state.orderedModifiers[
|
1540
|
+
var _state$orderedModifie = state.orderedModifiers[index2], 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 index2 = -1, length = array == null ? 0 : array.length;
|
2278
|
+
while (++index2 < length) {
|
2279
|
+
var value = array[index2];
|
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 index2 = -1, length = array == null ? 0 : array.length;
|
2286
|
+
while (++index2 < length) {
|
2287
|
+
if (iteratee(array[index2], index2, 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 index2 = -1, length = array == null ? 0 : array.length;
|
2304
|
+
while (++index2 < length) {
|
2305
|
+
if (!predicate(array[index2], index2, 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 index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
2313
|
+
while (++index2 < length) {
|
2314
|
+
var value = array[index2];
|
2315
|
+
if (predicate(value, index2, 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 index2 = -1, length = array == null ? 0 : array.length;
|
2327
|
+
while (++index2 < length) {
|
2328
|
+
if (comparator(value, array[index2])) {
|
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 index2 = -1, length = array == null ? 0 : array.length, result = Array(length);
|
2336
|
+
while (++index2 < length) {
|
2337
|
+
result[index2] = iteratee(array[index2], index2, array);
|
2338
2338
|
}
|
2339
2339
|
return result;
|
2340
2340
|
}
|
2341
2341
|
function arrayPush(array, values) {
|
2342
|
-
var
|
2343
|
-
while (++
|
2344
|
-
array[offset2 +
|
2342
|
+
var index2 = -1, length = values.length, offset2 = array.length;
|
2343
|
+
while (++index2 < length) {
|
2344
|
+
array[offset2 + index2] = values[index2];
|
2345
2345
|
}
|
2346
2346
|
return array;
|
2347
2347
|
}
|
2348
2348
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
2349
|
-
var
|
2349
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
2350
2350
|
if (initAccum && length) {
|
2351
|
-
accumulator = array[++
|
2351
|
+
accumulator = array[++index2];
|
2352
2352
|
}
|
2353
|
-
while (++
|
2354
|
-
accumulator = iteratee(accumulator, array[
|
2353
|
+
while (++index2 < length) {
|
2354
|
+
accumulator = iteratee(accumulator, array[index2], index2, 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 index2 = -1, length = array == null ? 0 : array.length;
|
2370
|
+
while (++index2 < length) {
|
2371
|
+
if (predicate(array[index2], index2, 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, index2 = fromIndex + (fromRight ? 1 : -1);
|
2396
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
2397
|
+
if (predicate(array[index2], index2, array)) {
|
2398
|
+
return index2;
|
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 index2 = fromIndex - 1, length = array.length;
|
2408
|
+
while (++index2 < length) {
|
2409
|
+
if (comparator(array[index2], value)) {
|
2410
|
+
return index2;
|
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, index2, collection2) {
|
2434
|
+
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index2, 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, index2 = -1, length = array.length;
|
2448
|
+
while (++index2 < length) {
|
2449
|
+
var current = iteratee(array[index2]);
|
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 index2 = -1, result = Array(n2);
|
2458
|
+
while (++index2 < n2) {
|
2459
|
+
result[index2] = iteratee(index2);
|
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 index2 = -1, length = strSymbols.length;
|
2486
|
+
while (++index2 < length && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) {
|
2487
2487
|
}
|
2488
|
-
return
|
2488
|
+
return index2;
|
2489
2489
|
}
|
2490
2490
|
function charsEndIndex(strSymbols, chrSymbols) {
|
2491
|
-
var
|
2492
|
-
while (
|
2491
|
+
var index2 = strSymbols.length;
|
2492
|
+
while (index2-- && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) {
|
2493
2493
|
}
|
2494
|
-
return
|
2494
|
+
return index2;
|
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 index2 = -1, result = Array(map.size);
|
2528
2528
|
map.forEach(function(value, key2) {
|
2529
|
-
result[++
|
2529
|
+
result[++index2] = [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 index2 = -1, length = array.length, resIndex = 0, result = [];
|
2540
|
+
while (++index2 < length) {
|
2541
|
+
var value = array[index2];
|
2542
2542
|
if (value === placeholder || value === PLACEHOLDER) {
|
2543
|
-
array[
|
2544
|
-
result[resIndex++] =
|
2543
|
+
array[index2] = PLACEHOLDER;
|
2544
|
+
result[resIndex++] = index2;
|
2545
2545
|
}
|
2546
2546
|
}
|
2547
2547
|
return result;
|
2548
2548
|
}
|
2549
2549
|
function setToArray(set) {
|
2550
|
-
var
|
2550
|
+
var index2 = -1, result = Array(set.size);
|
2551
2551
|
set.forEach(function(value) {
|
2552
|
-
result[++
|
2552
|
+
result[++index2] = value;
|
2553
2553
|
});
|
2554
2554
|
return result;
|
2555
2555
|
}
|
2556
2556
|
function setToPairs(set) {
|
2557
|
-
var
|
2557
|
+
var index2 = -1, result = Array(set.size);
|
2558
2558
|
set.forEach(function(value) {
|
2559
|
-
result[++
|
2559
|
+
result[++index2] = [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 index2 = fromIndex - 1, length = array.length;
|
2565
|
+
while (++index2 < length) {
|
2566
|
+
if (array[index2] === value) {
|
2567
|
+
return index2;
|
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 index2 = fromIndex + 1;
|
2574
|
+
while (index2--) {
|
2575
|
+
if (array[index2] === value) {
|
2576
|
+
return index2;
|
2577
2577
|
}
|
2578
2578
|
}
|
2579
|
-
return
|
2579
|
+
return index2;
|
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 index2 = string.length;
|
2589
|
+
while (index2-- && reWhitespace2.test(string.charAt(index2))) {
|
2590
2590
|
}
|
2591
|
-
return
|
2591
|
+
return index2;
|
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, index2 = 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
|
+
index2 += dir;
|
2727
|
+
var iterIndex = -1, value = array[index2];
|
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 index2 = -1, length = entries == null ? 0 : entries.length;
|
2748
2748
|
this.clear();
|
2749
|
-
while (++
|
2750
|
-
var entry = entries[
|
2749
|
+
while (++index2 < length) {
|
2750
|
+
var entry = entries[index2];
|
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 index2 = -1, length = entries == null ? 0 : entries.length;
|
2788
2788
|
this.clear();
|
2789
|
-
while (++
|
2790
|
-
var entry = entries[
|
2789
|
+
while (++index2 < length) {
|
2790
|
+
var entry = entries[index2];
|
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__, index2 = assocIndexOf(data2, key2);
|
2800
|
+
if (index2 < 0) {
|
2801
2801
|
return false;
|
2802
2802
|
}
|
2803
2803
|
var lastIndex = data2.length - 1;
|
2804
|
-
if (
|
2804
|
+
if (index2 == lastIndex) {
|
2805
2805
|
data2.pop();
|
2806
2806
|
} else {
|
2807
|
-
splice.call(data2,
|
2807
|
+
splice.call(data2, index2, 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__, index2 = assocIndexOf(data2, key2);
|
2814
|
+
return index2 < 0 ? undefined$1 : data2[index2][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__, index2 = assocIndexOf(data2, key2);
|
2821
|
+
if (index2 < 0) {
|
2822
2822
|
++this.size;
|
2823
2823
|
data2.push([key2, value]);
|
2824
2824
|
} else {
|
2825
|
-
data2[
|
2825
|
+
data2[index2][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 index2 = -1, length = entries == null ? 0 : entries.length;
|
2836
2836
|
this.clear();
|
2837
|
-
while (++
|
2838
|
-
var entry = entries[
|
2837
|
+
while (++index2 < length) {
|
2838
|
+
var entry = entries[index2];
|
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 index2 = -1, length = values2 == null ? 0 : values2.length;
|
2874
2874
|
this.__data__ = new MapCache();
|
2875
|
-
while (++
|
2876
|
-
this.add(values2[
|
2875
|
+
while (++index2 < length) {
|
2876
|
+
this.add(values2[index2]);
|
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 index2 = -1, length = paths.length, result2 = Array2(length), skip = object == null;
|
2992
|
+
while (++index2 < length) {
|
2993
|
+
result2[index2] = skip ? undefined$1 : get(object, paths[index2]);
|
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 index2 = -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 (++index2 < length) {
|
3114
|
+
var value = array[index2], 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, index2, collection2) {
|
3135
|
+
result2 = !!predicate(value, index2, 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 index2 = -1, length = array.length;
|
3142
|
+
while (++index2 < length) {
|
3143
|
+
var value = array[index2], 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, index2, collection2) {
|
3169
|
+
if (predicate(value, index2, 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 index2 = -1, length = array.length;
|
3177
3177
|
predicate || (predicate = isFlattenable);
|
3178
3178
|
result2 || (result2 = []);
|
3179
|
-
while (++
|
3180
|
-
var value = array[
|
3179
|
+
while (++index2 < length) {
|
3180
|
+
var value = array[index2];
|
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 index2 = 0, length = path.length;
|
3209
|
+
while (object != null && index2 < length) {
|
3210
|
+
object = object[toKey(path[index2++])];
|
3211
3211
|
}
|
3212
|
-
return
|
3212
|
+
return index2 && index2 == 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 index2 = -1, seen = caches[0];
|
3248
3248
|
outer:
|
3249
|
-
while (++
|
3250
|
-
var value = array[
|
3249
|
+
while (++index2 < length && result2.length < maxLength) {
|
3250
|
+
var value = array[index2], 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 index2 = matchData.length, length = index2, 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 (index2--) {
|
3338
|
+
var data2 = matchData[index2];
|
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 (++index2 < length) {
|
3344
|
+
data2 = matchData[index2];
|
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 index2 = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
3419
3419
|
baseEach(collection, function(value, key2, collection2) {
|
3420
|
-
result2[++
|
3420
|
+
result2[++index2] = 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 index2 = -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": ++index2, "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 index2 = -1, length = paths.length, result2 = {};
|
3542
|
+
while (++index2 < length) {
|
3543
|
+
var path = paths[index2], 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, index2 = -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 (++index2 < length) {
|
3564
|
+
var fromIndex = 0, value = values2[index2], 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 index2 = indexes[length];
|
3578
|
+
if (length == lastIndex || index2 !== previous) {
|
3579
|
+
var previous = index2;
|
3580
|
+
if (isIndex(index2)) {
|
3581
|
+
splice.call(array, index2, 1);
|
3582
3582
|
} else {
|
3583
|
-
baseUnset(array,
|
3583
|
+
baseUnset(array, index2);
|
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 index2 = -1, length = nativeMax(nativeCeil((end2 - start2) / (step || 1)), 0), result2 = Array2(length);
|
3594
3594
|
while (length--) {
|
3595
|
-
result2[fromRight ? length : ++
|
3595
|
+
result2[fromRight ? length : ++index2] = 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 index2 = -1, length = path.length, lastIndex = length - 1, nested = object;
|
3632
|
+
while (nested != null && ++index2 < length) {
|
3633
|
+
var key2 = toKey(path[index2]), newValue = value;
|
3634
3634
|
if (key2 === "__proto__" || key2 === "constructor" || key2 === "prototype") {
|
3635
3635
|
return object;
|
3636
3636
|
}
|
3637
|
-
if (
|
3637
|
+
if (index2 != 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[index2 + 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 index2 = -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 (++index2 < length) {
|
3677
|
+
result2[index2] = array[index2 + 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, index2, collection2) {
|
3684
|
+
result2 = predicate(value, index2, 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 index2 = -1, length = array.length, resIndex = 0, result2 = [];
|
3736
|
+
while (++index2 < length) {
|
3737
|
+
var value = array[index2], computed2 = iteratee2 ? iteratee2(value) : value;
|
3738
|
+
if (!index2 || !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 index2 = -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 (++index2 < length) {
|
3785
|
+
var value = array[index2], 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, index2 = fromRight ? length : -1;
|
3817
|
+
while ((fromRight ? index2-- : ++index2 < length) && predicate(array[index2], index2, array)) {
|
3818
3818
|
}
|
3819
|
-
return isDrop ? baseSlice(array, fromRight ? 0 :
|
3819
|
+
return isDrop ? baseSlice(array, fromRight ? 0 : index2, fromRight ? index2 + 1 : length) : baseSlice(array, fromRight ? index2 + 1 : 0, fromRight ? length : index2);
|
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 index2 = -1, result2 = Array2(length);
|
3836
|
+
while (++index2 < length) {
|
3837
|
+
var array = arrays[index2], othIndex = -1;
|
3838
3838
|
while (++othIndex < length) {
|
3839
|
-
if (othIndex !=
|
3840
|
-
result2[
|
3839
|
+
if (othIndex != index2) {
|
3840
|
+
result2[index2] = baseDifference(result2[index2] || 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 index2 = -1, length = props2.length, valsLength = values2.length, result2 = {};
|
3848
|
+
while (++index2 < length) {
|
3849
|
+
var value = index2 < valsLength ? values2[index2] : undefined$1;
|
3850
|
+
assignFunc(result2, props2[index2], 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 index2 = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
3919
|
+
while (++index2 < length) {
|
3920
|
+
var result2 = compareAscending(objCriteria[index2], othCriteria[index2]);
|
3921
3921
|
if (result2) {
|
3922
|
-
if (
|
3922
|
+
if (index2 >= ordersLength) {
|
3923
3923
|
return result2;
|
3924
3924
|
}
|
3925
|
-
var order2 = orders[
|
3925
|
+
var order2 = orders[index2];
|
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 index2 = -1, length = source.length;
|
3964
3964
|
array || (array = Array2(length));
|
3965
|
-
while (++
|
3966
|
-
array[
|
3965
|
+
while (++index2 < length) {
|
3966
|
+
array[index2] = source[index2];
|
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 index2 = -1, length = props2.length;
|
3974
|
+
while (++index2 < length) {
|
3975
|
+
var key2 = props2[index2];
|
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 index2 = -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 (++index2 < length) {
|
4010
|
+
var source = sources[index2];
|
4011
4011
|
if (source) {
|
4012
|
-
assigner(object, source,
|
4012
|
+
assigner(object, source, index2, 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, index2 = fromRight ? length : -1, iterable = Object2(collection);
|
4027
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
4028
|
+
if (iteratee2(iterable[index2], index2, 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 index2 = -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 : ++index2];
|
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), index2 = length, placeholder = getHolder(wrapper);
|
4098
|
+
while (index2--) {
|
4099
|
+
args[index2] = arguments[index2];
|
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 index2 = findIndexFunc(collection, predicate, fromIndex);
|
4122
|
+
return index2 > -1 ? iterable[iteratee2 ? collection[index2] : index2] : 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, index2 = length, prereq = LodashWrapper.prototype.thru;
|
4128
4128
|
if (fromRight) {
|
4129
4129
|
funcs.reverse();
|
4130
4130
|
}
|
4131
|
-
while (
|
4132
|
-
var func = funcs[
|
4131
|
+
while (index2--) {
|
4132
|
+
var func = funcs[index2];
|
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
|
+
index2 = wrapper ? index2 : length;
|
4141
|
+
while (++index2 < length) {
|
4142
|
+
func = funcs[index2];
|
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 index3 = 0, result2 = length ? funcs[index3].apply(this, args) : value;
|
4156
|
+
while (++index3 < length) {
|
4157
|
+
result2 = funcs[index3].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), index2 = length;
|
4167
|
+
while (index2--) {
|
4168
|
+
args[index2] = arguments[index2];
|
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 index2 = -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 (++index2 < arrLength) {
|
4429
|
+
var arrValue = array[index2], othValue = other[index2];
|
4430
4430
|
if (customizer) {
|
4431
|
-
var compared = isPartial ? customizer(othValue, arrValue,
|
4431
|
+
var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, 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 index2 = objLength;
|
4510
|
+
while (index2--) {
|
4511
|
+
var key2 = objProps[index2];
|
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 (++index2 < objLength) {
|
4526
|
+
key2 = objProps[index2];
|
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 index2 = -1, length = transforms.length;
|
4651
|
+
while (++index2 < length) {
|
4652
|
+
var data2 = transforms[index2], 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 index2 = -1, length = path.length, result2 = false;
|
4677
|
+
while (++index2 < length) {
|
4678
|
+
var key2 = toKey(path[index2]);
|
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 || ++index2 != 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, index2, 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 index2;
|
4757
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index2, object.length) : type == "string" && index2 in object) {
|
4758
|
+
return eq(object[index2], 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, index2 = -1, length = nativeMax(args.length - start2, 0), array = Array2(length);
|
4868
|
+
while (++index2 < length) {
|
4869
|
+
array[index2] = args[start2 + index2];
|
4870
4870
|
}
|
4871
|
-
|
4871
|
+
index2 = -1;
|
4872
4872
|
var otherArgs = Array2(start2 + 1);
|
4873
|
-
while (++
|
4874
|
-
otherArgs[
|
4873
|
+
while (++index2 < start2) {
|
4874
|
+
otherArgs[index2] = args[index2];
|
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 index2 = indexes[length];
|
4887
|
+
array[length] = isIndex(index2, arrLength) ? oldArray[index2] : 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 index2 = -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 (++index2 < size2) {
|
4928
|
+
var rand = baseRandom(index2, lastIndex), value = array[rand];
|
4929
|
+
array[rand] = array[index2];
|
4930
|
+
array[index2] = 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 index2 = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2));
|
4995
|
+
while (index2 < length) {
|
4996
|
+
result2[resIndex++] = baseSlice(array, index2, index2 += size2);
|
4997
4997
|
}
|
4998
4998
|
return result2;
|
4999
4999
|
}
|
5000
5000
|
function compact(array) {
|
5001
|
-
var
|
5002
|
-
while (++
|
5003
|
-
var value = array[
|
5001
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = [];
|
5002
|
+
while (++index2 < length) {
|
5003
|
+
var value = array[index2];
|
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], index2 = length;
|
5016
|
+
while (index2--) {
|
5017
|
+
args[index2 - 1] = arguments[index2];
|
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 index2 = fromIndex == null ? 0 : toInteger2(fromIndex);
|
5078
|
+
if (index2 < 0) {
|
5079
|
+
index2 = nativeMax(length + index2, 0);
|
5080
5080
|
}
|
5081
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
5081
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index2);
|
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 index2 = length - 1;
|
5089
5089
|
if (fromIndex !== undefined$1) {
|
5090
|
-
|
5091
|
-
|
5090
|
+
index2 = toInteger2(fromIndex);
|
5091
|
+
index2 = fromIndex < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1);
|
5092
5092
|
}
|
5093
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
5093
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index2, 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 index2 = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
5113
|
+
while (++index2 < length) {
|
5114
|
+
var pair = pairs[index2];
|
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 index2 = fromIndex == null ? 0 : toInteger2(fromIndex);
|
5128
|
+
if (index2 < 0) {
|
5129
|
+
index2 = nativeMax(length + index2, 0);
|
5130
5130
|
}
|
5131
|
-
return baseIndexOf(array, value,
|
5131
|
+
return baseIndexOf(array, value, index2);
|
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 index2 = length;
|
5171
5171
|
if (fromIndex !== undefined$1) {
|
5172
|
-
|
5173
|
-
|
5172
|
+
index2 = toInteger2(fromIndex);
|
5173
|
+
index2 = index2 < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1);
|
5174
5174
|
}
|
5175
|
-
return value === value ? strictLastIndexOf(array, value,
|
5175
|
+
return value === value ? strictLastIndexOf(array, value, index2) : baseFindIndex(array, baseIsNaN, index2, 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(index2) {
|
5193
|
+
return isIndex(index2, length) ? +index2 : index2;
|
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 index2 = -1, indexes = [], length = array.length;
|
5203
5203
|
predicate = getIteratee(predicate, 3);
|
5204
|
-
while (++
|
5205
|
-
var value = array[
|
5206
|
-
if (predicate(value,
|
5204
|
+
while (++index2 < length) {
|
5205
|
+
var value = array[index2];
|
5206
|
+
if (predicate(value, index2, array)) {
|
5207
5207
|
result2.push(value);
|
5208
|
-
indexes.push(
|
5208
|
+
indexes.push(index2);
|
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 index2 = baseSortedIndex(array, value);
|
5241
|
+
if (index2 < length && eq(array[index2], value)) {
|
5242
|
+
return index2;
|
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 index2 = baseSortedIndex(array, value, true) - 1;
|
5257
|
+
if (eq(array[index2], value)) {
|
5258
|
+
return index2;
|
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(index2) {
|
5332
|
+
return arrayMap(array, baseProperty(index2));
|
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 index2 = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
5518
5518
|
baseEach(collection, function(value) {
|
5519
|
-
result2[++
|
5519
|
+
result2[++index2] = 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 index2 = -1, length = nativeMin(args.length, funcsLength);
|
5806
|
+
while (++index2 < length) {
|
5807
|
+
args[index2] = transforms[index2].call(this, args[index2]);
|
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 index2 = -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 (++index2 < length) {
|
6129
|
+
var source = sources[index2];
|
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 index2 = -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 (++index2 < length) {
|
6273
|
+
var value = object == null ? undefined$1 : object[toKey(path[index2])];
|
6274
6274
|
if (value === undefined$1) {
|
6275
|
-
|
6275
|
+
index2 = 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, index2, object2) {
|
6305
|
+
return iteratee2(accumulator, value, index2, 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, index2) {
|
6388
6388
|
word2 = word2.toLowerCase();
|
6389
|
-
return result2 + (
|
6389
|
+
return result2 + (index2 ? 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, index2) {
|
6416
|
+
return result2 + (index2 ? "-" : "") + word2.toLowerCase();
|
6417
6417
|
});
|
6418
|
-
var lowerCase = createCompounder(function(result2, word2,
|
6419
|
-
return result2 + (
|
6418
|
+
var lowerCase = createCompounder(function(result2, word2, index2) {
|
6419
|
+
return result2 + (index2 ? " " : "") + 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, index2) {
|
6465
|
+
return result2 + (index2 ? "_" : "") + 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, index2) {
|
6485
|
+
return result2 + (index2 ? " " : "") + 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, index2 = 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(index2, 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
|
+
index2 = 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 index2 = result2.lastIndexOf(separator2);
|
6619
|
+
if (index2 > -1) {
|
6620
|
+
result2 = result2.slice(0, index2);
|
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, index2) {
|
6630
|
+
return result2 + (index2 ? " " : "") + 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 index2 = -1;
|
6665
|
+
while (++index2 < length) {
|
6666
|
+
var pair = pairs[index2];
|
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 index2 = 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 (++index2 < n2) {
|
6787
|
+
iteratee2(index2);
|
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, index2) {
|
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__ && !index2 ? 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, index2) {
|
7178
|
+
var type = index2 + 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, index2) {
|
7190
|
+
var takeName = "take" + (index2 ? "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, index2) {
|
7196
|
+
var dropName = "drop" + (index2 ? "" : "Right");
|
7197
7197
|
LazyWrapper.prototype[methodName] = function() {
|
7198
7198
|
return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
|
7199
7199
|
};
|
@@ -8028,7 +8028,7 @@ function generate(node, key2, rootAttrs) {
|
|
8028
8028
|
key: key2
|
8029
8029
|
}, node.attributes), {
|
8030
8030
|
style: `${node.attributes.style} ${rootAttrs || ""}`
|
8031
|
-
}), (node.elements || []).map((element,
|
8031
|
+
}), (node.elements || []).map((element, index2) => generate(element, `${key2}-${node.name}-${index2}`)));
|
8032
8032
|
}
|
8033
8033
|
const bkIcon = (props2, context) => {
|
8034
8034
|
const _a = __spreadValues(__spreadValues({}, context.attrs), props2), {
|
@@ -9780,9 +9780,9 @@ var BkCheckboxGroup = defineComponent({
|
|
9780
9780
|
checkboxInstanceList.push(checkboxContext);
|
9781
9781
|
};
|
9782
9782
|
const unregister = (checkboxContext) => {
|
9783
|
-
const
|
9784
|
-
if (
|
9785
|
-
checkboxInstanceList.splice(
|
9783
|
+
const index2 = checkboxInstanceList.indexOf(checkboxContext);
|
9784
|
+
if (index2 > -1) {
|
9785
|
+
checkboxInstanceList.splice(index2, 1);
|
9786
9786
|
}
|
9787
9787
|
};
|
9788
9788
|
const handleChange = () => {
|
@@ -10088,39 +10088,39 @@ var Collapse = defineComponent({
|
|
10088
10088
|
}
|
10089
10089
|
})]);
|
10090
10090
|
}
|
10091
|
-
const collapseData = computed(() => (props2.list || []).map((item,
|
10091
|
+
const collapseData = computed(() => (props2.list || []).map((item, index2) => {
|
10092
10092
|
if (typeof item === "string" || typeof item === "number" || typeof item === "boolean") {
|
10093
10093
|
return {
|
10094
|
-
$index:
|
10094
|
+
$index: index2,
|
10095
10095
|
name: item
|
10096
10096
|
};
|
10097
10097
|
}
|
10098
10098
|
return __spreadValues({
|
10099
|
-
$index:
|
10099
|
+
$index: index2
|
10100
10100
|
}, item);
|
10101
10101
|
}));
|
10102
|
-
const renderItems = () => collapseData.value.map((item,
|
10102
|
+
const renderItems = () => collapseData.value.map((item, index2) => {
|
10103
10103
|
var _a, _b, _c;
|
10104
|
-
const name = item[props2.idFiled] ||
|
10104
|
+
const name = item[props2.idFiled] || index2;
|
10105
10105
|
let title = item[props2.titleField];
|
10106
10106
|
if (slots.title) {
|
10107
10107
|
if (typeof slots.title === "function") {
|
10108
|
-
title = slots.title(item,
|
10108
|
+
title = slots.title(item, index2);
|
10109
10109
|
} else {
|
10110
10110
|
title = slots.title;
|
10111
10111
|
}
|
10112
10112
|
}
|
10113
10113
|
if (slots.default) {
|
10114
|
-
title = (_a = slots.default) == null ? void 0 : _a.call(slots, item,
|
10114
|
+
title = (_a = slots.default) == null ? void 0 : _a.call(slots, item, index2);
|
10115
10115
|
}
|
10116
10116
|
return createVNode(CollapsePanel, {
|
10117
|
-
"key":
|
10117
|
+
"key": index2,
|
10118
10118
|
"item-click": handleItemClick,
|
10119
10119
|
"disabled": item.disabled,
|
10120
10120
|
"name": name,
|
10121
10121
|
"isFormList": true,
|
10122
10122
|
"title": title,
|
10123
|
-
"content": (_c = (_b = slots.content) == null ? void 0 : _b.call(slots, item,
|
10123
|
+
"content": (_c = (_b = slots.content) == null ? void 0 : _b.call(slots, item, index2)) != null ? _c : item[props2.contentField]
|
10124
10124
|
}, null);
|
10125
10125
|
});
|
10126
10126
|
return () => createVNode("div", {
|
@@ -11264,6 +11264,10 @@ function hide$1(el) {
|
|
11264
11264
|
onHide();
|
11265
11265
|
}
|
11266
11266
|
}
|
11267
|
+
var index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
11268
|
+
__proto__: null,
|
11269
|
+
$bkPopover: createPopoverComponent
|
11270
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
11267
11271
|
const resolveOptions = (el, binding) => {
|
11268
11272
|
const options = {
|
11269
11273
|
content: "",
|
@@ -13838,9 +13842,9 @@ var RadioGroup = defineComponent({
|
|
13838
13842
|
radioInstanceList.push(radioContext);
|
13839
13843
|
};
|
13840
13844
|
const unregister = (radioContext) => {
|
13841
|
-
const
|
13842
|
-
if (
|
13843
|
-
radioInstanceList.splice(
|
13845
|
+
const index2 = radioInstanceList.indexOf(radioContext);
|
13846
|
+
if (index2 > -1) {
|
13847
|
+
radioInstanceList.splice(index2, 1);
|
13844
13848
|
}
|
13845
13849
|
};
|
13846
13850
|
const handleChange = (checkedRadioInstance) => {
|
@@ -13897,20 +13901,20 @@ var star = defineComponent({
|
|
13897
13901
|
setup(props2, {
|
13898
13902
|
emit
|
13899
13903
|
}) {
|
13900
|
-
const chooseRate = (
|
13904
|
+
const chooseRate = (index2) => {
|
13901
13905
|
if (!props2.editable)
|
13902
13906
|
return;
|
13903
|
-
const rate2 =
|
13907
|
+
const rate2 = index2 + 1;
|
13904
13908
|
emit("chooseRate", rate2);
|
13905
13909
|
};
|
13906
|
-
const changeHover = (
|
13910
|
+
const changeHover = (index2) => {
|
13907
13911
|
if (!props2.editable)
|
13908
13912
|
return;
|
13909
|
-
const rate2 =
|
13913
|
+
const rate2 = index2 + 1;
|
13910
13914
|
emit("changeHover", rate2);
|
13911
13915
|
};
|
13912
|
-
const starClass = (
|
13913
|
-
"bk-is-select":
|
13916
|
+
const starClass = (index2) => classes({
|
13917
|
+
"bk-is-select": index2 < Math.floor(displayRate.value),
|
13914
13918
|
"bk-is-edit": props2.editable,
|
13915
13919
|
"bk-rate-star": true
|
13916
13920
|
});
|
@@ -13922,14 +13926,14 @@ var star = defineComponent({
|
|
13922
13926
|
};
|
13923
13927
|
return () => createVNode("p", {
|
13924
13928
|
"class": "bk-rate-stars"
|
13925
|
-
}, [Array(props2.max).fill(1).map((_2,
|
13926
|
-
"class": starClass(
|
13929
|
+
}, [Array(props2.max).fill(1).map((_2, index2) => createVNode("svg", {
|
13930
|
+
"class": starClass(index2),
|
13927
13931
|
"style": starStyle,
|
13928
13932
|
"x": "0px",
|
13929
13933
|
"y": "0px",
|
13930
13934
|
"viewBox": "0 0 64 64",
|
13931
|
-
"onClick": () => chooseRate(
|
13932
|
-
"onMouseenter": () => changeHover(
|
13935
|
+
"onClick": () => chooseRate(index2),
|
13936
|
+
"onMouseenter": () => changeHover(index2)
|
13933
13937
|
}, [createVNode("g", {
|
13934
13938
|
"transform": "translate(-143.000000, -635.000000)"
|
13935
13939
|
}, [createVNode("g", {
|
@@ -14066,12 +14070,12 @@ var Component$l = defineComponent({
|
|
14066
14070
|
width: `${renderWidth.value}px`,
|
14067
14071
|
height: `${renderHeight.value}px`
|
14068
14072
|
}));
|
14069
|
-
const changeIndex = (
|
14070
|
-
let showIndex =
|
14071
|
-
if (
|
14073
|
+
const changeIndex = (index2) => {
|
14074
|
+
let showIndex = index2;
|
14075
|
+
if (index2 >= computedRenderDataList.value.length) {
|
14072
14076
|
showIndex = 0;
|
14073
14077
|
}
|
14074
|
-
if (
|
14078
|
+
if (index2 < 0) {
|
14075
14079
|
showIndex = computedRenderDataList.value.length - 1;
|
14076
14080
|
}
|
14077
14081
|
swiperIndex.value = showIndex;
|
@@ -14089,8 +14093,8 @@ var Component$l = defineComponent({
|
|
14089
14093
|
"background-image": `url(${renderData.url})`,
|
14090
14094
|
"background-color": renderData.color
|
14091
14095
|
});
|
14092
|
-
const getRenderIndexStyle = (
|
14093
|
-
"bk-current-index": swiperIndex.value ===
|
14096
|
+
const getRenderIndexStyle = (index2) => ({
|
14097
|
+
"bk-current-index": swiperIndex.value === index2
|
14094
14098
|
});
|
14095
14099
|
const startLoop = () => {
|
14096
14100
|
if (isLoop.value) {
|
@@ -14168,9 +14172,9 @@ var Component$l = defineComponent({
|
|
14168
14172
|
}, null)]);
|
14169
14173
|
})]), createVNode("ul", {
|
14170
14174
|
"class": "bk-swiper-index"
|
14171
|
-
}, [computedRenderDataList.value.map((_2,
|
14172
|
-
"class": getRenderIndexStyle(
|
14173
|
-
"onMouseover": () => changeIndex(
|
14175
|
+
}, [computedRenderDataList.value.map((_2, index2) => createVNode("li", {
|
14176
|
+
"class": getRenderIndexStyle(index2),
|
14177
|
+
"onMouseover": () => changeIndex(index2)
|
14174
14178
|
}, null))]), createVNode("span", {
|
14175
14179
|
"class": "bk-swiper-nav bk-nav-prev",
|
14176
14180
|
"onClick": () => changeIndex(swiperIndex.value - 1)
|
@@ -14691,8 +14695,8 @@ var Component$k = defineComponent({
|
|
14691
14695
|
refRoot.value.scrollTo(0, 0);
|
14692
14696
|
}
|
14693
14697
|
};
|
14694
|
-
const localList = computed(() => (props2.list || []).map((item,
|
14695
|
-
$index:
|
14698
|
+
const localList = computed(() => (props2.list || []).map((item, index2) => __spreadProps(__spreadValues({}, item), {
|
14699
|
+
$index: index2
|
14696
14700
|
})));
|
14697
14701
|
const calcList = computed(() => localList.value.slice(pagination2.startIndex * props2.groupItemCount, (pagination2.endIndex + props2.preloadItemCount) * props2.groupItemCount));
|
14698
14702
|
const innerContentStyle = computed(() => props2.scrollPosition === "content" ? {
|
@@ -14863,9 +14867,9 @@ var SelectTagInput = defineComponent({
|
|
14863
14867
|
}
|
14864
14868
|
}
|
14865
14869
|
};
|
14866
|
-
const getTagDOM = (
|
14870
|
+
const getTagDOM = (index2) => {
|
14867
14871
|
const tags = [...proxy.$el.querySelectorAll(".bk-tag")];
|
14868
|
-
return typeof
|
14872
|
+
return typeof index2 === "number" ? tags[index2] : tags;
|
14869
14873
|
};
|
14870
14874
|
const calcOverflow = () => {
|
14871
14875
|
if (!collapseTags.value)
|
@@ -14873,11 +14877,11 @@ var SelectTagInput = defineComponent({
|
|
14873
14877
|
overflowTagIndex.value = null;
|
14874
14878
|
setTimeout(() => {
|
14875
14879
|
const tags = getTagDOM();
|
14876
|
-
const tagIndexInSecondRow = tags.findIndex((currentUser,
|
14877
|
-
if (!
|
14880
|
+
const tagIndexInSecondRow = tags.findIndex((currentUser, index2) => {
|
14881
|
+
if (!index2) {
|
14878
14882
|
return false;
|
14879
14883
|
}
|
14880
|
-
const previousTag = tags[
|
14884
|
+
const previousTag = tags[index2 - 1];
|
14881
14885
|
return previousTag.offsetTop !== currentUser.offsetTop;
|
14882
14886
|
});
|
14883
14887
|
if (tagIndexInSecondRow - 1 > -1) {
|
@@ -14915,11 +14919,11 @@ var SelectTagInput = defineComponent({
|
|
14915
14919
|
"class": selectTagClass
|
14916
14920
|
}, [(_b = (_a = this.$slots) == null ? void 0 : _a.prefix) == null ? void 0 : _b.call(_a), createVNode("span", {
|
14917
14921
|
"class": tagWrapperClass
|
14918
|
-
}, [(_e = (_d = (_c = this.$slots).default) == null ? void 0 : _d.call(_c)) != null ? _e : this.selected.map((item,
|
14922
|
+
}, [(_e = (_d = (_c = this.$slots).default) == null ? void 0 : _d.call(_c)) != null ? _e : this.selected.map((item, index2) => createVNode(BkTag, {
|
14919
14923
|
"closable": true,
|
14920
14924
|
"theme": this.tagTheme,
|
14921
14925
|
"style": {
|
14922
|
-
display: this.overflowTagIndex &&
|
14926
|
+
display: this.overflowTagIndex && index2 >= this.overflowTagIndex ? "none" : ""
|
14923
14927
|
},
|
14924
14928
|
"onClose": () => this.handleRemoveTag(item.value)
|
14925
14929
|
}, {
|
@@ -15190,9 +15194,9 @@ var Component$i = defineComponent({
|
|
15190
15194
|
if (isDisabled.value || !option)
|
15191
15195
|
return;
|
15192
15196
|
if (multiple.value) {
|
15193
|
-
const
|
15194
|
-
if (
|
15195
|
-
selected.value.splice(
|
15197
|
+
const index2 = selected.value.findIndex((item) => item.value === option.value);
|
15198
|
+
if (index2 > -1) {
|
15199
|
+
selected.value.splice(index2, 1);
|
15196
15200
|
} else {
|
15197
15201
|
selected.value.push({
|
15198
15202
|
value: option.value,
|
@@ -15263,9 +15267,9 @@ var Component$i = defineComponent({
|
|
15263
15267
|
const handleDeleteTag = (val) => {
|
15264
15268
|
if (isDisabled.value)
|
15265
15269
|
return;
|
15266
|
-
const
|
15267
|
-
if (
|
15268
|
-
selected.value.splice(
|
15270
|
+
const index2 = selected.value.findIndex((item) => item.value === val);
|
15271
|
+
if (index2 > -1) {
|
15272
|
+
selected.value.splice(index2, 1);
|
15269
15273
|
emitChange(selected.value.map((item) => item.value));
|
15270
15274
|
}
|
15271
15275
|
};
|
@@ -15291,19 +15295,19 @@ var Component$i = defineComponent({
|
|
15291
15295
|
if (!((_a = triggerRef.value) == null ? void 0 : _a.contains(e.target)) && !((_b = contentRef.value) == null ? void 0 : _b.contains(e.target)) && !customContent.value)
|
15292
15296
|
return;
|
15293
15297
|
const availableOptions = options.value.filter((option) => !option.disabled && option.visible);
|
15294
|
-
const
|
15295
|
-
if (!availableOptions.length ||
|
15298
|
+
const index2 = availableOptions.findIndex((option) => option.value === activeOptionValue.value);
|
15299
|
+
if (!availableOptions.length || index2 === -1)
|
15296
15300
|
return;
|
15297
15301
|
switch (e.code) {
|
15298
15302
|
case "ArrowDown": {
|
15299
15303
|
e.preventDefault();
|
15300
|
-
const nextIndex =
|
15304
|
+
const nextIndex = index2 >= availableOptions.length - 1 ? 0 : index2 + 1;
|
15301
15305
|
activeOptionValue.value = (_c = availableOptions[nextIndex]) == null ? void 0 : _c.value;
|
15302
15306
|
break;
|
15303
15307
|
}
|
15304
15308
|
case "ArrowUp": {
|
15305
15309
|
e.preventDefault();
|
15306
|
-
const preIndex =
|
15310
|
+
const preIndex = index2 === 0 ? availableOptions.length - 1 : index2 - 1;
|
15307
15311
|
activeOptionValue.value = (_d = availableOptions[preIndex]) == null ? void 0 : _d.value;
|
15308
15312
|
break;
|
15309
15313
|
}
|
@@ -15731,17 +15735,17 @@ var Component$g = defineComponent({
|
|
15731
15735
|
updateSteps(props2.steps);
|
15732
15736
|
}
|
15733
15737
|
};
|
15734
|
-
const jumpTo = async (
|
15738
|
+
const jumpTo = async (index2) => {
|
15735
15739
|
try {
|
15736
|
-
if (props2.controllable &&
|
15740
|
+
if (props2.controllable && index2 !== props2.curStep) {
|
15737
15741
|
if (typeof props2.beforeChange === "function") {
|
15738
15742
|
await new Promise(async (resolve, reject) => {
|
15739
|
-
const confirmed = await props2.beforeChange(
|
15743
|
+
const confirmed = await props2.beforeChange(index2);
|
15740
15744
|
confirmed ? resolve(confirmed) : reject(confirmed);
|
15741
15745
|
});
|
15742
15746
|
}
|
15743
|
-
emit("update:curStep",
|
15744
|
-
emit("click",
|
15747
|
+
emit("update:curStep", index2);
|
15748
|
+
emit("click", index2);
|
15745
15749
|
}
|
15746
15750
|
} catch (e) {
|
15747
15751
|
console.warn(e);
|
@@ -15772,8 +15776,8 @@ var Component$g = defineComponent({
|
|
15772
15776
|
[`bk-steps-${this.direction}`]: this.direction,
|
15773
15777
|
[`bk-steps-${this.lineType}`]: this.lineType
|
15774
15778
|
}, `${stepsThemeCls} ${stepsClsPrefix} ${stepsSizeCls}`);
|
15775
|
-
const isDone = (
|
15776
|
-
const isCurrent = (
|
15779
|
+
const isDone = (index2) => this.curStep > index2 + 1 || this.defaultSteps[index2].status === "done";
|
15780
|
+
const isCurrent = (index2) => this.curStep === index2 + 1;
|
15777
15781
|
const iconType = (step) => {
|
15778
15782
|
const {
|
15779
15783
|
icon
|
@@ -15783,47 +15787,47 @@ var Component$g = defineComponent({
|
|
15783
15787
|
}
|
15784
15788
|
return typeof step === "string";
|
15785
15789
|
};
|
15786
|
-
const isNumberIcon = (
|
15790
|
+
const isNumberIcon = (index2, step) => {
|
15787
15791
|
if (!step.icon) {
|
15788
|
-
step.icon =
|
15792
|
+
step.icon = index2;
|
15789
15793
|
}
|
15790
15794
|
return !isNaN(step.icon);
|
15791
15795
|
};
|
15792
15796
|
const isLoadingStatus = (step) => step.status === "loading";
|
15793
15797
|
const isErrorStatus = (step) => step.status === "error";
|
15794
|
-
const renderIcon = (
|
15795
|
-
if (isCurrent(
|
15798
|
+
const renderIcon = (index2, step) => {
|
15799
|
+
if (isCurrent(index2) && this.status === "loading" || isLoadingStatus(step)) {
|
15796
15800
|
return createVNode(circle, {
|
15797
15801
|
"class": "bk-icon bk-steps-icon icon-loading"
|
15798
15802
|
}, null);
|
15799
15803
|
}
|
15800
|
-
if (isCurrent(
|
15804
|
+
if (isCurrent(index2) && this.status === "error" || isErrorStatus(step)) {
|
15801
15805
|
return createVNode(error, {
|
15802
15806
|
"class": "bk-steps-icon"
|
15803
15807
|
}, null);
|
15804
15808
|
}
|
15805
|
-
if (isDone(
|
15809
|
+
if (isDone(index2)) {
|
15806
15810
|
return createVNode(done, {
|
15807
15811
|
"class": "bk-steps-icon"
|
15808
15812
|
}, null);
|
15809
15813
|
}
|
15810
|
-
return createVNode("span", null, [isNumberIcon(
|
15814
|
+
return createVNode("span", null, [isNumberIcon(index2, step) ? index2 + 1 : createVNode(step.icon, null, null)]);
|
15811
15815
|
};
|
15812
15816
|
return createVNode("div", {
|
15813
15817
|
"class": stepsCls
|
15814
|
-
}, [this.defaultSteps.map((step,
|
15818
|
+
}, [this.defaultSteps.map((step, index2) => {
|
15815
15819
|
var _a, _b, _c;
|
15816
15820
|
return createVNode("div", {
|
15817
|
-
"class": ["bk-step", !step.title ? "bk-step-no-content" : "", isDone(
|
15821
|
+
"class": ["bk-step", !step.title ? "bk-step-no-content" : "", isDone(index2) ? "done" : "", isCurrent(index2) ? "current" : "", isCurrent(index2) && this.status === "error" ? "isError" : "", step.status && isCurrent(index2) ? [`bk-step-${step.status}`] : ""]
|
15818
15822
|
}, [createVNode("span", {
|
15819
15823
|
"class": ["bk-step-indicator", `bk-step-${iconType(step) ? "icon" : "number"}`, `bk-step-icon${step.status}`],
|
15820
15824
|
"style": {
|
15821
15825
|
cursor: this.controllable ? "pointer" : ""
|
15822
15826
|
},
|
15823
15827
|
"onClick": () => {
|
15824
|
-
this.jumpTo(
|
15828
|
+
this.jumpTo(index2 + 1);
|
15825
15829
|
}
|
15826
|
-
}, [(_c = (_b = (_a = this.$slots)[
|
15830
|
+
}, [(_c = (_b = (_a = this.$slots)[index2 + 1]) == null ? void 0 : _b.call(_a)) != null ? _c : renderIcon(index2, step)]), step.title ? createVNode("div", {
|
15827
15831
|
"class": "bk-step-content"
|
15828
15832
|
}, [createVNode("div", {
|
15829
15833
|
"class": "bk-step-title",
|
@@ -15831,7 +15835,7 @@ var Component$g = defineComponent({
|
|
15831
15835
|
cursor: this.controllable ? "pointer" : ""
|
15832
15836
|
},
|
15833
15837
|
"onClick": () => {
|
15834
|
-
this.jumpTo(
|
15838
|
+
this.jumpTo(index2 + 1);
|
15835
15839
|
}
|
15836
15840
|
}, [step.title]), step.description && createVNode("div", {
|
15837
15841
|
"class": "bk-step-description",
|
@@ -16132,7 +16136,7 @@ var userPagination = (props2, indexData) => {
|
|
16132
16136
|
};
|
16133
16137
|
const filter = (sourceData, filterFn) => {
|
16134
16138
|
if (typeof filterFn === "function") {
|
16135
|
-
const filterVals = sourceData.filter((row,
|
16139
|
+
const filterVals = sourceData.filter((row, index2) => filterFn(row, index2, props2.data));
|
16136
16140
|
sourceData.splice(0, sourceData.length, ...filterVals);
|
16137
16141
|
}
|
16138
16142
|
};
|
@@ -16257,10 +16261,10 @@ var useLimit = () => {
|
|
16257
16261
|
"modelValue": localLimit.value,
|
16258
16262
|
"onChange": handleLimitChange,
|
16259
16263
|
"disabled": proxy.disabled
|
16260
|
-
}, _isSlot$4(_slot = proxy.limitList.map((num,
|
16264
|
+
}, _isSlot$4(_slot = proxy.limitList.map((num, index2) => createVNode(BkOption, {
|
16261
16265
|
"value": num,
|
16262
16266
|
"label": `${num}`,
|
16263
|
-
"key": `${
|
16267
|
+
"key": `${index2}_${num}`
|
16264
16268
|
}, null))) ? _slot : {
|
16265
16269
|
default: () => [_slot]
|
16266
16270
|
}), createVNode("div", null, [createTextVNode("\u6761")])]);
|
@@ -16645,9 +16649,9 @@ var Component$e = defineComponent({
|
|
16645
16649
|
};
|
16646
16650
|
return createVNode("div", {
|
16647
16651
|
"class": paginationClass
|
16648
|
-
}, [this.layout.map((layout,
|
16649
|
-
isFirst:
|
16650
|
-
isLast:
|
16652
|
+
}, [this.layout.map((layout, index2) => layoutMap[layout]({
|
16653
|
+
isFirst: index2 === 0,
|
16654
|
+
isLast: index2 === this.layout.length - 1
|
16651
16655
|
}))]);
|
16652
16656
|
}
|
16653
16657
|
});
|
@@ -16738,7 +16742,7 @@ const resolveColumnWidth = (root, colgroups, autoWidth = 20, offsetWidth = 0) =>
|
|
16738
16742
|
}
|
16739
16743
|
}
|
16740
16744
|
};
|
16741
|
-
colgroups.forEach((col,
|
16745
|
+
colgroups.forEach((col, index2) => {
|
16742
16746
|
if (!col.isHidden) {
|
16743
16747
|
const order2 = ["resizeWidth", "width"];
|
16744
16748
|
const colWidth = String(getColumnReactWidth(col, order2));
|
@@ -16758,7 +16762,7 @@ const resolveColumnWidth = (root, colgroups, autoWidth = 20, offsetWidth = 0) =>
|
|
16758
16762
|
isAutoWidthCol = false;
|
16759
16763
|
}
|
16760
16764
|
if (isAutoWidthCol) {
|
16761
|
-
avgColIndexList.push(
|
16765
|
+
avgColIndexList.push(index2);
|
16762
16766
|
}
|
16763
16767
|
}
|
16764
16768
|
});
|
@@ -16823,10 +16827,10 @@ const formatPropAsArray = (prop, args) => {
|
|
16823
16827
|
}
|
16824
16828
|
return [];
|
16825
16829
|
};
|
16826
|
-
const getRowKey = (item, props2,
|
16830
|
+
const getRowKey = (item, props2, index2) => {
|
16827
16831
|
if (typeof props2.rowKey === "string") {
|
16828
16832
|
if (props2.rowKey === TABLE_ROW_ATTRIBUTE.ROW_INDEX) {
|
16829
|
-
return `__ROW_INDEX_${
|
16833
|
+
return `__ROW_INDEX_${index2}`;
|
16830
16834
|
}
|
16831
16835
|
const keys = props2.rowKey.split(".");
|
16832
16836
|
return keys.reduce((pre, cur) => {
|
@@ -16998,7 +17002,7 @@ var HeadFilter = defineComponent({
|
|
16998
17002
|
}
|
16999
17003
|
return checked.some((str) => getRegExp(str, "img").test(matchText));
|
17000
17004
|
};
|
17001
|
-
const filterFn = typeof column.filter.filterFn === "function" ? (checked, row,
|
17005
|
+
const filterFn = typeof column.filter.filterFn === "function" ? (checked, row, index2, data2) => column.filter.filterFn(checked, row, props2.column, index2, data2) : (checked, row) => checked.length ? defaultFilterFn(checked, row) : true;
|
17002
17006
|
const handleBtnSaveClick = () => {
|
17003
17007
|
handleFilterChange(true);
|
17004
17008
|
emit("filterSave", [...state.checked]);
|
@@ -17244,9 +17248,9 @@ var Settings = defineComponent({
|
|
17244
17248
|
checkAll.value = !checkAll.value;
|
17245
17249
|
const fields = localSettings.value.fields || props2.columns || [];
|
17246
17250
|
if (checkAll.value) {
|
17247
|
-
checkedFields.value = fields.map((item,
|
17251
|
+
checkedFields.value = fields.map((item, index2) => resolvePropVal(item, "field", [item, index2]));
|
17248
17252
|
} else {
|
17249
|
-
const readonlyFields = fields.filter((item) => item.disabled).map((item,
|
17253
|
+
const readonlyFields = fields.filter((item) => item.disabled).map((item, index2) => resolvePropVal(item, "field", [item, index2]));
|
17250
17254
|
checkedFields.value.splice(0, checkedFields.value.length, ...readonlyFields);
|
17251
17255
|
}
|
17252
17256
|
};
|
@@ -17256,7 +17260,7 @@ var Settings = defineComponent({
|
|
17256
17260
|
});
|
17257
17261
|
const sizeList = localSettings.value.sizeList || defaultSizeList;
|
17258
17262
|
const isFiledDisabled = computed(() => isLimit.value && (localSettings.value.limit ? localSettings.value.limit : 0) <= checkedFields.value.length);
|
17259
|
-
const isItemReadonly = (item,
|
17263
|
+
const isItemReadonly = (item, index2) => item.disabled || isFiledDisabled.value && !checkedFields.value.includes(resolvePropVal(item, "field", [item, index2]));
|
17260
17264
|
const handleSizeItemClick = (item) => {
|
17261
17265
|
activeSize.value = item.value;
|
17262
17266
|
activeHeight.value = item.height;
|
@@ -17274,12 +17278,12 @@ var Settings = defineComponent({
|
|
17274
17278
|
"onClick": () => handleSizeItemClick(item)
|
17275
17279
|
}, [item.label]));
|
17276
17280
|
const renderFields = computed(() => localSettings.value.fields || props2.columns || []);
|
17277
|
-
const indeterminate = computed(() => checkedFields.value.length > 0 && !renderFields.value.every((field,
|
17281
|
+
const indeterminate = computed(() => checkedFields.value.length > 0 && !renderFields.value.every((field, index2) => checkedFields.value.includes(resolvePropVal(field, "field", [field, index2]))));
|
17278
17282
|
watch(() => [checkedFields.value], () => {
|
17279
17283
|
if (!checkedFields.value.length) {
|
17280
17284
|
checkAll.value = false;
|
17281
17285
|
}
|
17282
|
-
if (checkedFields.value.length && renderFields.value.every((field,
|
17286
|
+
if (checkedFields.value.length && renderFields.value.every((field, index2) => checkedFields.value.includes(resolvePropVal(field, "field", [field, index2])))) {
|
17283
17287
|
checkAll.value = true;
|
17284
17288
|
}
|
17285
17289
|
}, {
|
@@ -17338,15 +17342,15 @@ var Settings = defineComponent({
|
|
17338
17342
|
"class": "setting-body-fields",
|
17339
17343
|
"modelValue": checkedFields.value,
|
17340
17344
|
"onUpdate:modelValue": ($event) => checkedFields.value = $event
|
17341
|
-
}, _isSlot$2(_slot2 = renderFields.value.map((item,
|
17345
|
+
}, _isSlot$2(_slot2 = renderFields.value.map((item, index2) => {
|
17342
17346
|
let _slot;
|
17343
17347
|
return createVNode("div", {
|
17344
17348
|
"class": "field-item"
|
17345
17349
|
}, [createVNode(BkCheckbox, {
|
17346
|
-
"label": resolvePropVal(item, "field", [item,
|
17347
|
-
"checked": checkedFields.value.includes(resolvePropVal(item, "field", [item,
|
17348
|
-
"disabled": isItemReadonly(item,
|
17349
|
-
}, _isSlot$2(_slot = resolvePropVal(item, "label", [item,
|
17350
|
+
"label": resolvePropVal(item, "field", [item, index2]),
|
17351
|
+
"checked": checkedFields.value.includes(resolvePropVal(item, "field", [item, index2])),
|
17352
|
+
"disabled": isItemReadonly(item, index2)
|
17353
|
+
}, _isSlot$2(_slot = resolvePropVal(item, "label", [item, index2])) ? _slot : {
|
17350
17354
|
default: () => [_slot]
|
17351
17355
|
})]);
|
17352
17356
|
})) ? _slot2 : {
|
@@ -17381,12 +17385,12 @@ var useFixedColumn = (props2, colgroups, hasScrollY) => {
|
|
17381
17385
|
});
|
17382
17386
|
const resolveFixColPos = (column) => column.fixed === "right" ? "right" : "left";
|
17383
17387
|
const resolveFixOffset = {
|
17384
|
-
left: (ignoreFirst = true) => colgroups.filter((col) => col.fixed && col.fixed !== "right").reduce((offset2, curr,
|
17385
|
-
const outOffset = ignoreFirst &&
|
17388
|
+
left: (ignoreFirst = true) => colgroups.filter((col) => col.fixed && col.fixed !== "right").reduce((offset2, curr, index2) => {
|
17389
|
+
const outOffset = ignoreFirst && index2 === 0 ? offset2 : offset2 + getColumnReactWidth(curr);
|
17386
17390
|
return outOffset;
|
17387
17391
|
}, 0),
|
17388
|
-
right: (ignoreFirst = true) => colgroups.filter((col) => col.fixed === "right").reduce((offset2, curr,
|
17389
|
-
const outOffset = ignoreFirst &&
|
17392
|
+
right: (ignoreFirst = true) => colgroups.filter((col) => col.fixed === "right").reduce((offset2, curr, index2) => {
|
17393
|
+
const outOffset = ignoreFirst && index2 === 0 ? offset2 : offset2 + getColumnReactWidth(curr);
|
17390
17394
|
return outOffset;
|
17391
17395
|
}, hasScrollY ? SCROLLY_WIDTH : 0)
|
17392
17396
|
};
|
@@ -17563,31 +17567,31 @@ class TableRender {
|
|
17563
17567
|
});
|
17564
17568
|
this.context.emit(EMITEVENTS.PAGE_VALUE_CHANGE, current);
|
17565
17569
|
}
|
17566
|
-
setColumnActive(
|
17567
|
-
const col = this.propActiveCols.find((item) => item.index ===
|
17570
|
+
setColumnActive(index2, single = false) {
|
17571
|
+
const col = this.propActiveCols.find((item) => item.index === index2);
|
17568
17572
|
Object.assign(col, {
|
17569
17573
|
active: !col.active
|
17570
17574
|
});
|
17571
17575
|
if (single) {
|
17572
|
-
this.propActiveCols.filter((item) => item.index !==
|
17576
|
+
this.propActiveCols.filter((item) => item.index !== index2 && item.active).forEach((col2) => {
|
17573
17577
|
Object.assign(col2, {
|
17574
17578
|
active: false
|
17575
17579
|
});
|
17576
17580
|
});
|
17577
17581
|
}
|
17578
17582
|
}
|
17579
|
-
handleColumnHeadClick(
|
17583
|
+
handleColumnHeadClick(index2) {
|
17580
17584
|
if (this.props.columnPick !== "disabled") {
|
17581
|
-
this.setColumnActive(
|
17585
|
+
this.setColumnActive(index2, this.props.columnPick === "single");
|
17582
17586
|
this.context.emit(EMITEVENTS.COLUMN_PICK, this.propActiveCols);
|
17583
17587
|
}
|
17584
17588
|
}
|
17585
|
-
getSortCell(column,
|
17589
|
+
getSortCell(column, index2) {
|
17586
17590
|
const hanldeSortClick = (sortFn, type) => {
|
17587
17591
|
this.emitEvent(EVENTS$1.ON_SORT_BY_CLICK, [{
|
17588
17592
|
sortFn,
|
17589
17593
|
column,
|
17590
|
-
index,
|
17594
|
+
index: index2,
|
17591
17595
|
type
|
17592
17596
|
}]);
|
17593
17597
|
};
|
@@ -17596,14 +17600,14 @@ class TableRender {
|
|
17596
17600
|
"onChange": hanldeSortClick
|
17597
17601
|
}, null);
|
17598
17602
|
}
|
17599
|
-
getFilterCell(column,
|
17603
|
+
getFilterCell(column, index2) {
|
17600
17604
|
const handleFilterChange = (checked, filterFn) => {
|
17601
|
-
const filterFn0 = (row,
|
17605
|
+
const filterFn0 = (row, index3) => filterFn(checked, row, index3);
|
17602
17606
|
this.emitEvent(EVENTS$1.ON_FILTER_CLICK, [{
|
17603
17607
|
filterFn: filterFn0,
|
17604
17608
|
checked,
|
17605
17609
|
column,
|
17606
|
-
index
|
17610
|
+
index: index2
|
17607
17611
|
}]);
|
17608
17612
|
};
|
17609
17613
|
const filterSave = (values) => {
|
@@ -17627,19 +17631,19 @@ class TableRender {
|
|
17627
17631
|
const rowStyle = {
|
17628
17632
|
"--row-height": `${resolvePropVal(config, "height", ["thead"])}px`
|
17629
17633
|
};
|
17630
|
-
const renderHeadCell = (column,
|
17634
|
+
const renderHeadCell = (column, index2) => {
|
17631
17635
|
const cells = [];
|
17632
17636
|
if (column.sort) {
|
17633
|
-
cells.push(this.getSortCell(column,
|
17637
|
+
cells.push(this.getSortCell(column, index2));
|
17634
17638
|
}
|
17635
17639
|
if (column.filter) {
|
17636
|
-
cells.push(this.getFilterCell(column,
|
17640
|
+
cells.push(this.getFilterCell(column, index2));
|
17637
17641
|
}
|
17638
17642
|
if (typeof cellFn === "function") {
|
17639
|
-
cells.unshift(cellFn(column,
|
17643
|
+
cells.unshift(cellFn(column, index2));
|
17640
17644
|
return cells;
|
17641
17645
|
}
|
17642
|
-
cells.unshift(resolvePropVal(column, "label", [column,
|
17646
|
+
cells.unshift(resolvePropVal(column, "label", [column, index2]));
|
17643
17647
|
return cells;
|
17644
17648
|
};
|
17645
17649
|
const resolveEventListener = (col) => Array.from(col.listeners.keys()).reduce((handle, key2) => {
|
@@ -17660,15 +17664,15 @@ class TableRender {
|
|
17660
17664
|
return createVNode("thead", {
|
17661
17665
|
"style": rowStyle
|
17662
17666
|
}, [createVNode(TableRow, null, {
|
17663
|
-
default: () => [createVNode("tr", null, [this.filterColgroups.map((column,
|
17667
|
+
default: () => [createVNode("tr", null, [this.filterColgroups.map((column, index2) => {
|
17664
17668
|
let _slot;
|
17665
17669
|
return createVNode("th", mergeProps({
|
17666
17670
|
"colspan": 1,
|
17667
17671
|
"rowspan": 1,
|
17668
|
-
"class": this.getHeadColumnClass(column,
|
17672
|
+
"class": this.getHeadColumnClass(column, index2),
|
17669
17673
|
"style": resolveFixedColumnStyle(column, fixedOffset),
|
17670
|
-
"onClick": () => this.handleColumnHeadClick(
|
17671
|
-
}, resolveEventListener(column)), [createVNode(TableCell, null, _isSlot$1(_slot = renderHeadCell(column,
|
17674
|
+
"onClick": () => this.handleColumnHeadClick(index2)
|
17675
|
+
}, resolveEventListener(column)), [createVNode(TableCell, null, _isSlot$1(_slot = renderHeadCell(column, index2)) ? _slot : {
|
17672
17676
|
default: () => [_slot]
|
17673
17677
|
})]);
|
17674
17678
|
})])]
|
@@ -17696,17 +17700,17 @@ class TableRender {
|
|
17696
17700
|
"class": rowClass,
|
17697
17701
|
"onClick": (e) => this.handleRowClick(e, row, rowIndex, rows),
|
17698
17702
|
"onDblclick": (e) => this.handleRowDblClick(e, row, rowIndex, rows)
|
17699
|
-
}, [this.filterColgroups.map((column,
|
17703
|
+
}, [this.filterColgroups.map((column, index2) => {
|
17700
17704
|
let _slot2;
|
17701
|
-
const cellStyle = [resolveFixedColumnStyle(column, fixedOffset), ...formatPropAsArray(this.props.cellStyle, [column,
|
17702
|
-
const cellClass = [this.getColumnClass(column,
|
17705
|
+
const cellStyle = [resolveFixedColumnStyle(column, fixedOffset), ...formatPropAsArray(this.props.cellStyle, [column, index2, row, rowIndex, this])];
|
17706
|
+
const cellClass = [this.getColumnClass(column, index2), ...formatPropAsArray(this.props.cellClass, [column, index2, row, rowIndex, this]), {
|
17703
17707
|
"expand-row": row[TABLE_ROW_ATTRIBUTE.ROW_EXPAND]
|
17704
17708
|
}];
|
17705
17709
|
const tdCtxClass = {
|
17706
17710
|
cell: true,
|
17707
17711
|
"expand-cell": column.type === "expand"
|
17708
17712
|
};
|
17709
|
-
const cellKey = `__CELL_${rowIndex}_${
|
17713
|
+
const cellKey = `__CELL_${rowIndex}_${index2}`;
|
17710
17714
|
return createVNode("td", {
|
17711
17715
|
"class": cellClass,
|
17712
17716
|
"style": cellStyle,
|
@@ -17748,42 +17752,42 @@ class TableRender {
|
|
17748
17752
|
});
|
17749
17753
|
}
|
17750
17754
|
}
|
17751
|
-
handleRowClick(e, row,
|
17752
|
-
this.context.emit(EMITEVENTS.ROW_CLICK, e, row,
|
17755
|
+
handleRowClick(e, row, index2, rows) {
|
17756
|
+
this.context.emit(EMITEVENTS.ROW_CLICK, e, row, index2, rows, this);
|
17753
17757
|
}
|
17754
|
-
handleRowDblClick(e, row,
|
17755
|
-
this.context.emit(EMITEVENTS.ROW_DBL_CLICK, e, row,
|
17758
|
+
handleRowDblClick(e, row, index2, rows) {
|
17759
|
+
this.context.emit(EMITEVENTS.ROW_DBL_CLICK, e, row, index2, rows, this);
|
17756
17760
|
}
|
17757
17761
|
getExpandCell(row) {
|
17758
17762
|
const isExpand = !!row[TABLE_ROW_ATTRIBUTE.ROW_EXPAND];
|
17759
17763
|
return isExpand ? createVNode(downShape, null, null) : createVNode(rightShape, null, null);
|
17760
17764
|
}
|
17761
|
-
handleRowExpandClick(row, column,
|
17765
|
+
handleRowExpandClick(row, column, index2, rows, e) {
|
17762
17766
|
this.emitEvent(EVENTS$1.ON_ROW_EXPAND_CLICK, [{
|
17763
17767
|
row,
|
17764
17768
|
column,
|
17765
|
-
index,
|
17769
|
+
index: index2,
|
17766
17770
|
rows,
|
17767
17771
|
e
|
17768
17772
|
}]);
|
17769
17773
|
}
|
17770
|
-
renderCell(row, column,
|
17774
|
+
renderCell(row, column, index2, rows) {
|
17771
17775
|
if (column.type === "expand") {
|
17772
17776
|
const renderExpandSlot = () => {
|
17773
17777
|
var _a, _b, _c;
|
17774
17778
|
if (typeof column.render === "function") {
|
17775
|
-
return column.render(null, row,
|
17779
|
+
return column.render(null, row, index2, rows);
|
17776
17780
|
}
|
17777
17781
|
return (_c = (_b = (_a = this.context.slots).expandCell) == null ? void 0 : _b.call(_a, {
|
17778
17782
|
row,
|
17779
17783
|
column,
|
17780
|
-
index,
|
17784
|
+
index: index2,
|
17781
17785
|
rows
|
17782
17786
|
})) != null ? _c : this.getExpandCell(row);
|
17783
17787
|
};
|
17784
17788
|
return createVNode("span", {
|
17785
17789
|
"class": "expand-btn-action",
|
17786
|
-
"onClick": (e) => this.handleRowExpandClick(row, column,
|
17790
|
+
"onClick": (e) => this.handleRowExpandClick(row, column, index2, rows, e)
|
17787
17791
|
}, [renderExpandSlot()]);
|
17788
17792
|
}
|
17789
17793
|
const cell = getRowText(row, resolvePropVal(column, "field", [column, row]), column);
|
@@ -17794,7 +17798,7 @@ class TableRender {
|
|
17794
17798
|
data: data2,
|
17795
17799
|
row,
|
17796
17800
|
column,
|
17797
|
-
index,
|
17801
|
+
index: index2,
|
17798
17802
|
rows
|
17799
17803
|
});
|
17800
17804
|
}
|
@@ -17804,9 +17808,9 @@ class TableRender {
|
|
17804
17808
|
return this.props.columnPick !== "disabled" && this.propActiveCols.some((col) => col.index === colIndex && col.active);
|
17805
17809
|
}
|
17806
17810
|
renderColGroup() {
|
17807
|
-
return createVNode("colgroup", null, [(this.filterColgroups || []).map((column,
|
17811
|
+
return createVNode("colgroup", null, [(this.filterColgroups || []).map((column, index2) => {
|
17808
17812
|
const colCls = classes({
|
17809
|
-
active: this.isColActive(
|
17813
|
+
active: this.isColActive(index2)
|
17810
17814
|
});
|
17811
17815
|
const width = `${resolveWidth(getColumnReactWidth(column))}`.replace(/px$/i, "");
|
17812
17816
|
return createVNode("col", {
|
@@ -17839,17 +17843,17 @@ var useActiveColumns = (props2) => {
|
|
17839
17843
|
};
|
17840
17844
|
}
|
17841
17845
|
const activeCols = reactive(resolveActiveColumns(props2));
|
17842
|
-
const getActiveColumns = () => (props2.columns || []).map((_column,
|
17843
|
-
index,
|
17844
|
-
active: activeCols.some((colIndex) => colIndex ===
|
17846
|
+
const getActiveColumns = () => (props2.columns || []).map((_column, index2) => ({
|
17847
|
+
index: index2,
|
17848
|
+
active: activeCols.some((colIndex) => colIndex === index2),
|
17845
17849
|
_column
|
17846
17850
|
}));
|
17847
17851
|
watchEffect(() => {
|
17848
17852
|
activeColumns = getActiveColumns();
|
17849
17853
|
const cols = resolveActiveColumns(props2);
|
17850
|
-
activeColumns.forEach((col,
|
17854
|
+
activeColumns.forEach((col, index2) => {
|
17851
17855
|
Object.assign(col, {
|
17852
|
-
active: cols.some((colIndex) => colIndex ===
|
17856
|
+
active: cols.some((colIndex) => colIndex === index2)
|
17853
17857
|
});
|
17854
17858
|
});
|
17855
17859
|
});
|
@@ -18143,10 +18147,10 @@ const useInit = (props2) => {
|
|
18143
18147
|
};
|
18144
18148
|
const indexData = reactive([]);
|
18145
18149
|
const initIndexData = (keepLocalAction = false) => {
|
18146
|
-
indexData.splice(0, indexData.length, ...props2.data.map((item,
|
18147
|
-
const rowId = getRowKey(item, props2,
|
18150
|
+
indexData.splice(0, indexData.length, ...props2.data.map((item, index2) => {
|
18151
|
+
const rowId = getRowKey(item, props2, index2);
|
18148
18152
|
return __spreadProps(__spreadValues({}, item), {
|
18149
|
-
[TABLE_ROW_ATTRIBUTE.ROW_INDEX]:
|
18153
|
+
[TABLE_ROW_ATTRIBUTE.ROW_INDEX]: index2,
|
18150
18154
|
[TABLE_ROW_ATTRIBUTE.ROW_UID]: rowId,
|
18151
18155
|
[TABLE_ROW_ATTRIBUTE.ROW_EXPAND]: keepLocalAction ? isRowExpand(rowId) : false
|
18152
18156
|
});
|
@@ -18249,7 +18253,7 @@ var Component$d = defineComponent({
|
|
18249
18253
|
const {
|
18250
18254
|
sortFn,
|
18251
18255
|
column,
|
18252
|
-
index,
|
18256
|
+
index: index2,
|
18253
18257
|
type
|
18254
18258
|
} = args;
|
18255
18259
|
if (typeof sortFn === "function") {
|
@@ -18260,7 +18264,7 @@ var Component$d = defineComponent({
|
|
18260
18264
|
}
|
18261
18265
|
ctx.emit(EMITEVENTS.COLUMN_SORT, {
|
18262
18266
|
column,
|
18263
|
-
index,
|
18267
|
+
index: index2,
|
18264
18268
|
type
|
18265
18269
|
});
|
18266
18270
|
}).on(EVENTS$1.ON_FILTER_CLICK, (args) => {
|
@@ -18269,7 +18273,7 @@ var Component$d = defineComponent({
|
|
18269
18273
|
filterFn,
|
18270
18274
|
checked,
|
18271
18275
|
column,
|
18272
|
-
index
|
18276
|
+
index: index2
|
18273
18277
|
} = args;
|
18274
18278
|
if (typeof filterFn === "function") {
|
18275
18279
|
columnFilterFn = filterFn;
|
@@ -18279,7 +18283,7 @@ var Component$d = defineComponent({
|
|
18279
18283
|
ctx.emit(EMITEVENTS.COLUMN_FILTER, {
|
18280
18284
|
checked,
|
18281
18285
|
column,
|
18282
|
-
index
|
18286
|
+
index: index2
|
18283
18287
|
});
|
18284
18288
|
}).on(EVENTS$1.ON_SETTING_CHANGE, (args) => {
|
18285
18289
|
const {
|
@@ -18303,14 +18307,14 @@ var Component$d = defineComponent({
|
|
18303
18307
|
const {
|
18304
18308
|
row,
|
18305
18309
|
column,
|
18306
|
-
index,
|
18310
|
+
index: index2,
|
18307
18311
|
rows,
|
18308
18312
|
e
|
18309
18313
|
} = args;
|
18310
18314
|
ctx.emit(EMITEVENTS.ROW_EXPAND_CLICK, {
|
18311
18315
|
row,
|
18312
18316
|
column,
|
18313
|
-
index,
|
18317
|
+
index: index2,
|
18314
18318
|
rows,
|
18315
18319
|
e
|
18316
18320
|
});
|
@@ -18777,8 +18781,8 @@ var Component$c = defineComponent({
|
|
18777
18781
|
const renderList = computed(() => {
|
18778
18782
|
if (props2.useGroup) {
|
18779
18783
|
const groupMap = {};
|
18780
|
-
pageState.curPageList.forEach((item,
|
18781
|
-
item.__index__ =
|
18784
|
+
pageState.curPageList.forEach((item, index2) => {
|
18785
|
+
item.__index__ = index2;
|
18782
18786
|
if (!groupMap[item.group.groupId]) {
|
18783
18787
|
groupMap[item.group.groupId] = {
|
18784
18788
|
id: item.group.groupId,
|
@@ -18841,7 +18845,7 @@ var Component$c = defineComponent({
|
|
18841
18845
|
}
|
18842
18846
|
initPage(filterData2);
|
18843
18847
|
};
|
18844
|
-
const activeClass = (data2,
|
18848
|
+
const activeClass = (data2, index2) => {
|
18845
18849
|
const style = {
|
18846
18850
|
"bk-selector-actived": false,
|
18847
18851
|
"bk-selector-selected": tagList.value.includes(data2[props2.saveKey])
|
@@ -18849,7 +18853,7 @@ var Component$c = defineComponent({
|
|
18849
18853
|
if (props2.useGroup) {
|
18850
18854
|
style["bk-selector-actived"] = data2.__index__ === state.focusItemIndex;
|
18851
18855
|
} else {
|
18852
|
-
style["bk-selector-actived"] =
|
18856
|
+
style["bk-selector-actived"] = index2 === state.focusItemIndex;
|
18853
18857
|
}
|
18854
18858
|
return style;
|
18855
18859
|
};
|
@@ -18869,10 +18873,10 @@ var Component$c = defineComponent({
|
|
18869
18873
|
return 0;
|
18870
18874
|
}
|
18871
18875
|
const childNodes = getSelectedTagNodes();
|
18872
|
-
const
|
18876
|
+
const index2 = childNodes.findIndex(({
|
18873
18877
|
id
|
18874
18878
|
}) => id === "tagInputItem");
|
18875
|
-
return
|
18879
|
+
return index2 >= 0 ? index2 : 0;
|
18876
18880
|
};
|
18877
18881
|
const swapElementPositions = (newNode, referenceNode, isNextElementSibling = false) => {
|
18878
18882
|
if (!referenceNode || !newNode)
|
@@ -18959,9 +18963,9 @@ var Component$c = defineComponent({
|
|
18959
18963
|
clearInput();
|
18960
18964
|
popoverProps.isShow = false;
|
18961
18965
|
};
|
18962
|
-
const handleTagRemove = (data2,
|
18966
|
+
const handleTagRemove = (data2, index2, e) => {
|
18963
18967
|
e == null ? void 0 : e.stopPropagation();
|
18964
|
-
removeTag(data2,
|
18968
|
+
removeTag(data2, index2);
|
18965
18969
|
clearInput();
|
18966
18970
|
handleChange("remove", data2);
|
18967
18971
|
tagInputRef.value.style.width = `${INPUT_MIN_WIDTH}px`;
|
@@ -19004,10 +19008,10 @@ var Component$c = defineComponent({
|
|
19004
19008
|
}
|
19005
19009
|
});
|
19006
19010
|
};
|
19007
|
-
const backspaceHandler = (
|
19011
|
+
const backspaceHandler = (index2, target) => {
|
19008
19012
|
const nodes = getSelectedTagNodes();
|
19009
|
-
swapElementPositions(tagInputItemRef.value, nodes[
|
19010
|
-
listState.selectedTagList.splice(
|
19013
|
+
swapElementPositions(tagInputItemRef.value, nodes[index2 - 1]);
|
19014
|
+
listState.selectedTagList.splice(index2 - 1, 1);
|
19011
19015
|
focusInputTrigger();
|
19012
19016
|
const isExistInit = formatList.some((item) => item === target[props2.saveKey]);
|
19013
19017
|
if ((props2.allowCreate && isExistInit || !props2.allowCreate) && !isSingleSelect.value) {
|
@@ -19120,7 +19124,7 @@ var Component$c = defineComponent({
|
|
19120
19124
|
let tags = valArr.map((value2) => value2[saveKey]);
|
19121
19125
|
if (tags.length) {
|
19122
19126
|
const nodes = getSelectedTagNodes();
|
19123
|
-
const
|
19127
|
+
const index2 = getTagInputItemSite();
|
19124
19128
|
const localInitData = listState.localList.map((data2) => data2[saveKey]);
|
19125
19129
|
tags = tags.filter((tag2) => {
|
19126
19130
|
const canSelected = (tag2 == null ? void 0 : tag2.trim()) && !tagList.value.includes(tag2);
|
@@ -19145,8 +19149,8 @@ var Component$c = defineComponent({
|
|
19145
19149
|
};
|
19146
19150
|
}) : listState.localList.filter((tag2) => tags.includes(tag2[saveKey]));
|
19147
19151
|
if (tags.length) {
|
19148
|
-
listState.selectedTagList.splice(
|
19149
|
-
swapElementPositions(tagInputItemRef.value, nodes[
|
19152
|
+
listState.selectedTagList.splice(index2, 0, ...localTags);
|
19153
|
+
swapElementPositions(tagInputItemRef.value, nodes[index2]);
|
19150
19154
|
tagInputRef.value.style.width = `${INPUT_MIN_WIDTH}px`;
|
19151
19155
|
listState.localList = listState.localList.filter((val) => !tags.includes(val[saveKey]));
|
19152
19156
|
handleChange("select");
|
@@ -19230,8 +19234,8 @@ var Component$c = defineComponent({
|
|
19230
19234
|
});
|
19231
19235
|
}
|
19232
19236
|
};
|
19233
|
-
const removeTag = (data2,
|
19234
|
-
listState.selectedTagList.splice(
|
19237
|
+
const removeTag = (data2, index2) => {
|
19238
|
+
listState.selectedTagList.splice(index2, 1);
|
19235
19239
|
const isExistInit = formatList.some((item) => item === data2[props2.saveKey]);
|
19236
19240
|
if ((props2.allowCreate && isExistInit || !props2.allowCreate) && !isSingleSelect.value) {
|
19237
19241
|
listState.localList.push(data2);
|
@@ -19275,10 +19279,10 @@ var Component$c = defineComponent({
|
|
19275
19279
|
"class": "group-name"
|
19276
19280
|
}, [group.name, createTextVNode(" ("), group.children.length, createTextVNode(")")]), createVNode("ul", {
|
19277
19281
|
"class": "bk-selector-group-list-item"
|
19278
|
-
}, [group.children.map((item,
|
19282
|
+
}, [group.children.map((item, index2) => createVNode("li", {
|
19279
19283
|
"class": ["bk-selector-list-item", {
|
19280
19284
|
disabled: item.disabled
|
19281
|
-
}, this.activeClass(item,
|
19285
|
+
}, this.activeClass(item, index2)],
|
19282
19286
|
"onClick": this.handleTagSelected.bind(this, item, "select")
|
19283
19287
|
}, [createVNode(ListTagRender, {
|
19284
19288
|
"node": item,
|
@@ -19288,10 +19292,10 @@ var Component$c = defineComponent({
|
|
19288
19292
|
"searchKeyword": this.curInputValue
|
19289
19293
|
}, null)]))])]));
|
19290
19294
|
}
|
19291
|
-
return this.renderList.map((item,
|
19295
|
+
return this.renderList.map((item, index2) => createVNode("li", {
|
19292
19296
|
"class": ["bk-selector-list-item", {
|
19293
19297
|
disabled: item.disabled
|
19294
|
-
}, this.activeClass(item,
|
19298
|
+
}, this.activeClass(item, index2)],
|
19295
19299
|
"onClick": this.handleTagSelected.bind(this, item, "select")
|
19296
19300
|
}, [createVNode(ListTagRender, {
|
19297
19301
|
"node": item,
|
@@ -19327,7 +19331,7 @@ var Component$c = defineComponent({
|
|
19327
19331
|
"style": {
|
19328
19332
|
marginLeft: `${this.leftSpace}px`
|
19329
19333
|
}
|
19330
|
-
}, [this.selectedTagList.map((item,
|
19334
|
+
}, [this.selectedTagList.map((item, index2) => {
|
19331
19335
|
const tooltips2 = {
|
19332
19336
|
boundary: "window",
|
19333
19337
|
theme: "light",
|
@@ -19344,7 +19348,7 @@ var Component$c = defineComponent({
|
|
19344
19348
|
"displayKey": this.displayKey
|
19345
19349
|
}, null), this.showTagClose ? createVNode(error, {
|
19346
19350
|
"class": "remove-tag",
|
19347
|
-
"onClick": this.handleTagRemove.bind(this, item,
|
19351
|
+
"onClick": this.handleTagRemove.bind(this, item, index2)
|
19348
19352
|
}, null) : null]), [[resolveDirective("bk-tooltips"), tooltips2]]);
|
19349
19353
|
}), withDirectives(createVNode("li", {
|
19350
19354
|
"ref": "tagInputItemRef",
|
@@ -19495,7 +19499,7 @@ var TabNav = defineComponent({
|
|
19495
19499
|
}
|
19496
19500
|
const list = [];
|
19497
19501
|
let hasFindActive = false;
|
19498
|
-
props2.panels.filter((item,
|
19502
|
+
props2.panels.filter((item, index2) => {
|
19499
19503
|
if (!item.props) {
|
19500
19504
|
return null;
|
19501
19505
|
}
|
@@ -19518,7 +19522,7 @@ var TabNav = defineComponent({
|
|
19518
19522
|
return h$1(item.slots.label);
|
19519
19523
|
}
|
19520
19524
|
if ([void 0, ""].includes(label2)) {
|
19521
|
-
return `\u9009\u9879\u5361${
|
19525
|
+
return `\u9009\u9879\u5361${index2 + 1}`;
|
19522
19526
|
}
|
19523
19527
|
if (typeof label2 === "string") {
|
19524
19528
|
return label2;
|
@@ -19551,17 +19555,17 @@ var TabNav = defineComponent({
|
|
19551
19555
|
handleTabAdd(e) {
|
19552
19556
|
props2.tabAdd(e);
|
19553
19557
|
},
|
19554
|
-
dragstart(
|
19555
|
-
dragStartIndex.value =
|
19558
|
+
dragstart(index2, $event) {
|
19559
|
+
dragStartIndex.value = index2;
|
19556
19560
|
draggingEle.value = props2.guid;
|
19557
19561
|
Object.assign($event.dataTransfer, {
|
19558
19562
|
effectAllowed: "move"
|
19559
19563
|
});
|
19560
|
-
props2.tabDrag(
|
19564
|
+
props2.tabDrag(index2, $event);
|
19561
19565
|
},
|
19562
|
-
dragenter(
|
19566
|
+
dragenter(index2) {
|
19563
19567
|
if (distinctRoots(draggingEle.value, props2.guid)) {
|
19564
|
-
dragenterIndex.value =
|
19568
|
+
dragenterIndex.value = index2;
|
19565
19569
|
}
|
19566
19570
|
},
|
19567
19571
|
dragend() {
|
@@ -19569,17 +19573,17 @@ var TabNav = defineComponent({
|
|
19569
19573
|
dragStartIndex.value = -1;
|
19570
19574
|
draggingEle.value = null;
|
19571
19575
|
},
|
19572
|
-
drop(
|
19576
|
+
drop(index2, sortType) {
|
19573
19577
|
if (!distinctRoots(draggingEle.value, props2.guid)) {
|
19574
19578
|
return false;
|
19575
19579
|
}
|
19576
|
-
props2.tabSort(dragStartIndex.value,
|
19580
|
+
props2.tabSort(dragStartIndex.value, index2, sortType);
|
19577
19581
|
},
|
19578
19582
|
handleTabChange(name) {
|
19579
19583
|
props2.tabChange(name);
|
19580
19584
|
},
|
19581
|
-
handleTabRemove(
|
19582
|
-
props2.tabRemove(
|
19585
|
+
handleTabRemove(index2, panel) {
|
19586
|
+
props2.tabRemove(index2, panel);
|
19583
19587
|
}
|
19584
19588
|
};
|
19585
19589
|
return __spreadProps(__spreadValues({}, methods), {
|
@@ -19603,7 +19607,7 @@ var TabNav = defineComponent({
|
|
19603
19607
|
dragend,
|
19604
19608
|
drop
|
19605
19609
|
} = this;
|
19606
|
-
const renderNavs = () => this.navs.map((item,
|
19610
|
+
const renderNavs = () => this.navs.map((item, index2) => {
|
19607
19611
|
if (!item) {
|
19608
19612
|
return null;
|
19609
19613
|
}
|
@@ -19627,10 +19631,10 @@ var TabNav = defineComponent({
|
|
19627
19631
|
"key": name,
|
19628
19632
|
"onClick": () => this.handleTabChange(name),
|
19629
19633
|
"draggable": getValue(item.sortable, sortable),
|
19630
|
-
"onDragstart": (e) => dragstart(
|
19634
|
+
"onDragstart": (e) => dragstart(index2, e),
|
19631
19635
|
"onDragenter": (e) => {
|
19632
19636
|
e.preventDefault();
|
19633
|
-
dragenter(
|
19637
|
+
dragenter(index2);
|
19634
19638
|
},
|
19635
19639
|
"onDragleave": (e) => {
|
19636
19640
|
e.preventDefault();
|
@@ -19644,12 +19648,12 @@ var TabNav = defineComponent({
|
|
19644
19648
|
},
|
19645
19649
|
"onDrop": (e) => {
|
19646
19650
|
e.preventDefault();
|
19647
|
-
drop(
|
19651
|
+
drop(index2, sortType);
|
19648
19652
|
},
|
19649
19653
|
"class": getNavItemClass()
|
19650
19654
|
}, [createVNode("div", null, [tabLabel]), getValue(item.closable, closable) && createVNode(close$1, {
|
19651
19655
|
"class": "bk-tab-header-item-close",
|
19652
|
-
"onClick": () => this.handleTabRemove(
|
19656
|
+
"onClick": () => this.handleTabRemove(index2, item)
|
19653
19657
|
}, null)]);
|
19654
19658
|
});
|
19655
19659
|
const renderSlot2 = () => {
|
@@ -19668,9 +19672,9 @@ var TabNav = defineComponent({
|
|
19668
19672
|
if (list.length) {
|
19669
19673
|
return createVNode("div", {
|
19670
19674
|
"class": "bk-tab-header-operation"
|
19671
|
-
}, [list.map((item,
|
19675
|
+
}, [list.map((item, index2) => createVNode("div", {
|
19672
19676
|
"class": "bk-tab-header-item",
|
19673
|
-
"key":
|
19677
|
+
"key": index2
|
19674
19678
|
}, [item]))]);
|
19675
19679
|
}
|
19676
19680
|
return null;
|
@@ -19766,9 +19770,9 @@ var Tab = defineComponent({
|
|
19766
19770
|
emit("tab-change", name);
|
19767
19771
|
emit("update:active", name);
|
19768
19772
|
},
|
19769
|
-
tabRemove(
|
19770
|
-
emit("remove",
|
19771
|
-
emit("remove-panel",
|
19773
|
+
tabRemove(index2, panel) {
|
19774
|
+
emit("remove", index2, panel);
|
19775
|
+
emit("remove-panel", index2, panel);
|
19772
19776
|
},
|
19773
19777
|
tabSort(dragTabIndex, dropTabIndex, sortType) {
|
19774
19778
|
const list = panels.value;
|
@@ -19938,9 +19942,9 @@ function close(id, position, spacing, userOnClose) {
|
|
19938
19942
|
userOnClose == null ? void 0 : userOnClose();
|
19939
19943
|
const verticalProperty = position.startsWith("top") ? "top" : "bottom";
|
19940
19944
|
let instanceIndex = -1;
|
19941
|
-
instances[position].forEach((item,
|
19945
|
+
instances[position].forEach((item, index2) => {
|
19942
19946
|
if (item.props.id === id) {
|
19943
|
-
instanceIndex =
|
19947
|
+
instanceIndex = index2;
|
19944
19948
|
}
|
19945
19949
|
});
|
19946
19950
|
const vm = instances[position][instanceIndex];
|
@@ -21429,8 +21433,8 @@ function buildLocalizeFn(args) {
|
|
21429
21433
|
var _width = options.width ? String(options.width) : args.defaultWidth;
|
21430
21434
|
valuesArray = args.values[_width] || args.values[_defaultWidth];
|
21431
21435
|
}
|
21432
|
-
var
|
21433
|
-
return valuesArray[
|
21436
|
+
var index2 = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
|
21437
|
+
return valuesArray[index2];
|
21434
21438
|
};
|
21435
21439
|
}
|
21436
21440
|
var eraValues = {
|
@@ -21695,8 +21699,8 @@ var match = {
|
|
21695
21699
|
defaultMatchWidth: "wide",
|
21696
21700
|
parsePatterns: parseQuarterPatterns,
|
21697
21701
|
defaultParseWidth: "any",
|
21698
|
-
valueCallback: function(
|
21699
|
-
return
|
21702
|
+
valueCallback: function(index2) {
|
21703
|
+
return index2 + 1;
|
21700
21704
|
}
|
21701
21705
|
}),
|
21702
21706
|
month: buildMatchFn({
|
@@ -22704,9 +22708,9 @@ function shorten(arr, sLen) {
|
|
22704
22708
|
}
|
22705
22709
|
function monthUpdate(arrName) {
|
22706
22710
|
return (d2, v2, i18n) => {
|
22707
|
-
const
|
22708
|
-
if (~
|
22709
|
-
d2.month =
|
22711
|
+
const index2 = i18n[arrName].indexOf(v2.charAt(0).toUpperCase() + v2.substr(1).toLowerCase());
|
22712
|
+
if (~index2) {
|
22713
|
+
d2.month = index2;
|
22710
22714
|
}
|
22711
22715
|
};
|
22712
22716
|
}
|
@@ -22925,13 +22929,13 @@ fecha.parse = (dateStr, format2, i18nSettings) => {
|
|
22925
22929
|
format2.replace(token, ($0) => {
|
22926
22930
|
if (parseFlags[$0]) {
|
22927
22931
|
const info2 = parseFlags[$0];
|
22928
|
-
const
|
22929
|
-
if (!~
|
22932
|
+
const index2 = dateStr.search(info2[0]);
|
22933
|
+
if (!~index2) {
|
22930
22934
|
isValid2 = false;
|
22931
22935
|
} else {
|
22932
22936
|
dateStr.replace(info2[0], (result) => {
|
22933
22937
|
info2[1](dateInfo, result, i18n);
|
22934
|
-
dateStr = dateStr.substr(
|
22938
|
+
dateStr = dateStr.substr(index2 + result.length);
|
22935
22939
|
return result;
|
22936
22940
|
});
|
22937
22941
|
}
|
@@ -23774,19 +23778,19 @@ var TimeSpinner = defineComponent({
|
|
23774
23778
|
emit("change", changes);
|
23775
23779
|
emit("pick-click");
|
23776
23780
|
}
|
23777
|
-
function scroll(type,
|
23781
|
+
function scroll(type, index2) {
|
23778
23782
|
const domRef = getDomRef(type);
|
23779
23783
|
const from = domRef.scrollTop;
|
23780
|
-
const to = 32 * getScrollIndex(type,
|
23784
|
+
const to = 32 * getScrollIndex(type, index2);
|
23781
23785
|
scrollTop(domRef, from, to, 500);
|
23782
23786
|
}
|
23783
|
-
function getScrollIndex(type,
|
23787
|
+
function getScrollIndex(type, index2) {
|
23784
23788
|
const t2 = firstUpperCase(type);
|
23785
23789
|
const disabled = props2[`disabled${t2}`];
|
23786
|
-
let ret =
|
23790
|
+
let ret = index2;
|
23787
23791
|
if (disabled.length && props2.hideDisabledOptions) {
|
23788
23792
|
let count = 0;
|
23789
|
-
disabled.forEach((item) => item <=
|
23793
|
+
disabled.forEach((item) => item <= index2 ? count += 1 : "");
|
23790
23794
|
ret -= count;
|
23791
23795
|
}
|
23792
23796
|
return ret;
|
@@ -24527,12 +24531,12 @@ var DateRangePanel = defineComponent({
|
|
24527
24531
|
changePanelDate(otherPanel, "Month", increment, false);
|
24528
24532
|
}
|
24529
24533
|
};
|
24530
|
-
const handleShortcutClick = (shortcut,
|
24534
|
+
const handleShortcutClick = (shortcut, index2) => {
|
24531
24535
|
if (!(shortcut == null ? void 0 : shortcut.value)) {
|
24532
24536
|
return false;
|
24533
24537
|
}
|
24534
24538
|
if (shortcut.onClick) {
|
24535
|
-
shortcut.onClick(shortcut,
|
24539
|
+
shortcut.onClick(shortcut, index2);
|
24536
24540
|
}
|
24537
24541
|
const value = typeof shortcut.value === "function" ? shortcut.value() : shortcut.value;
|
24538
24542
|
const [form2, to] = value;
|
@@ -24738,10 +24742,10 @@ var DateRangePanel = defineComponent({
|
|
24738
24742
|
"class": "bk-picker-panel-sidebar"
|
24739
24743
|
}, [this.$slots.shortcuts ? typeof this.$slots.shortcuts === "function" ? this.$slots.shortcuts() : this.$slots.shortcuts : this.shortcuts.length ? createVNode("div", {
|
24740
24744
|
"class": "bk-picker-panel-shortcuts"
|
24741
|
-
}, [this.shortcuts.map((item,
|
24742
|
-
"key":
|
24745
|
+
}, [this.shortcuts.map((item, index2) => createVNode("div", {
|
24746
|
+
"key": index2,
|
24743
24747
|
"class": "shortcuts-item",
|
24744
|
-
"onClick": () => this.handleShortcutClick(item,
|
24748
|
+
"onClick": () => this.handleShortcutClick(item, index2)
|
24745
24749
|
}, [item.text]))]) : ""]) : null]);
|
24746
24750
|
}
|
24747
24751
|
});
|
@@ -25931,8 +25935,8 @@ var Component$8 = defineComponent({
|
|
25931
25935
|
const handleItemClick = (itemKey, isLeft) => {
|
25932
25936
|
const from = isLeft ? selectList : selectedList;
|
25933
25937
|
const to = isLeft ? selectedList : selectList;
|
25934
|
-
const
|
25935
|
-
to.value.push(...from.value.splice(
|
25938
|
+
const index2 = from.value.findIndex((item) => item[settingCode.value] === itemKey);
|
25939
|
+
to.value.push(...from.value.splice(index2, 1));
|
25936
25940
|
handleEmitUpdateTargetList();
|
25937
25941
|
};
|
25938
25942
|
const handleEmitUpdateTargetList = () => {
|
@@ -26189,8 +26193,8 @@ var useNodeAttribute = (flatData, props2) => {
|
|
26189
26193
|
const getSourceNodeByPath = (path) => {
|
26190
26194
|
const paths = path.split("-");
|
26191
26195
|
return paths.reduce((pre, nodeIndex) => {
|
26192
|
-
const
|
26193
|
-
return Array.isArray(pre) ? pre[
|
26196
|
+
const index2 = Number(nodeIndex);
|
26197
|
+
return Array.isArray(pre) ? pre[index2] : pre[props2.children][index2];
|
26194
26198
|
}, props2.data);
|
26195
26199
|
};
|
26196
26200
|
const getChildNodes = (node) => {
|
@@ -26330,8 +26334,8 @@ const updateTreeNode = (path, treeData, childKey, nodekey, nodeValue) => {
|
|
26330
26334
|
const assignTreeNode = (path, treeData, childKey, assignVal) => {
|
26331
26335
|
const paths = path.split("-");
|
26332
26336
|
const targetNode = paths.reduce((pre, nodeIndex) => {
|
26333
|
-
const
|
26334
|
-
return Array.isArray(pre) ? pre[
|
26337
|
+
const index2 = Number(nodeIndex);
|
26338
|
+
return Array.isArray(pre) ? pre[index2] : pre[childKey][index2];
|
26335
26339
|
}, treeData);
|
26336
26340
|
Object.assign(targetNode, assignVal || {});
|
26337
26341
|
};
|
@@ -26683,9 +26687,9 @@ var useNodeAction = (props2, ctx, flatData, _renderData, schemaValues, initOptio
|
|
26683
26687
|
"--depth": dpth
|
26684
26688
|
});
|
26685
26689
|
const maxDeep = getNodeAttr2(node, NODE_ATTRIBUTES.DEPTH) + 1;
|
26686
|
-
return new Array(maxDeep).fill("").map((_2,
|
26690
|
+
return new Array(maxDeep).fill("").map((_2, index2) => index2).filter((depth) => filterNextNode(depth, node)).filter((depth) => depth > 0).map((index2) => createVNode("span", {
|
26687
26691
|
"class": "node-virtual-line",
|
26688
|
-
"style": getNodeLineStyle(maxDeep -
|
26692
|
+
"style": getNodeLineStyle(maxDeep - index2)
|
26689
26693
|
}, null));
|
26690
26694
|
};
|
26691
26695
|
const renderTreeNode = (item) => {
|
@@ -27073,14 +27077,14 @@ var useTreeInit = (props2) => {
|
|
27073
27077
|
const target = nextLoopEvents.get(key2);
|
27074
27078
|
if (Array.isArray(target)) {
|
27075
27079
|
const clearList = [];
|
27076
|
-
target.forEach((event,
|
27080
|
+
target.forEach((event, index2) => {
|
27077
27081
|
const result = executeFn(event);
|
27078
27082
|
if (result === "once") {
|
27079
|
-
clearList.unshift(
|
27083
|
+
clearList.unshift(index2);
|
27080
27084
|
}
|
27081
27085
|
});
|
27082
27086
|
if (clearList.length) {
|
27083
|
-
clearList.forEach((
|
27087
|
+
clearList.forEach((index2) => target.splice(index2, 1));
|
27084
27088
|
}
|
27085
27089
|
if (target.length === 0) {
|
27086
27090
|
nextLoopEvents.delete(key2);
|
@@ -28232,10 +28236,10 @@ var Component$6 = defineComponent({
|
|
28232
28236
|
emit("update:modelValue", []);
|
28233
28237
|
emit("clear", JSON.parse(JSON.stringify(props2.modelValue)));
|
28234
28238
|
};
|
28235
|
-
const removeTag = (value,
|
28239
|
+
const removeTag = (value, index2, e) => {
|
28236
28240
|
e.stopPropagation();
|
28237
28241
|
const current = JSON.parse(JSON.stringify(value));
|
28238
|
-
current.splice(
|
28242
|
+
current.splice(index2, 1);
|
28239
28243
|
updateValue(current);
|
28240
28244
|
};
|
28241
28245
|
const modelValueChangeHandler = (value, oldValue) => {
|
@@ -28292,13 +28296,13 @@ var Component$6 = defineComponent({
|
|
28292
28296
|
}
|
28293
28297
|
return createVNode("div", {
|
28294
28298
|
"class": "cascader-tag-list"
|
28295
|
-
}, [this.selectedTags.map((tag2,
|
28299
|
+
}, [this.selectedTags.map((tag2, index2) => createVNode("span", {
|
28296
28300
|
"class": "cascader-tag-item"
|
28297
28301
|
}, [createVNode("span", {
|
28298
28302
|
"class": "cascader-tag-item-name"
|
28299
28303
|
}, [tag2.text]), createVNode(error, {
|
28300
28304
|
"class": "bk-icon-clear-icon",
|
28301
|
-
"onClick": (e) => this.removeTag(this.modelValue,
|
28305
|
+
"onClick": (e) => this.removeTag(this.modelValue, index2, e)
|
28302
28306
|
}, null)]))]);
|
28303
28307
|
};
|
28304
28308
|
return createVNode("div", {
|
@@ -28759,7 +28763,7 @@ var Component$5 = defineComponent({
|
|
28759
28763
|
};
|
28760
28764
|
const valueChanged = () => {
|
28761
28765
|
if (props2.range) {
|
28762
|
-
return ![rangeMinValue.value, rangeMaxValue.value].every((item,
|
28766
|
+
return ![rangeMinValue.value, rangeMaxValue.value].every((item, index2) => item === oldValue.value[index2]);
|
28763
28767
|
}
|
28764
28768
|
return props2.modelValue !== oldValue.value;
|
28765
28769
|
};
|
@@ -28876,14 +28880,14 @@ var Component$5 = defineComponent({
|
|
28876
28880
|
disable: props2.disable
|
28877
28881
|
}],
|
28878
28882
|
"style": barStyle.value
|
28879
|
-
}, null), props2.showInterval ? intervals.value.map((interval,
|
28880
|
-
"key":
|
28883
|
+
}, null), props2.showInterval ? intervals.value.map((interval, index2) => createVNode("div", {
|
28884
|
+
"key": index2,
|
28881
28885
|
"class": ["bk-slider-interval", {
|
28882
28886
|
vertical: props2.vertical
|
28883
28887
|
}],
|
28884
28888
|
"style": getIntervalStyle(interval)
|
28885
|
-
}, null)) : void 0, props2.customContent ? customList.value.map((custom,
|
28886
|
-
"key":
|
28889
|
+
}, null)) : void 0, props2.customContent ? customList.value.map((custom, index2) => createVNode("div", {
|
28890
|
+
"key": index2,
|
28887
28891
|
"class": ["bk-slider-interval", {
|
28888
28892
|
vertical: props2.vertical
|
28889
28893
|
}],
|
@@ -28905,16 +28909,16 @@ var Component$5 = defineComponent({
|
|
28905
28909
|
}, [props2.formatterLabel(props2.maxValue)])];
|
28906
28910
|
}
|
28907
28911
|
if (props2.showIntervalLabel) {
|
28908
|
-
return intervalLabels.value.map((intervalLabel,
|
28912
|
+
return intervalLabels.value.map((intervalLabel, index2) => createVNode("div", {
|
28909
28913
|
"class": ["bk-slider-label", props2.vertical ? "vertical" : "horizontal"],
|
28910
|
-
"key":
|
28914
|
+
"key": index2,
|
28911
28915
|
"style": getIntervalStyle(intervalLabel.stepWidth)
|
28912
28916
|
}, [intervalLabel.stepLabel]));
|
28913
28917
|
}
|
28914
28918
|
if (props2.customContent) {
|
28915
|
-
return customList.value.map((item,
|
28919
|
+
return customList.value.map((item, index2) => createVNode("div", {
|
28916
28920
|
"class": ["bk-slider-label", props2.vertical ? "vertical" : "horizontal"],
|
28917
|
-
"key":
|
28921
|
+
"key": index2,
|
28918
28922
|
"style": getIntervalStyle(item.percent)
|
28919
28923
|
}, [item.label]));
|
28920
28924
|
}
|
@@ -29369,11 +29373,11 @@ var Component$2 = defineComponent({
|
|
29369
29373
|
defaultProcessList.value.splice(0, defaultProcessList.value.length, ...props2.list);
|
29370
29374
|
}
|
29371
29375
|
};
|
29372
|
-
const jumpTo = async (
|
29376
|
+
const jumpTo = async (index2) => {
|
29373
29377
|
try {
|
29374
|
-
if (props2.controllable &&
|
29375
|
-
emit("update:curProcess",
|
29376
|
-
emit("click",
|
29378
|
+
if (props2.controllable && index2 !== props2.curProcess) {
|
29379
|
+
emit("update:curProcess", index2);
|
29380
|
+
emit("click", index2);
|
29377
29381
|
}
|
29378
29382
|
} catch (e) {
|
29379
29383
|
console.warn(e);
|
@@ -29393,10 +29397,10 @@ var Component$2 = defineComponent({
|
|
29393
29397
|
}, `${processClsPrefix}`);
|
29394
29398
|
const isLoadingStatus = (item) => item.status === "loading";
|
29395
29399
|
const isErrorStatus = (item) => item.status === "error";
|
29396
|
-
const isDone = (
|
29400
|
+
const isDone = (index2) => this.curProcess >= index2 + 1 || this.defaultProcessList[index2].status === "done";
|
29397
29401
|
const isIcon = (item) => item.icon ? item.icon : "";
|
29398
|
-
const renderIcon = (
|
29399
|
-
if (
|
29402
|
+
const renderIcon = (index2, item) => {
|
29403
|
+
if (index2 === this.curProcess - 1 && isLoadingStatus(item)) {
|
29400
29404
|
return createVNode(circle, {
|
29401
29405
|
"class": "bk-icon bk-process-icon icon-loading"
|
29402
29406
|
}, null);
|
@@ -29406,7 +29410,7 @@ var Component$2 = defineComponent({
|
|
29406
29410
|
"class": "bk-process-icon"
|
29407
29411
|
}, null);
|
29408
29412
|
}
|
29409
|
-
if (isDone(
|
29413
|
+
if (isDone(index2)) {
|
29410
29414
|
return createVNode(done, {
|
29411
29415
|
"class": "bk-process-icon-done"
|
29412
29416
|
}, null);
|
@@ -29421,18 +29425,18 @@ var Component$2 = defineComponent({
|
|
29421
29425
|
"style": {
|
29422
29426
|
paddingBottom: `${this.paddingBottom}px`
|
29423
29427
|
}
|
29424
|
-
}, [this.defaultProcessList.map((item,
|
29428
|
+
}, [this.defaultProcessList.map((item, index2) => createVNode("li", {
|
29425
29429
|
"onClick": () => {
|
29426
|
-
this.jumpTo(
|
29430
|
+
this.jumpTo(index2 + 1);
|
29427
29431
|
},
|
29428
29432
|
"style": {
|
29429
29433
|
cursor: this.controllable ? "pointer" : ""
|
29430
29434
|
},
|
29431
29435
|
"class": {
|
29432
|
-
success: this.curProcess >=
|
29433
|
-
current: isLoadingStatus(item) &&
|
29436
|
+
success: this.curProcess >= index2 + 1,
|
29437
|
+
current: isLoadingStatus(item) && index2 === this.curProcess - 1
|
29434
29438
|
}
|
29435
|
-
}, [item[this.displayKey], renderIcon(
|
29439
|
+
}, [item[this.displayKey], renderIcon(index2, item)]))])]);
|
29436
29440
|
}
|
29437
29441
|
});
|
29438
29442
|
const BkSteps = withInstall(Component$2);
|
@@ -29605,9 +29609,9 @@ var UploadList = defineComponent({
|
|
29605
29609
|
}));
|
29606
29610
|
function formatSize(value) {
|
29607
29611
|
const uints = ["Bytes", "KB", "MB", "GB", "TB"];
|
29608
|
-
const
|
29609
|
-
const size = value / 1024 **
|
29610
|
-
return `${size.toFixed(2)}${uints[
|
29612
|
+
const index2 = Math.floor(Math.log(value) / Math.log(1024));
|
29613
|
+
const size = value / 1024 ** index2;
|
29614
|
+
return `${size.toFixed(2)}${uints[index2]}`;
|
29611
29615
|
}
|
29612
29616
|
function handleRemove(file, e) {
|
29613
29617
|
emit("remove", file, e);
|
@@ -30586,8 +30590,8 @@ const hashFile = (file, chunkSize) => new Promise((resolve, reject) => {
|
|
30586
30590
|
}).catch((err) => {
|
30587
30591
|
console.log(err);
|
30588
30592
|
});
|
30589
|
-
function buildFileId(
|
30590
|
-
return Date.now() +
|
30593
|
+
function buildFileId(index2) {
|
30594
|
+
return Date.now() + index2;
|
30591
30595
|
}
|
30592
30596
|
var useFileHandler = (props2, hooks) => {
|
30593
30597
|
const maxImgSize = computed(() => {
|
@@ -31496,7 +31500,7 @@ function parse(diffInput, config) {
|
|
31496
31500
|
var renameTo = /^rename to "?(.+)"?/;
|
31497
31501
|
var similarityIndex = /^similarity index (\d+)%/;
|
31498
31502
|
var dissimilarityIndex = /^dissimilarity index (\d+)%/;
|
31499
|
-
var
|
31503
|
+
var index2 = /^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/;
|
31500
31504
|
var binaryFiles = /^Binary files (.*) and (.*) differ/;
|
31501
31505
|
var binaryDiff = /^GIT binary patch/;
|
31502
31506
|
var combinedIndex = /^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/;
|
@@ -31706,7 +31710,7 @@ function parse(diffInput, config) {
|
|
31706
31710
|
currentFile.unchangedPercentage = parseInt(values[1], 10);
|
31707
31711
|
} else if (values = dissimilarityIndex.exec(line)) {
|
31708
31712
|
currentFile.changedPercentage = parseInt(values[1], 10);
|
31709
|
-
} else if (values =
|
31713
|
+
} else if (values = index2.exec(line)) {
|
31710
31714
|
currentFile.checksumBefore = values[1];
|
31711
31715
|
currentFile.checksumAfter = values[2];
|
31712
31716
|
values[3] && (currentFile.mode = values[3]);
|
@@ -32802,8 +32806,8 @@ var compiler = {};
|
|
32802
32806
|
seenTag = false;
|
32803
32807
|
lineStart = tokens.length;
|
32804
32808
|
}
|
32805
|
-
function changeDelimiters(text2,
|
32806
|
-
var close2 = "=" + ctag, closeIndex = text2.indexOf(close2,
|
32809
|
+
function changeDelimiters(text2, index2) {
|
32810
|
+
var close2 = "=" + ctag, closeIndex = text2.indexOf(close2, index2), delimiters2 = trim(text2.substring(text2.indexOf("=", index2) + 1, closeIndex)).split(" ");
|
32807
32811
|
otag = delimiters2[0];
|
32808
32812
|
ctag = delimiters2[delimiters2.length - 1];
|
32809
32813
|
return closeIndex + close2.length - 1;
|
@@ -32878,12 +32882,12 @@ var compiler = {};
|
|
32878
32882
|
}
|
32879
32883
|
return s2.replace(/^\s*|\s*$/g, "");
|
32880
32884
|
}
|
32881
|
-
function tagChange(tag2, text,
|
32882
|
-
if (text.charAt(
|
32885
|
+
function tagChange(tag2, text, index2) {
|
32886
|
+
if (text.charAt(index2) != tag2.charAt(0)) {
|
32883
32887
|
return false;
|
32884
32888
|
}
|
32885
32889
|
for (var i2 = 1, l2 = tag2.length; i2 < l2; i2++) {
|
32886
|
-
if (text.charAt(
|
32890
|
+
if (text.charAt(index2 + i2) != tag2.charAt(i2)) {
|
32887
32891
|
return false;
|
32888
32892
|
}
|
32889
32893
|
}
|
@@ -35067,45 +35071,45 @@ var RecommendColors = defineComponent({
|
|
35067
35071
|
deep: true
|
35068
35072
|
});
|
35069
35073
|
const colors = computed(() => getColorsFromRecommend(props2.recommend));
|
35070
|
-
const getColorClass = (color,
|
35074
|
+
const getColorClass = (color, index2) => classes({
|
35071
35075
|
"bk-color-picker-empty": color === "",
|
35072
|
-
"bk-color-picker-recommend-selected-color": isFocused.value && selectedIndex.value ===
|
35076
|
+
"bk-color-picker-recommend-selected-color": isFocused.value && selectedIndex.value === index2
|
35073
35077
|
}, "bk-color-picker-recommend-color");
|
35074
35078
|
const handleKeydown = (e) => {
|
35075
35079
|
if (e.code === "Tab") {
|
35076
35080
|
emit("tab", e);
|
35077
35081
|
} else {
|
35078
|
-
let
|
35082
|
+
let index2 = 0;
|
35079
35083
|
const rowNum = 10;
|
35080
35084
|
const max2 = colors.value.length - 1;
|
35081
35085
|
switch (e.code) {
|
35082
35086
|
case "ArrowLeft":
|
35083
35087
|
e.preventDefault();
|
35084
|
-
|
35088
|
+
index2 = clamp(selectedIndex.value - 1, 0, max2);
|
35085
35089
|
break;
|
35086
35090
|
case "ArrowRight":
|
35087
35091
|
e.preventDefault();
|
35088
|
-
|
35092
|
+
index2 = clamp(selectedIndex.value + 1, 0, max2);
|
35089
35093
|
break;
|
35090
35094
|
case "ArrowUp":
|
35091
35095
|
e.preventDefault();
|
35092
|
-
|
35096
|
+
index2 = clamp(selectedIndex.value - rowNum, 0, max2);
|
35093
35097
|
break;
|
35094
35098
|
case "ArrowDown":
|
35095
35099
|
e.preventDefault();
|
35096
|
-
|
35100
|
+
index2 = clamp(selectedIndex.value + rowNum, 0, max2);
|
35097
35101
|
break;
|
35098
35102
|
default:
|
35099
35103
|
return;
|
35100
35104
|
}
|
35101
|
-
selectColor(
|
35105
|
+
selectColor(index2);
|
35102
35106
|
}
|
35103
35107
|
};
|
35104
|
-
const selectColor = (
|
35105
|
-
const color = colors.value[
|
35108
|
+
const selectColor = (index2) => {
|
35109
|
+
const color = colors.value[index2];
|
35106
35110
|
emit("change", color);
|
35107
35111
|
nextTick(() => {
|
35108
|
-
selectedIndex.value =
|
35112
|
+
selectedIndex.value = index2;
|
35109
35113
|
selectedColor.value = color;
|
35110
35114
|
});
|
35111
35115
|
};
|
@@ -35123,11 +35127,11 @@ var RecommendColors = defineComponent({
|
|
35123
35127
|
"onFocus": () => isFocused.value = true,
|
35124
35128
|
"onBlur": () => isFocused.value = false,
|
35125
35129
|
"onKeydown": handleKeydown
|
35126
|
-
}, [colors.value.map((color,
|
35130
|
+
}, [colors.value.map((color, index2) => createVNode("div", {
|
35127
35131
|
"style": `background: ${color || "#fff"}`,
|
35128
|
-
"class": getColorClass(color,
|
35129
|
-
"onClick": () => selectColor(
|
35130
|
-
}, [selectedIndex.value ===
|
35132
|
+
"class": getColorClass(color, index2),
|
35133
|
+
"onClick": () => selectColor(index2)
|
35134
|
+
}, [selectedIndex.value === index2 ? createVNode("div", {
|
35131
35135
|
"class": "bk-color-picker-pointer"
|
35132
35136
|
}, [createVNode("div", {
|
35133
35137
|
"class": "bk-color-picker-circle"
|
@@ -35506,7 +35510,8 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
35506
35510
|
Upload,
|
35507
35511
|
CodeDiff: BkCodeDiff,
|
35508
35512
|
ColorPicker: BkColorPicker,
|
35509
|
-
TimePicker: BkTimePicker
|
35513
|
+
TimePicker: BkTimePicker,
|
35514
|
+
plugins: index
|
35510
35515
|
}, Symbol.toStringTag, { value: "Module" }));
|
35511
35516
|
const createInstall = (prefix = "Bk") => (app) => {
|
35512
35517
|
const pre = app.config.globalProperties.bkUIPrefix || prefix;
|
@@ -35524,4 +35529,4 @@ var preset = {
|
|
35524
35529
|
install: createInstall(),
|
35525
35530
|
version: "0.0.1"
|
35526
35531
|
};
|
35527
|
-
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 };
|
35532
|
+
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, index as plugins };
|