bkui-vue 0.0.1-beta.359 → 0.0.1-beta.360
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 +37 -37
- package/dist/index.esm.js +1395 -805
- package/dist/index.umd.js +36 -36
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/checkbox/checkbox.d.ts +16 -0
- package/lib/checkbox/index.d.ts +24 -1
- package/lib/checkbox/index.js +1 -1
- package/lib/dialog/dialog.d.ts +1 -1
- package/lib/dialog/index.d.ts +4 -4
- package/lib/divider/index.js +1 -1
- package/lib/form/form-item.d.ts +3 -10
- package/lib/form/form.d.ts +10 -3
- package/lib/form/index.d.ts +18 -12
- package/lib/form/index.js +1 -1
- package/lib/modal/index.d.ts +5 -5
- package/lib/modal/modal.d.ts +2 -2
- package/lib/plugin-popover/index.js +1 -1
- package/lib/popover/content.d.ts +8 -0
- package/lib/popover/index.d.ts +34 -1
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.d.ts +15 -0
- package/lib/popover/props.d.ts +9 -0
- package/lib/popover/use-popover-init.d.ts +1 -0
- package/lib/select/index.d.ts +18 -0
- package/lib/select/index.js +1 -1
- package/lib/select/select.d.ts +6 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/vue-types.d.ts +8 -0
- package/lib/sideslider/index.d.ts +5 -5
- package/lib/sideslider/sideslider.d.ts +2 -2
- package/lib/table/index.d.ts +11 -7
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +17 -5
- package/lib/table/plugins/head-filter.less +31 -14
- package/lib/table/plugins/head-filter.variable.css +17 -5
- package/lib/table/props.d.ts +6 -0
- package/lib/table/table.css +20 -5
- package/lib/table/table.d.ts +4 -2
- package/lib/table/table.less +3 -0
- package/lib/table/table.variable.css +20 -5
- package/lib/table/utils.d.ts +3 -2
- package/lib/table-column/index.js +1 -1
- package/lib/tag-input/index.d.ts +24 -0
- package/lib/tag-input/tag-input.d.ts +12 -0
- package/lib/tag-input/tag-props.d.ts +6 -0
- package/lib/virtual-render/index.d.ts +24 -1
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +5 -0
- package/lib/virtual-render/virtual-render.d.ts +11 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -1530,13 +1530,13 @@ function popperGenerator(generatorOptions) {
|
|
1530
1530
|
state.orderedModifiers.forEach(function(modifier) {
|
1531
1531
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
1532
1532
|
});
|
1533
|
-
for (var
|
1533
|
+
for (var index2 = 0; index2 < state.orderedModifiers.length; index2++) {
|
1534
1534
|
if (state.reset === true) {
|
1535
1535
|
state.reset = false;
|
1536
|
-
|
1536
|
+
index2 = -1;
|
1537
1537
|
continue;
|
1538
1538
|
}
|
1539
|
-
var _state$orderedModifie = state.orderedModifiers[
|
1539
|
+
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;
|
1540
1540
|
if (typeof fn2 === "function") {
|
1541
1541
|
state = fn2({
|
1542
1542
|
state,
|
@@ -2273,17 +2273,17 @@ var lodash = { exports: {} };
|
|
2273
2273
|
return func.apply(thisArg, args);
|
2274
2274
|
}
|
2275
2275
|
function arrayAggregator(array, setter, iteratee, accumulator) {
|
2276
|
-
var
|
2277
|
-
while (++
|
2278
|
-
var value = array[
|
2276
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
2277
|
+
while (++index2 < length) {
|
2278
|
+
var value = array[index2];
|
2279
2279
|
setter(accumulator, value, iteratee(value), array);
|
2280
2280
|
}
|
2281
2281
|
return accumulator;
|
2282
2282
|
}
|
2283
2283
|
function arrayEach(array, iteratee) {
|
2284
|
-
var
|
2285
|
-
while (++
|
2286
|
-
if (iteratee(array[
|
2284
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
2285
|
+
while (++index2 < length) {
|
2286
|
+
if (iteratee(array[index2], index2, array) === false) {
|
2287
2287
|
break;
|
2288
2288
|
}
|
2289
2289
|
}
|
@@ -2299,19 +2299,19 @@ var lodash = { exports: {} };
|
|
2299
2299
|
return array;
|
2300
2300
|
}
|
2301
2301
|
function arrayEvery(array, predicate) {
|
2302
|
-
var
|
2303
|
-
while (++
|
2304
|
-
if (!predicate(array[
|
2302
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
2303
|
+
while (++index2 < length) {
|
2304
|
+
if (!predicate(array[index2], index2, array)) {
|
2305
2305
|
return false;
|
2306
2306
|
}
|
2307
2307
|
}
|
2308
2308
|
return true;
|
2309
2309
|
}
|
2310
2310
|
function arrayFilter(array, predicate) {
|
2311
|
-
var
|
2312
|
-
while (++
|
2313
|
-
var value = array[
|
2314
|
-
if (predicate(value,
|
2311
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
2312
|
+
while (++index2 < length) {
|
2313
|
+
var value = array[index2];
|
2314
|
+
if (predicate(value, index2, array)) {
|
2315
2315
|
result[resIndex++] = value;
|
2316
2316
|
}
|
2317
2317
|
}
|
@@ -2322,35 +2322,35 @@ var lodash = { exports: {} };
|
|
2322
2322
|
return !!length && baseIndexOf(array, value, 0) > -1;
|
2323
2323
|
}
|
2324
2324
|
function arrayIncludesWith(array, value, comparator) {
|
2325
|
-
var
|
2326
|
-
while (++
|
2327
|
-
if (comparator(value, array[
|
2325
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
2326
|
+
while (++index2 < length) {
|
2327
|
+
if (comparator(value, array[index2])) {
|
2328
2328
|
return true;
|
2329
2329
|
}
|
2330
2330
|
}
|
2331
2331
|
return false;
|
2332
2332
|
}
|
2333
2333
|
function arrayMap(array, iteratee) {
|
2334
|
-
var
|
2335
|
-
while (++
|
2336
|
-
result[
|
2334
|
+
var index2 = -1, length = array == null ? 0 : array.length, result = Array(length);
|
2335
|
+
while (++index2 < length) {
|
2336
|
+
result[index2] = iteratee(array[index2], index2, array);
|
2337
2337
|
}
|
2338
2338
|
return result;
|
2339
2339
|
}
|
2340
2340
|
function arrayPush(array, values) {
|
2341
|
-
var
|
2342
|
-
while (++
|
2343
|
-
array[offset2 +
|
2341
|
+
var index2 = -1, length = values.length, offset2 = array.length;
|
2342
|
+
while (++index2 < length) {
|
2343
|
+
array[offset2 + index2] = values[index2];
|
2344
2344
|
}
|
2345
2345
|
return array;
|
2346
2346
|
}
|
2347
2347
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
2348
|
-
var
|
2348
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
2349
2349
|
if (initAccum && length) {
|
2350
|
-
accumulator = array[++
|
2350
|
+
accumulator = array[++index2];
|
2351
2351
|
}
|
2352
|
-
while (++
|
2353
|
-
accumulator = iteratee(accumulator, array[
|
2352
|
+
while (++index2 < length) {
|
2353
|
+
accumulator = iteratee(accumulator, array[index2], index2, array);
|
2354
2354
|
}
|
2355
2355
|
return accumulator;
|
2356
2356
|
}
|
@@ -2365,9 +2365,9 @@ var lodash = { exports: {} };
|
|
2365
2365
|
return accumulator;
|
2366
2366
|
}
|
2367
2367
|
function arraySome(array, predicate) {
|
2368
|
-
var
|
2369
|
-
while (++
|
2370
|
-
if (predicate(array[
|
2368
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
2369
|
+
while (++index2 < length) {
|
2370
|
+
if (predicate(array[index2], index2, array)) {
|
2371
2371
|
return true;
|
2372
2372
|
}
|
2373
2373
|
}
|
@@ -2391,10 +2391,10 @@ var lodash = { exports: {} };
|
|
2391
2391
|
return result;
|
2392
2392
|
}
|
2393
2393
|
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
2394
|
-
var length = array.length,
|
2395
|
-
while (fromRight ?
|
2396
|
-
if (predicate(array[
|
2397
|
-
return
|
2394
|
+
var length = array.length, index2 = fromIndex + (fromRight ? 1 : -1);
|
2395
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
2396
|
+
if (predicate(array[index2], index2, array)) {
|
2397
|
+
return index2;
|
2398
2398
|
}
|
2399
2399
|
}
|
2400
2400
|
return -1;
|
@@ -2403,10 +2403,10 @@ var lodash = { exports: {} };
|
|
2403
2403
|
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
2404
2404
|
}
|
2405
2405
|
function baseIndexOfWith(array, value, fromIndex, comparator) {
|
2406
|
-
var
|
2407
|
-
while (++
|
2408
|
-
if (comparator(array[
|
2409
|
-
return
|
2406
|
+
var index2 = fromIndex - 1, length = array.length;
|
2407
|
+
while (++index2 < length) {
|
2408
|
+
if (comparator(array[index2], value)) {
|
2409
|
+
return index2;
|
2410
2410
|
}
|
2411
2411
|
}
|
2412
2412
|
return -1;
|
@@ -2429,8 +2429,8 @@ var lodash = { exports: {} };
|
|
2429
2429
|
};
|
2430
2430
|
}
|
2431
2431
|
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
2432
|
-
eachFunc(collection, function(value,
|
2433
|
-
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value,
|
2432
|
+
eachFunc(collection, function(value, index2, collection2) {
|
2433
|
+
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index2, collection2);
|
2434
2434
|
});
|
2435
2435
|
return accumulator;
|
2436
2436
|
}
|
@@ -2443,9 +2443,9 @@ var lodash = { exports: {} };
|
|
2443
2443
|
return array;
|
2444
2444
|
}
|
2445
2445
|
function baseSum(array, iteratee) {
|
2446
|
-
var result,
|
2447
|
-
while (++
|
2448
|
-
var current = iteratee(array[
|
2446
|
+
var result, index2 = -1, length = array.length;
|
2447
|
+
while (++index2 < length) {
|
2448
|
+
var current = iteratee(array[index2]);
|
2449
2449
|
if (current !== undefined$1) {
|
2450
2450
|
result = result === undefined$1 ? current : result + current;
|
2451
2451
|
}
|
@@ -2453,9 +2453,9 @@ var lodash = { exports: {} };
|
|
2453
2453
|
return result;
|
2454
2454
|
}
|
2455
2455
|
function baseTimes(n2, iteratee) {
|
2456
|
-
var
|
2457
|
-
while (++
|
2458
|
-
result[
|
2456
|
+
var index2 = -1, result = Array(n2);
|
2457
|
+
while (++index2 < n2) {
|
2458
|
+
result[index2] = iteratee(index2);
|
2459
2459
|
}
|
2460
2460
|
return result;
|
2461
2461
|
}
|
@@ -2481,16 +2481,16 @@ var lodash = { exports: {} };
|
|
2481
2481
|
return cache.has(key2);
|
2482
2482
|
}
|
2483
2483
|
function charsStartIndex(strSymbols, chrSymbols) {
|
2484
|
-
var
|
2485
|
-
while (++
|
2484
|
+
var index2 = -1, length = strSymbols.length;
|
2485
|
+
while (++index2 < length && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) {
|
2486
2486
|
}
|
2487
|
-
return
|
2487
|
+
return index2;
|
2488
2488
|
}
|
2489
2489
|
function charsEndIndex(strSymbols, chrSymbols) {
|
2490
|
-
var
|
2491
|
-
while (
|
2490
|
+
var index2 = strSymbols.length;
|
2491
|
+
while (index2-- && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) {
|
2492
2492
|
}
|
2493
|
-
return
|
2493
|
+
return index2;
|
2494
2494
|
}
|
2495
2495
|
function countHolders(array, placeholder) {
|
2496
2496
|
var length = array.length, result = 0;
|
@@ -2523,9 +2523,9 @@ var lodash = { exports: {} };
|
|
2523
2523
|
return result;
|
2524
2524
|
}
|
2525
2525
|
function mapToArray(map) {
|
2526
|
-
var
|
2526
|
+
var index2 = -1, result = Array(map.size);
|
2527
2527
|
map.forEach(function(value, key2) {
|
2528
|
-
result[++
|
2528
|
+
result[++index2] = [key2, value];
|
2529
2529
|
});
|
2530
2530
|
return result;
|
2531
2531
|
}
|
@@ -2535,47 +2535,47 @@ var lodash = { exports: {} };
|
|
2535
2535
|
};
|
2536
2536
|
}
|
2537
2537
|
function replaceHolders(array, placeholder) {
|
2538
|
-
var
|
2539
|
-
while (++
|
2540
|
-
var value = array[
|
2538
|
+
var index2 = -1, length = array.length, resIndex = 0, result = [];
|
2539
|
+
while (++index2 < length) {
|
2540
|
+
var value = array[index2];
|
2541
2541
|
if (value === placeholder || value === PLACEHOLDER) {
|
2542
|
-
array[
|
2543
|
-
result[resIndex++] =
|
2542
|
+
array[index2] = PLACEHOLDER;
|
2543
|
+
result[resIndex++] = index2;
|
2544
2544
|
}
|
2545
2545
|
}
|
2546
2546
|
return result;
|
2547
2547
|
}
|
2548
2548
|
function setToArray(set) {
|
2549
|
-
var
|
2549
|
+
var index2 = -1, result = Array(set.size);
|
2550
2550
|
set.forEach(function(value) {
|
2551
|
-
result[++
|
2551
|
+
result[++index2] = value;
|
2552
2552
|
});
|
2553
2553
|
return result;
|
2554
2554
|
}
|
2555
2555
|
function setToPairs(set) {
|
2556
|
-
var
|
2556
|
+
var index2 = -1, result = Array(set.size);
|
2557
2557
|
set.forEach(function(value) {
|
2558
|
-
result[++
|
2558
|
+
result[++index2] = [value, value];
|
2559
2559
|
});
|
2560
2560
|
return result;
|
2561
2561
|
}
|
2562
2562
|
function strictIndexOf(array, value, fromIndex) {
|
2563
|
-
var
|
2564
|
-
while (++
|
2565
|
-
if (array[
|
2566
|
-
return
|
2563
|
+
var index2 = fromIndex - 1, length = array.length;
|
2564
|
+
while (++index2 < length) {
|
2565
|
+
if (array[index2] === value) {
|
2566
|
+
return index2;
|
2567
2567
|
}
|
2568
2568
|
}
|
2569
2569
|
return -1;
|
2570
2570
|
}
|
2571
2571
|
function strictLastIndexOf(array, value, fromIndex) {
|
2572
|
-
var
|
2573
|
-
while (
|
2574
|
-
if (array[
|
2575
|
-
return
|
2572
|
+
var index2 = fromIndex + 1;
|
2573
|
+
while (index2--) {
|
2574
|
+
if (array[index2] === value) {
|
2575
|
+
return index2;
|
2576
2576
|
}
|
2577
2577
|
}
|
2578
|
-
return
|
2578
|
+
return index2;
|
2579
2579
|
}
|
2580
2580
|
function stringSize(string) {
|
2581
2581
|
return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
|
@@ -2584,10 +2584,10 @@ var lodash = { exports: {} };
|
|
2584
2584
|
return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
|
2585
2585
|
}
|
2586
2586
|
function trimmedEndIndex(string) {
|
2587
|
-
var
|
2588
|
-
while (
|
2587
|
+
var index2 = string.length;
|
2588
|
+
while (index2-- && reWhitespace2.test(string.charAt(index2))) {
|
2589
2589
|
}
|
2590
|
-
return
|
2590
|
+
return index2;
|
2591
2591
|
}
|
2592
2592
|
var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
|
2593
2593
|
function unicodeSize(string) {
|
@@ -2630,10 +2630,10 @@ var lodash = { exports: {} };
|
|
2630
2630
|
}();
|
2631
2631
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
2632
2632
|
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
2633
|
-
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"),
|
2634
|
-
var metaMap =
|
2633
|
+
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
2634
|
+
var metaMap = WeakMap2 && new WeakMap2();
|
2635
2635
|
var realNames = {};
|
2636
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(
|
2636
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
|
2637
2637
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
2638
2638
|
function lodash2(value) {
|
2639
2639
|
if (isObjectLike(value) && !isArray2(value) && !(value instanceof LazyWrapper)) {
|
@@ -2715,15 +2715,15 @@ var lodash = { exports: {} };
|
|
2715
2715
|
return result2;
|
2716
2716
|
}
|
2717
2717
|
function lazyValue() {
|
2718
|
-
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,
|
2718
|
+
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__);
|
2719
2719
|
if (!isArr || !isRight && arrLength == length && takeCount == length) {
|
2720
2720
|
return baseWrapperValue(array, this.__actions__);
|
2721
2721
|
}
|
2722
2722
|
var result2 = [];
|
2723
2723
|
outer:
|
2724
2724
|
while (length-- && resIndex < takeCount) {
|
2725
|
-
|
2726
|
-
var iterIndex = -1, value = array[
|
2725
|
+
index2 += dir;
|
2726
|
+
var iterIndex = -1, value = array[index2];
|
2727
2727
|
while (++iterIndex < iterLength) {
|
2728
2728
|
var data2 = iteratees[iterIndex], iteratee2 = data2.iteratee, type = data2.type, computed2 = iteratee2(value);
|
2729
2729
|
if (type == LAZY_MAP_FLAG) {
|
@@ -2743,10 +2743,10 @@ var lodash = { exports: {} };
|
|
2743
2743
|
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
|
2744
2744
|
LazyWrapper.prototype.constructor = LazyWrapper;
|
2745
2745
|
function Hash(entries) {
|
2746
|
-
var
|
2746
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
2747
2747
|
this.clear();
|
2748
|
-
while (++
|
2749
|
-
var entry = entries[
|
2748
|
+
while (++index2 < length) {
|
2749
|
+
var entry = entries[index2];
|
2750
2750
|
this.set(entry[0], entry[1]);
|
2751
2751
|
}
|
2752
2752
|
}
|
@@ -2783,10 +2783,10 @@ var lodash = { exports: {} };
|
|
2783
2783
|
Hash.prototype.has = hashHas;
|
2784
2784
|
Hash.prototype.set = hashSet;
|
2785
2785
|
function ListCache(entries) {
|
2786
|
-
var
|
2786
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
2787
2787
|
this.clear();
|
2788
|
-
while (++
|
2789
|
-
var entry = entries[
|
2788
|
+
while (++index2 < length) {
|
2789
|
+
var entry = entries[index2];
|
2790
2790
|
this.set(entry[0], entry[1]);
|
2791
2791
|
}
|
2792
2792
|
}
|
@@ -2795,33 +2795,33 @@ var lodash = { exports: {} };
|
|
2795
2795
|
this.size = 0;
|
2796
2796
|
}
|
2797
2797
|
function listCacheDelete(key2) {
|
2798
|
-
var data2 = this.__data__,
|
2799
|
-
if (
|
2798
|
+
var data2 = this.__data__, index2 = assocIndexOf(data2, key2);
|
2799
|
+
if (index2 < 0) {
|
2800
2800
|
return false;
|
2801
2801
|
}
|
2802
2802
|
var lastIndex = data2.length - 1;
|
2803
|
-
if (
|
2803
|
+
if (index2 == lastIndex) {
|
2804
2804
|
data2.pop();
|
2805
2805
|
} else {
|
2806
|
-
splice.call(data2,
|
2806
|
+
splice.call(data2, index2, 1);
|
2807
2807
|
}
|
2808
2808
|
--this.size;
|
2809
2809
|
return true;
|
2810
2810
|
}
|
2811
2811
|
function listCacheGet(key2) {
|
2812
|
-
var data2 = this.__data__,
|
2813
|
-
return
|
2812
|
+
var data2 = this.__data__, index2 = assocIndexOf(data2, key2);
|
2813
|
+
return index2 < 0 ? undefined$1 : data2[index2][1];
|
2814
2814
|
}
|
2815
2815
|
function listCacheHas(key2) {
|
2816
2816
|
return assocIndexOf(this.__data__, key2) > -1;
|
2817
2817
|
}
|
2818
2818
|
function listCacheSet(key2, value) {
|
2819
|
-
var data2 = this.__data__,
|
2820
|
-
if (
|
2819
|
+
var data2 = this.__data__, index2 = assocIndexOf(data2, key2);
|
2820
|
+
if (index2 < 0) {
|
2821
2821
|
++this.size;
|
2822
2822
|
data2.push([key2, value]);
|
2823
2823
|
} else {
|
2824
|
-
data2[
|
2824
|
+
data2[index2][1] = value;
|
2825
2825
|
}
|
2826
2826
|
return this;
|
2827
2827
|
}
|
@@ -2831,10 +2831,10 @@ var lodash = { exports: {} };
|
|
2831
2831
|
ListCache.prototype.has = listCacheHas;
|
2832
2832
|
ListCache.prototype.set = listCacheSet;
|
2833
2833
|
function MapCache(entries) {
|
2834
|
-
var
|
2834
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
2835
2835
|
this.clear();
|
2836
|
-
while (++
|
2837
|
-
var entry = entries[
|
2836
|
+
while (++index2 < length) {
|
2837
|
+
var entry = entries[index2];
|
2838
2838
|
this.set(entry[0], entry[1]);
|
2839
2839
|
}
|
2840
2840
|
}
|
@@ -2869,10 +2869,10 @@ var lodash = { exports: {} };
|
|
2869
2869
|
MapCache.prototype.has = mapCacheHas;
|
2870
2870
|
MapCache.prototype.set = mapCacheSet;
|
2871
2871
|
function SetCache(values2) {
|
2872
|
-
var
|
2872
|
+
var index2 = -1, length = values2 == null ? 0 : values2.length;
|
2873
2873
|
this.__data__ = new MapCache();
|
2874
|
-
while (++
|
2875
|
-
this.add(values2[
|
2874
|
+
while (++index2 < length) {
|
2875
|
+
this.add(values2[index2]);
|
2876
2876
|
}
|
2877
2877
|
}
|
2878
2878
|
function setCacheAdd(value) {
|
@@ -2987,9 +2987,9 @@ var lodash = { exports: {} };
|
|
2987
2987
|
}
|
2988
2988
|
}
|
2989
2989
|
function baseAt(object, paths) {
|
2990
|
-
var
|
2991
|
-
while (++
|
2992
|
-
result2[
|
2990
|
+
var index2 = -1, length = paths.length, result2 = Array2(length), skip = object == null;
|
2991
|
+
while (++index2 < length) {
|
2992
|
+
result2[index2] = skip ? undefined$1 : get(object, paths[index2]);
|
2993
2993
|
}
|
2994
2994
|
return result2;
|
2995
2995
|
}
|
@@ -3093,7 +3093,7 @@ var lodash = { exports: {} };
|
|
3093
3093
|
}, wait);
|
3094
3094
|
}
|
3095
3095
|
function baseDifference(array, values2, iteratee2, comparator) {
|
3096
|
-
var
|
3096
|
+
var index2 = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length;
|
3097
3097
|
if (!length) {
|
3098
3098
|
return result2;
|
3099
3099
|
}
|
@@ -3109,8 +3109,8 @@ var lodash = { exports: {} };
|
|
3109
3109
|
values2 = new SetCache(values2);
|
3110
3110
|
}
|
3111
3111
|
outer:
|
3112
|
-
while (++
|
3113
|
-
var value = array[
|
3112
|
+
while (++index2 < length) {
|
3113
|
+
var value = array[index2], computed2 = iteratee2 == null ? value : iteratee2(value);
|
3114
3114
|
value = comparator || value !== 0 ? value : 0;
|
3115
3115
|
if (isCommon && computed2 === computed2) {
|
3116
3116
|
var valuesIndex = valuesLength;
|
@@ -3130,16 +3130,16 @@ var lodash = { exports: {} };
|
|
3130
3130
|
var baseEachRight = createBaseEach(baseForOwnRight, true);
|
3131
3131
|
function baseEvery(collection, predicate) {
|
3132
3132
|
var result2 = true;
|
3133
|
-
baseEach(collection, function(value,
|
3134
|
-
result2 = !!predicate(value,
|
3133
|
+
baseEach(collection, function(value, index2, collection2) {
|
3134
|
+
result2 = !!predicate(value, index2, collection2);
|
3135
3135
|
return result2;
|
3136
3136
|
});
|
3137
3137
|
return result2;
|
3138
3138
|
}
|
3139
3139
|
function baseExtremum(array, iteratee2, comparator) {
|
3140
|
-
var
|
3141
|
-
while (++
|
3142
|
-
var value = array[
|
3140
|
+
var index2 = -1, length = array.length;
|
3141
|
+
while (++index2 < length) {
|
3142
|
+
var value = array[index2], current = iteratee2(value);
|
3143
3143
|
if (current != null && (computed2 === undefined$1 ? current === current && !isSymbol(current) : comparator(current, computed2))) {
|
3144
3144
|
var computed2 = current, result2 = value;
|
3145
3145
|
}
|
@@ -3164,19 +3164,19 @@ var lodash = { exports: {} };
|
|
3164
3164
|
}
|
3165
3165
|
function baseFilter(collection, predicate) {
|
3166
3166
|
var result2 = [];
|
3167
|
-
baseEach(collection, function(value,
|
3168
|
-
if (predicate(value,
|
3167
|
+
baseEach(collection, function(value, index2, collection2) {
|
3168
|
+
if (predicate(value, index2, collection2)) {
|
3169
3169
|
result2.push(value);
|
3170
3170
|
}
|
3171
3171
|
});
|
3172
3172
|
return result2;
|
3173
3173
|
}
|
3174
3174
|
function baseFlatten(array, depth, predicate, isStrict, result2) {
|
3175
|
-
var
|
3175
|
+
var index2 = -1, length = array.length;
|
3176
3176
|
predicate || (predicate = isFlattenable);
|
3177
3177
|
result2 || (result2 = []);
|
3178
|
-
while (++
|
3179
|
-
var value = array[
|
3178
|
+
while (++index2 < length) {
|
3179
|
+
var value = array[index2];
|
3180
3180
|
if (depth > 0 && predicate(value)) {
|
3181
3181
|
if (depth > 1) {
|
3182
3182
|
baseFlatten(value, depth - 1, predicate, isStrict, result2);
|
@@ -3204,11 +3204,11 @@ var lodash = { exports: {} };
|
|
3204
3204
|
}
|
3205
3205
|
function baseGet(object, path) {
|
3206
3206
|
path = castPath(path, object);
|
3207
|
-
var
|
3208
|
-
while (object != null &&
|
3209
|
-
object = object[toKey(path[
|
3207
|
+
var index2 = 0, length = path.length;
|
3208
|
+
while (object != null && index2 < length) {
|
3209
|
+
object = object[toKey(path[index2++])];
|
3210
3210
|
}
|
3211
|
-
return
|
3211
|
+
return index2 && index2 == length ? object : undefined$1;
|
3212
3212
|
}
|
3213
3213
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
3214
3214
|
var result2 = keysFunc(object);
|
@@ -3243,10 +3243,10 @@ var lodash = { exports: {} };
|
|
3243
3243
|
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1;
|
3244
3244
|
}
|
3245
3245
|
array = arrays[0];
|
3246
|
-
var
|
3246
|
+
var index2 = -1, seen = caches[0];
|
3247
3247
|
outer:
|
3248
|
-
while (++
|
3249
|
-
var value = array[
|
3248
|
+
while (++index2 < length && result2.length < maxLength) {
|
3249
|
+
var value = array[index2], computed2 = iteratee2 ? iteratee2(value) : value;
|
3250
3250
|
value = comparator || value !== 0 ? value : 0;
|
3251
3251
|
if (!(seen ? cacheHas(seen, computed2) : includes2(result2, computed2, comparator))) {
|
3252
3252
|
othIndex = othLength;
|
@@ -3328,19 +3328,19 @@ var lodash = { exports: {} };
|
|
3328
3328
|
return isObjectLike(value) && getTag(value) == mapTag;
|
3329
3329
|
}
|
3330
3330
|
function baseIsMatch(object, source, matchData, customizer) {
|
3331
|
-
var
|
3331
|
+
var index2 = matchData.length, length = index2, noCustomizer = !customizer;
|
3332
3332
|
if (object == null) {
|
3333
3333
|
return !length;
|
3334
3334
|
}
|
3335
3335
|
object = Object2(object);
|
3336
|
-
while (
|
3337
|
-
var data2 = matchData[
|
3336
|
+
while (index2--) {
|
3337
|
+
var data2 = matchData[index2];
|
3338
3338
|
if (noCustomizer && data2[2] ? data2[1] !== object[data2[0]] : !(data2[0] in object)) {
|
3339
3339
|
return false;
|
3340
3340
|
}
|
3341
3341
|
}
|
3342
|
-
while (++
|
3343
|
-
data2 = matchData[
|
3342
|
+
while (++index2 < length) {
|
3343
|
+
data2 = matchData[index2];
|
3344
3344
|
var key2 = data2[0], objValue = object[key2], srcValue = data2[1];
|
3345
3345
|
if (noCustomizer && data2[2]) {
|
3346
3346
|
if (objValue === undefined$1 && !(key2 in object)) {
|
@@ -3414,9 +3414,9 @@ var lodash = { exports: {} };
|
|
3414
3414
|
return value < other;
|
3415
3415
|
}
|
3416
3416
|
function baseMap(collection, iteratee2) {
|
3417
|
-
var
|
3417
|
+
var index2 = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
3418
3418
|
baseEach(collection, function(value, key2, collection2) {
|
3419
|
-
result2[++
|
3419
|
+
result2[++index2] = iteratee2(value, key2, collection2);
|
3420
3420
|
});
|
3421
3421
|
return result2;
|
3422
3422
|
}
|
@@ -3519,13 +3519,13 @@ var lodash = { exports: {} };
|
|
3519
3519
|
} else {
|
3520
3520
|
iteratees = [identity];
|
3521
3521
|
}
|
3522
|
-
var
|
3522
|
+
var index2 = -1;
|
3523
3523
|
iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
|
3524
3524
|
var result2 = baseMap(collection, function(value, key2, collection2) {
|
3525
3525
|
var criteria = arrayMap(iteratees, function(iteratee2) {
|
3526
3526
|
return iteratee2(value);
|
3527
3527
|
});
|
3528
|
-
return { "criteria": criteria, "index": ++
|
3528
|
+
return { "criteria": criteria, "index": ++index2, "value": value };
|
3529
3529
|
});
|
3530
3530
|
return baseSortBy(result2, function(object, other) {
|
3531
3531
|
return compareMultiple(object, other, orders);
|
@@ -3537,9 +3537,9 @@ var lodash = { exports: {} };
|
|
3537
3537
|
});
|
3538
3538
|
}
|
3539
3539
|
function basePickBy(object, paths, predicate) {
|
3540
|
-
var
|
3541
|
-
while (++
|
3542
|
-
var path = paths[
|
3540
|
+
var index2 = -1, length = paths.length, result2 = {};
|
3541
|
+
while (++index2 < length) {
|
3542
|
+
var path = paths[index2], value = baseGet(object, path);
|
3543
3543
|
if (predicate(value, path)) {
|
3544
3544
|
baseSet(result2, castPath(path, object), value);
|
3545
3545
|
}
|
@@ -3552,15 +3552,15 @@ var lodash = { exports: {} };
|
|
3552
3552
|
};
|
3553
3553
|
}
|
3554
3554
|
function basePullAll(array, values2, iteratee2, comparator) {
|
3555
|
-
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf,
|
3555
|
+
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index2 = -1, length = values2.length, seen = array;
|
3556
3556
|
if (array === values2) {
|
3557
3557
|
values2 = copyArray(values2);
|
3558
3558
|
}
|
3559
3559
|
if (iteratee2) {
|
3560
3560
|
seen = arrayMap(array, baseUnary(iteratee2));
|
3561
3561
|
}
|
3562
|
-
while (++
|
3563
|
-
var fromIndex = 0, value = values2[
|
3562
|
+
while (++index2 < length) {
|
3563
|
+
var fromIndex = 0, value = values2[index2], computed2 = iteratee2 ? iteratee2(value) : value;
|
3564
3564
|
while ((fromIndex = indexOf2(seen, computed2, fromIndex, comparator)) > -1) {
|
3565
3565
|
if (seen !== array) {
|
3566
3566
|
splice.call(seen, fromIndex, 1);
|
@@ -3573,13 +3573,13 @@ var lodash = { exports: {} };
|
|
3573
3573
|
function basePullAt(array, indexes) {
|
3574
3574
|
var length = array ? indexes.length : 0, lastIndex = length - 1;
|
3575
3575
|
while (length--) {
|
3576
|
-
var
|
3577
|
-
if (length == lastIndex ||
|
3578
|
-
var previous =
|
3579
|
-
if (isIndex(
|
3580
|
-
splice.call(array,
|
3576
|
+
var index2 = indexes[length];
|
3577
|
+
if (length == lastIndex || index2 !== previous) {
|
3578
|
+
var previous = index2;
|
3579
|
+
if (isIndex(index2)) {
|
3580
|
+
splice.call(array, index2, 1);
|
3581
3581
|
} else {
|
3582
|
-
baseUnset(array,
|
3582
|
+
baseUnset(array, index2);
|
3583
3583
|
}
|
3584
3584
|
}
|
3585
3585
|
}
|
@@ -3589,9 +3589,9 @@ var lodash = { exports: {} };
|
|
3589
3589
|
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
3590
3590
|
}
|
3591
3591
|
function baseRange(start2, end2, step, fromRight) {
|
3592
|
-
var
|
3592
|
+
var index2 = -1, length = nativeMax(nativeCeil((end2 - start2) / (step || 1)), 0), result2 = Array2(length);
|
3593
3593
|
while (length--) {
|
3594
|
-
result2[fromRight ? length : ++
|
3594
|
+
result2[fromRight ? length : ++index2] = start2;
|
3595
3595
|
start2 += step;
|
3596
3596
|
}
|
3597
3597
|
return result2;
|
@@ -3627,17 +3627,17 @@ var lodash = { exports: {} };
|
|
3627
3627
|
return object;
|
3628
3628
|
}
|
3629
3629
|
path = castPath(path, object);
|
3630
|
-
var
|
3631
|
-
while (nested != null && ++
|
3632
|
-
var key2 = toKey(path[
|
3630
|
+
var index2 = -1, length = path.length, lastIndex = length - 1, nested = object;
|
3631
|
+
while (nested != null && ++index2 < length) {
|
3632
|
+
var key2 = toKey(path[index2]), newValue = value;
|
3633
3633
|
if (key2 === "__proto__" || key2 === "constructor" || key2 === "prototype") {
|
3634
3634
|
return object;
|
3635
3635
|
}
|
3636
|
-
if (
|
3636
|
+
if (index2 != lastIndex) {
|
3637
3637
|
var objValue = nested[key2];
|
3638
3638
|
newValue = customizer ? customizer(objValue, key2, nested) : undefined$1;
|
3639
3639
|
if (newValue === undefined$1) {
|
3640
|
-
newValue = isObject2(objValue) ? objValue : isIndex(path[
|
3640
|
+
newValue = isObject2(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
|
3641
3641
|
}
|
3642
3642
|
}
|
3643
3643
|
assignValue(nested, key2, newValue);
|
@@ -3661,7 +3661,7 @@ var lodash = { exports: {} };
|
|
3661
3661
|
return shuffleSelf(values(collection));
|
3662
3662
|
}
|
3663
3663
|
function baseSlice(array, start2, end2) {
|
3664
|
-
var
|
3664
|
+
var index2 = -1, length = array.length;
|
3665
3665
|
if (start2 < 0) {
|
3666
3666
|
start2 = -start2 > length ? 0 : length + start2;
|
3667
3667
|
}
|
@@ -3672,15 +3672,15 @@ var lodash = { exports: {} };
|
|
3672
3672
|
length = start2 > end2 ? 0 : end2 - start2 >>> 0;
|
3673
3673
|
start2 >>>= 0;
|
3674
3674
|
var result2 = Array2(length);
|
3675
|
-
while (++
|
3676
|
-
result2[
|
3675
|
+
while (++index2 < length) {
|
3676
|
+
result2[index2] = array[index2 + start2];
|
3677
3677
|
}
|
3678
3678
|
return result2;
|
3679
3679
|
}
|
3680
3680
|
function baseSome(collection, predicate) {
|
3681
3681
|
var result2;
|
3682
|
-
baseEach(collection, function(value,
|
3683
|
-
result2 = predicate(value,
|
3682
|
+
baseEach(collection, function(value, index2, collection2) {
|
3683
|
+
result2 = predicate(value, index2, collection2);
|
3684
3684
|
return !result2;
|
3685
3685
|
});
|
3686
3686
|
return !!result2;
|
@@ -3731,10 +3731,10 @@ var lodash = { exports: {} };
|
|
3731
3731
|
return nativeMin(high, MAX_ARRAY_INDEX);
|
3732
3732
|
}
|
3733
3733
|
function baseSortedUniq(array, iteratee2) {
|
3734
|
-
var
|
3735
|
-
while (++
|
3736
|
-
var value = array[
|
3737
|
-
if (!
|
3734
|
+
var index2 = -1, length = array.length, resIndex = 0, result2 = [];
|
3735
|
+
while (++index2 < length) {
|
3736
|
+
var value = array[index2], computed2 = iteratee2 ? iteratee2(value) : value;
|
3737
|
+
if (!index2 || !eq(computed2, seen)) {
|
3738
3738
|
var seen = computed2;
|
3739
3739
|
result2[resIndex++] = value === 0 ? 0 : value;
|
3740
3740
|
}
|
@@ -3764,7 +3764,7 @@ var lodash = { exports: {} };
|
|
3764
3764
|
return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
|
3765
3765
|
}
|
3766
3766
|
function baseUniq(array, iteratee2, comparator) {
|
3767
|
-
var
|
3767
|
+
var index2 = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
|
3768
3768
|
if (comparator) {
|
3769
3769
|
isCommon = false;
|
3770
3770
|
includes2 = arrayIncludesWith;
|
@@ -3780,8 +3780,8 @@ var lodash = { exports: {} };
|
|
3780
3780
|
seen = iteratee2 ? [] : result2;
|
3781
3781
|
}
|
3782
3782
|
outer:
|
3783
|
-
while (++
|
3784
|
-
var value = array[
|
3783
|
+
while (++index2 < length) {
|
3784
|
+
var value = array[index2], computed2 = iteratee2 ? iteratee2(value) : value;
|
3785
3785
|
value = comparator || value !== 0 ? value : 0;
|
3786
3786
|
if (isCommon && computed2 === computed2) {
|
3787
3787
|
var seenIndex = seen.length;
|
@@ -3812,10 +3812,10 @@ var lodash = { exports: {} };
|
|
3812
3812
|
return baseSet(object, path, updater(baseGet(object, path)), customizer);
|
3813
3813
|
}
|
3814
3814
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
3815
|
-
var length = array.length,
|
3816
|
-
while ((fromRight ?
|
3815
|
+
var length = array.length, index2 = fromRight ? length : -1;
|
3816
|
+
while ((fromRight ? index2-- : ++index2 < length) && predicate(array[index2], index2, array)) {
|
3817
3817
|
}
|
3818
|
-
return isDrop ? baseSlice(array, fromRight ? 0 :
|
3818
|
+
return isDrop ? baseSlice(array, fromRight ? 0 : index2, fromRight ? index2 + 1 : length) : baseSlice(array, fromRight ? index2 + 1 : 0, fromRight ? length : index2);
|
3819
3819
|
}
|
3820
3820
|
function baseWrapperValue(value, actions) {
|
3821
3821
|
var result2 = value;
|
@@ -3831,22 +3831,22 @@ var lodash = { exports: {} };
|
|
3831
3831
|
if (length < 2) {
|
3832
3832
|
return length ? baseUniq(arrays[0]) : [];
|
3833
3833
|
}
|
3834
|
-
var
|
3835
|
-
while (++
|
3836
|
-
var array = arrays[
|
3834
|
+
var index2 = -1, result2 = Array2(length);
|
3835
|
+
while (++index2 < length) {
|
3836
|
+
var array = arrays[index2], othIndex = -1;
|
3837
3837
|
while (++othIndex < length) {
|
3838
|
-
if (othIndex !=
|
3839
|
-
result2[
|
3838
|
+
if (othIndex != index2) {
|
3839
|
+
result2[index2] = baseDifference(result2[index2] || array, arrays[othIndex], iteratee2, comparator);
|
3840
3840
|
}
|
3841
3841
|
}
|
3842
3842
|
}
|
3843
3843
|
return baseUniq(baseFlatten(result2, 1), iteratee2, comparator);
|
3844
3844
|
}
|
3845
3845
|
function baseZipObject(props2, values2, assignFunc) {
|
3846
|
-
var
|
3847
|
-
while (++
|
3848
|
-
var value =
|
3849
|
-
assignFunc(result2, props2[
|
3846
|
+
var index2 = -1, length = props2.length, valsLength = values2.length, result2 = {};
|
3847
|
+
while (++index2 < length) {
|
3848
|
+
var value = index2 < valsLength ? values2[index2] : undefined$1;
|
3849
|
+
assignFunc(result2, props2[index2], value);
|
3850
3850
|
}
|
3851
3851
|
return result2;
|
3852
3852
|
}
|
@@ -3914,14 +3914,14 @@ var lodash = { exports: {} };
|
|
3914
3914
|
return 0;
|
3915
3915
|
}
|
3916
3916
|
function compareMultiple(object, other, orders) {
|
3917
|
-
var
|
3918
|
-
while (++
|
3919
|
-
var result2 = compareAscending(objCriteria[
|
3917
|
+
var index2 = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
3918
|
+
while (++index2 < length) {
|
3919
|
+
var result2 = compareAscending(objCriteria[index2], othCriteria[index2]);
|
3920
3920
|
if (result2) {
|
3921
|
-
if (
|
3921
|
+
if (index2 >= ordersLength) {
|
3922
3922
|
return result2;
|
3923
3923
|
}
|
3924
|
-
var order2 = orders[
|
3924
|
+
var order2 = orders[index2];
|
3925
3925
|
return result2 * (order2 == "desc" ? -1 : 1);
|
3926
3926
|
}
|
3927
3927
|
}
|
@@ -3959,19 +3959,19 @@ var lodash = { exports: {} };
|
|
3959
3959
|
return result2;
|
3960
3960
|
}
|
3961
3961
|
function copyArray(source, array) {
|
3962
|
-
var
|
3962
|
+
var index2 = -1, length = source.length;
|
3963
3963
|
array || (array = Array2(length));
|
3964
|
-
while (++
|
3965
|
-
array[
|
3964
|
+
while (++index2 < length) {
|
3965
|
+
array[index2] = source[index2];
|
3966
3966
|
}
|
3967
3967
|
return array;
|
3968
3968
|
}
|
3969
3969
|
function copyObject(source, props2, object, customizer) {
|
3970
3970
|
var isNew = !object;
|
3971
3971
|
object || (object = {});
|
3972
|
-
var
|
3973
|
-
while (++
|
3974
|
-
var key2 = props2[
|
3972
|
+
var index2 = -1, length = props2.length;
|
3973
|
+
while (++index2 < length) {
|
3974
|
+
var key2 = props2[index2];
|
3975
3975
|
var newValue = customizer ? customizer(object[key2], source[key2], key2, object, source) : undefined$1;
|
3976
3976
|
if (newValue === undefined$1) {
|
3977
3977
|
newValue = source[key2];
|
@@ -3998,17 +3998,17 @@ var lodash = { exports: {} };
|
|
3998
3998
|
}
|
3999
3999
|
function createAssigner(assigner) {
|
4000
4000
|
return baseRest(function(object, sources) {
|
4001
|
-
var
|
4001
|
+
var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined$1, guard = length > 2 ? sources[2] : undefined$1;
|
4002
4002
|
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined$1;
|
4003
4003
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
4004
4004
|
customizer = length < 3 ? undefined$1 : customizer;
|
4005
4005
|
length = 1;
|
4006
4006
|
}
|
4007
4007
|
object = Object2(object);
|
4008
|
-
while (++
|
4009
|
-
var source = sources[
|
4008
|
+
while (++index2 < length) {
|
4009
|
+
var source = sources[index2];
|
4010
4010
|
if (source) {
|
4011
|
-
assigner(object, source,
|
4011
|
+
assigner(object, source, index2, customizer);
|
4012
4012
|
}
|
4013
4013
|
}
|
4014
4014
|
return object;
|
@@ -4022,9 +4022,9 @@ var lodash = { exports: {} };
|
|
4022
4022
|
if (!isArrayLike(collection)) {
|
4023
4023
|
return eachFunc(collection, iteratee2);
|
4024
4024
|
}
|
4025
|
-
var length = collection.length,
|
4026
|
-
while (fromRight ?
|
4027
|
-
if (iteratee2(iterable[
|
4025
|
+
var length = collection.length, index2 = fromRight ? length : -1, iterable = Object2(collection);
|
4026
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
4027
|
+
if (iteratee2(iterable[index2], index2, iterable) === false) {
|
4028
4028
|
break;
|
4029
4029
|
}
|
4030
4030
|
}
|
@@ -4033,9 +4033,9 @@ var lodash = { exports: {} };
|
|
4033
4033
|
}
|
4034
4034
|
function createBaseFor(fromRight) {
|
4035
4035
|
return function(object, iteratee2, keysFunc) {
|
4036
|
-
var
|
4036
|
+
var index2 = -1, iterable = Object2(object), props2 = keysFunc(object), length = props2.length;
|
4037
4037
|
while (length--) {
|
4038
|
-
var key2 = props2[fromRight ? length : ++
|
4038
|
+
var key2 = props2[fromRight ? length : ++index2];
|
4039
4039
|
if (iteratee2(iterable[key2], key2, iterable) === false) {
|
4040
4040
|
break;
|
4041
4041
|
}
|
@@ -4093,9 +4093,9 @@ var lodash = { exports: {} };
|
|
4093
4093
|
function createCurry(func, bitmask, arity) {
|
4094
4094
|
var Ctor = createCtor(func);
|
4095
4095
|
function wrapper() {
|
4096
|
-
var length = arguments.length, args = Array2(length),
|
4097
|
-
while (
|
4098
|
-
args[
|
4096
|
+
var length = arguments.length, args = Array2(length), index2 = length, placeholder = getHolder(wrapper);
|
4097
|
+
while (index2--) {
|
4098
|
+
args[index2] = arguments[index2];
|
4099
4099
|
}
|
4100
4100
|
var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder);
|
4101
4101
|
length -= holders.length;
|
@@ -4117,18 +4117,18 @@ var lodash = { exports: {} };
|
|
4117
4117
|
return iteratee2(iterable[key2], key2, iterable);
|
4118
4118
|
};
|
4119
4119
|
}
|
4120
|
-
var
|
4121
|
-
return
|
4120
|
+
var index2 = findIndexFunc(collection, predicate, fromIndex);
|
4121
|
+
return index2 > -1 ? iterable[iteratee2 ? collection[index2] : index2] : undefined$1;
|
4122
4122
|
};
|
4123
4123
|
}
|
4124
4124
|
function createFlow(fromRight) {
|
4125
4125
|
return flatRest(function(funcs) {
|
4126
|
-
var length = funcs.length,
|
4126
|
+
var length = funcs.length, index2 = length, prereq = LodashWrapper.prototype.thru;
|
4127
4127
|
if (fromRight) {
|
4128
4128
|
funcs.reverse();
|
4129
4129
|
}
|
4130
|
-
while (
|
4131
|
-
var func = funcs[
|
4130
|
+
while (index2--) {
|
4131
|
+
var func = funcs[index2];
|
4132
4132
|
if (typeof func != "function") {
|
4133
4133
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
4134
4134
|
}
|
@@ -4136,9 +4136,9 @@ var lodash = { exports: {} };
|
|
4136
4136
|
var wrapper = new LodashWrapper([], true);
|
4137
4137
|
}
|
4138
4138
|
}
|
4139
|
-
|
4140
|
-
while (++
|
4141
|
-
func = funcs[
|
4139
|
+
index2 = wrapper ? index2 : length;
|
4140
|
+
while (++index2 < length) {
|
4141
|
+
func = funcs[index2];
|
4142
4142
|
var funcName = getFuncName(func), data2 = funcName == "wrapper" ? getData(func) : undefined$1;
|
4143
4143
|
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) {
|
4144
4144
|
wrapper = wrapper[getFuncName(data2[0])].apply(wrapper, data2[3]);
|
@@ -4151,9 +4151,9 @@ var lodash = { exports: {} };
|
|
4151
4151
|
if (wrapper && args.length == 1 && isArray2(value)) {
|
4152
4152
|
return wrapper.plant(value).value();
|
4153
4153
|
}
|
4154
|
-
var
|
4155
|
-
while (++
|
4156
|
-
result2 = funcs[
|
4154
|
+
var index3 = 0, result2 = length ? funcs[index3].apply(this, args) : value;
|
4155
|
+
while (++index3 < length) {
|
4156
|
+
result2 = funcs[index3].call(this, result2);
|
4157
4157
|
}
|
4158
4158
|
return result2;
|
4159
4159
|
};
|
@@ -4162,9 +4162,9 @@ var lodash = { exports: {} };
|
|
4162
4162
|
function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
|
4163
4163
|
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);
|
4164
4164
|
function wrapper() {
|
4165
|
-
var length = arguments.length, args = Array2(length),
|
4166
|
-
while (
|
4167
|
-
args[
|
4165
|
+
var length = arguments.length, args = Array2(length), index2 = length;
|
4166
|
+
while (index2--) {
|
4167
|
+
args[index2] = arguments[index2];
|
4168
4168
|
}
|
4169
4169
|
if (isCurried) {
|
4170
4170
|
var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder);
|
@@ -4421,13 +4421,13 @@ var lodash = { exports: {} };
|
|
4421
4421
|
if (arrStacked && othStacked) {
|
4422
4422
|
return arrStacked == other && othStacked == array;
|
4423
4423
|
}
|
4424
|
-
var
|
4424
|
+
var index2 = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1;
|
4425
4425
|
stack.set(array, other);
|
4426
4426
|
stack.set(other, array);
|
4427
|
-
while (++
|
4428
|
-
var arrValue = array[
|
4427
|
+
while (++index2 < arrLength) {
|
4428
|
+
var arrValue = array[index2], othValue = other[index2];
|
4429
4429
|
if (customizer) {
|
4430
|
-
var compared = isPartial ? customizer(othValue, arrValue,
|
4430
|
+
var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack);
|
4431
4431
|
}
|
4432
4432
|
if (compared !== undefined$1) {
|
4433
4433
|
if (compared) {
|
@@ -4505,9 +4505,9 @@ var lodash = { exports: {} };
|
|
4505
4505
|
if (objLength != othLength && !isPartial) {
|
4506
4506
|
return false;
|
4507
4507
|
}
|
4508
|
-
var
|
4509
|
-
while (
|
4510
|
-
var key2 = objProps[
|
4508
|
+
var index2 = objLength;
|
4509
|
+
while (index2--) {
|
4510
|
+
var key2 = objProps[index2];
|
4511
4511
|
if (!(isPartial ? key2 in other : hasOwnProperty.call(other, key2))) {
|
4512
4512
|
return false;
|
4513
4513
|
}
|
@@ -4521,8 +4521,8 @@ var lodash = { exports: {} };
|
|
4521
4521
|
stack.set(object, other);
|
4522
4522
|
stack.set(other, object);
|
4523
4523
|
var skipCtor = isPartial;
|
4524
|
-
while (++
|
4525
|
-
key2 = objProps[
|
4524
|
+
while (++index2 < objLength) {
|
4525
|
+
key2 = objProps[index2];
|
4526
4526
|
var objValue = object[key2], othValue = other[key2];
|
4527
4527
|
if (customizer) {
|
4528
4528
|
var compared = isPartial ? customizer(othValue, objValue, key2, other, object, stack) : customizer(objValue, othValue, key2, object, other, stack);
|
@@ -4625,7 +4625,7 @@ var lodash = { exports: {} };
|
|
4625
4625
|
return result2;
|
4626
4626
|
};
|
4627
4627
|
var getTag = baseGetTag;
|
4628
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag ||
|
4628
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
|
4629
4629
|
getTag = function(value) {
|
4630
4630
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
4631
4631
|
if (ctorString) {
|
@@ -4646,9 +4646,9 @@ var lodash = { exports: {} };
|
|
4646
4646
|
};
|
4647
4647
|
}
|
4648
4648
|
function getView(start2, end2, transforms) {
|
4649
|
-
var
|
4650
|
-
while (++
|
4651
|
-
var data2 = transforms[
|
4649
|
+
var index2 = -1, length = transforms.length;
|
4650
|
+
while (++index2 < length) {
|
4651
|
+
var data2 = transforms[index2], size2 = data2.size;
|
4652
4652
|
switch (data2.type) {
|
4653
4653
|
case "drop":
|
4654
4654
|
start2 += size2;
|
@@ -4672,15 +4672,15 @@ var lodash = { exports: {} };
|
|
4672
4672
|
}
|
4673
4673
|
function hasPath(object, path, hasFunc) {
|
4674
4674
|
path = castPath(path, object);
|
4675
|
-
var
|
4676
|
-
while (++
|
4677
|
-
var key2 = toKey(path[
|
4675
|
+
var index2 = -1, length = path.length, result2 = false;
|
4676
|
+
while (++index2 < length) {
|
4677
|
+
var key2 = toKey(path[index2]);
|
4678
4678
|
if (!(result2 = object != null && hasFunc(object, key2))) {
|
4679
4679
|
break;
|
4680
4680
|
}
|
4681
4681
|
object = object[key2];
|
4682
4682
|
}
|
4683
|
-
if (result2 || ++
|
4683
|
+
if (result2 || ++index2 != length) {
|
4684
4684
|
return result2;
|
4685
4685
|
}
|
4686
4686
|
length = object == null ? 0 : object.length;
|
@@ -4748,13 +4748,13 @@ var lodash = { exports: {} };
|
|
4748
4748
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
4749
4749
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
4750
4750
|
}
|
4751
|
-
function isIterateeCall(value,
|
4751
|
+
function isIterateeCall(value, index2, object) {
|
4752
4752
|
if (!isObject2(object)) {
|
4753
4753
|
return false;
|
4754
4754
|
}
|
4755
|
-
var type = typeof
|
4756
|
-
if (type == "number" ? isArrayLike(object) && isIndex(
|
4757
|
-
return eq(object[
|
4755
|
+
var type = typeof index2;
|
4756
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index2, object.length) : type == "string" && index2 in object) {
|
4757
|
+
return eq(object[index2], value);
|
4758
4758
|
}
|
4759
4759
|
return false;
|
4760
4760
|
}
|
@@ -4863,14 +4863,14 @@ var lodash = { exports: {} };
|
|
4863
4863
|
function overRest(func, start2, transform2) {
|
4864
4864
|
start2 = nativeMax(start2 === undefined$1 ? func.length - 1 : start2, 0);
|
4865
4865
|
return function() {
|
4866
|
-
var args = arguments,
|
4867
|
-
while (++
|
4868
|
-
array[
|
4866
|
+
var args = arguments, index2 = -1, length = nativeMax(args.length - start2, 0), array = Array2(length);
|
4867
|
+
while (++index2 < length) {
|
4868
|
+
array[index2] = args[start2 + index2];
|
4869
4869
|
}
|
4870
|
-
|
4870
|
+
index2 = -1;
|
4871
4871
|
var otherArgs = Array2(start2 + 1);
|
4872
|
-
while (++
|
4873
|
-
otherArgs[
|
4872
|
+
while (++index2 < start2) {
|
4873
|
+
otherArgs[index2] = args[index2];
|
4874
4874
|
}
|
4875
4875
|
otherArgs[start2] = transform2(array);
|
4876
4876
|
return apply(func, this, otherArgs);
|
@@ -4882,8 +4882,8 @@ var lodash = { exports: {} };
|
|
4882
4882
|
function reorder(array, indexes) {
|
4883
4883
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
4884
4884
|
while (length--) {
|
4885
|
-
var
|
4886
|
-
array[length] = isIndex(
|
4885
|
+
var index2 = indexes[length];
|
4886
|
+
array[length] = isIndex(index2, arrLength) ? oldArray[index2] : undefined$1;
|
4887
4887
|
}
|
4888
4888
|
return array;
|
4889
4889
|
}
|
@@ -4921,12 +4921,12 @@ var lodash = { exports: {} };
|
|
4921
4921
|
};
|
4922
4922
|
}
|
4923
4923
|
function shuffleSelf(array, size2) {
|
4924
|
-
var
|
4924
|
+
var index2 = -1, length = array.length, lastIndex = length - 1;
|
4925
4925
|
size2 = size2 === undefined$1 ? length : size2;
|
4926
|
-
while (++
|
4927
|
-
var rand = baseRandom(
|
4928
|
-
array[rand] = array[
|
4929
|
-
array[
|
4926
|
+
while (++index2 < size2) {
|
4927
|
+
var rand = baseRandom(index2, lastIndex), value = array[rand];
|
4928
|
+
array[rand] = array[index2];
|
4929
|
+
array[index2] = value;
|
4930
4930
|
}
|
4931
4931
|
array.length = size2;
|
4932
4932
|
return array;
|
@@ -4990,16 +4990,16 @@ var lodash = { exports: {} };
|
|
4990
4990
|
if (!length || size2 < 1) {
|
4991
4991
|
return [];
|
4992
4992
|
}
|
4993
|
-
var
|
4994
|
-
while (
|
4995
|
-
result2[resIndex++] = baseSlice(array,
|
4993
|
+
var index2 = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2));
|
4994
|
+
while (index2 < length) {
|
4995
|
+
result2[resIndex++] = baseSlice(array, index2, index2 += size2);
|
4996
4996
|
}
|
4997
4997
|
return result2;
|
4998
4998
|
}
|
4999
4999
|
function compact(array) {
|
5000
|
-
var
|
5001
|
-
while (++
|
5002
|
-
var value = array[
|
5000
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = [];
|
5001
|
+
while (++index2 < length) {
|
5002
|
+
var value = array[index2];
|
5003
5003
|
if (value) {
|
5004
5004
|
result2[resIndex++] = value;
|
5005
5005
|
}
|
@@ -5011,9 +5011,9 @@ var lodash = { exports: {} };
|
|
5011
5011
|
if (!length) {
|
5012
5012
|
return [];
|
5013
5013
|
}
|
5014
|
-
var args = Array2(length - 1), array = arguments[0],
|
5015
|
-
while (
|
5016
|
-
args[
|
5014
|
+
var args = Array2(length - 1), array = arguments[0], index2 = length;
|
5015
|
+
while (index2--) {
|
5016
|
+
args[index2 - 1] = arguments[index2];
|
5017
5017
|
}
|
5018
5018
|
return arrayPush(isArray2(array) ? copyArray(array) : [array], baseFlatten(args, 1));
|
5019
5019
|
}
|
@@ -5073,23 +5073,23 @@ var lodash = { exports: {} };
|
|
5073
5073
|
if (!length) {
|
5074
5074
|
return -1;
|
5075
5075
|
}
|
5076
|
-
var
|
5077
|
-
if (
|
5078
|
-
|
5076
|
+
var index2 = fromIndex == null ? 0 : toInteger2(fromIndex);
|
5077
|
+
if (index2 < 0) {
|
5078
|
+
index2 = nativeMax(length + index2, 0);
|
5079
5079
|
}
|
5080
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
5080
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index2);
|
5081
5081
|
}
|
5082
5082
|
function findLastIndex(array, predicate, fromIndex) {
|
5083
5083
|
var length = array == null ? 0 : array.length;
|
5084
5084
|
if (!length) {
|
5085
5085
|
return -1;
|
5086
5086
|
}
|
5087
|
-
var
|
5087
|
+
var index2 = length - 1;
|
5088
5088
|
if (fromIndex !== undefined$1) {
|
5089
|
-
|
5090
|
-
|
5089
|
+
index2 = toInteger2(fromIndex);
|
5090
|
+
index2 = fromIndex < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1);
|
5091
5091
|
}
|
5092
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
5092
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index2, true);
|
5093
5093
|
}
|
5094
5094
|
function flatten(array) {
|
5095
5095
|
var length = array == null ? 0 : array.length;
|
@@ -5108,9 +5108,9 @@ var lodash = { exports: {} };
|
|
5108
5108
|
return baseFlatten(array, depth);
|
5109
5109
|
}
|
5110
5110
|
function fromPairs(pairs) {
|
5111
|
-
var
|
5112
|
-
while (++
|
5113
|
-
var pair = pairs[
|
5111
|
+
var index2 = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
5112
|
+
while (++index2 < length) {
|
5113
|
+
var pair = pairs[index2];
|
5114
5114
|
result2[pair[0]] = pair[1];
|
5115
5115
|
}
|
5116
5116
|
return result2;
|
@@ -5123,11 +5123,11 @@ var lodash = { exports: {} };
|
|
5123
5123
|
if (!length) {
|
5124
5124
|
return -1;
|
5125
5125
|
}
|
5126
|
-
var
|
5127
|
-
if (
|
5128
|
-
|
5126
|
+
var index2 = fromIndex == null ? 0 : toInteger2(fromIndex);
|
5127
|
+
if (index2 < 0) {
|
5128
|
+
index2 = nativeMax(length + index2, 0);
|
5129
5129
|
}
|
5130
|
-
return baseIndexOf(array, value,
|
5130
|
+
return baseIndexOf(array, value, index2);
|
5131
5131
|
}
|
5132
5132
|
function initial(array) {
|
5133
5133
|
var length = array == null ? 0 : array.length;
|
@@ -5166,12 +5166,12 @@ var lodash = { exports: {} };
|
|
5166
5166
|
if (!length) {
|
5167
5167
|
return -1;
|
5168
5168
|
}
|
5169
|
-
var
|
5169
|
+
var index2 = length;
|
5170
5170
|
if (fromIndex !== undefined$1) {
|
5171
|
-
|
5172
|
-
|
5171
|
+
index2 = toInteger2(fromIndex);
|
5172
|
+
index2 = index2 < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1);
|
5173
5173
|
}
|
5174
|
-
return value === value ? strictLastIndexOf(array, value,
|
5174
|
+
return value === value ? strictLastIndexOf(array, value, index2) : baseFindIndex(array, baseIsNaN, index2, true);
|
5175
5175
|
}
|
5176
5176
|
function nth(array, n2) {
|
5177
5177
|
return array && array.length ? baseNth(array, toInteger2(n2)) : undefined$1;
|
@@ -5188,8 +5188,8 @@ var lodash = { exports: {} };
|
|
5188
5188
|
}
|
5189
5189
|
var pullAt = flatRest(function(array, indexes) {
|
5190
5190
|
var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
|
5191
|
-
basePullAt(array, arrayMap(indexes, function(
|
5192
|
-
return isIndex(
|
5191
|
+
basePullAt(array, arrayMap(indexes, function(index2) {
|
5192
|
+
return isIndex(index2, length) ? +index2 : index2;
|
5193
5193
|
}).sort(compareAscending));
|
5194
5194
|
return result2;
|
5195
5195
|
});
|
@@ -5198,13 +5198,13 @@ var lodash = { exports: {} };
|
|
5198
5198
|
if (!(array && array.length)) {
|
5199
5199
|
return result2;
|
5200
5200
|
}
|
5201
|
-
var
|
5201
|
+
var index2 = -1, indexes = [], length = array.length;
|
5202
5202
|
predicate = getIteratee(predicate, 3);
|
5203
|
-
while (++
|
5204
|
-
var value = array[
|
5205
|
-
if (predicate(value,
|
5203
|
+
while (++index2 < length) {
|
5204
|
+
var value = array[index2];
|
5205
|
+
if (predicate(value, index2, array)) {
|
5206
5206
|
result2.push(value);
|
5207
|
-
indexes.push(
|
5207
|
+
indexes.push(index2);
|
5208
5208
|
}
|
5209
5209
|
}
|
5210
5210
|
basePullAt(array, indexes);
|
@@ -5236,9 +5236,9 @@ var lodash = { exports: {} };
|
|
5236
5236
|
function sortedIndexOf(array, value) {
|
5237
5237
|
var length = array == null ? 0 : array.length;
|
5238
5238
|
if (length) {
|
5239
|
-
var
|
5240
|
-
if (
|
5241
|
-
return
|
5239
|
+
var index2 = baseSortedIndex(array, value);
|
5240
|
+
if (index2 < length && eq(array[index2], value)) {
|
5241
|
+
return index2;
|
5242
5242
|
}
|
5243
5243
|
}
|
5244
5244
|
return -1;
|
@@ -5252,9 +5252,9 @@ var lodash = { exports: {} };
|
|
5252
5252
|
function sortedLastIndexOf(array, value) {
|
5253
5253
|
var length = array == null ? 0 : array.length;
|
5254
5254
|
if (length) {
|
5255
|
-
var
|
5256
|
-
if (eq(array[
|
5257
|
-
return
|
5255
|
+
var index2 = baseSortedIndex(array, value, true) - 1;
|
5256
|
+
if (eq(array[index2], value)) {
|
5257
|
+
return index2;
|
5258
5258
|
}
|
5259
5259
|
}
|
5260
5260
|
return -1;
|
@@ -5327,8 +5327,8 @@ var lodash = { exports: {} };
|
|
5327
5327
|
return true;
|
5328
5328
|
}
|
5329
5329
|
});
|
5330
|
-
return baseTimes(length, function(
|
5331
|
-
return arrayMap(array, baseProperty(
|
5330
|
+
return baseTimes(length, function(index2) {
|
5331
|
+
return arrayMap(array, baseProperty(index2));
|
5332
5332
|
});
|
5333
5333
|
}
|
5334
5334
|
function unzipWith(array, iteratee2) {
|
@@ -5513,9 +5513,9 @@ var lodash = { exports: {} };
|
|
5513
5513
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
5514
5514
|
}
|
5515
5515
|
var invokeMap = baseRest(function(collection, path, args) {
|
5516
|
-
var
|
5516
|
+
var index2 = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
5517
5517
|
baseEach(collection, function(value) {
|
5518
|
-
result2[++
|
5518
|
+
result2[++index2] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
|
5519
5519
|
});
|
5520
5520
|
return result2;
|
5521
5521
|
});
|
@@ -5801,9 +5801,9 @@ var lodash = { exports: {} };
|
|
5801
5801
|
transforms = transforms.length == 1 && isArray2(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
|
5802
5802
|
var funcsLength = transforms.length;
|
5803
5803
|
return baseRest(function(args) {
|
5804
|
-
var
|
5805
|
-
while (++
|
5806
|
-
args[
|
5804
|
+
var index2 = -1, length = nativeMin(args.length, funcsLength);
|
5805
|
+
while (++index2 < length) {
|
5806
|
+
args[index2] = transforms[index2].call(this, args[index2]);
|
5807
5807
|
}
|
5808
5808
|
return apply(func, this, args);
|
5809
5809
|
});
|
@@ -5839,7 +5839,7 @@ var lodash = { exports: {} };
|
|
5839
5839
|
return apply(func, this, otherArgs);
|
5840
5840
|
});
|
5841
5841
|
}
|
5842
|
-
function
|
5842
|
+
function throttle2(func, wait, options) {
|
5843
5843
|
var leading = true, trailing = true;
|
5844
5844
|
if (typeof func != "function") {
|
5845
5845
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
@@ -6118,14 +6118,14 @@ var lodash = { exports: {} };
|
|
6118
6118
|
}
|
6119
6119
|
var defaults = baseRest(function(object, sources) {
|
6120
6120
|
object = Object2(object);
|
6121
|
-
var
|
6121
|
+
var index2 = -1;
|
6122
6122
|
var length = sources.length;
|
6123
6123
|
var guard = length > 2 ? sources[2] : undefined$1;
|
6124
6124
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
6125
6125
|
length = 1;
|
6126
6126
|
}
|
6127
|
-
while (++
|
6128
|
-
var source = sources[
|
6127
|
+
while (++index2 < length) {
|
6128
|
+
var source = sources[index2];
|
6129
6129
|
var props2 = keysIn(source);
|
6130
6130
|
var propsIndex = -1;
|
6131
6131
|
var propsLength = props2.length;
|
@@ -6263,15 +6263,15 @@ var lodash = { exports: {} };
|
|
6263
6263
|
}
|
6264
6264
|
function result(object, path, defaultValue) {
|
6265
6265
|
path = castPath(path, object);
|
6266
|
-
var
|
6266
|
+
var index2 = -1, length = path.length;
|
6267
6267
|
if (!length) {
|
6268
6268
|
length = 1;
|
6269
6269
|
object = undefined$1;
|
6270
6270
|
}
|
6271
|
-
while (++
|
6272
|
-
var value = object == null ? undefined$1 : object[toKey(path[
|
6271
|
+
while (++index2 < length) {
|
6272
|
+
var value = object == null ? undefined$1 : object[toKey(path[index2])];
|
6273
6273
|
if (value === undefined$1) {
|
6274
|
-
|
6274
|
+
index2 = length;
|
6275
6275
|
value = defaultValue;
|
6276
6276
|
}
|
6277
6277
|
object = isFunction(value) ? value.call(object) : value;
|
@@ -6300,8 +6300,8 @@ var lodash = { exports: {} };
|
|
6300
6300
|
accumulator = {};
|
6301
6301
|
}
|
6302
6302
|
}
|
6303
|
-
(isArrLike ? arrayEach : baseForOwn)(object, function(value,
|
6304
|
-
return iteratee2(accumulator, value,
|
6303
|
+
(isArrLike ? arrayEach : baseForOwn)(object, function(value, index2, object2) {
|
6304
|
+
return iteratee2(accumulator, value, index2, object2);
|
6305
6305
|
});
|
6306
6306
|
return accumulator;
|
6307
6307
|
}
|
@@ -6383,9 +6383,9 @@ var lodash = { exports: {} };
|
|
6383
6383
|
}
|
6384
6384
|
return baseRandom(lower, upper);
|
6385
6385
|
}
|
6386
|
-
var camelCase = createCompounder(function(result2, word2,
|
6386
|
+
var camelCase = createCompounder(function(result2, word2, index2) {
|
6387
6387
|
word2 = word2.toLowerCase();
|
6388
|
-
return result2 + (
|
6388
|
+
return result2 + (index2 ? capitalize2(word2) : word2);
|
6389
6389
|
});
|
6390
6390
|
function capitalize2(string) {
|
6391
6391
|
return upperFirst(toString(string).toLowerCase());
|
@@ -6411,11 +6411,11 @@ var lodash = { exports: {} };
|
|
6411
6411
|
string = toString(string);
|
6412
6412
|
return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string;
|
6413
6413
|
}
|
6414
|
-
var kebabCase = createCompounder(function(result2, word2,
|
6415
|
-
return result2 + (
|
6414
|
+
var kebabCase = createCompounder(function(result2, word2, index2) {
|
6415
|
+
return result2 + (index2 ? "-" : "") + word2.toLowerCase();
|
6416
6416
|
});
|
6417
|
-
var lowerCase = createCompounder(function(result2, word2,
|
6418
|
-
return result2 + (
|
6417
|
+
var lowerCase = createCompounder(function(result2, word2, index2) {
|
6418
|
+
return result2 + (index2 ? " " : "") + word2.toLowerCase();
|
6419
6419
|
});
|
6420
6420
|
var lowerFirst = createCaseFirst("toLowerCase");
|
6421
6421
|
function pad2(string, length, chars) {
|
@@ -6460,8 +6460,8 @@ var lodash = { exports: {} };
|
|
6460
6460
|
var args = arguments, string = toString(args[0]);
|
6461
6461
|
return args.length < 3 ? string : string.replace(args[1], args[2]);
|
6462
6462
|
}
|
6463
|
-
var snakeCase = createCompounder(function(result2, word2,
|
6464
|
-
return result2 + (
|
6463
|
+
var snakeCase = createCompounder(function(result2, word2, index2) {
|
6464
|
+
return result2 + (index2 ? "_" : "") + word2.toLowerCase();
|
6465
6465
|
});
|
6466
6466
|
function split(string, separator2, limit) {
|
6467
6467
|
if (limit && typeof limit != "number" && isIterateeCall(string, separator2, limit)) {
|
@@ -6480,8 +6480,8 @@ var lodash = { exports: {} };
|
|
6480
6480
|
}
|
6481
6481
|
return string.split(separator2, limit);
|
6482
6482
|
}
|
6483
|
-
var startCase = createCompounder(function(result2, word2,
|
6484
|
-
return result2 + (
|
6483
|
+
var startCase = createCompounder(function(result2, word2, index2) {
|
6484
|
+
return result2 + (index2 ? " " : "") + upperFirst(word2);
|
6485
6485
|
});
|
6486
6486
|
function startsWith(string, target, position) {
|
6487
6487
|
string = toString(string);
|
@@ -6497,12 +6497,12 @@ var lodash = { exports: {} };
|
|
6497
6497
|
string = toString(string);
|
6498
6498
|
options = assignInWith({}, options, settings, customDefaultsAssignIn);
|
6499
6499
|
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
6500
|
-
var isEscaping, isEvaluating,
|
6500
|
+
var isEscaping, isEvaluating, index2 = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
6501
6501
|
var reDelimiters = RegExp2((options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", "g");
|
6502
6502
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
6503
6503
|
string.replace(reDelimiters, function(match2, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset2) {
|
6504
6504
|
interpolateValue || (interpolateValue = esTemplateValue);
|
6505
|
-
source += string.slice(
|
6505
|
+
source += string.slice(index2, offset2).replace(reUnescapedString, escapeStringChar);
|
6506
6506
|
if (escapeValue) {
|
6507
6507
|
isEscaping = true;
|
6508
6508
|
source += "' +\n__e(" + escapeValue + ") +\n'";
|
@@ -6514,7 +6514,7 @@ var lodash = { exports: {} };
|
|
6514
6514
|
if (interpolateValue) {
|
6515
6515
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
6516
6516
|
}
|
6517
|
-
|
6517
|
+
index2 = offset2 + match2.length;
|
6518
6518
|
return match2;
|
6519
6519
|
});
|
6520
6520
|
source += "';\n";
|
@@ -6614,9 +6614,9 @@ var lodash = { exports: {} };
|
|
6614
6614
|
result2 = result2.slice(0, newEnd === undefined$1 ? end2 : newEnd);
|
6615
6615
|
}
|
6616
6616
|
} else if (string.indexOf(baseToString(separator2), end2) != end2) {
|
6617
|
-
var
|
6618
|
-
if (
|
6619
|
-
result2 = result2.slice(0,
|
6617
|
+
var index2 = result2.lastIndexOf(separator2);
|
6618
|
+
if (index2 > -1) {
|
6619
|
+
result2 = result2.slice(0, index2);
|
6620
6620
|
}
|
6621
6621
|
}
|
6622
6622
|
return result2 + omission;
|
@@ -6625,8 +6625,8 @@ var lodash = { exports: {} };
|
|
6625
6625
|
string = toString(string);
|
6626
6626
|
return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
|
6627
6627
|
}
|
6628
|
-
var upperCase = createCompounder(function(result2, word2,
|
6629
|
-
return result2 + (
|
6628
|
+
var upperCase = createCompounder(function(result2, word2, index2) {
|
6629
|
+
return result2 + (index2 ? " " : "") + word2.toUpperCase();
|
6630
6630
|
});
|
6631
6631
|
var upperFirst = createCaseFirst("toUpperCase");
|
6632
6632
|
function words(string, pattern, guard) {
|
@@ -6660,9 +6660,9 @@ var lodash = { exports: {} };
|
|
6660
6660
|
return [toIteratee(pair[0]), pair[1]];
|
6661
6661
|
});
|
6662
6662
|
return baseRest(function(args) {
|
6663
|
-
var
|
6664
|
-
while (++
|
6665
|
-
var pair = pairs[
|
6663
|
+
var index2 = -1;
|
6664
|
+
while (++index2 < length) {
|
6665
|
+
var pair = pairs[index2];
|
6666
6666
|
if (apply(pair[0], this, args)) {
|
6667
6667
|
return apply(pair[1], this, args);
|
6668
6668
|
}
|
@@ -6778,12 +6778,12 @@ var lodash = { exports: {} };
|
|
6778
6778
|
if (n2 < 1 || n2 > MAX_SAFE_INTEGER) {
|
6779
6779
|
return [];
|
6780
6780
|
}
|
6781
|
-
var
|
6781
|
+
var index2 = MAX_ARRAY_LENGTH, length = nativeMin(n2, MAX_ARRAY_LENGTH);
|
6782
6782
|
iteratee2 = getIteratee(iteratee2);
|
6783
6783
|
n2 -= MAX_ARRAY_LENGTH;
|
6784
6784
|
var result2 = baseTimes(length, iteratee2);
|
6785
|
-
while (++
|
6786
|
-
iteratee2(
|
6785
|
+
while (++index2 < n2) {
|
6786
|
+
iteratee2(index2);
|
6787
6787
|
}
|
6788
6788
|
return result2;
|
6789
6789
|
}
|
@@ -6953,7 +6953,7 @@ var lodash = { exports: {} };
|
|
6953
6953
|
lodash2.takeRightWhile = takeRightWhile;
|
6954
6954
|
lodash2.takeWhile = takeWhile;
|
6955
6955
|
lodash2.tap = tap;
|
6956
|
-
lodash2.throttle =
|
6956
|
+
lodash2.throttle = throttle2;
|
6957
6957
|
lodash2.thru = thru;
|
6958
6958
|
lodash2.toArray = toArray;
|
6959
6959
|
lodash2.toPairs = toPairs;
|
@@ -7155,10 +7155,10 @@ var lodash = { exports: {} };
|
|
7155
7155
|
arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
7156
7156
|
lodash2[methodName].placeholder = lodash2;
|
7157
7157
|
});
|
7158
|
-
arrayEach(["drop", "take"], function(methodName,
|
7158
|
+
arrayEach(["drop", "take"], function(methodName, index2) {
|
7159
7159
|
LazyWrapper.prototype[methodName] = function(n2) {
|
7160
7160
|
n2 = n2 === undefined$1 ? 1 : nativeMax(toInteger2(n2), 0);
|
7161
|
-
var result2 = this.__filtered__ && !
|
7161
|
+
var result2 = this.__filtered__ && !index2 ? new LazyWrapper(this) : this.clone();
|
7162
7162
|
if (result2.__filtered__) {
|
7163
7163
|
result2.__takeCount__ = nativeMin(n2, result2.__takeCount__);
|
7164
7164
|
} else {
|
@@ -7173,8 +7173,8 @@ var lodash = { exports: {} };
|
|
7173
7173
|
return this.reverse()[methodName](n2).reverse();
|
7174
7174
|
};
|
7175
7175
|
});
|
7176
|
-
arrayEach(["filter", "map", "takeWhile"], function(methodName,
|
7177
|
-
var type =
|
7176
|
+
arrayEach(["filter", "map", "takeWhile"], function(methodName, index2) {
|
7177
|
+
var type = index2 + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
|
7178
7178
|
LazyWrapper.prototype[methodName] = function(iteratee2) {
|
7179
7179
|
var result2 = this.clone();
|
7180
7180
|
result2.__iteratees__.push({
|
@@ -7185,14 +7185,14 @@ var lodash = { exports: {} };
|
|
7185
7185
|
return result2;
|
7186
7186
|
};
|
7187
7187
|
});
|
7188
|
-
arrayEach(["head", "last"], function(methodName,
|
7189
|
-
var takeName = "take" + (
|
7188
|
+
arrayEach(["head", "last"], function(methodName, index2) {
|
7189
|
+
var takeName = "take" + (index2 ? "Right" : "");
|
7190
7190
|
LazyWrapper.prototype[methodName] = function() {
|
7191
7191
|
return this[takeName](1).value()[0];
|
7192
7192
|
};
|
7193
7193
|
});
|
7194
|
-
arrayEach(["initial", "tail"], function(methodName,
|
7195
|
-
var dropName = "drop" + (
|
7194
|
+
arrayEach(["initial", "tail"], function(methodName, index2) {
|
7195
|
+
var dropName = "drop" + (index2 ? "" : "Right");
|
7196
7196
|
LazyWrapper.prototype[methodName] = function() {
|
7197
7197
|
return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
|
7198
7198
|
};
|
@@ -7561,9 +7561,9 @@ class BKPopIndexManager {
|
|
7561
7561
|
}
|
7562
7562
|
destroy(content, transfer2 = false) {
|
7563
7563
|
var _a;
|
7564
|
-
const
|
7565
|
-
if (
|
7566
|
-
(_a = this.clickFn) == null ? void 0 : _a.splice(
|
7564
|
+
const index2 = this.getActiveClickFnIndex(content);
|
7565
|
+
if (index2 >= 0) {
|
7566
|
+
(_a = this.clickFn) == null ? void 0 : _a.splice(index2, 1);
|
7567
7567
|
}
|
7568
7568
|
this.hide(content, transfer2);
|
7569
7569
|
}
|
@@ -7971,6 +7971,14 @@ function placementType() {
|
|
7971
7971
|
function triggerType() {
|
7972
7972
|
return j("trigger", {}).def("hover");
|
7973
7973
|
}
|
7974
|
+
var RenderType = /* @__PURE__ */ ((RenderType2) => {
|
7975
|
+
RenderType2["AUTO"] = "auto";
|
7976
|
+
RenderType2["SHOWN"] = "shown";
|
7977
|
+
return RenderType2;
|
7978
|
+
})(RenderType || {});
|
7979
|
+
function renderType() {
|
7980
|
+
return j("trigger", {}).def("auto");
|
7981
|
+
}
|
7974
7982
|
function dialogTypeUnion() {
|
7975
7983
|
return j("dialogType", {
|
7976
7984
|
default: "operation"
|
@@ -8181,7 +8189,7 @@ function generate(node, key2, rootAttrs) {
|
|
8181
8189
|
key: key2
|
8182
8190
|
}, node.attributes), {
|
8183
8191
|
style: `${node.attributes.style} ${rootAttrs || ""}`
|
8184
|
-
}), (node.elements || []).map((element,
|
8192
|
+
}), (node.elements || []).map((element, index2) => generate(element, `${key2}-${node.name}-${index2}`)));
|
8185
8193
|
}
|
8186
8194
|
const bkIcon = (props2, context) => {
|
8187
8195
|
const _a = __spreadValues(__spreadValues({}, context.attrs), props2), {
|
@@ -9879,7 +9887,9 @@ const useCheckbox = () => {
|
|
9879
9887
|
}
|
9880
9888
|
watch(() => props2.checked, () => {
|
9881
9889
|
isChecked.value = props2.checked;
|
9882
|
-
|
9890
|
+
if (props2.immediateEmitChange !== false) {
|
9891
|
+
triggerChange();
|
9892
|
+
}
|
9883
9893
|
});
|
9884
9894
|
const setChecked = (value = true) => {
|
9885
9895
|
isChecked.value = value;
|
@@ -9919,7 +9929,8 @@ const checkboxProps = {
|
|
9919
9929
|
checked: PropTypes.bool.def(false),
|
9920
9930
|
indeterminate: PropTypes.bool,
|
9921
9931
|
beforeChange: PropTypes.func,
|
9922
|
-
size: PropTypes.size().def(SizeEnum.LARGE)
|
9932
|
+
size: PropTypes.size().def(SizeEnum.LARGE),
|
9933
|
+
immediateEmitChange: PropTypes.bool.def(true)
|
9923
9934
|
};
|
9924
9935
|
var Component$v = defineComponent({
|
9925
9936
|
name: "Checkbox",
|
@@ -9997,9 +10008,9 @@ var BkCheckboxGroup = defineComponent({
|
|
9997
10008
|
checkboxInstanceList.push(checkboxContext);
|
9998
10009
|
};
|
9999
10010
|
const unregister = (checkboxContext) => {
|
10000
|
-
const
|
10001
|
-
if (
|
10002
|
-
checkboxInstanceList.splice(
|
10011
|
+
const index2 = checkboxInstanceList.indexOf(checkboxContext);
|
10012
|
+
if (index2 > -1) {
|
10013
|
+
checkboxInstanceList.splice(index2, 1);
|
10003
10014
|
}
|
10004
10015
|
};
|
10005
10016
|
const handleChange = () => {
|
@@ -10148,7 +10159,7 @@ const collapseMotion$1 = (emit) => ({
|
|
10148
10159
|
emit("after-leave");
|
10149
10160
|
}
|
10150
10161
|
});
|
10151
|
-
function _isSlot$
|
10162
|
+
function _isSlot$7(s2) {
|
10152
10163
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
10153
10164
|
}
|
10154
10165
|
var CollapsePanel = defineComponent({
|
@@ -10243,7 +10254,7 @@ var CollapsePanel = defineComponent({
|
|
10243
10254
|
"class": `bk-collapse-item ${props2.disabled ? "is-disabled" : ""} ${isActive.value ? "bk-collapse-item-active" : ""}`
|
10244
10255
|
}, [createVNode("div", {
|
10245
10256
|
"onClick": () => clickItem(props2)
|
10246
|
-
}, [renderHeader()]), createVNode(Transition, transition.value, _isSlot$
|
10257
|
+
}, [renderHeader()]), createVNode(Transition, transition.value, _isSlot$7(_slot = renderPanel()) ? _slot : {
|
10247
10258
|
default: () => [_slot]
|
10248
10259
|
})]);
|
10249
10260
|
};
|
@@ -10304,39 +10315,39 @@ var Collapse = defineComponent({
|
|
10304
10315
|
}
|
10305
10316
|
})]);
|
10306
10317
|
}
|
10307
|
-
const collapseData = computed(() => (props2.list || []).map((item,
|
10318
|
+
const collapseData = computed(() => (props2.list || []).map((item, index2) => {
|
10308
10319
|
if (typeof item === "string" || typeof item === "number" || typeof item === "boolean") {
|
10309
10320
|
return {
|
10310
|
-
$index:
|
10321
|
+
$index: index2,
|
10311
10322
|
name: item
|
10312
10323
|
};
|
10313
10324
|
}
|
10314
10325
|
return __spreadValues({
|
10315
|
-
$index:
|
10326
|
+
$index: index2
|
10316
10327
|
}, item);
|
10317
10328
|
}));
|
10318
|
-
const renderItems = () => collapseData.value.map((item,
|
10329
|
+
const renderItems = () => collapseData.value.map((item, index2) => {
|
10319
10330
|
var _a, _b, _c;
|
10320
|
-
const name = item[props2.idFiled] ||
|
10331
|
+
const name = item[props2.idFiled] || index2;
|
10321
10332
|
let title = item[props2.titleField];
|
10322
10333
|
if (slots.title) {
|
10323
10334
|
if (typeof slots.title === "function") {
|
10324
|
-
title = slots.title(item,
|
10335
|
+
title = slots.title(item, index2);
|
10325
10336
|
} else {
|
10326
10337
|
title = slots.title;
|
10327
10338
|
}
|
10328
10339
|
}
|
10329
10340
|
if (slots.default) {
|
10330
|
-
title = (_a = slots.default) == null ? void 0 : _a.call(slots, item,
|
10341
|
+
title = (_a = slots.default) == null ? void 0 : _a.call(slots, item, index2);
|
10331
10342
|
}
|
10332
10343
|
return createVNode(CollapsePanel, {
|
10333
|
-
"key":
|
10344
|
+
"key": index2,
|
10334
10345
|
"item-click": handleItemClick,
|
10335
10346
|
"disabled": item.disabled,
|
10336
10347
|
"name": name,
|
10337
10348
|
"isFormList": true,
|
10338
10349
|
"title": title,
|
10339
|
-
"content": (_c = (_b = slots.content) == null ? void 0 : _b.call(slots, item,
|
10350
|
+
"content": (_c = (_b = slots.content) == null ? void 0 : _b.call(slots, item, index2)) != null ? _c : item[props2.contentField]
|
10340
10351
|
}, null);
|
10341
10352
|
});
|
10342
10353
|
return () => createVNode("div", {
|
@@ -10502,7 +10513,7 @@ const props = __spreadProps(__spreadValues({}, propsMixin$1), {
|
|
10502
10513
|
dialogType: dialogTypeUnion(),
|
10503
10514
|
isLoading: PropTypes.bool.def(false)
|
10504
10515
|
});
|
10505
|
-
function _isSlot$
|
10516
|
+
function _isSlot$6(s2) {
|
10506
10517
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
10507
10518
|
}
|
10508
10519
|
var Dialog = defineComponent({
|
@@ -10728,7 +10739,7 @@ var Dialog = defineComponent({
|
|
10728
10739
|
"onClose": this.handleClose,
|
10729
10740
|
"isShow": this.isModalShow,
|
10730
10741
|
"style": this.data.moveStyle
|
10731
|
-
}), _isSlot$
|
10742
|
+
}), _isSlot$6(dialogSlot) ? dialogSlot : {
|
10732
10743
|
default: () => [dialogSlot]
|
10733
10744
|
});
|
10734
10745
|
}
|
@@ -11663,7 +11674,8 @@ var Content = defineComponent({
|
|
11663
11674
|
name: "PopContent",
|
11664
11675
|
props: {
|
11665
11676
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto"),
|
11666
|
-
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto")
|
11677
|
+
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto"),
|
11678
|
+
maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto")
|
11667
11679
|
},
|
11668
11680
|
setup(props2) {
|
11669
11681
|
const resolveValToPix = (val) => {
|
@@ -11674,7 +11686,8 @@ var Content = defineComponent({
|
|
11674
11686
|
};
|
11675
11687
|
const style2 = computed(() => ({
|
11676
11688
|
width: resolveValToPix(props2.width),
|
11677
|
-
height: resolveValToPix(props2.height)
|
11689
|
+
height: resolveValToPix(props2.height),
|
11690
|
+
maxHeight: resolveValToPix(props2.maxHeight)
|
11678
11691
|
}));
|
11679
11692
|
return {
|
11680
11693
|
style: style2
|
@@ -11700,10 +11713,12 @@ const PopoverProps = __spreadValues({
|
|
11700
11713
|
disabled: PropTypes.bool.def(false),
|
11701
11714
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto"),
|
11702
11715
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto"),
|
11716
|
+
maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto"),
|
11703
11717
|
content: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def(""),
|
11704
11718
|
placement: placementType().def(PlacementEnum.TOP),
|
11705
11719
|
theme: PropTypes.string.def("dark"),
|
11706
11720
|
trigger: triggerType(),
|
11721
|
+
renderType: renderType(),
|
11707
11722
|
arrow: PropTypes.bool.def(true),
|
11708
11723
|
padding: PropTypes.number.def(5),
|
11709
11724
|
offset: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({})]).def(6),
|
@@ -13545,7 +13560,8 @@ var usePopoverInit = (props2, ctx, { refReference, refContent, refArrow, refRoot
|
|
13545
13560
|
hideFn,
|
13546
13561
|
stopHide,
|
13547
13562
|
isFullscreen,
|
13548
|
-
boundary
|
13563
|
+
boundary,
|
13564
|
+
localIsShow
|
13549
13565
|
};
|
13550
13566
|
};
|
13551
13567
|
var Component$q = defineComponent({
|
@@ -13587,6 +13603,7 @@ var Component$q = defineComponent({
|
|
13587
13603
|
hidePopover,
|
13588
13604
|
updatePopover,
|
13589
13605
|
stopHide,
|
13606
|
+
localIsShow,
|
13590
13607
|
boundary
|
13591
13608
|
} = usePopoverInit(props2, ctx, {
|
13592
13609
|
refReference,
|
@@ -13618,6 +13635,12 @@ var Component$q = defineComponent({
|
|
13618
13635
|
const hide2 = () => {
|
13619
13636
|
hideFn();
|
13620
13637
|
};
|
13638
|
+
const contentIsShow = computed(() => {
|
13639
|
+
if (props2.renderType === RenderType.AUTO) {
|
13640
|
+
return true;
|
13641
|
+
}
|
13642
|
+
return localIsShow.value;
|
13643
|
+
});
|
13621
13644
|
return {
|
13622
13645
|
boundary,
|
13623
13646
|
arrow: props2.arrow,
|
@@ -13631,7 +13654,8 @@ var Component$q = defineComponent({
|
|
13631
13654
|
updatePopover,
|
13632
13655
|
hide: hide2,
|
13633
13656
|
show: show2,
|
13634
|
-
stopHide
|
13657
|
+
stopHide,
|
13658
|
+
contentIsShow
|
13635
13659
|
};
|
13636
13660
|
},
|
13637
13661
|
render() {
|
@@ -13653,11 +13677,12 @@ var Component$q = defineComponent({
|
|
13653
13677
|
"ref": "refContent",
|
13654
13678
|
"data-theme": this.theme,
|
13655
13679
|
"width": this.width,
|
13656
|
-
"height": this.height
|
13680
|
+
"height": this.height,
|
13681
|
+
"maxHeight": this.maxHeight
|
13657
13682
|
}, {
|
13658
13683
|
default: () => {
|
13659
13684
|
var _a, _b, _c;
|
13660
|
-
return [(_c = (_b = (_a = this.$slots).content) == null ? void 0 : _b.call(_a)) != null ? _c : this.content];
|
13685
|
+
return [this.contentIsShow ? (_c = (_b = (_a = this.$slots).content) == null ? void 0 : _b.call(_a)) != null ? _c : this.content : ""];
|
13661
13686
|
},
|
13662
13687
|
arrow: () => this.arrow ? createVNode(Arrow, {
|
13663
13688
|
"ref": "refArrow"
|
@@ -13799,7 +13824,7 @@ const Line = (_2, {
|
|
13799
13824
|
"style": titleStyle
|
13800
13825
|
}, [showDefault()])])]), showDefault(false)]);
|
13801
13826
|
};
|
13802
|
-
function _isSlot$
|
13827
|
+
function _isSlot$5(s2) {
|
13803
13828
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
13804
13829
|
}
|
13805
13830
|
var Component$p = defineComponent({
|
@@ -13864,11 +13889,11 @@ var Component$p = defineComponent({
|
|
13864
13889
|
const $props = __spreadProps(__spreadValues({}, this.$props), {
|
13865
13890
|
percent: this.validPercent(this.percent)
|
13866
13891
|
});
|
13867
|
-
let progress2 = createVNode(Line, $props, _isSlot$
|
13892
|
+
let progress2 = createVNode(Line, $props, _isSlot$5(progressInfo) ? progressInfo : {
|
13868
13893
|
default: () => [progressInfo]
|
13869
13894
|
});
|
13870
13895
|
if (this.type === "circle" || this.type === "dashboard") {
|
13871
|
-
progress2 = createVNode(Circle, $props, _isSlot$
|
13896
|
+
progress2 = createVNode(Circle, $props, _isSlot$5(progressInfo) ? progressInfo : {
|
13872
13897
|
default: () => [progressInfo]
|
13873
13898
|
});
|
13874
13899
|
}
|
@@ -14111,9 +14136,9 @@ var RadioGroup = defineComponent({
|
|
14111
14136
|
radioInstanceList.push(radioContext);
|
14112
14137
|
};
|
14113
14138
|
const unregister = (radioContext) => {
|
14114
|
-
const
|
14115
|
-
if (
|
14116
|
-
radioInstanceList.splice(
|
14139
|
+
const index2 = radioInstanceList.indexOf(radioContext);
|
14140
|
+
if (index2 > -1) {
|
14141
|
+
radioInstanceList.splice(index2, 1);
|
14117
14142
|
}
|
14118
14143
|
};
|
14119
14144
|
const handleChange = (checkedRadioInstance) => {
|
@@ -14170,20 +14195,20 @@ var star = defineComponent({
|
|
14170
14195
|
setup(props2, {
|
14171
14196
|
emit
|
14172
14197
|
}) {
|
14173
|
-
const chooseRate = (
|
14198
|
+
const chooseRate = (index2) => {
|
14174
14199
|
if (!props2.editable)
|
14175
14200
|
return;
|
14176
|
-
const rate2 =
|
14201
|
+
const rate2 = index2 + 1;
|
14177
14202
|
emit("chooseRate", rate2);
|
14178
14203
|
};
|
14179
|
-
const changeHover = (
|
14204
|
+
const changeHover = (index2) => {
|
14180
14205
|
if (!props2.editable)
|
14181
14206
|
return;
|
14182
|
-
const rate2 =
|
14207
|
+
const rate2 = index2 + 1;
|
14183
14208
|
emit("changeHover", rate2);
|
14184
14209
|
};
|
14185
|
-
const starClass = (
|
14186
|
-
"bk-is-select":
|
14210
|
+
const starClass = (index2) => classes({
|
14211
|
+
"bk-is-select": index2 < Math.floor(displayRate.value),
|
14187
14212
|
"bk-is-edit": props2.editable,
|
14188
14213
|
"bk-rate-star": true
|
14189
14214
|
});
|
@@ -14195,14 +14220,14 @@ var star = defineComponent({
|
|
14195
14220
|
};
|
14196
14221
|
return () => createVNode("p", {
|
14197
14222
|
"class": "bk-rate-stars"
|
14198
|
-
}, [Array(props2.max).fill(1).map((_2,
|
14199
|
-
"class": starClass(
|
14223
|
+
}, [Array(props2.max).fill(1).map((_2, index2) => createVNode("svg", {
|
14224
|
+
"class": starClass(index2),
|
14200
14225
|
"style": starStyle,
|
14201
14226
|
"x": "0px",
|
14202
14227
|
"y": "0px",
|
14203
14228
|
"viewBox": "0 0 64 64",
|
14204
|
-
"onClick": () => chooseRate(
|
14205
|
-
"onMouseenter": () => changeHover(
|
14229
|
+
"onClick": () => chooseRate(index2),
|
14230
|
+
"onMouseenter": () => changeHover(index2)
|
14206
14231
|
}, [createVNode("g", {
|
14207
14232
|
"transform": "translate(-143.000000, -635.000000)"
|
14208
14233
|
}, [createVNode("g", {
|
@@ -14339,12 +14364,12 @@ var Component$m = defineComponent({
|
|
14339
14364
|
width: `${renderWidth.value}px`,
|
14340
14365
|
height: `${renderHeight.value}px`
|
14341
14366
|
}));
|
14342
|
-
const changeIndex = (
|
14343
|
-
let showIndex =
|
14344
|
-
if (
|
14367
|
+
const changeIndex = (index2) => {
|
14368
|
+
let showIndex = index2;
|
14369
|
+
if (index2 >= computedRenderDataList.value.length) {
|
14345
14370
|
showIndex = 0;
|
14346
14371
|
}
|
14347
|
-
if (
|
14372
|
+
if (index2 < 0) {
|
14348
14373
|
showIndex = computedRenderDataList.value.length - 1;
|
14349
14374
|
}
|
14350
14375
|
swiperIndex.value = showIndex;
|
@@ -14362,8 +14387,8 @@ var Component$m = defineComponent({
|
|
14362
14387
|
"background-image": `url(${renderData.url})`,
|
14363
14388
|
"background-color": renderData.color
|
14364
14389
|
});
|
14365
|
-
const getRenderIndexStyle = (
|
14366
|
-
"bk-current-index": swiperIndex.value ===
|
14390
|
+
const getRenderIndexStyle = (index2) => ({
|
14391
|
+
"bk-current-index": swiperIndex.value === index2
|
14367
14392
|
});
|
14368
14393
|
const startLoop = () => {
|
14369
14394
|
if (isLoop.value) {
|
@@ -14441,9 +14466,9 @@ var Component$m = defineComponent({
|
|
14441
14466
|
}, null)]);
|
14442
14467
|
})]), createVNode("ul", {
|
14443
14468
|
"class": "bk-swiper-index"
|
14444
|
-
}, [computedRenderDataList.value.map((_2,
|
14445
|
-
"class": getRenderIndexStyle(
|
14446
|
-
"onMouseover": () => changeIndex(
|
14469
|
+
}, [computedRenderDataList.value.map((_2, index2) => createVNode("li", {
|
14470
|
+
"class": getRenderIndexStyle(index2),
|
14471
|
+
"onMouseover": () => changeIndex(index2)
|
14447
14472
|
}, null))]), createVNode("span", {
|
14448
14473
|
"class": "bk-swiper-nav bk-nav-prev",
|
14449
14474
|
"onClick": () => changeIndex(swiperIndex.value - 1)
|
@@ -14751,7 +14776,8 @@ const virtualRenderProps = __spreadValues({
|
|
14751
14776
|
scrollOffsetTop: PropTypes.number.def(0),
|
14752
14777
|
scrollPosition: PropTypes.string.def("content"),
|
14753
14778
|
abosuteHeight: PropTypes.oneOfType([PropTypes.string.def("auto"), PropTypes.number]).def("auto"),
|
14754
|
-
throttleDelay: PropTypes.number.def(60)
|
14779
|
+
throttleDelay: PropTypes.number.def(60),
|
14780
|
+
rowKey: PropTypes.string.def(void 0)
|
14755
14781
|
}, EventProps);
|
14756
14782
|
var useTagRender = (props2, ctx) => {
|
14757
14783
|
const {
|
@@ -14964,9 +14990,14 @@ var Component$l = defineComponent({
|
|
14964
14990
|
refRoot.value.scrollTo(0, 0);
|
14965
14991
|
}
|
14966
14992
|
};
|
14967
|
-
const localList = computed(() =>
|
14968
|
-
|
14969
|
-
|
14993
|
+
const localList = computed(() => {
|
14994
|
+
if (props2.rowKey !== void 0) {
|
14995
|
+
return props2.list;
|
14996
|
+
}
|
14997
|
+
return (props2.list || []).map((item, index2) => __spreadProps(__spreadValues({}, item), {
|
14998
|
+
$index: index2
|
14999
|
+
}));
|
15000
|
+
});
|
14970
15001
|
const calcList = computed(() => localList.value.slice(pagination2.startIndex * props2.groupItemCount, (pagination2.endIndex + props2.preloadItemCount) * props2.groupItemCount));
|
14971
15002
|
const innerContentStyle = computed(() => props2.scrollPosition === "content" ? {
|
14972
15003
|
top: `${pagination2.scrollTop + props2.scrollOffsetTop}px`,
|
@@ -15145,9 +15176,9 @@ var SelectTagInput = defineComponent({
|
|
15145
15176
|
}
|
15146
15177
|
}
|
15147
15178
|
};
|
15148
|
-
const getTagDOM = (
|
15179
|
+
const getTagDOM = (index2) => {
|
15149
15180
|
const tags = [...proxy.$el.querySelectorAll(".bk-tag")];
|
15150
|
-
return typeof
|
15181
|
+
return typeof index2 === "number" ? tags[index2] : tags;
|
15151
15182
|
};
|
15152
15183
|
const calcOverflow = () => {
|
15153
15184
|
if (!collapseTags.value)
|
@@ -15155,11 +15186,11 @@ var SelectTagInput = defineComponent({
|
|
15155
15186
|
overflowTagIndex.value = null;
|
15156
15187
|
setTimeout(() => {
|
15157
15188
|
const tags = getTagDOM();
|
15158
|
-
const tagIndexInSecondRow = tags.findIndex((currentTag,
|
15159
|
-
if (!
|
15189
|
+
const tagIndexInSecondRow = tags.findIndex((currentTag, index2) => {
|
15190
|
+
if (!index2) {
|
15160
15191
|
return false;
|
15161
15192
|
}
|
15162
|
-
const previousTag = tags[
|
15193
|
+
const previousTag = tags[index2 - 1];
|
15163
15194
|
return previousTag.offsetTop !== currentTag.offsetTop;
|
15164
15195
|
});
|
15165
15196
|
overflowTagIndex.value = tagIndexInSecondRow > 0 ? tagIndexInSecondRow : null;
|
@@ -15194,11 +15225,11 @@ var SelectTagInput = defineComponent({
|
|
15194
15225
|
"class": selectTagClass
|
15195
15226
|
}, [(_b = (_a = this.$slots) == null ? void 0 : _a.prefix) == null ? void 0 : _b.call(_a), createVNode("span", {
|
15196
15227
|
"class": tagWrapperClass
|
15197
|
-
}, [(_e = (_d = (_c = this.$slots).default) == null ? void 0 : _d.call(_c)) != null ? _e : this.selected.map((item,
|
15228
|
+
}, [(_e = (_d = (_c = this.$slots).default) == null ? void 0 : _d.call(_c)) != null ? _e : this.selected.map((item, index2) => createVNode(BkTag, {
|
15198
15229
|
"closable": true,
|
15199
15230
|
"theme": this.tagTheme,
|
15200
15231
|
"style": {
|
15201
|
-
display: this.collapseTags && this.overflowTagIndex &&
|
15232
|
+
display: this.collapseTags && this.overflowTagIndex && index2 >= this.overflowTagIndex ? "none" : ""
|
15202
15233
|
},
|
15203
15234
|
"onClose": () => this.handleRemoveTag(item.value)
|
15204
15235
|
}, {
|
@@ -15320,7 +15351,7 @@ var Component$j = defineComponent({
|
|
15320
15351
|
var _a;
|
15321
15352
|
handleSetSelectedData();
|
15322
15353
|
if (props2.withValidate) {
|
15323
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "
|
15354
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
15324
15355
|
}
|
15325
15356
|
}, {
|
15326
15357
|
deep: true
|
@@ -15494,9 +15525,9 @@ var Component$j = defineComponent({
|
|
15494
15525
|
if (isDisabled.value || !option)
|
15495
15526
|
return;
|
15496
15527
|
if (multiple.value) {
|
15497
|
-
const
|
15498
|
-
if (
|
15499
|
-
selected.value.splice(
|
15528
|
+
const index2 = selected.value.findIndex((item) => item.value === option.value);
|
15529
|
+
if (index2 > -1) {
|
15530
|
+
selected.value.splice(index2, 1);
|
15500
15531
|
} else {
|
15501
15532
|
selected.value.push({
|
15502
15533
|
value: option.value,
|
@@ -15567,9 +15598,9 @@ var Component$j = defineComponent({
|
|
15567
15598
|
const handleDeleteTag = (val) => {
|
15568
15599
|
if (isDisabled.value)
|
15569
15600
|
return;
|
15570
|
-
const
|
15571
|
-
if (
|
15572
|
-
selected.value.splice(
|
15601
|
+
const index2 = selected.value.findIndex((item) => item.value === val);
|
15602
|
+
if (index2 > -1) {
|
15603
|
+
selected.value.splice(index2, 1);
|
15573
15604
|
emitChange(selected.value.map((item) => item.value));
|
15574
15605
|
}
|
15575
15606
|
};
|
@@ -15599,19 +15630,19 @@ var Component$j = defineComponent({
|
|
15599
15630
|
if (!((_a = triggerRef.value) == null ? void 0 : _a.contains(e.target)) && !((_b = contentRef.value) == null ? void 0 : _b.contains(e.target)) && !customContent.value)
|
15600
15631
|
return;
|
15601
15632
|
const availableOptions = options.value.filter((option) => !option.disabled && option.visible);
|
15602
|
-
const
|
15603
|
-
if (!availableOptions.length ||
|
15633
|
+
const index2 = availableOptions.findIndex((option) => option.value === activeOptionValue.value);
|
15634
|
+
if (!availableOptions.length || index2 === -1)
|
15604
15635
|
return;
|
15605
15636
|
switch (e.code) {
|
15606
15637
|
case "ArrowDown": {
|
15607
15638
|
e.preventDefault();
|
15608
|
-
const nextIndex =
|
15639
|
+
const nextIndex = index2 >= availableOptions.length - 1 ? 0 : index2 + 1;
|
15609
15640
|
activeOptionValue.value = (_c = availableOptions[nextIndex]) == null ? void 0 : _c.value;
|
15610
15641
|
break;
|
15611
15642
|
}
|
15612
15643
|
case "ArrowUp": {
|
15613
15644
|
e.preventDefault();
|
15614
|
-
const preIndex =
|
15645
|
+
const preIndex = index2 === 0 ? availableOptions.length - 1 : index2 - 1;
|
15615
15646
|
activeOptionValue.value = (_d = availableOptions[preIndex]) == null ? void 0 : _d.value;
|
15616
15647
|
break;
|
15617
15648
|
}
|
@@ -15889,7 +15920,7 @@ var Component$j = defineComponent({
|
|
15889
15920
|
}
|
15890
15921
|
});
|
15891
15922
|
const BkSelect = withInstallProps(Component$j, { Option: BkOption, Group: OptionGroup });
|
15892
|
-
function _isSlot$
|
15923
|
+
function _isSlot$4(s2) {
|
15893
15924
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
15894
15925
|
}
|
15895
15926
|
const {
|
@@ -15983,7 +16014,7 @@ var Component$i = defineComponent({
|
|
15983
16014
|
"onHidden": handleHidden,
|
15984
16015
|
"onShown": handleShown,
|
15985
16016
|
"onClose": handleClose
|
15986
|
-
}), _isSlot$
|
16017
|
+
}), _isSlot$4(dialogSlot) ? dialogSlot : {
|
15987
16018
|
default: () => [dialogSlot]
|
15988
16019
|
});
|
15989
16020
|
};
|
@@ -16054,17 +16085,17 @@ var Component$h = defineComponent({
|
|
16054
16085
|
updateSteps(props2.steps);
|
16055
16086
|
}
|
16056
16087
|
};
|
16057
|
-
const jumpTo = async (
|
16088
|
+
const jumpTo = async (index2) => {
|
16058
16089
|
try {
|
16059
|
-
if (props2.controllable &&
|
16090
|
+
if (props2.controllable && index2 !== props2.curStep) {
|
16060
16091
|
if (typeof props2.beforeChange === "function") {
|
16061
16092
|
await new Promise(async (resolve, reject) => {
|
16062
|
-
const confirmed = await props2.beforeChange(
|
16093
|
+
const confirmed = await props2.beforeChange(index2);
|
16063
16094
|
confirmed ? resolve(confirmed) : reject(confirmed);
|
16064
16095
|
});
|
16065
16096
|
}
|
16066
|
-
emit("update:curStep",
|
16067
|
-
emit("click",
|
16097
|
+
emit("update:curStep", index2);
|
16098
|
+
emit("click", index2);
|
16068
16099
|
}
|
16069
16100
|
} catch (e) {
|
16070
16101
|
console.warn(e);
|
@@ -16095,8 +16126,8 @@ var Component$h = defineComponent({
|
|
16095
16126
|
[`bk-steps-${this.direction}`]: this.direction,
|
16096
16127
|
[`bk-steps-${this.lineType}`]: this.lineType
|
16097
16128
|
}, `${stepsThemeCls} ${stepsClsPrefix} ${stepsSizeCls}`);
|
16098
|
-
const isDone = (
|
16099
|
-
const isCurrent = (
|
16129
|
+
const isDone = (index2) => this.curStep > index2 + 1 || this.defaultSteps[index2].status === "done";
|
16130
|
+
const isCurrent = (index2) => this.curStep === index2 + 1;
|
16100
16131
|
const iconType = (step) => {
|
16101
16132
|
const {
|
16102
16133
|
icon
|
@@ -16106,47 +16137,47 @@ var Component$h = defineComponent({
|
|
16106
16137
|
}
|
16107
16138
|
return typeof step === "string";
|
16108
16139
|
};
|
16109
|
-
const isNumberIcon = (
|
16140
|
+
const isNumberIcon = (index2, step) => {
|
16110
16141
|
if (!step.icon) {
|
16111
|
-
step.icon =
|
16142
|
+
step.icon = index2;
|
16112
16143
|
}
|
16113
16144
|
return !isNaN(step.icon);
|
16114
16145
|
};
|
16115
16146
|
const isLoadingStatus = (step) => step.status === "loading";
|
16116
16147
|
const isErrorStatus = (step) => step.status === "error";
|
16117
|
-
const renderIcon = (
|
16118
|
-
if (isCurrent(
|
16148
|
+
const renderIcon = (index2, step) => {
|
16149
|
+
if (isCurrent(index2) && this.status === "loading" || isLoadingStatus(step)) {
|
16119
16150
|
return createVNode(circle, {
|
16120
16151
|
"class": "bk-icon bk-steps-icon icon-loading"
|
16121
16152
|
}, null);
|
16122
16153
|
}
|
16123
|
-
if (isCurrent(
|
16154
|
+
if (isCurrent(index2) && this.status === "error" || isErrorStatus(step)) {
|
16124
16155
|
return createVNode(error, {
|
16125
16156
|
"class": "bk-steps-icon"
|
16126
16157
|
}, null);
|
16127
16158
|
}
|
16128
|
-
if (isDone(
|
16159
|
+
if (isDone(index2)) {
|
16129
16160
|
return createVNode(done, {
|
16130
16161
|
"class": "bk-steps-icon"
|
16131
16162
|
}, null);
|
16132
16163
|
}
|
16133
|
-
return createVNode("span", null, [isNumberIcon(
|
16164
|
+
return createVNode("span", null, [isNumberIcon(index2, step) ? index2 + 1 : createVNode(step.icon, null, null)]);
|
16134
16165
|
};
|
16135
16166
|
return createVNode("div", {
|
16136
16167
|
"class": stepsCls
|
16137
|
-
}, [this.defaultSteps.map((step,
|
16168
|
+
}, [this.defaultSteps.map((step, index2) => {
|
16138
16169
|
var _a, _b, _c;
|
16139
16170
|
return createVNode("div", {
|
16140
|
-
"class": ["bk-step", !step.title ? "bk-step-no-content" : "", isDone(
|
16171
|
+
"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}`] : ""]
|
16141
16172
|
}, [createVNode("span", {
|
16142
16173
|
"class": ["bk-step-indicator", `bk-step-${iconType(step) ? "icon" : "number"}`, `bk-step-icon${step.status}`],
|
16143
16174
|
"style": {
|
16144
16175
|
cursor: this.controllable ? "pointer" : ""
|
16145
16176
|
},
|
16146
16177
|
"onClick": () => {
|
16147
|
-
this.jumpTo(
|
16178
|
+
this.jumpTo(index2 + 1);
|
16148
16179
|
}
|
16149
|
-
}, [(_c = (_b = (_a = this.$slots)[
|
16180
|
+
}, [(_c = (_b = (_a = this.$slots)[index2 + 1]) == null ? void 0 : _b.call(_a)) != null ? _c : renderIcon(index2, step)]), step.title ? createVNode("div", {
|
16150
16181
|
"class": "bk-step-content"
|
16151
16182
|
}, [createVNode("div", {
|
16152
16183
|
"class": "bk-step-title",
|
@@ -16154,7 +16185,7 @@ var Component$h = defineComponent({
|
|
16154
16185
|
cursor: this.controllable ? "pointer" : ""
|
16155
16186
|
},
|
16156
16187
|
"onClick": () => {
|
16157
|
-
this.jumpTo(
|
16188
|
+
this.jumpTo(index2 + 1);
|
16158
16189
|
}
|
16159
16190
|
}, [step.title]), step.description && createVNode("div", {
|
16160
16191
|
"class": "bk-step-description",
|
@@ -16500,7 +16531,10 @@ const tableProps = {
|
|
16500
16531
|
isRowSelectEnable: PropTypes.oneOfType([
|
16501
16532
|
PropTypes.func.def(() => true),
|
16502
16533
|
PropTypes.bool.def(true)
|
16503
|
-
]).def(true)
|
16534
|
+
]).def(true),
|
16535
|
+
resizerWay: j("ResizerWay", {
|
16536
|
+
default: "throttle"
|
16537
|
+
})
|
16504
16538
|
};
|
16505
16539
|
var Column = defineComponent({
|
16506
16540
|
name: "TableColumn",
|
@@ -16512,7 +16546,7 @@ var Column = defineComponent({
|
|
16512
16546
|
}) {
|
16513
16547
|
const initColumns = inject(PROVIDE_KEY_INIT_COL, (_column) => {
|
16514
16548
|
}, false);
|
16515
|
-
|
16549
|
+
onBeforeMount(() => {
|
16516
16550
|
const column = reactive(__spreadProps(__spreadValues({}, props2), {
|
16517
16551
|
field: props2.prop || props2.field
|
16518
16552
|
}));
|
@@ -16525,7 +16559,7 @@ var Column = defineComponent({
|
|
16525
16559
|
return () => {
|
16526
16560
|
var _a;
|
16527
16561
|
return createVNode(Fragment, null, [(_a = slots.default) == null ? void 0 : _a.call(slots, {
|
16528
|
-
data:
|
16562
|
+
data: {}
|
16529
16563
|
})]);
|
16530
16564
|
};
|
16531
16565
|
}
|
@@ -16574,8 +16608,9 @@ var usePagination = (props2, indexData) => {
|
|
16574
16608
|
};
|
16575
16609
|
const filter = (sourceData, filterFn) => {
|
16576
16610
|
if (typeof filterFn === "function") {
|
16577
|
-
const filterVals = sourceData.filter((row,
|
16578
|
-
sourceData.
|
16611
|
+
const filterVals = sourceData.filter((row, index2) => filterFn(row, index2, props2.data));
|
16612
|
+
sourceData.length = 0;
|
16613
|
+
sourceData.push(...filterVals);
|
16579
16614
|
}
|
16580
16615
|
};
|
16581
16616
|
const resolvePageData = (filterFn, sortFn, activeSortColumn) => {
|
@@ -16587,7 +16622,8 @@ var usePagination = (props2, indexData) => {
|
|
16587
16622
|
if (sortScope === SortScope.ALL) {
|
16588
16623
|
sort(sourceData, sortFn);
|
16589
16624
|
}
|
16590
|
-
pageData.
|
16625
|
+
pageData.length = 0;
|
16626
|
+
pageData.push(...sourceData.slice(startIndex.value, endIndex.value));
|
16591
16627
|
filter(pageData, filterFn);
|
16592
16628
|
sort(pageData, sortFn);
|
16593
16629
|
};
|
@@ -16653,7 +16689,7 @@ var useScrollLoading = (props2, ctx) => {
|
|
16653
16689
|
renderScrollLoading
|
16654
16690
|
};
|
16655
16691
|
};
|
16656
|
-
function _isSlot$
|
16692
|
+
function _isSlot$3(s2) {
|
16657
16693
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
16658
16694
|
}
|
16659
16695
|
var useLimit = () => {
|
@@ -16700,10 +16736,10 @@ var useLimit = () => {
|
|
16700
16736
|
"modelValue": localLimit.value,
|
16701
16737
|
"onChange": handleLimitChange,
|
16702
16738
|
"disabled": proxy.disabled
|
16703
|
-
}, _isSlot$
|
16739
|
+
}, _isSlot$3(_slot = proxy.limitList.map((num, index2) => createVNode(BkOption, {
|
16704
16740
|
"value": num,
|
16705
16741
|
"label": `${num}`,
|
16706
|
-
"key": `${
|
16742
|
+
"key": `${index2}_${num}`
|
16707
16743
|
}, null))) ? _slot : {
|
16708
16744
|
default: () => [_slot]
|
16709
16745
|
}), createVNode("div", null, [createTextVNode("\u6761")])]);
|
@@ -17088,13 +17124,484 @@ var Component$f = defineComponent({
|
|
17088
17124
|
};
|
17089
17125
|
return createVNode("div", {
|
17090
17126
|
"class": paginationClass
|
17091
|
-
}, [this.layout.map((layout,
|
17092
|
-
isFirst:
|
17093
|
-
isLast:
|
17127
|
+
}, [this.layout.map((layout, index2) => layoutMap[layout]({
|
17128
|
+
isFirst: index2 === 0,
|
17129
|
+
isLast: index2 === this.layout.length - 1
|
17094
17130
|
}))]);
|
17095
17131
|
}
|
17096
17132
|
});
|
17097
17133
|
const BkPagination = withInstall(Component$f);
|
17134
|
+
var MapShim = function() {
|
17135
|
+
if (typeof Map !== "undefined") {
|
17136
|
+
return Map;
|
17137
|
+
}
|
17138
|
+
function getIndex(arr, key2) {
|
17139
|
+
var result = -1;
|
17140
|
+
arr.some(function(entry, index2) {
|
17141
|
+
if (entry[0] === key2) {
|
17142
|
+
result = index2;
|
17143
|
+
return true;
|
17144
|
+
}
|
17145
|
+
return false;
|
17146
|
+
});
|
17147
|
+
return result;
|
17148
|
+
}
|
17149
|
+
return function() {
|
17150
|
+
function class_1() {
|
17151
|
+
this.__entries__ = [];
|
17152
|
+
}
|
17153
|
+
Object.defineProperty(class_1.prototype, "size", {
|
17154
|
+
get: function() {
|
17155
|
+
return this.__entries__.length;
|
17156
|
+
},
|
17157
|
+
enumerable: true,
|
17158
|
+
configurable: true
|
17159
|
+
});
|
17160
|
+
class_1.prototype.get = function(key2) {
|
17161
|
+
var index2 = getIndex(this.__entries__, key2);
|
17162
|
+
var entry = this.__entries__[index2];
|
17163
|
+
return entry && entry[1];
|
17164
|
+
};
|
17165
|
+
class_1.prototype.set = function(key2, value) {
|
17166
|
+
var index2 = getIndex(this.__entries__, key2);
|
17167
|
+
if (~index2) {
|
17168
|
+
this.__entries__[index2][1] = value;
|
17169
|
+
} else {
|
17170
|
+
this.__entries__.push([key2, value]);
|
17171
|
+
}
|
17172
|
+
};
|
17173
|
+
class_1.prototype.delete = function(key2) {
|
17174
|
+
var entries = this.__entries__;
|
17175
|
+
var index2 = getIndex(entries, key2);
|
17176
|
+
if (~index2) {
|
17177
|
+
entries.splice(index2, 1);
|
17178
|
+
}
|
17179
|
+
};
|
17180
|
+
class_1.prototype.has = function(key2) {
|
17181
|
+
return !!~getIndex(this.__entries__, key2);
|
17182
|
+
};
|
17183
|
+
class_1.prototype.clear = function() {
|
17184
|
+
this.__entries__.splice(0);
|
17185
|
+
};
|
17186
|
+
class_1.prototype.forEach = function(callback, ctx) {
|
17187
|
+
if (ctx === void 0) {
|
17188
|
+
ctx = null;
|
17189
|
+
}
|
17190
|
+
for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
|
17191
|
+
var entry = _a[_i];
|
17192
|
+
callback.call(ctx, entry[1], entry[0]);
|
17193
|
+
}
|
17194
|
+
};
|
17195
|
+
return class_1;
|
17196
|
+
}();
|
17197
|
+
}();
|
17198
|
+
var isBrowser = typeof window !== "undefined" && typeof document !== "undefined" && window.document === document;
|
17199
|
+
var global$1 = function() {
|
17200
|
+
if (typeof global !== "undefined" && global.Math === Math) {
|
17201
|
+
return global;
|
17202
|
+
}
|
17203
|
+
if (typeof self !== "undefined" && self.Math === Math) {
|
17204
|
+
return self;
|
17205
|
+
}
|
17206
|
+
if (typeof window !== "undefined" && window.Math === Math) {
|
17207
|
+
return window;
|
17208
|
+
}
|
17209
|
+
return Function("return this")();
|
17210
|
+
}();
|
17211
|
+
var requestAnimationFrame$1$1 = function() {
|
17212
|
+
if (typeof requestAnimationFrame === "function") {
|
17213
|
+
return requestAnimationFrame.bind(global$1);
|
17214
|
+
}
|
17215
|
+
return function(callback) {
|
17216
|
+
return setTimeout(function() {
|
17217
|
+
return callback(Date.now());
|
17218
|
+
}, 1e3 / 60);
|
17219
|
+
};
|
17220
|
+
}();
|
17221
|
+
var trailingTimeout = 2;
|
17222
|
+
function throttle(callback, delay) {
|
17223
|
+
var leadingCall = false, trailingCall = false, lastCallTime = 0;
|
17224
|
+
function resolvePending() {
|
17225
|
+
if (leadingCall) {
|
17226
|
+
leadingCall = false;
|
17227
|
+
callback();
|
17228
|
+
}
|
17229
|
+
if (trailingCall) {
|
17230
|
+
proxy();
|
17231
|
+
}
|
17232
|
+
}
|
17233
|
+
function timeoutCallback() {
|
17234
|
+
requestAnimationFrame$1$1(resolvePending);
|
17235
|
+
}
|
17236
|
+
function proxy() {
|
17237
|
+
var timeStamp = Date.now();
|
17238
|
+
if (leadingCall) {
|
17239
|
+
if (timeStamp - lastCallTime < trailingTimeout) {
|
17240
|
+
return;
|
17241
|
+
}
|
17242
|
+
trailingCall = true;
|
17243
|
+
} else {
|
17244
|
+
leadingCall = true;
|
17245
|
+
trailingCall = false;
|
17246
|
+
setTimeout(timeoutCallback, delay);
|
17247
|
+
}
|
17248
|
+
lastCallTime = timeStamp;
|
17249
|
+
}
|
17250
|
+
return proxy;
|
17251
|
+
}
|
17252
|
+
var REFRESH_DELAY = 20;
|
17253
|
+
var transitionKeys = ["top", "right", "bottom", "left", "width", "height", "size", "weight"];
|
17254
|
+
var mutationObserverSupported = typeof MutationObserver !== "undefined";
|
17255
|
+
var ResizeObserverController = function() {
|
17256
|
+
function ResizeObserverController2() {
|
17257
|
+
this.connected_ = false;
|
17258
|
+
this.mutationEventsAdded_ = false;
|
17259
|
+
this.mutationsObserver_ = null;
|
17260
|
+
this.observers_ = [];
|
17261
|
+
this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
|
17262
|
+
this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
|
17263
|
+
}
|
17264
|
+
ResizeObserverController2.prototype.addObserver = function(observer) {
|
17265
|
+
if (!~this.observers_.indexOf(observer)) {
|
17266
|
+
this.observers_.push(observer);
|
17267
|
+
}
|
17268
|
+
if (!this.connected_) {
|
17269
|
+
this.connect_();
|
17270
|
+
}
|
17271
|
+
};
|
17272
|
+
ResizeObserverController2.prototype.removeObserver = function(observer) {
|
17273
|
+
var observers2 = this.observers_;
|
17274
|
+
var index2 = observers2.indexOf(observer);
|
17275
|
+
if (~index2) {
|
17276
|
+
observers2.splice(index2, 1);
|
17277
|
+
}
|
17278
|
+
if (!observers2.length && this.connected_) {
|
17279
|
+
this.disconnect_();
|
17280
|
+
}
|
17281
|
+
};
|
17282
|
+
ResizeObserverController2.prototype.refresh = function() {
|
17283
|
+
var changesDetected = this.updateObservers_();
|
17284
|
+
if (changesDetected) {
|
17285
|
+
this.refresh();
|
17286
|
+
}
|
17287
|
+
};
|
17288
|
+
ResizeObserverController2.prototype.updateObservers_ = function() {
|
17289
|
+
var activeObservers = this.observers_.filter(function(observer) {
|
17290
|
+
return observer.gatherActive(), observer.hasActive();
|
17291
|
+
});
|
17292
|
+
activeObservers.forEach(function(observer) {
|
17293
|
+
return observer.broadcastActive();
|
17294
|
+
});
|
17295
|
+
return activeObservers.length > 0;
|
17296
|
+
};
|
17297
|
+
ResizeObserverController2.prototype.connect_ = function() {
|
17298
|
+
if (!isBrowser || this.connected_) {
|
17299
|
+
return;
|
17300
|
+
}
|
17301
|
+
document.addEventListener("transitionend", this.onTransitionEnd_);
|
17302
|
+
window.addEventListener("resize", this.refresh);
|
17303
|
+
if (mutationObserverSupported) {
|
17304
|
+
this.mutationsObserver_ = new MutationObserver(this.refresh);
|
17305
|
+
this.mutationsObserver_.observe(document, {
|
17306
|
+
attributes: true,
|
17307
|
+
childList: true,
|
17308
|
+
characterData: true,
|
17309
|
+
subtree: true
|
17310
|
+
});
|
17311
|
+
} else {
|
17312
|
+
document.addEventListener("DOMSubtreeModified", this.refresh);
|
17313
|
+
this.mutationEventsAdded_ = true;
|
17314
|
+
}
|
17315
|
+
this.connected_ = true;
|
17316
|
+
};
|
17317
|
+
ResizeObserverController2.prototype.disconnect_ = function() {
|
17318
|
+
if (!isBrowser || !this.connected_) {
|
17319
|
+
return;
|
17320
|
+
}
|
17321
|
+
document.removeEventListener("transitionend", this.onTransitionEnd_);
|
17322
|
+
window.removeEventListener("resize", this.refresh);
|
17323
|
+
if (this.mutationsObserver_) {
|
17324
|
+
this.mutationsObserver_.disconnect();
|
17325
|
+
}
|
17326
|
+
if (this.mutationEventsAdded_) {
|
17327
|
+
document.removeEventListener("DOMSubtreeModified", this.refresh);
|
17328
|
+
}
|
17329
|
+
this.mutationsObserver_ = null;
|
17330
|
+
this.mutationEventsAdded_ = false;
|
17331
|
+
this.connected_ = false;
|
17332
|
+
};
|
17333
|
+
ResizeObserverController2.prototype.onTransitionEnd_ = function(_a) {
|
17334
|
+
var _b = _a.propertyName, propertyName = _b === void 0 ? "" : _b;
|
17335
|
+
var isReflowProperty = transitionKeys.some(function(key2) {
|
17336
|
+
return !!~propertyName.indexOf(key2);
|
17337
|
+
});
|
17338
|
+
if (isReflowProperty) {
|
17339
|
+
this.refresh();
|
17340
|
+
}
|
17341
|
+
};
|
17342
|
+
ResizeObserverController2.getInstance = function() {
|
17343
|
+
if (!this.instance_) {
|
17344
|
+
this.instance_ = new ResizeObserverController2();
|
17345
|
+
}
|
17346
|
+
return this.instance_;
|
17347
|
+
};
|
17348
|
+
ResizeObserverController2.instance_ = null;
|
17349
|
+
return ResizeObserverController2;
|
17350
|
+
}();
|
17351
|
+
var defineConfigurable = function(target, props2) {
|
17352
|
+
for (var _i = 0, _a = Object.keys(props2); _i < _a.length; _i++) {
|
17353
|
+
var key2 = _a[_i];
|
17354
|
+
Object.defineProperty(target, key2, {
|
17355
|
+
value: props2[key2],
|
17356
|
+
enumerable: false,
|
17357
|
+
writable: false,
|
17358
|
+
configurable: true
|
17359
|
+
});
|
17360
|
+
}
|
17361
|
+
return target;
|
17362
|
+
};
|
17363
|
+
var getWindowOf = function(target) {
|
17364
|
+
var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
|
17365
|
+
return ownerGlobal || global$1;
|
17366
|
+
};
|
17367
|
+
var emptyRect = createRectInit(0, 0, 0, 0);
|
17368
|
+
function toFloat(value) {
|
17369
|
+
return parseFloat(value) || 0;
|
17370
|
+
}
|
17371
|
+
function getBordersSize(styles) {
|
17372
|
+
var positions = [];
|
17373
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
17374
|
+
positions[_i - 1] = arguments[_i];
|
17375
|
+
}
|
17376
|
+
return positions.reduce(function(size, position) {
|
17377
|
+
var value = styles["border-" + position + "-width"];
|
17378
|
+
return size + toFloat(value);
|
17379
|
+
}, 0);
|
17380
|
+
}
|
17381
|
+
function getPaddings(styles) {
|
17382
|
+
var positions = ["top", "right", "bottom", "left"];
|
17383
|
+
var paddings = {};
|
17384
|
+
for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
|
17385
|
+
var position = positions_1[_i];
|
17386
|
+
var value = styles["padding-" + position];
|
17387
|
+
paddings[position] = toFloat(value);
|
17388
|
+
}
|
17389
|
+
return paddings;
|
17390
|
+
}
|
17391
|
+
function getSVGContentRect(target) {
|
17392
|
+
var bbox = target.getBBox();
|
17393
|
+
return createRectInit(0, 0, bbox.width, bbox.height);
|
17394
|
+
}
|
17395
|
+
function getHTMLElementContentRect(target) {
|
17396
|
+
var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
|
17397
|
+
if (!clientWidth && !clientHeight) {
|
17398
|
+
return emptyRect;
|
17399
|
+
}
|
17400
|
+
var styles = getWindowOf(target).getComputedStyle(target);
|
17401
|
+
var paddings = getPaddings(styles);
|
17402
|
+
var horizPad = paddings.left + paddings.right;
|
17403
|
+
var vertPad = paddings.top + paddings.bottom;
|
17404
|
+
var width = toFloat(styles.width), height = toFloat(styles.height);
|
17405
|
+
if (styles.boxSizing === "border-box") {
|
17406
|
+
if (Math.round(width + horizPad) !== clientWidth) {
|
17407
|
+
width -= getBordersSize(styles, "left", "right") + horizPad;
|
17408
|
+
}
|
17409
|
+
if (Math.round(height + vertPad) !== clientHeight) {
|
17410
|
+
height -= getBordersSize(styles, "top", "bottom") + vertPad;
|
17411
|
+
}
|
17412
|
+
}
|
17413
|
+
if (!isDocumentElement(target)) {
|
17414
|
+
var vertScrollbar = Math.round(width + horizPad) - clientWidth;
|
17415
|
+
var horizScrollbar = Math.round(height + vertPad) - clientHeight;
|
17416
|
+
if (Math.abs(vertScrollbar) !== 1) {
|
17417
|
+
width -= vertScrollbar;
|
17418
|
+
}
|
17419
|
+
if (Math.abs(horizScrollbar) !== 1) {
|
17420
|
+
height -= horizScrollbar;
|
17421
|
+
}
|
17422
|
+
}
|
17423
|
+
return createRectInit(paddings.left, paddings.top, width, height);
|
17424
|
+
}
|
17425
|
+
var isSVGGraphicsElement = function() {
|
17426
|
+
if (typeof SVGGraphicsElement !== "undefined") {
|
17427
|
+
return function(target) {
|
17428
|
+
return target instanceof getWindowOf(target).SVGGraphicsElement;
|
17429
|
+
};
|
17430
|
+
}
|
17431
|
+
return function(target) {
|
17432
|
+
return target instanceof getWindowOf(target).SVGElement && typeof target.getBBox === "function";
|
17433
|
+
};
|
17434
|
+
}();
|
17435
|
+
function isDocumentElement(target) {
|
17436
|
+
return target === getWindowOf(target).document.documentElement;
|
17437
|
+
}
|
17438
|
+
function getContentRect(target) {
|
17439
|
+
if (!isBrowser) {
|
17440
|
+
return emptyRect;
|
17441
|
+
}
|
17442
|
+
if (isSVGGraphicsElement(target)) {
|
17443
|
+
return getSVGContentRect(target);
|
17444
|
+
}
|
17445
|
+
return getHTMLElementContentRect(target);
|
17446
|
+
}
|
17447
|
+
function createReadOnlyRect(_a) {
|
17448
|
+
var x2 = _a.x, y2 = _a.y, width = _a.width, height = _a.height;
|
17449
|
+
var Constr = typeof DOMRectReadOnly !== "undefined" ? DOMRectReadOnly : Object;
|
17450
|
+
var rect = Object.create(Constr.prototype);
|
17451
|
+
defineConfigurable(rect, {
|
17452
|
+
x: x2,
|
17453
|
+
y: y2,
|
17454
|
+
width,
|
17455
|
+
height,
|
17456
|
+
top: y2,
|
17457
|
+
right: x2 + width,
|
17458
|
+
bottom: height + y2,
|
17459
|
+
left: x2
|
17460
|
+
});
|
17461
|
+
return rect;
|
17462
|
+
}
|
17463
|
+
function createRectInit(x2, y2, width, height) {
|
17464
|
+
return { x: x2, y: y2, width, height };
|
17465
|
+
}
|
17466
|
+
var ResizeObservation = function() {
|
17467
|
+
function ResizeObservation2(target) {
|
17468
|
+
this.broadcastWidth = 0;
|
17469
|
+
this.broadcastHeight = 0;
|
17470
|
+
this.contentRect_ = createRectInit(0, 0, 0, 0);
|
17471
|
+
this.target = target;
|
17472
|
+
}
|
17473
|
+
ResizeObservation2.prototype.isActive = function() {
|
17474
|
+
var rect = getContentRect(this.target);
|
17475
|
+
this.contentRect_ = rect;
|
17476
|
+
return rect.width !== this.broadcastWidth || rect.height !== this.broadcastHeight;
|
17477
|
+
};
|
17478
|
+
ResizeObservation2.prototype.broadcastRect = function() {
|
17479
|
+
var rect = this.contentRect_;
|
17480
|
+
this.broadcastWidth = rect.width;
|
17481
|
+
this.broadcastHeight = rect.height;
|
17482
|
+
return rect;
|
17483
|
+
};
|
17484
|
+
return ResizeObservation2;
|
17485
|
+
}();
|
17486
|
+
var ResizeObserverEntry = function() {
|
17487
|
+
function ResizeObserverEntry2(target, rectInit) {
|
17488
|
+
var contentRect = createReadOnlyRect(rectInit);
|
17489
|
+
defineConfigurable(this, { target, contentRect });
|
17490
|
+
}
|
17491
|
+
return ResizeObserverEntry2;
|
17492
|
+
}();
|
17493
|
+
var ResizeObserverSPI = function() {
|
17494
|
+
function ResizeObserverSPI2(callback, controller, callbackCtx) {
|
17495
|
+
this.activeObservations_ = [];
|
17496
|
+
this.observations_ = new MapShim();
|
17497
|
+
if (typeof callback !== "function") {
|
17498
|
+
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
17499
|
+
}
|
17500
|
+
this.callback_ = callback;
|
17501
|
+
this.controller_ = controller;
|
17502
|
+
this.callbackCtx_ = callbackCtx;
|
17503
|
+
}
|
17504
|
+
ResizeObserverSPI2.prototype.observe = function(target) {
|
17505
|
+
if (!arguments.length) {
|
17506
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
17507
|
+
}
|
17508
|
+
if (typeof Element === "undefined" || !(Element instanceof Object)) {
|
17509
|
+
return;
|
17510
|
+
}
|
17511
|
+
if (!(target instanceof getWindowOf(target).Element)) {
|
17512
|
+
throw new TypeError('parameter 1 is not of type "Element".');
|
17513
|
+
}
|
17514
|
+
var observations = this.observations_;
|
17515
|
+
if (observations.has(target)) {
|
17516
|
+
return;
|
17517
|
+
}
|
17518
|
+
observations.set(target, new ResizeObservation(target));
|
17519
|
+
this.controller_.addObserver(this);
|
17520
|
+
this.controller_.refresh();
|
17521
|
+
};
|
17522
|
+
ResizeObserverSPI2.prototype.unobserve = function(target) {
|
17523
|
+
if (!arguments.length) {
|
17524
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
17525
|
+
}
|
17526
|
+
if (typeof Element === "undefined" || !(Element instanceof Object)) {
|
17527
|
+
return;
|
17528
|
+
}
|
17529
|
+
if (!(target instanceof getWindowOf(target).Element)) {
|
17530
|
+
throw new TypeError('parameter 1 is not of type "Element".');
|
17531
|
+
}
|
17532
|
+
var observations = this.observations_;
|
17533
|
+
if (!observations.has(target)) {
|
17534
|
+
return;
|
17535
|
+
}
|
17536
|
+
observations.delete(target);
|
17537
|
+
if (!observations.size) {
|
17538
|
+
this.controller_.removeObserver(this);
|
17539
|
+
}
|
17540
|
+
};
|
17541
|
+
ResizeObserverSPI2.prototype.disconnect = function() {
|
17542
|
+
this.clearActive();
|
17543
|
+
this.observations_.clear();
|
17544
|
+
this.controller_.removeObserver(this);
|
17545
|
+
};
|
17546
|
+
ResizeObserverSPI2.prototype.gatherActive = function() {
|
17547
|
+
var _this = this;
|
17548
|
+
this.clearActive();
|
17549
|
+
this.observations_.forEach(function(observation) {
|
17550
|
+
if (observation.isActive()) {
|
17551
|
+
_this.activeObservations_.push(observation);
|
17552
|
+
}
|
17553
|
+
});
|
17554
|
+
};
|
17555
|
+
ResizeObserverSPI2.prototype.broadcastActive = function() {
|
17556
|
+
if (!this.hasActive()) {
|
17557
|
+
return;
|
17558
|
+
}
|
17559
|
+
var ctx = this.callbackCtx_;
|
17560
|
+
var entries = this.activeObservations_.map(function(observation) {
|
17561
|
+
return new ResizeObserverEntry(observation.target, observation.broadcastRect());
|
17562
|
+
});
|
17563
|
+
this.callback_.call(ctx, entries, ctx);
|
17564
|
+
this.clearActive();
|
17565
|
+
};
|
17566
|
+
ResizeObserverSPI2.prototype.clearActive = function() {
|
17567
|
+
this.activeObservations_.splice(0);
|
17568
|
+
};
|
17569
|
+
ResizeObserverSPI2.prototype.hasActive = function() {
|
17570
|
+
return this.activeObservations_.length > 0;
|
17571
|
+
};
|
17572
|
+
return ResizeObserverSPI2;
|
17573
|
+
}();
|
17574
|
+
var observers = typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : new MapShim();
|
17575
|
+
var ResizeObserver$1 = function() {
|
17576
|
+
function ResizeObserver2(callback) {
|
17577
|
+
if (!(this instanceof ResizeObserver2)) {
|
17578
|
+
throw new TypeError("Cannot call a class as a function.");
|
17579
|
+
}
|
17580
|
+
if (!arguments.length) {
|
17581
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
17582
|
+
}
|
17583
|
+
var controller = ResizeObserverController.getInstance();
|
17584
|
+
var observer = new ResizeObserverSPI(callback, controller, this);
|
17585
|
+
observers.set(this, observer);
|
17586
|
+
}
|
17587
|
+
return ResizeObserver2;
|
17588
|
+
}();
|
17589
|
+
[
|
17590
|
+
"observe",
|
17591
|
+
"unobserve",
|
17592
|
+
"disconnect"
|
17593
|
+
].forEach(function(method) {
|
17594
|
+
ResizeObserver$1.prototype[method] = function() {
|
17595
|
+
var _a;
|
17596
|
+
return (_a = observers.get(this))[method].apply(_a, arguments);
|
17597
|
+
};
|
17598
|
+
});
|
17599
|
+
var index = function() {
|
17600
|
+
if (typeof global$1.ResizeObserver !== "undefined") {
|
17601
|
+
return global$1.ResizeObserver;
|
17602
|
+
}
|
17603
|
+
return ResizeObserver$1;
|
17604
|
+
}();
|
17098
17605
|
const resolvePropVal = (prop, key2, args) => {
|
17099
17606
|
if (typeof key2 === "string") {
|
17100
17607
|
if (Object.prototype.hasOwnProperty.call(prop, key2)) {
|
@@ -17143,6 +17650,7 @@ const getColumnReactWidth = (colmun, orders = ["resizeWidth", "calcWidth", "widt
|
|
17143
17650
|
return (_b = (_a = colmun[orders[0]]) != null ? _a : colmun[orders[1]]) != null ? _b : colmun[orders[2]];
|
17144
17651
|
};
|
17145
17652
|
const resolveColumnWidth = (root, colgroups, autoWidth = COL_MIN_WIDTH, offsetWidth = 0) => {
|
17653
|
+
console.log("resolveColumnWidth");
|
17146
17654
|
const {
|
17147
17655
|
width
|
17148
17656
|
} = root.getBoundingClientRect() || {};
|
@@ -17184,7 +17692,7 @@ const resolveColumnWidth = (root, colgroups, autoWidth = COL_MIN_WIDTH, offsetWi
|
|
17184
17692
|
}
|
17185
17693
|
}
|
17186
17694
|
};
|
17187
|
-
colgroups.forEach((col,
|
17695
|
+
colgroups.forEach((col, index2) => {
|
17188
17696
|
if (!col.isHidden) {
|
17189
17697
|
const order2 = ["resizeWidth", "width"];
|
17190
17698
|
const colWidth = String(getColumnReactWidth(col, order2));
|
@@ -17204,15 +17712,15 @@ const resolveColumnWidth = (root, colgroups, autoWidth = COL_MIN_WIDTH, offsetWi
|
|
17204
17712
|
isAutoWidthCol = false;
|
17205
17713
|
}
|
17206
17714
|
if (isAutoWidthCol) {
|
17207
|
-
avgColIndexList.push(
|
17715
|
+
avgColIndexList.push(index2);
|
17208
17716
|
}
|
17209
17717
|
}
|
17210
17718
|
});
|
17211
17719
|
if (avgColIndexList.length > 0) {
|
17212
17720
|
let autoAvgWidth = autoWidth;
|
17213
17721
|
if (avgWidth > 0) {
|
17214
|
-
avgColIndexList.forEach((idx,
|
17215
|
-
autoAvgWidth = avgWidth / (avgColIndexList.length -
|
17722
|
+
avgColIndexList.forEach((idx, index2) => {
|
17723
|
+
autoAvgWidth = avgWidth / (avgColIndexList.length - index2);
|
17216
17724
|
resolveColNumberWidth(colgroups[idx], autoAvgWidth, false);
|
17217
17725
|
const {
|
17218
17726
|
calcWidth
|
@@ -17229,13 +17737,15 @@ const resolveColumnWidth = (root, colgroups, autoWidth = COL_MIN_WIDTH, offsetWi
|
|
17229
17737
|
}
|
17230
17738
|
}
|
17231
17739
|
};
|
17232
|
-
const observerResize = (root, callbackFn, delay = 60, immediate = false) => {
|
17233
|
-
const
|
17740
|
+
const observerResize = (root, callbackFn, delay = 60, immediate = false, resizerWay = "throttle") => {
|
17741
|
+
const resolveCallbackFn = () => {
|
17234
17742
|
if (typeof callbackFn === "function") {
|
17235
17743
|
callbackFn();
|
17236
17744
|
}
|
17237
|
-
}
|
17238
|
-
const
|
17745
|
+
};
|
17746
|
+
const execFn = resizerWay === "debounce" ? lodash.exports.debounce(resolveCallbackFn, delay) : lodash.exports.throttle(resolveCallbackFn, delay);
|
17747
|
+
const callFn = () => Reflect.apply(execFn, globalThis, []);
|
17748
|
+
const resizeObserver = new index(() => {
|
17239
17749
|
callFn();
|
17240
17750
|
});
|
17241
17751
|
if (immediate) {
|
@@ -17246,10 +17756,6 @@ const observerResize = (root, callbackFn, delay = 60, immediate = false) => {
|
|
17246
17756
|
return {
|
17247
17757
|
start: () => {
|
17248
17758
|
resizeObserver.observe(root);
|
17249
|
-
},
|
17250
|
-
stop: () => {
|
17251
|
-
resizeObserver.disconnect();
|
17252
|
-
resizeObserver.unobserve(root);
|
17253
17759
|
}
|
17254
17760
|
};
|
17255
17761
|
};
|
@@ -17282,10 +17788,10 @@ const formatPropAsArray = (prop, args) => {
|
|
17282
17788
|
}
|
17283
17789
|
return [];
|
17284
17790
|
};
|
17285
|
-
const getRowKey = (item, props2,
|
17791
|
+
const getRowKey = (item, props2, index2) => {
|
17286
17792
|
if (typeof props2.rowKey === "string") {
|
17287
17793
|
if (props2.rowKey === TABLE_ROW_ATTRIBUTE.ROW_INDEX) {
|
17288
|
-
return `__ROW_INDEX_${
|
17794
|
+
return `__ROW_INDEX_${index2}`;
|
17289
17795
|
}
|
17290
17796
|
return lodash.exports.get(item, props2.rowKey);
|
17291
17797
|
}
|
@@ -17397,7 +17903,7 @@ const resolveSort = (sort) => {
|
|
17397
17903
|
};
|
17398
17904
|
const isRowSelectEnable = (props2, {
|
17399
17905
|
row,
|
17400
|
-
index,
|
17906
|
+
index: index2,
|
17401
17907
|
isCheckAll
|
17402
17908
|
}) => {
|
17403
17909
|
if (typeof props2.isRowSelectEnable === "boolean") {
|
@@ -17406,12 +17912,22 @@ const isRowSelectEnable = (props2, {
|
|
17406
17912
|
if (typeof props2.isRowSelectEnable === "function") {
|
17407
17913
|
return props2.isRowSelectEnable({
|
17408
17914
|
row,
|
17409
|
-
index,
|
17915
|
+
index: index2,
|
17410
17916
|
isCheckAll
|
17411
17917
|
});
|
17412
17918
|
}
|
17413
17919
|
return true;
|
17414
17920
|
};
|
17921
|
+
const getRowId = (row, index2, props2) => {
|
17922
|
+
if (row[TABLE_ROW_ATTRIBUTE.ROW_UID] !== void 0) {
|
17923
|
+
return row[TABLE_ROW_ATTRIBUTE.ROW_UID];
|
17924
|
+
}
|
17925
|
+
const key2 = getRowKey(row, props2, index2);
|
17926
|
+
if (key2 !== void 0 && row[key2] !== void 0) {
|
17927
|
+
return row[key2];
|
17928
|
+
}
|
17929
|
+
return index2;
|
17930
|
+
};
|
17415
17931
|
var TableCell = defineComponent({
|
17416
17932
|
name: "TableCell",
|
17417
17933
|
props: {
|
@@ -17509,7 +18025,6 @@ var TableCell = defineComponent({
|
|
17509
18025
|
}
|
17510
18026
|
});
|
17511
18027
|
onBeforeUnmount(() => {
|
17512
|
-
observerIns == null ? void 0 : observerIns.stop();
|
17513
18028
|
bkEllipsisIns == null ? void 0 : bkEllipsisIns.destroyInstance(refRoot.value);
|
17514
18029
|
});
|
17515
18030
|
return () => {
|
@@ -17546,9 +18061,6 @@ var BodyEmpty = defineComponent({
|
|
17546
18061
|
}, null);
|
17547
18062
|
}
|
17548
18063
|
});
|
17549
|
-
function _isSlot$3(s2) {
|
17550
|
-
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
17551
|
-
}
|
17552
18064
|
var HeadFilter = defineComponent({
|
17553
18065
|
name: "HeadFilter",
|
17554
18066
|
props: {
|
@@ -17576,17 +18088,19 @@ var HeadFilter = defineComponent({
|
|
17576
18088
|
const headFilterContentClass = classes({
|
17577
18089
|
[resolveClassName("table-head-filter")]: true
|
17578
18090
|
});
|
18091
|
+
const refVirtualRender = ref(null);
|
17579
18092
|
const handlePopShow = (isOpen) => {
|
17580
18093
|
state.isOpen = isOpen;
|
18094
|
+
isOpen && setTimeout(() => {
|
18095
|
+
refVirtualRender.value.reset();
|
18096
|
+
});
|
17581
18097
|
};
|
17582
18098
|
const theme = `light ${resolveClassName("table-head-filter")}`;
|
17583
18099
|
const localData = computed(() => {
|
17584
18100
|
const {
|
17585
18101
|
list = []
|
17586
18102
|
} = column.filter;
|
17587
|
-
return list
|
17588
|
-
checked: state.checked.includes(item.value)
|
17589
|
-
}));
|
18103
|
+
return list;
|
17590
18104
|
});
|
17591
18105
|
const getRegExp = (searchValue, flags = "ig") => new RegExp(`${searchValue}`.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), flags);
|
17592
18106
|
const defaultFilterFn = (checked, row) => {
|
@@ -17599,7 +18113,7 @@ var HeadFilter = defineComponent({
|
|
17599
18113
|
}
|
17600
18114
|
return checked.some((str) => getRegExp(str, "img").test(matchText));
|
17601
18115
|
};
|
17602
|
-
const filterFn = typeof column.filter.filterFn === "function" ? (checked, row,
|
18116
|
+
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;
|
17603
18117
|
const handleBtnSaveClick = () => {
|
17604
18118
|
handleFilterChange(true);
|
17605
18119
|
emit("filterSave", [...state.checked]);
|
@@ -17620,7 +18134,7 @@ var HeadFilter = defineComponent({
|
|
17620
18134
|
};
|
17621
18135
|
const handleBtnResetClick = () => {
|
17622
18136
|
if (state.checked.length) {
|
17623
|
-
state.checked.
|
18137
|
+
state.checked.length = 0;
|
17624
18138
|
state.isOpen = false;
|
17625
18139
|
nextTick(() => emit("change", state.checked, filterFn));
|
17626
18140
|
}
|
@@ -17665,10 +18179,41 @@ var HeadFilter = defineComponent({
|
|
17665
18179
|
"onClick": handleBtnResetClick
|
17666
18180
|
}, [text]);
|
17667
18181
|
};
|
18182
|
+
const handleValueChange = (val, item) => {
|
18183
|
+
const setValue = new Set(state.checked);
|
18184
|
+
if (val) {
|
18185
|
+
setValue.add(item.value);
|
18186
|
+
} else {
|
18187
|
+
setValue.delete(item.value);
|
18188
|
+
}
|
18189
|
+
state.checked.length = 0;
|
18190
|
+
state.checked.push(...Array.from(setValue));
|
18191
|
+
handleFilterChange();
|
18192
|
+
};
|
18193
|
+
const renderFilterList = (scope) => {
|
18194
|
+
if (scope.data.length) {
|
18195
|
+
return scope.data.map((item) => createVNode("div", {
|
18196
|
+
"class": "list-item"
|
18197
|
+
}, [createVNode(BkCheckbox, {
|
18198
|
+
"label": item.value,
|
18199
|
+
"key": item.$index,
|
18200
|
+
"immediateEmitChange": false,
|
18201
|
+
"checked": state.checked.includes(item.value),
|
18202
|
+
"modelValue": state.checked.includes(item.value),
|
18203
|
+
"onChange": (val) => handleValueChange(val, item)
|
18204
|
+
}, {
|
18205
|
+
default: () => [`${item.text}`]
|
18206
|
+
})]));
|
18207
|
+
}
|
18208
|
+
return createVNode("div", {
|
18209
|
+
"class": "list-item is-empty"
|
18210
|
+
}, [createTextVNode("\u6682\u65E0\u6570\u636E")]);
|
18211
|
+
};
|
17668
18212
|
return () => createVNode(BkPopover, mergeProps({
|
17669
18213
|
"trigger": "click",
|
17670
18214
|
"isShow": state.isOpen,
|
17671
18215
|
"placement": "bottom-start",
|
18216
|
+
"renderType": RenderType.SHOWN,
|
17672
18217
|
"arrow": false,
|
17673
18218
|
"offset": 0
|
17674
18219
|
}, {
|
@@ -17680,29 +18225,26 @@ var HeadFilter = defineComponent({
|
|
17680
18225
|
default: () => createVNode(funnel, {
|
17681
18226
|
"class": headClass.value
|
17682
18227
|
}, null),
|
17683
|
-
content: () => {
|
17684
|
-
|
17685
|
-
|
17686
|
-
|
17687
|
-
|
17688
|
-
|
17689
|
-
"
|
17690
|
-
"
|
17691
|
-
"
|
17692
|
-
|
17693
|
-
"
|
17694
|
-
|
17695
|
-
"label": item.value
|
18228
|
+
content: () => createVNode("div", {
|
18229
|
+
"class": headFilterContentClass
|
18230
|
+
}, [createVNode(BkCheckboxGroup, {
|
18231
|
+
"class": "content-list"
|
18232
|
+
}, {
|
18233
|
+
default: () => [createVNode(BkVirtualRender, {
|
18234
|
+
"lineHeight": 32,
|
18235
|
+
"list": localData.value,
|
18236
|
+
"throttleDelay": 0,
|
18237
|
+
"scrollEvent": true,
|
18238
|
+
"ref": refVirtualRender,
|
18239
|
+
"className": "content-items"
|
17696
18240
|
}, {
|
17697
|
-
default:
|
17698
|
-
})]
|
17699
|
-
|
17700
|
-
|
17701
|
-
|
17702
|
-
|
17703
|
-
|
17704
|
-
}, null), renderResetBtn()])]);
|
17705
|
-
}
|
18241
|
+
default: renderFilterList
|
18242
|
+
})]
|
18243
|
+
}), createVNode("div", {
|
18244
|
+
"class": "content-footer"
|
18245
|
+
}, [renderSaveBtn(), createVNode("span", {
|
18246
|
+
"class": "btn-filter-split"
|
18247
|
+
}, null), renderResetBtn()])])
|
17706
18248
|
});
|
17707
18249
|
}
|
17708
18250
|
});
|
@@ -17787,7 +18329,7 @@ var Settings = defineComponent({
|
|
17787
18329
|
emit
|
17788
18330
|
}) {
|
17789
18331
|
const defaultSizeList = DEFAULT_SIZE_LIST;
|
17790
|
-
const resolvedColVal = (item,
|
18332
|
+
const resolvedColVal = (item, index2) => resolvePropVal(item, ["field", "type"], [item, index2]);
|
17791
18333
|
const checkAll = ref(false);
|
17792
18334
|
const isShow = ref(false);
|
17793
18335
|
const localSettings = typeof props2.settings === "boolean" ? ref({
|
@@ -17843,9 +18385,9 @@ var Settings = defineComponent({
|
|
17843
18385
|
e.preventDefault();
|
17844
18386
|
checkAll.value = !checkAll.value;
|
17845
18387
|
const fields = localSettings.value.fields || props2.columns || [];
|
17846
|
-
const readonlyFields = fields.filter((f2,
|
18388
|
+
const readonlyFields = fields.filter((f2, index2) => f2.disabled && checkedFields.value.includes(resolvedColVal(f2, index2))).map((item, index2) => resolvedColVal(item, index2));
|
17847
18389
|
if (checkAll.value) {
|
17848
|
-
const allFields = fields.filter((f2) => !f2.disabled).map((item,
|
18390
|
+
const allFields = fields.filter((f2) => !f2.disabled).map((item, index2) => resolvedColVal(item, index2));
|
17849
18391
|
checkedFields.value.splice(0, checkedFields.value.length, ...allFields, ...readonlyFields);
|
17850
18392
|
} else {
|
17851
18393
|
checkedFields.value.splice(0, checkedFields.value.length, ...readonlyFields);
|
@@ -17857,7 +18399,7 @@ var Settings = defineComponent({
|
|
17857
18399
|
});
|
17858
18400
|
const sizeList = localSettings.value.sizeList || defaultSizeList;
|
17859
18401
|
const isFiledDisabled = computed(() => isLimit.value && (localSettings.value.limit ? localSettings.value.limit : 0) <= checkedFields.value.length);
|
17860
|
-
const isItemReadonly = (item,
|
18402
|
+
const isItemReadonly = (item, index2) => item.disabled || isFiledDisabled.value && !checkedFields.value.includes(resolvedColVal(item, index2));
|
17861
18403
|
const handleSizeItemClick = (item) => {
|
17862
18404
|
activeSize.value = item.value;
|
17863
18405
|
activeHeight.value = item.height;
|
@@ -17874,13 +18416,13 @@ var Settings = defineComponent({
|
|
17874
18416
|
"class": getItemClass(item),
|
17875
18417
|
"onClick": () => handleSizeItemClick(item)
|
17876
18418
|
}, [item.label]));
|
17877
|
-
const indeterminate = computed(() => checkedFields.value.length > 0 && !renderFields.value.every((field,
|
18419
|
+
const indeterminate = computed(() => checkedFields.value.length > 0 && !renderFields.value.every((field, index2) => checkedFields.value.includes(resolvePropVal(field, "field", [field, index2]))));
|
17878
18420
|
const showLineHeight = computed(() => typeof localSettings.value.showLineHeight === "boolean" ? localSettings.value.showLineHeight : true);
|
17879
18421
|
watch(() => [checkedFields.value], () => {
|
17880
18422
|
if (!checkedFields.value.length) {
|
17881
18423
|
checkAll.value = false;
|
17882
18424
|
}
|
17883
|
-
if (checkedFields.value.length && renderFields.value.every((field,
|
18425
|
+
if (checkedFields.value.length && renderFields.value.every((field, index2) => checkedFields.value.includes(resolvedColVal(field, index2)))) {
|
17884
18426
|
checkAll.value = true;
|
17885
18427
|
}
|
17886
18428
|
}, {
|
@@ -17939,15 +18481,15 @@ var Settings = defineComponent({
|
|
17939
18481
|
"class": "setting-body-fields",
|
17940
18482
|
"modelValue": checkedFields.value,
|
17941
18483
|
"onUpdate:modelValue": ($event) => checkedFields.value = $event
|
17942
|
-
}, _isSlot$2(_slot2 = renderFields.value.map((item,
|
18484
|
+
}, _isSlot$2(_slot2 = renderFields.value.map((item, index2) => {
|
17943
18485
|
let _slot;
|
17944
18486
|
return createVNode("div", {
|
17945
18487
|
"class": "field-item"
|
17946
18488
|
}, [createVNode(BkCheckbox, {
|
17947
|
-
"checked": checkedFields.value.includes(resolvedColVal(item,
|
17948
|
-
"label": resolvedColVal(item,
|
17949
|
-
"disabled": isItemReadonly(item,
|
17950
|
-
}, _isSlot$2(_slot = resolvePropVal(item, "label", [item,
|
18489
|
+
"checked": checkedFields.value.includes(resolvedColVal(item, index2)),
|
18490
|
+
"label": resolvedColVal(item, index2),
|
18491
|
+
"disabled": isItemReadonly(item, index2)
|
18492
|
+
}, _isSlot$2(_slot = resolvePropVal(item, "label", [item, index2])) ? _slot : {
|
17951
18493
|
default: () => [_slot]
|
17952
18494
|
})]);
|
17953
18495
|
})) ? _slot2 : {
|
@@ -17982,12 +18524,12 @@ var useFixedColumn = (props2, colgroups, hasScrollY) => {
|
|
17982
18524
|
});
|
17983
18525
|
const resolveFixColPos = (column) => column.fixed === "right" ? "right" : "left";
|
17984
18526
|
const resolveFixOffset = {
|
17985
|
-
left: (ignoreFirst = true) => colgroups.filter((col) => col.fixed && col.fixed !== "right").reduce((offset2, curr,
|
17986
|
-
const outOffset = ignoreFirst &&
|
18527
|
+
left: (ignoreFirst = true) => colgroups.filter((col) => col.fixed && col.fixed !== "right").reduce((offset2, curr, index2) => {
|
18528
|
+
const outOffset = ignoreFirst && index2 === 0 ? offset2 : offset2 + getColumnReactWidth(curr);
|
17987
18529
|
return outOffset;
|
17988
18530
|
}, 0),
|
17989
|
-
right: (ignoreFirst = true) => colgroups.filter((col) => col.fixed === "right").reduce((offset2, curr,
|
17990
|
-
const outOffset = ignoreFirst &&
|
18531
|
+
right: (ignoreFirst = true) => colgroups.filter((col) => col.fixed === "right").reduce((offset2, curr, index2) => {
|
18532
|
+
const outOffset = ignoreFirst && index2 === 0 ? offset2 : offset2 + getColumnReactWidth(curr);
|
17991
18533
|
return outOffset;
|
17992
18534
|
}, hasScrollY ? SCROLLY_WIDTH : 0)
|
17993
18535
|
};
|
@@ -18001,8 +18543,8 @@ var useFixedColumn = (props2, colgroups, hasScrollY) => {
|
|
18001
18543
|
let preOffset = 0;
|
18002
18544
|
for (start2; ; ) {
|
18003
18545
|
start2 = start2 + -1 * opt;
|
18004
|
-
const
|
18005
|
-
const current = colgroups[
|
18546
|
+
const index2 = Math.abs(start2);
|
18547
|
+
const current = colgroups[index2];
|
18006
18548
|
const curFixedPos = resolveFixColPos(current);
|
18007
18549
|
const id = current[COLUMN_ATTRIBUTE.COL_UID];
|
18008
18550
|
if (curFixedPos === fixedPos && sourceId !== id) {
|
@@ -18187,26 +18729,26 @@ class TableRender {
|
|
18187
18729
|
});
|
18188
18730
|
this.context.emit(EMIT_EVENTS.PAGE_VALUE_CHANGE, current);
|
18189
18731
|
}
|
18190
|
-
setColumnActive(
|
18191
|
-
const col = this.propActiveCols.find((item) => item.index ===
|
18732
|
+
setColumnActive(index2, single = false) {
|
18733
|
+
const col = this.propActiveCols.find((item) => item.index === index2);
|
18192
18734
|
Object.assign(col, {
|
18193
18735
|
active: !col.active
|
18194
18736
|
});
|
18195
18737
|
if (single) {
|
18196
|
-
this.propActiveCols.filter((item) => item.index !==
|
18738
|
+
this.propActiveCols.filter((item) => item.index !== index2 && item.active).forEach((col2) => {
|
18197
18739
|
Object.assign(col2, {
|
18198
18740
|
active: false
|
18199
18741
|
});
|
18200
18742
|
});
|
18201
18743
|
}
|
18202
18744
|
}
|
18203
|
-
handleColumnHeadClick(
|
18745
|
+
handleColumnHeadClick(index2, column) {
|
18204
18746
|
if (this.props.columnPick !== "disabled") {
|
18205
|
-
this.setColumnActive(
|
18747
|
+
this.setColumnActive(index2, this.props.columnPick === "single");
|
18206
18748
|
this.context.emit(EMIT_EVENTS.COLUMN_PICK, this.propActiveCols);
|
18207
18749
|
}
|
18208
18750
|
if (column.sort && !column.filter) {
|
18209
|
-
const columnName = resolvePropVal(column, ["field", "type"], [column,
|
18751
|
+
const columnName = resolvePropVal(column, ["field", "type"], [column, index2]);
|
18210
18752
|
const nextSort = getNextSortType(this.reactiveProp.defaultSort[columnName]);
|
18211
18753
|
Object.assign(this.reactiveProp.defaultSort, {
|
18212
18754
|
[columnName]: nextSort
|
@@ -18215,13 +18757,13 @@ class TableRender {
|
|
18215
18757
|
this.emitEvent(EVENTS$1.ON_SORT_BY_CLICK, [{
|
18216
18758
|
sortFn,
|
18217
18759
|
column,
|
18218
|
-
index,
|
18760
|
+
index: index2,
|
18219
18761
|
type: nextSort
|
18220
18762
|
}]);
|
18221
18763
|
}
|
18222
18764
|
}
|
18223
|
-
getSortCell(column,
|
18224
|
-
const columnName = resolvePropVal(column, ["field", "type"], [column,
|
18765
|
+
getSortCell(column, index2) {
|
18766
|
+
const columnName = resolvePropVal(column, ["field", "type"], [column, index2]);
|
18225
18767
|
const handleSortClick = (sortFn, type) => {
|
18226
18768
|
Object.assign(this.reactiveProp.defaultSort, {
|
18227
18769
|
[columnName]: type
|
@@ -18229,7 +18771,7 @@ class TableRender {
|
|
18229
18771
|
this.emitEvent(EVENTS$1.ON_SORT_BY_CLICK, [{
|
18230
18772
|
sortFn,
|
18231
18773
|
column,
|
18232
|
-
index,
|
18774
|
+
index: index2,
|
18233
18775
|
type
|
18234
18776
|
}]);
|
18235
18777
|
};
|
@@ -18240,14 +18782,14 @@ class TableRender {
|
|
18240
18782
|
"onChange": handleSortClick
|
18241
18783
|
}, null);
|
18242
18784
|
}
|
18243
|
-
getFilterCell(column,
|
18785
|
+
getFilterCell(column, index2) {
|
18244
18786
|
const handleFilterChange = (checked, filterFn) => {
|
18245
|
-
const filterFn0 = (row,
|
18787
|
+
const filterFn0 = (row, index3) => filterFn(checked, row, index3);
|
18246
18788
|
this.emitEvent(EVENTS$1.ON_FILTER_CLICK, [{
|
18247
18789
|
filterFn: filterFn0,
|
18248
18790
|
checked,
|
18249
18791
|
column,
|
18250
|
-
index
|
18792
|
+
index: index2
|
18251
18793
|
}]);
|
18252
18794
|
};
|
18253
18795
|
const filterSave = (values) => {
|
@@ -18271,13 +18813,13 @@ class TableRender {
|
|
18271
18813
|
const rowStyle = {
|
18272
18814
|
"--row-height": `${resolvePropVal(config, "height", ["thead"])}px`
|
18273
18815
|
};
|
18274
|
-
const getHeadCellText = (column,
|
18816
|
+
const getHeadCellText = (column, index2) => {
|
18275
18817
|
if (typeof cellFn === "function") {
|
18276
|
-
return cellFn(column,
|
18818
|
+
return cellFn(column, index2);
|
18277
18819
|
}
|
18278
|
-
return resolvePropVal(column, "label", [column,
|
18820
|
+
return resolvePropVal(column, "label", [column, index2]);
|
18279
18821
|
};
|
18280
|
-
const renderHeadCell = (column,
|
18822
|
+
const renderHeadCell = (column, index2) => {
|
18281
18823
|
if (column.type === "selection") {
|
18282
18824
|
const selectAll = this.reactiveProp.rowActions.get(TABLE_ROW_ATTRIBUTE.ROW_SELECTION_ALL);
|
18283
18825
|
return this.renderCheckboxColumn({
|
@@ -18286,12 +18828,12 @@ class TableRender {
|
|
18286
18828
|
}
|
18287
18829
|
const cells = [];
|
18288
18830
|
if (column.sort) {
|
18289
|
-
cells.push(this.getSortCell(column,
|
18831
|
+
cells.push(this.getSortCell(column, index2));
|
18290
18832
|
}
|
18291
18833
|
if (column.filter) {
|
18292
|
-
cells.push(this.getFilterCell(column,
|
18834
|
+
cells.push(this.getFilterCell(column, index2));
|
18293
18835
|
}
|
18294
|
-
const cellText = getHeadCellText(column,
|
18836
|
+
const cellText = getHeadCellText(column, index2);
|
18295
18837
|
cells.unshift(cellText);
|
18296
18838
|
const showTitle = typeof cellText === "string" ? cellText : void 0;
|
18297
18839
|
return createVNode(TableCell, {
|
@@ -18314,13 +18856,13 @@ class TableRender {
|
|
18314
18856
|
return createVNode("thead", {
|
18315
18857
|
"style": rowStyle
|
18316
18858
|
}, [createVNode(TableRow, null, {
|
18317
|
-
default: () => [createVNode("tr", null, [this.filterColgroups.map((column,
|
18859
|
+
default: () => [createVNode("tr", null, [this.filterColgroups.map((column, index2) => createVNode("th", mergeProps({
|
18318
18860
|
"colspan": 1,
|
18319
18861
|
"rowspan": 1,
|
18320
|
-
"class": this.getHeadColumnClass(column,
|
18862
|
+
"class": this.getHeadColumnClass(column, index2),
|
18321
18863
|
"style": resolveFixedColumnStyle(column),
|
18322
|
-
"onClick": () => this.handleColumnHeadClick(
|
18323
|
-
}, resolveEventListener(column)), [renderHeadCell(column,
|
18864
|
+
"onClick": () => this.handleColumnHeadClick(index2, column)
|
18865
|
+
}, resolveEventListener(column)), [renderHeadCell(column, index2)]))])]
|
18324
18866
|
})]);
|
18325
18867
|
}
|
18326
18868
|
renderTBody(rows) {
|
@@ -18333,7 +18875,7 @@ class TableRender {
|
|
18333
18875
|
"--row-height": `${this.getRowHeight(row, rowIndex)}px`
|
18334
18876
|
}];
|
18335
18877
|
const rowClass = [...formatPropAsArray(this.props.rowClass, [row, rowIndex, this]), `hover-${this.props.rowHover}`];
|
18336
|
-
const rowKey = row
|
18878
|
+
const rowKey = getRowId(row, rowIndex, this.props);
|
18337
18879
|
return [createVNode(TableRow, {
|
18338
18880
|
"key": rowKey
|
18339
18881
|
}, {
|
@@ -18342,17 +18884,17 @@ class TableRender {
|
|
18342
18884
|
"class": rowClass,
|
18343
18885
|
"onClick": (e) => this.handleRowClick(e, row, rowIndex, rows),
|
18344
18886
|
"onDblclick": (e) => this.handleRowDblClick(e, row, rowIndex, rows)
|
18345
|
-
}, [this.filterColgroups.map((column,
|
18887
|
+
}, [this.filterColgroups.map((column, index2) => {
|
18346
18888
|
var _a, _b;
|
18347
|
-
const cellStyle = [resolveFixedColumnStyle(column), ...formatPropAsArray(this.props.cellStyle, [column,
|
18889
|
+
const cellStyle = [resolveFixedColumnStyle(column), ...formatPropAsArray(this.props.cellStyle, [column, index2, row, rowIndex, this])];
|
18348
18890
|
const tdCtxClass = {
|
18349
18891
|
"expand-cell": column.type === "expand"
|
18350
18892
|
};
|
18351
|
-
const cellKey = `__CELL_${rowIndex}_${
|
18893
|
+
const cellKey = `__CELL_${rowIndex}_${index2}`;
|
18352
18894
|
const {
|
18353
18895
|
colspan,
|
18354
18896
|
rowspan
|
18355
|
-
} = resolveCellSpan(column,
|
18897
|
+
} = resolveCellSpan(column, index2, row, rowIndex);
|
18356
18898
|
const skipRowKey = TABLE_ROW_ATTRIBUTE.ROW_SKIP_CFG;
|
18357
18899
|
const columnIdKey = column[COLUMN_ATTRIBUTE.COL_UID];
|
18358
18900
|
const {
|
@@ -18361,7 +18903,7 @@ class TableRender {
|
|
18361
18903
|
} = (_b = (_a = row[skipRowKey]) == null ? void 0 : _a[columnIdKey]) != null ? _b : {};
|
18362
18904
|
if (!skipRow && !skipCol) {
|
18363
18905
|
let _slot;
|
18364
|
-
const cellClass = [this.getColumnClass(column,
|
18906
|
+
const cellClass = [this.getColumnClass(column, index2), ...formatPropAsArray(this.props.cellClass, [column, index2, row, rowIndex, this]), {
|
18365
18907
|
"expand-row": row[TABLE_ROW_ATTRIBUTE.ROW_EXPAND],
|
18366
18908
|
"is-last": rowIndex + rowspan >= rowLength
|
18367
18909
|
}];
|
@@ -18382,16 +18924,17 @@ class TableRender {
|
|
18382
18924
|
}
|
18383
18925
|
return null;
|
18384
18926
|
})])]
|
18385
|
-
}), this.renderExpandRow(row, rowClass)];
|
18927
|
+
}), this.renderExpandRow(row, rowClass, rowIndex)];
|
18386
18928
|
})]);
|
18387
18929
|
}
|
18388
|
-
renderExpandRow(row, rowClass) {
|
18930
|
+
renderExpandRow(row, rowClass, rowIndex) {
|
18389
18931
|
const isExpand = !!row[TABLE_ROW_ATTRIBUTE.ROW_EXPAND];
|
18390
18932
|
if (isExpand) {
|
18391
18933
|
const resovledClass = [...rowClass, {
|
18392
18934
|
row_expend: true
|
18393
18935
|
}];
|
18394
|
-
const
|
18936
|
+
const rowId = getRowId(row, rowIndex, this.props);
|
18937
|
+
const rowKey = `${rowId}_expand`;
|
18395
18938
|
return createVNode(TableRow, {
|
18396
18939
|
"key": rowKey
|
18397
18940
|
}, {
|
@@ -18402,49 +18945,51 @@ class TableRender {
|
|
18402
18945
|
}, [createVNode("td", {
|
18403
18946
|
"colspan": this.filterColgroups.length,
|
18404
18947
|
"rowspan": 1
|
18405
|
-
}, [(_c = (_b = (_a = this.context.slots).expandRow) == null ? void 0 : _b.call(_a, row[TABLE_ROW_ATTRIBUTE.ROW_SOURCE_DATA])) != null ? _c : createVNode("div", {
|
18948
|
+
}, [(_c = (_b = (_a = this.context.slots).expandRow) == null ? void 0 : _b.call(_a, row[TABLE_ROW_ATTRIBUTE.ROW_SOURCE_DATA] || row)) != null ? _c : createVNode("div", {
|
18406
18949
|
"class": "expand-cell-ctx"
|
18407
18950
|
}, [createTextVNode("Expand Row")])])])];
|
18408
18951
|
}
|
18409
18952
|
});
|
18410
18953
|
}
|
18411
18954
|
}
|
18412
|
-
handleRowClick(e, row,
|
18413
|
-
this.context.emit(EMIT_EVENTS.ROW_CLICK, e, row,
|
18955
|
+
handleRowClick(e, row, index2, rows) {
|
18956
|
+
this.context.emit(EMIT_EVENTS.ROW_CLICK, e, row, index2, rows, this);
|
18414
18957
|
}
|
18415
|
-
handleRowDblClick(e, row,
|
18416
|
-
this.context.emit(EMIT_EVENTS.ROW_DBL_CLICK, e, row,
|
18958
|
+
handleRowDblClick(e, row, index2, rows) {
|
18959
|
+
this.context.emit(EMIT_EVENTS.ROW_DBL_CLICK, e, row, index2, rows, this);
|
18417
18960
|
}
|
18418
18961
|
getExpandCell(row) {
|
18419
18962
|
const isExpand = !!row[TABLE_ROW_ATTRIBUTE.ROW_EXPAND];
|
18420
18963
|
return isExpand ? createVNode(downShape, null, null) : createVNode(rightShape, null, null);
|
18421
18964
|
}
|
18422
|
-
handleRowExpandClick(row, column,
|
18965
|
+
handleRowExpandClick(row, column, index2, rows, e) {
|
18423
18966
|
this.emitEvent(EVENTS$1.ON_ROW_EXPAND_CLICK, [{
|
18424
18967
|
row,
|
18425
18968
|
column,
|
18426
|
-
index,
|
18969
|
+
index: index2,
|
18427
18970
|
rows,
|
18428
18971
|
e
|
18429
18972
|
}]);
|
18430
18973
|
}
|
18431
|
-
renderCellCallbackFn(row, column,
|
18974
|
+
renderCellCallbackFn(row, column, index2, rows) {
|
18432
18975
|
const cell = getRowText(row, resolvePropVal(column, "field", [column, row]), column);
|
18433
|
-
const
|
18976
|
+
const attrIndex = row[TABLE_ROW_ATTRIBUTE.ROW_INDEX];
|
18977
|
+
const rowIndex = typeof attrIndex === "number" ? attrIndex : index2;
|
18978
|
+
const data2 = this.props.data[rowIndex];
|
18434
18979
|
return column.render({
|
18435
18980
|
cell,
|
18436
18981
|
data: data2,
|
18437
18982
|
row,
|
18438
18983
|
column,
|
18439
|
-
index,
|
18984
|
+
index: index2,
|
18440
18985
|
rows
|
18441
18986
|
});
|
18442
18987
|
}
|
18443
|
-
renderCheckboxColumn(row,
|
18988
|
+
renderCheckboxColumn(row, index2, isAll = false) {
|
18444
18989
|
const handleChecked = (value) => {
|
18445
18990
|
this.emitEvent(EVENTS$1.ON_ROW_CHECK, [{
|
18446
18991
|
row,
|
18447
|
-
index,
|
18992
|
+
index: index2,
|
18448
18993
|
isAll,
|
18449
18994
|
value
|
18450
18995
|
}]);
|
@@ -18452,7 +18997,7 @@ class TableRender {
|
|
18452
18997
|
const indeterminate = isAll && !!this.reactiveProp.rowActions.get(TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE);
|
18453
18998
|
const isEnable = isRowSelectEnable(this.props, {
|
18454
18999
|
row,
|
18455
|
-
index,
|
19000
|
+
index: index2,
|
18456
19001
|
isCheckAll: isAll
|
18457
19002
|
});
|
18458
19003
|
return createVNode(BkCheckbox, {
|
@@ -18462,46 +19007,46 @@ class TableRender {
|
|
18462
19007
|
"indeterminate": indeterminate
|
18463
19008
|
}, null);
|
18464
19009
|
}
|
18465
|
-
renderExpandColumn(row, column,
|
19010
|
+
renderExpandColumn(row, column, index2, rows) {
|
18466
19011
|
const renderExpandSlot = () => {
|
18467
19012
|
var _a, _b, _c;
|
18468
19013
|
if (typeof column.render === "function") {
|
18469
|
-
return this.renderCellCallbackFn(row, column,
|
19014
|
+
return this.renderCellCallbackFn(row, column, index2, rows);
|
18470
19015
|
}
|
18471
19016
|
return (_c = (_b = (_a = this.context.slots).expandCell) == null ? void 0 : _b.call(_a, {
|
18472
19017
|
row,
|
18473
19018
|
column,
|
18474
|
-
index,
|
19019
|
+
index: index2,
|
18475
19020
|
rows
|
18476
19021
|
})) != null ? _c : this.getExpandCell(row);
|
18477
19022
|
};
|
18478
19023
|
return createVNode("span", {
|
18479
19024
|
"class": "expand-btn-action",
|
18480
|
-
"onClick": (e) => this.handleRowExpandClick(row, column,
|
19025
|
+
"onClick": (e) => this.handleRowExpandClick(row, column, index2, rows, e)
|
18481
19026
|
}, [renderExpandSlot()]);
|
18482
19027
|
}
|
18483
|
-
renderCell(row, column,
|
19028
|
+
renderCell(row, column, index2, rows) {
|
18484
19029
|
var _a, _b;
|
18485
19030
|
const defaultFn = () => {
|
18486
19031
|
const cell = getRowText(row, resolvePropVal(column, "field", [column, row]), column);
|
18487
19032
|
if (typeof column.render === "function") {
|
18488
|
-
return this.renderCellCallbackFn(row, column,
|
19033
|
+
return this.renderCellCallbackFn(row, column, index2, rows);
|
18489
19034
|
}
|
18490
19035
|
return cell;
|
18491
19036
|
};
|
18492
19037
|
const renderFn = {
|
18493
|
-
expand: (row2, column2,
|
18494
|
-
selection: (row2, _column,
|
19038
|
+
expand: (row2, column2, index3, rows2) => this.renderExpandColumn(row2, column2, index3, rows2),
|
19039
|
+
selection: (row2, _column, index3, _rows) => this.renderCheckboxColumn(row2, index3)
|
18495
19040
|
};
|
18496
|
-
return (_b = (_a = renderFn[column.type]) == null ? void 0 : _a.call(renderFn, row, column,
|
19041
|
+
return (_b = (_a = renderFn[column.type]) == null ? void 0 : _a.call(renderFn, row, column, index2, rows)) != null ? _b : defaultFn();
|
18497
19042
|
}
|
18498
19043
|
isColActive(colIndex) {
|
18499
19044
|
return this.props.columnPick !== "disabled" && this.propActiveCols.some((col) => col.index === colIndex && col.active);
|
18500
19045
|
}
|
18501
19046
|
renderColGroup() {
|
18502
|
-
return createVNode("colgroup", null, [(this.filterColgroups || []).map((column,
|
19047
|
+
return createVNode("colgroup", null, [(this.filterColgroups || []).map((column, index2) => {
|
18503
19048
|
const colCls = classes({
|
18504
|
-
active: this.isColActive(
|
19049
|
+
active: this.isColActive(index2)
|
18505
19050
|
});
|
18506
19051
|
const width = `${resolveWidth(getColumnReactWidth(column))}`.replace(/px$/i, "");
|
18507
19052
|
return createVNode("col", {
|
@@ -18568,17 +19113,17 @@ var useActiveColumns = (props2, targetColumns) => {
|
|
18568
19113
|
};
|
18569
19114
|
}
|
18570
19115
|
const activeCols = reactive(resolveActiveColumns(props2));
|
18571
|
-
const getActiveColumns = () => getColumns().map((_column,
|
18572
|
-
index,
|
18573
|
-
active: activeCols.some((colIndex) => colIndex ===
|
19116
|
+
const getActiveColumns = () => getColumns().map((_column, index2) => ({
|
19117
|
+
index: index2,
|
19118
|
+
active: activeCols.some((colIndex) => colIndex === index2),
|
18574
19119
|
_column
|
18575
19120
|
}));
|
18576
19121
|
watchEffect(() => {
|
18577
19122
|
activeColumns = getActiveColumns();
|
18578
19123
|
const cols = resolveActiveColumns(props2);
|
18579
|
-
activeColumns.forEach((col,
|
19124
|
+
activeColumns.forEach((col, index2) => {
|
18580
19125
|
Object.assign(col, {
|
18581
|
-
active: cols.some((colIndex) => colIndex ===
|
19126
|
+
active: cols.some((colIndex) => colIndex === index2)
|
18582
19127
|
});
|
18583
19128
|
});
|
18584
19129
|
});
|
@@ -18697,7 +19242,7 @@ var useColumnResize = (colgroups, immediate = true) => {
|
|
18697
19242
|
const name = getEventName(event);
|
18698
19243
|
if (col.listeners.has(name)) {
|
18699
19244
|
const listeners = col.listeners.get(name);
|
18700
|
-
listeners.
|
19245
|
+
listeners.length = 0;
|
18701
19246
|
}
|
18702
19247
|
});
|
18703
19248
|
});
|
@@ -18861,7 +19406,8 @@ const useInit = (props2, targetColumns) => {
|
|
18861
19406
|
var _a2, _b2;
|
18862
19407
|
const checked = (settings == null ? void 0 : settings.checked) || ((_a2 = props2.settings) == null ? void 0 : _a2.checked) || [];
|
18863
19408
|
const settingFields = (settings == null ? void 0 : settings.fields) || ((_b2 = props2.settings) == null ? void 0 : _b2.fields) || [];
|
18864
|
-
colgroups.
|
19409
|
+
colgroups.length = 0;
|
19410
|
+
colgroups.push(...getColumns().map((col) => __spreadProps(__spreadValues({}, col), {
|
18865
19411
|
calcWidth: null,
|
18866
19412
|
resizeWidth: null,
|
18867
19413
|
minWidth: resolveMinWidth(col),
|
@@ -18879,13 +19425,16 @@ const useInit = (props2, targetColumns) => {
|
|
18879
19425
|
updateColGroups();
|
18880
19426
|
}
|
18881
19427
|
});
|
18882
|
-
|
19428
|
+
const debounceColUpdate = lodash.exports.debounce(() => {
|
18883
19429
|
updateColGroups();
|
18884
19430
|
resetResizeEvents();
|
18885
19431
|
registerResizeEvent();
|
19432
|
+
}, 120);
|
19433
|
+
watch(() => [props2.columns, targetColumns], () => {
|
19434
|
+
debounceColUpdate();
|
18886
19435
|
}, { immediate: true, deep: true });
|
18887
|
-
const defSort = props2.columns.reduce((out, col,
|
18888
|
-
const columnName = resolvePropVal(col, ["field", "type"], [col,
|
19436
|
+
const defSort = props2.columns.reduce((out, col, index2) => {
|
19437
|
+
const columnName = resolvePropVal(col, ["field", "type"], [col, index2]);
|
18889
19438
|
const sort = resolveSort(col.sort);
|
18890
19439
|
if (sort) {
|
18891
19440
|
return __spreadProps(__spreadValues({}, out || {}), { [columnName]: sort == null ? void 0 : sort.value });
|
@@ -18965,9 +19514,9 @@ const useInit = (props2, targetColumns) => {
|
|
18965
19514
|
const isChecked = typeof checked === "boolean" ? checked : !isSelectionAll();
|
18966
19515
|
reactiveSchema.rowActions.set(TABLE_ROW_ATTRIBUTE.ROW_SELECTION_ALL, isChecked);
|
18967
19516
|
reactiveSchema.rowActions.set(TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE, false);
|
18968
|
-
indexData.forEach((row,
|
19517
|
+
indexData.forEach((row, index2) => {
|
18969
19518
|
var _a2;
|
18970
|
-
if (isRowSelectEnable(props2, { row, index, isCheckAll: false })) {
|
19519
|
+
if (isRowSelectEnable(props2, { row, index: index2, isCheckAll: false })) {
|
18971
19520
|
const rowId = row[TABLE_ROW_ATTRIBUTE.ROW_UID];
|
18972
19521
|
const target = Object.assign({}, (_a2 = reactiveSchema.rowActions.get(rowId)) != null ? _a2 : {}, { isSelected: isChecked });
|
18973
19522
|
reactiveSchema.rowActions.set(rowId, target);
|
@@ -19004,10 +19553,10 @@ const useInit = (props2, targetColumns) => {
|
|
19004
19553
|
}
|
19005
19554
|
return thenFn(row);
|
19006
19555
|
};
|
19007
|
-
const resolveSelection = (row, _rowId,
|
19556
|
+
const resolveSelection = (row, _rowId, index2) => resolveSelectionRow(row, () => {
|
19008
19557
|
var _a2;
|
19009
19558
|
const rowId = _rowId === void 0 ? row[TABLE_ROW_ATTRIBUTE.ROW_UID] : _rowId;
|
19010
|
-
if (isRowSelectEnable(props2, { row, index, isCheckAll: false }) && isSelectionAll()) {
|
19559
|
+
if (isRowSelectEnable(props2, { row, index: index2, isCheckAll: false }) && isSelectionAll()) {
|
19011
19560
|
return true;
|
19012
19561
|
}
|
19013
19562
|
if (reactiveSchema.rowActions.has(rowId)) {
|
@@ -19017,47 +19566,84 @@ const useInit = (props2, targetColumns) => {
|
|
19017
19566
|
});
|
19018
19567
|
const indexData = reactive([]);
|
19019
19568
|
const neepColspanOrRowspan = computed(() => colgroups.some((col) => typeof col.rowspan === "function" || /^\d$/.test(`${col.rowspan}`) || typeof col.colspan === "function" || /^\d$/.test(`${col.colspan}`)));
|
19569
|
+
const needSelection = computed(() => colgroups.some((col) => col.type === "selection"));
|
19570
|
+
const needExpand = computed(() => colgroups.some((col) => col.type === "expand"));
|
19571
|
+
const needIndexColumn = computed(() => colgroups.some((col) => col.type === "index"));
|
19020
19572
|
const initIndexData = (keepLocalAction = false) => {
|
19021
19573
|
let preRowId = null;
|
19022
19574
|
const skipConfig = {};
|
19023
|
-
|
19024
|
-
const
|
19025
|
-
|
19026
|
-
|
19027
|
-
|
19028
|
-
|
19029
|
-
|
19030
|
-
|
19031
|
-
|
19032
|
-
|
19033
|
-
|
19575
|
+
if (neepColspanOrRowspan.value || needSelection.value || needExpand.value || needIndexColumn.value) {
|
19576
|
+
const copyData = props2.data.map((item, index2) => {
|
19577
|
+
const rowId = getRowKey(item, props2, index2);
|
19578
|
+
preRowId = rowId;
|
19579
|
+
const target = __spreadProps(__spreadValues({}, item), {
|
19580
|
+
[TABLE_ROW_ATTRIBUTE.ROW_UID]: rowId,
|
19581
|
+
[TABLE_ROW_ATTRIBUTE.ROW_SOURCE_DATA]: __spreadValues({}, item)
|
19582
|
+
});
|
19583
|
+
if (neepColspanOrRowspan.value) {
|
19584
|
+
const cfg = getSkipConfig(item, rowId, index2, skipConfig, preRowId);
|
19585
|
+
Object.assign(target, { [TABLE_ROW_ATTRIBUTE.ROW_SKIP_CFG]: cfg });
|
19586
|
+
}
|
19587
|
+
if (needSelection.value) {
|
19588
|
+
Object.assign(target, { [TABLE_ROW_ATTRIBUTE.ROW_SELECTION]: resolveSelection(item, rowId, index2) });
|
19589
|
+
}
|
19590
|
+
if (needIndexColumn.value) {
|
19591
|
+
Object.assign(target, { [TABLE_ROW_ATTRIBUTE.ROW_INDEX]: index2 });
|
19592
|
+
}
|
19593
|
+
if (needExpand.value) {
|
19594
|
+
Object.assign(target, { [TABLE_ROW_ATTRIBUTE.ROW_EXPAND]: keepLocalAction ? isRowExpand(rowId) : false });
|
19595
|
+
}
|
19596
|
+
return target;
|
19034
19597
|
});
|
19035
|
-
|
19036
|
-
|
19598
|
+
indexData.length = 0;
|
19599
|
+
indexData.push(...copyData);
|
19600
|
+
if (needSelection.value) {
|
19601
|
+
initSelectionAllByData();
|
19602
|
+
}
|
19603
|
+
return;
|
19604
|
+
}
|
19605
|
+
indexData.length = 0;
|
19606
|
+
indexData.push(...props2.data);
|
19037
19607
|
};
|
19038
|
-
const isRowChecked = (isRowCheckEnable, selectedAll, item,
|
19039
|
-
const isChecked = resolveSelection(item, item[TABLE_ROW_ATTRIBUTE.ROW_UID],
|
19608
|
+
const isRowChecked = (isRowCheckEnable, selectedAll, item, index2) => {
|
19609
|
+
const isChecked = resolveSelection(item, item[TABLE_ROW_ATTRIBUTE.ROW_UID], index2);
|
19040
19610
|
if (isRowCheckEnable) {
|
19041
19611
|
return typeof selectedAll === "boolean" ? selectedAll : isChecked;
|
19042
19612
|
}
|
19043
19613
|
return isChecked;
|
19044
19614
|
};
|
19045
19615
|
const updateIndexData = (selectedAll) => {
|
19046
|
-
|
19047
|
-
|
19048
|
-
|
19049
|
-
|
19050
|
-
|
19051
|
-
|
19052
|
-
|
19053
|
-
|
19054
|
-
|
19055
|
-
|
19616
|
+
if (neepColspanOrRowspan.value || needSelection.value || needExpand.value || needIndexColumn.value) {
|
19617
|
+
let preRowId = null;
|
19618
|
+
const skipConfig = {};
|
19619
|
+
indexData.forEach((item, index2) => {
|
19620
|
+
const rowId = item[TABLE_ROW_ATTRIBUTE.ROW_UID];
|
19621
|
+
if (needExpand.value) {
|
19622
|
+
Object.assign(item, {
|
19623
|
+
[TABLE_ROW_ATTRIBUTE.ROW_EXPAND]: isRowExpand(item[TABLE_ROW_ATTRIBUTE.ROW_UID])
|
19624
|
+
});
|
19625
|
+
}
|
19626
|
+
if (neepColspanOrRowspan.value) {
|
19627
|
+
const cfg = getSkipConfig(item, rowId, index2, skipConfig, preRowId);
|
19628
|
+
preRowId = item[TABLE_ROW_ATTRIBUTE.ROW_UID];
|
19629
|
+
Object.assign(item, {
|
19630
|
+
[TABLE_ROW_ATTRIBUTE.ROW_SKIP_CFG]: cfg
|
19631
|
+
});
|
19632
|
+
}
|
19633
|
+
if (needIndexColumn.value) {
|
19634
|
+
Object.assign(item, { [TABLE_ROW_ATTRIBUTE.ROW_INDEX]: index2 });
|
19635
|
+
}
|
19636
|
+
if (needSelection.value) {
|
19637
|
+
const isRowCheckEnable = isRowSelectEnable(props2, { row: item, index: index2, isCheckAll: false });
|
19638
|
+
Object.assign(item, {
|
19639
|
+
[TABLE_ROW_ATTRIBUTE.ROW_SELECTION]: isRowChecked(isRowCheckEnable, selectedAll, item, index2)
|
19640
|
+
});
|
19641
|
+
}
|
19056
19642
|
});
|
19057
|
-
|
19058
|
-
|
19059
|
-
|
19060
|
-
|
19643
|
+
if (needSelection.value && typeof selectedAll !== "boolean") {
|
19644
|
+
initSelectionAllByData();
|
19645
|
+
}
|
19646
|
+
return;
|
19061
19647
|
}
|
19062
19648
|
};
|
19063
19649
|
const getSkipConfig = (row, rowId, rowIndex, skipCfg, preRowId) => {
|
@@ -19067,9 +19653,9 @@ const useInit = (props2, targetColumns) => {
|
|
19067
19653
|
if (!skipCfg[rowId]) {
|
19068
19654
|
skipCfg[rowId] = {};
|
19069
19655
|
}
|
19070
|
-
colgroups.forEach((column,
|
19656
|
+
colgroups.forEach((column, index2) => {
|
19071
19657
|
var _a3, _b2;
|
19072
|
-
const { colspan, rowspan } = resolveCellSpan(column,
|
19658
|
+
const { colspan, rowspan } = resolveCellSpan(column, index2, row, rowIndex);
|
19073
19659
|
const colId = column[COLUMN_ATTRIBUTE.COL_UID];
|
19074
19660
|
const preRowColSkipLen = (_b2 = (_a3 = preRowConfig[colId]) == null ? void 0 : _a3.skipRowLen) != null ? _b2 : 0;
|
19075
19661
|
const target = {
|
@@ -19102,6 +19688,10 @@ const useInit = (props2, targetColumns) => {
|
|
19102
19688
|
});
|
19103
19689
|
return skipCfg[rowId];
|
19104
19690
|
};
|
19691
|
+
const debounceUpdate = lodash.exports.debounce(updateIndexData, 120);
|
19692
|
+
watch([neepColspanOrRowspan, needSelection, needExpand, needIndexColumn], () => {
|
19693
|
+
debounceUpdate();
|
19694
|
+
});
|
19105
19695
|
const asyncSelection = (row, value, all = false) => {
|
19106
19696
|
if (props2.asyncData && props2.rowKey) {
|
19107
19697
|
if (all) {
|
@@ -19225,7 +19815,7 @@ var Component$e = defineComponent({
|
|
19225
19815
|
const {
|
19226
19816
|
sortFn,
|
19227
19817
|
column,
|
19228
|
-
index,
|
19818
|
+
index: index2,
|
19229
19819
|
type
|
19230
19820
|
} = args;
|
19231
19821
|
if (typeof sortFn === "function") {
|
@@ -19236,7 +19826,7 @@ var Component$e = defineComponent({
|
|
19236
19826
|
}
|
19237
19827
|
ctx.emit(EMIT_EVENTS.COLUMN_SORT, {
|
19238
19828
|
column: unref(column[COLUMN_ATTRIBUTE.COL_SOURCE_DATA]),
|
19239
|
-
index,
|
19829
|
+
index: index2,
|
19240
19830
|
type
|
19241
19831
|
});
|
19242
19832
|
}).on(EVENTS$1.ON_FILTER_CLICK, (args) => {
|
@@ -19245,7 +19835,7 @@ var Component$e = defineComponent({
|
|
19245
19835
|
filterFn,
|
19246
19836
|
checked,
|
19247
19837
|
column,
|
19248
|
-
index
|
19838
|
+
index: index2
|
19249
19839
|
} = args;
|
19250
19840
|
if (typeof filterFn === "function") {
|
19251
19841
|
columnFilterFn = filterFn;
|
@@ -19255,7 +19845,7 @@ var Component$e = defineComponent({
|
|
19255
19845
|
ctx.emit(EMIT_EVENTS.COLUMN_FILTER, {
|
19256
19846
|
checked,
|
19257
19847
|
column: unref(column[COLUMN_ATTRIBUTE.COL_SOURCE_DATA]),
|
19258
|
-
index
|
19848
|
+
index: index2
|
19259
19849
|
});
|
19260
19850
|
}).on(EVENTS$1.ON_SETTING_CHANGE, (args) => {
|
19261
19851
|
const {
|
@@ -19285,14 +19875,14 @@ var Component$e = defineComponent({
|
|
19285
19875
|
const {
|
19286
19876
|
row,
|
19287
19877
|
column,
|
19288
|
-
index,
|
19878
|
+
index: index2,
|
19289
19879
|
rows,
|
19290
19880
|
e
|
19291
19881
|
} = args;
|
19292
19882
|
ctx.emit(EMIT_EVENTS.ROW_EXPAND_CLICK, {
|
19293
|
-
row: unref(row[TABLE_ROW_ATTRIBUTE.ROW_SOURCE_DATA]),
|
19883
|
+
row: unref(row[TABLE_ROW_ATTRIBUTE.ROW_SOURCE_DATA] || row),
|
19294
19884
|
column: unref(column[COLUMN_ATTRIBUTE.COL_SOURCE_DATA]),
|
19295
|
-
index,
|
19885
|
+
index: index2,
|
19296
19886
|
rows,
|
19297
19887
|
e
|
19298
19888
|
});
|
@@ -19300,7 +19890,7 @@ var Component$e = defineComponent({
|
|
19300
19890
|
}).on(EVENTS$1.ON_ROW_CHECK, ({
|
19301
19891
|
row,
|
19302
19892
|
isAll,
|
19303
|
-
index,
|
19893
|
+
index: index2,
|
19304
19894
|
value
|
19305
19895
|
}) => {
|
19306
19896
|
if (isAll) {
|
@@ -19312,16 +19902,16 @@ var Component$e = defineComponent({
|
|
19312
19902
|
} else {
|
19313
19903
|
toggleRowSelection(row, value);
|
19314
19904
|
ctx.emit(EMIT_EVENTS.ROW_SELECT, {
|
19315
|
-
row: unref(row[TABLE_ROW_ATTRIBUTE.ROW_SOURCE_DATA]),
|
19316
|
-
index,
|
19905
|
+
row: unref(row[TABLE_ROW_ATTRIBUTE.ROW_SOURCE_DATA] || row),
|
19906
|
+
index: index2,
|
19317
19907
|
checked: value,
|
19318
19908
|
data: props2.data
|
19319
19909
|
});
|
19320
19910
|
}
|
19321
19911
|
ctx.emit(EMIT_EVENTS.ROW_SELECT_CHANGE, {
|
19322
|
-
row: unref(row[TABLE_ROW_ATTRIBUTE.ROW_SOURCE_DATA]),
|
19912
|
+
row: unref(row[TABLE_ROW_ATTRIBUTE.ROW_SOURCE_DATA] || row),
|
19323
19913
|
isAll,
|
19324
|
-
index,
|
19914
|
+
index: index2,
|
19325
19915
|
checked: value,
|
19326
19916
|
data: props2.data
|
19327
19917
|
});
|
@@ -19359,11 +19949,10 @@ var Component$e = defineComponent({
|
|
19359
19949
|
updateBorderClass(root.value);
|
19360
19950
|
const offset2 = getColumnsWidthOffsetWidth();
|
19361
19951
|
resolveColumnWidth(root.value, colgroups, 20, offset2);
|
19362
|
-
},
|
19952
|
+
}, 180, true, props2.resizerWay);
|
19363
19953
|
observerIns.start();
|
19364
19954
|
});
|
19365
19955
|
onBeforeUnmount(() => {
|
19366
|
-
observerIns.stop();
|
19367
19956
|
observerIns = null;
|
19368
19957
|
tableRender.destroy();
|
19369
19958
|
});
|
@@ -19432,6 +20021,7 @@ var Component$e = defineComponent({
|
|
19432
20021
|
"onContentScroll": handleScrollChanged,
|
19433
20022
|
"throttleDelay": 0,
|
19434
20023
|
"scrollEvent": true,
|
20024
|
+
"rowKey": props2.rowKey,
|
19435
20025
|
"enabled": props2.virtualEnabled
|
19436
20026
|
}), {
|
19437
20027
|
default: (scope) => tableRender.renderTableBodySchema(scope.data || props2.data),
|
@@ -19554,11 +20144,11 @@ const useTagsOverflow = (tagInputRef, collapseTags, selectedTagList) => {
|
|
19554
20144
|
overflowTagIndex.value = null;
|
19555
20145
|
setTimeout(() => {
|
19556
20146
|
const tags = Array.from(tagInputRef.value.querySelectorAll(".tag-item"));
|
19557
|
-
const tagIndexInSecondRow = tags.findIndex((currentTag,
|
19558
|
-
if (!
|
20147
|
+
const tagIndexInSecondRow = tags.findIndex((currentTag, index2) => {
|
20148
|
+
if (!index2) {
|
19559
20149
|
return false;
|
19560
20150
|
}
|
19561
|
-
const previousTag = tags[
|
20151
|
+
const previousTag = tags[index2 - 1];
|
19562
20152
|
return previousTag.offsetTop !== currentTag.offsetTop;
|
19563
20153
|
});
|
19564
20154
|
overflowTagIndex.value = tagIndexInSecondRow > 0 ? tagIndexInSecondRow - 1 : null;
|
@@ -19766,8 +20356,8 @@ var Component$d = defineComponent({
|
|
19766
20356
|
const renderList = computed(() => {
|
19767
20357
|
if (props2.useGroup) {
|
19768
20358
|
const groupMap = {};
|
19769
|
-
pageState.curPageList.forEach((item,
|
19770
|
-
item.__index__ =
|
20359
|
+
pageState.curPageList.forEach((item, index2) => {
|
20360
|
+
item.__index__ = index2;
|
19771
20361
|
if (!groupMap[item.group.groupId]) {
|
19772
20362
|
groupMap[item.group.groupId] = {
|
19773
20363
|
id: item.group.groupId,
|
@@ -19937,7 +20527,7 @@ var Component$d = defineComponent({
|
|
19937
20527
|
}
|
19938
20528
|
initPage(filterData2);
|
19939
20529
|
};
|
19940
|
-
const activeClass = (data2,
|
20530
|
+
const activeClass = (data2, index2) => {
|
19941
20531
|
const style2 = {
|
19942
20532
|
"bk-selector-actived": false,
|
19943
20533
|
"bk-selector-selected": tagList.value.includes(data2[props2.saveKey])
|
@@ -19945,14 +20535,14 @@ var Component$d = defineComponent({
|
|
19945
20535
|
if (props2.useGroup) {
|
19946
20536
|
style2["bk-selector-actived"] = data2.__index__ === state.focusItemIndex;
|
19947
20537
|
} else {
|
19948
|
-
style2["bk-selector-actived"] =
|
20538
|
+
style2["bk-selector-actived"] = index2 === state.focusItemIndex;
|
19949
20539
|
}
|
19950
20540
|
return style2;
|
19951
20541
|
};
|
19952
20542
|
function shallowCompareArray(arr1, arr2) {
|
19953
20543
|
if (arr1.length !== arr2.length)
|
19954
20544
|
return false;
|
19955
|
-
return arr2.every((item,
|
20545
|
+
return arr2.every((item, index2) => arr1[index2] === item);
|
19956
20546
|
}
|
19957
20547
|
const clearSingleCache = () => {
|
19958
20548
|
listState.tagListCache = [];
|
@@ -19967,10 +20557,10 @@ var Component$d = defineComponent({
|
|
19967
20557
|
return 0;
|
19968
20558
|
}
|
19969
20559
|
const childNodes = getSelectedTagNodes();
|
19970
|
-
const
|
20560
|
+
const index2 = childNodes.findIndex(({
|
19971
20561
|
id
|
19972
20562
|
}) => id === "tagInputItem");
|
19973
|
-
return
|
20563
|
+
return index2 >= 0 ? index2 : 0;
|
19974
20564
|
};
|
19975
20565
|
const swapElementPositions = (newNode, referenceNode, isNextElementSibling = false) => {
|
19976
20566
|
if (!referenceNode || !newNode)
|
@@ -20058,9 +20648,9 @@ var Component$d = defineComponent({
|
|
20058
20648
|
clearInput();
|
20059
20649
|
popoverProps.isShow = false;
|
20060
20650
|
};
|
20061
|
-
const handleTagRemove = (data2,
|
20651
|
+
const handleTagRemove = (data2, index2, e) => {
|
20062
20652
|
e == null ? void 0 : e.stopPropagation();
|
20063
|
-
removeTag(data2,
|
20653
|
+
removeTag(data2, index2);
|
20064
20654
|
clearInput();
|
20065
20655
|
handleChange("remove", data2);
|
20066
20656
|
tagInputRef.value.style.width = `${INPUT_MIN_WIDTH}px`;
|
@@ -20103,10 +20693,10 @@ var Component$d = defineComponent({
|
|
20103
20693
|
}
|
20104
20694
|
});
|
20105
20695
|
};
|
20106
|
-
const backspaceHandler = (
|
20696
|
+
const backspaceHandler = (index2, target) => {
|
20107
20697
|
const nodes = getSelectedTagNodes();
|
20108
|
-
swapElementPositions(tagInputItemRef.value, nodes[
|
20109
|
-
listState.selectedTagList.splice(
|
20698
|
+
swapElementPositions(tagInputItemRef.value, nodes[index2 - 1]);
|
20699
|
+
listState.selectedTagList.splice(index2 - 1, 1);
|
20110
20700
|
focusInputTrigger();
|
20111
20701
|
const isExistInit = saveKeyMap.value[target[props2.saveKey]];
|
20112
20702
|
if ((props2.allowCreate && isExistInit || !props2.allowCreate) && !isSingleSelect.value) {
|
@@ -20219,7 +20809,7 @@ var Component$d = defineComponent({
|
|
20219
20809
|
let tags = valArr.map((value2) => value2[saveKey]);
|
20220
20810
|
if (tags.length) {
|
20221
20811
|
const nodes = getSelectedTagNodes();
|
20222
|
-
const
|
20812
|
+
const index2 = getTagInputItemSite();
|
20223
20813
|
const localInitData = listState.localList.map((data2) => data2[saveKey]);
|
20224
20814
|
tags = tags.filter((tag2) => {
|
20225
20815
|
const canSelected = (tag2 == null ? void 0 : tag2.trim()) && !tagList.value.includes(tag2);
|
@@ -20244,8 +20834,8 @@ var Component$d = defineComponent({
|
|
20244
20834
|
};
|
20245
20835
|
}) : listState.localList.filter((tag2) => tags.includes(tag2[saveKey]));
|
20246
20836
|
if (tags.length) {
|
20247
|
-
listState.selectedTagList.splice(
|
20248
|
-
swapElementPositions(tagInputItemRef.value, nodes[
|
20837
|
+
listState.selectedTagList.splice(index2, 0, ...localTags);
|
20838
|
+
swapElementPositions(tagInputItemRef.value, nodes[index2]);
|
20249
20839
|
tagInputRef.value.style.width = `${INPUT_MIN_WIDTH}px`;
|
20250
20840
|
listState.localList = listState.localList.filter((val) => !tags.includes(val[saveKey]));
|
20251
20841
|
handleChange("select");
|
@@ -20332,8 +20922,8 @@ var Component$d = defineComponent({
|
|
20332
20922
|
});
|
20333
20923
|
}
|
20334
20924
|
};
|
20335
|
-
const removeTag = (data2,
|
20336
|
-
listState.selectedTagList.splice(
|
20925
|
+
const removeTag = (data2, index2) => {
|
20926
|
+
listState.selectedTagList.splice(index2, 1);
|
20337
20927
|
const isExistInit = saveKeyMap.value[data2[props2.saveKey]];
|
20338
20928
|
if ((props2.allowCreate && isExistInit || !props2.allowCreate) && !isSingleSelect.value) {
|
20339
20929
|
listState.localList.push(data2);
|
@@ -20395,7 +20985,7 @@ var Component$d = defineComponent({
|
|
20395
20985
|
"style": {
|
20396
20986
|
marginLeft: `${this.leftSpace}px`
|
20397
20987
|
}
|
20398
|
-
}, [this.selectedTagList.map((item,
|
20988
|
+
}, [this.selectedTagList.map((item, index2) => {
|
20399
20989
|
const tooltips2 = {
|
20400
20990
|
boundary: "window",
|
20401
20991
|
theme: "light",
|
@@ -20403,7 +20993,7 @@ var Component$d = defineComponent({
|
|
20403
20993
|
content: item[this.tooltipKey],
|
20404
20994
|
disabled: !this.tooltipKey
|
20405
20995
|
};
|
20406
|
-
const isOverflow = this.localCollapseTags && this.overflowTagIndex &&
|
20996
|
+
const isOverflow = this.localCollapseTags && this.overflowTagIndex && index2 >= this.overflowTagIndex;
|
20407
20997
|
return withDirectives(createVNode("li", {
|
20408
20998
|
"class": "tag-item",
|
20409
20999
|
"style": {
|
@@ -20418,7 +21008,7 @@ var Component$d = defineComponent({
|
|
20418
21008
|
"tagOverflowTips": this.tagOverflowTips
|
20419
21009
|
}, null), this.showTagClose ? createVNode(error, {
|
20420
21010
|
"class": "remove-tag",
|
20421
|
-
"onClick": this.handleTagRemove.bind(this, item,
|
21011
|
+
"onClick": this.handleTagRemove.bind(this, item, index2)
|
20422
21012
|
}, null) : null]), [[resolveDirective("bk-tooltips"), tooltips2]]);
|
20423
21013
|
}), withDirectives(createVNode("li", {
|
20424
21014
|
"ref": "tagInputItemRef",
|
@@ -20456,16 +21046,16 @@ var Component$d = defineComponent({
|
|
20456
21046
|
"max-height": `${this.contentMaxHeight}px`
|
20457
21047
|
},
|
20458
21048
|
"class": "outside-ul"
|
20459
|
-
}, [this.renderList.map((group,
|
21049
|
+
}, [this.renderList.map((group, index2) => this.useGroup ? createVNode("li", {
|
20460
21050
|
"class": "bk-selector-group-item"
|
20461
21051
|
}, [createVNode("span", {
|
20462
21052
|
"class": "group-name"
|
20463
21053
|
}, [group.name, createTextVNode(" ("), group.children.length, createTextVNode(")")]), createVNode("ul", {
|
20464
21054
|
"class": "bk-selector-group-list-item"
|
20465
|
-
}, [group.children.map((item,
|
21055
|
+
}, [group.children.map((item, index3) => createVNode("li", {
|
20466
21056
|
"class": ["bk-selector-list-item", {
|
20467
21057
|
disabled: item.disabled
|
20468
|
-
}, this.activeClass(item,
|
21058
|
+
}, this.activeClass(item, index3)],
|
20469
21059
|
"onClick": this.handleTagSelected.bind(this, item, "select")
|
20470
21060
|
}, [createVNode(ListTagRender, {
|
20471
21061
|
"node": item,
|
@@ -20476,7 +21066,7 @@ var Component$d = defineComponent({
|
|
20476
21066
|
}, null)]))])]) : createVNode("li", {
|
20477
21067
|
"class": ["bk-selector-list-item", {
|
20478
21068
|
disabled: group.disabled
|
20479
|
-
}, this.activeClass(group,
|
21069
|
+
}, this.activeClass(group, index2)],
|
20480
21070
|
"onClick": this.handleTagSelected.bind(this, group, "select")
|
20481
21071
|
}, [createVNode(ListTagRender, {
|
20482
21072
|
"node": group,
|
@@ -20623,7 +21213,7 @@ var TabNav = defineComponent({
|
|
20623
21213
|
}
|
20624
21214
|
const list = [];
|
20625
21215
|
let hasFindActive = false;
|
20626
|
-
props2.panels.filter((item,
|
21216
|
+
props2.panels.filter((item, index2) => {
|
20627
21217
|
if (!item.props) {
|
20628
21218
|
return null;
|
20629
21219
|
}
|
@@ -20646,7 +21236,7 @@ var TabNav = defineComponent({
|
|
20646
21236
|
return h$1(item.slots.label);
|
20647
21237
|
}
|
20648
21238
|
if ([void 0, ""].includes(label2)) {
|
20649
|
-
return `\u9009\u9879\u5361${
|
21239
|
+
return `\u9009\u9879\u5361${index2 + 1}`;
|
20650
21240
|
}
|
20651
21241
|
if (typeof label2 === "string") {
|
20652
21242
|
return label2;
|
@@ -20679,17 +21269,17 @@ var TabNav = defineComponent({
|
|
20679
21269
|
handleTabAdd(e) {
|
20680
21270
|
props2.tabAdd(e);
|
20681
21271
|
},
|
20682
|
-
dragstart(
|
20683
|
-
dragStartIndex.value =
|
21272
|
+
dragstart(index2, $event) {
|
21273
|
+
dragStartIndex.value = index2;
|
20684
21274
|
draggingEle.value = props2.guid;
|
20685
21275
|
Object.assign($event.dataTransfer, {
|
20686
21276
|
effectAllowed: "move"
|
20687
21277
|
});
|
20688
|
-
props2.tabDrag(
|
21278
|
+
props2.tabDrag(index2, $event);
|
20689
21279
|
},
|
20690
|
-
dragenter(
|
21280
|
+
dragenter(index2) {
|
20691
21281
|
if (distinctRoots(draggingEle.value, props2.guid)) {
|
20692
|
-
dragenterIndex.value =
|
21282
|
+
dragenterIndex.value = index2;
|
20693
21283
|
}
|
20694
21284
|
},
|
20695
21285
|
dragend() {
|
@@ -20697,17 +21287,17 @@ var TabNav = defineComponent({
|
|
20697
21287
|
dragStartIndex.value = -1;
|
20698
21288
|
draggingEle.value = null;
|
20699
21289
|
},
|
20700
|
-
drop(
|
21290
|
+
drop(index2, sortType) {
|
20701
21291
|
if (!distinctRoots(draggingEle.value, props2.guid)) {
|
20702
21292
|
return false;
|
20703
21293
|
}
|
20704
|
-
props2.tabSort(dragStartIndex.value,
|
21294
|
+
props2.tabSort(dragStartIndex.value, index2, sortType);
|
20705
21295
|
},
|
20706
21296
|
handleTabChange(name) {
|
20707
21297
|
props2.tabChange(name);
|
20708
21298
|
},
|
20709
|
-
handleTabRemove(
|
20710
|
-
props2.tabRemove(
|
21299
|
+
handleTabRemove(index2, panel) {
|
21300
|
+
props2.tabRemove(index2, panel);
|
20711
21301
|
}
|
20712
21302
|
};
|
20713
21303
|
return __spreadProps(__spreadValues({}, methods), {
|
@@ -20731,7 +21321,7 @@ var TabNav = defineComponent({
|
|
20731
21321
|
dragend,
|
20732
21322
|
drop
|
20733
21323
|
} = this;
|
20734
|
-
const renderNavs = () => this.navs.map((item,
|
21324
|
+
const renderNavs = () => this.navs.map((item, index2) => {
|
20735
21325
|
if (!item) {
|
20736
21326
|
return null;
|
20737
21327
|
}
|
@@ -20755,10 +21345,10 @@ var TabNav = defineComponent({
|
|
20755
21345
|
"key": name,
|
20756
21346
|
"onClick": () => this.handleTabChange(name),
|
20757
21347
|
"draggable": getValue(item.sortable, sortable),
|
20758
|
-
"onDragstart": (e) => dragstart(
|
21348
|
+
"onDragstart": (e) => dragstart(index2, e),
|
20759
21349
|
"onDragenter": (e) => {
|
20760
21350
|
e.preventDefault();
|
20761
|
-
dragenter(
|
21351
|
+
dragenter(index2);
|
20762
21352
|
},
|
20763
21353
|
"onDragleave": (e) => {
|
20764
21354
|
e.preventDefault();
|
@@ -20772,12 +21362,12 @@ var TabNav = defineComponent({
|
|
20772
21362
|
},
|
20773
21363
|
"onDrop": (e) => {
|
20774
21364
|
e.preventDefault();
|
20775
|
-
drop(
|
21365
|
+
drop(index2, sortType);
|
20776
21366
|
},
|
20777
21367
|
"class": getNavItemClass()
|
20778
21368
|
}, [createVNode("div", null, [tabLabel]), getValue(item.closable, closable) && createVNode(close$1, {
|
20779
21369
|
"class": resolveClassName("tab-header-item-close"),
|
20780
|
-
"onClick": () => this.handleTabRemove(
|
21370
|
+
"onClick": () => this.handleTabRemove(index2, item)
|
20781
21371
|
}, null)]);
|
20782
21372
|
});
|
20783
21373
|
const renderSlot2 = () => {
|
@@ -20797,9 +21387,9 @@ var TabNav = defineComponent({
|
|
20797
21387
|
if (list.length) {
|
20798
21388
|
return createVNode("div", {
|
20799
21389
|
"class": resolveClassName("tab-header-operation")
|
20800
|
-
}, [list.map((item,
|
21390
|
+
}, [list.map((item, index2) => createVNode("div", {
|
20801
21391
|
"class": resolveClassName("tab-header-item"),
|
20802
|
-
"key":
|
21392
|
+
"key": index2
|
20803
21393
|
}, [item]))]);
|
20804
21394
|
}
|
20805
21395
|
return null;
|
@@ -20895,9 +21485,9 @@ var Tab = defineComponent({
|
|
20895
21485
|
emit("tab-change", name);
|
20896
21486
|
emit("update:active", name);
|
20897
21487
|
},
|
20898
|
-
tabRemove(
|
20899
|
-
emit("remove",
|
20900
|
-
emit("remove-panel",
|
21488
|
+
tabRemove(index2, panel) {
|
21489
|
+
emit("remove", index2, panel);
|
21490
|
+
emit("remove-panel", index2, panel);
|
20901
21491
|
},
|
20902
21492
|
tabSort(dragTabIndex, dropTabIndex, sortType) {
|
20903
21493
|
const list = panels.value;
|
@@ -21073,9 +21663,9 @@ function close(id, position, spacing, userOnClose) {
|
|
21073
21663
|
userOnClose == null ? void 0 : userOnClose();
|
21074
21664
|
const verticalProperty = position.startsWith("top") ? "top" : "bottom";
|
21075
21665
|
let instanceIndex = -1;
|
21076
|
-
instances[position].forEach((item,
|
21666
|
+
instances[position].forEach((item, index2) => {
|
21077
21667
|
if (item.props.id === id) {
|
21078
|
-
instanceIndex =
|
21668
|
+
instanceIndex = index2;
|
21079
21669
|
}
|
21080
21670
|
});
|
21081
21671
|
const vm = instances[position][instanceIndex];
|
@@ -22609,8 +23199,8 @@ function buildLocalizeFn(args) {
|
|
22609
23199
|
var _width = options.width ? String(options.width) : args.defaultWidth;
|
22610
23200
|
valuesArray = args.values[_width] || args.values[_defaultWidth];
|
22611
23201
|
}
|
22612
|
-
var
|
22613
|
-
return valuesArray[
|
23202
|
+
var index2 = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
|
23203
|
+
return valuesArray[index2];
|
22614
23204
|
};
|
22615
23205
|
}
|
22616
23206
|
var eraValues = {
|
@@ -22875,8 +23465,8 @@ var match = {
|
|
22875
23465
|
defaultMatchWidth: "wide",
|
22876
23466
|
parsePatterns: parseQuarterPatterns,
|
22877
23467
|
defaultParseWidth: "any",
|
22878
|
-
valueCallback: function(
|
22879
|
-
return
|
23468
|
+
valueCallback: function(index2) {
|
23469
|
+
return index2 + 1;
|
22880
23470
|
}
|
22881
23471
|
}),
|
22882
23472
|
month: buildMatchFn({
|
@@ -23884,9 +24474,9 @@ function shorten(arr, sLen) {
|
|
23884
24474
|
}
|
23885
24475
|
function monthUpdate(arrName) {
|
23886
24476
|
return (d2, v2, i18n) => {
|
23887
|
-
const
|
23888
|
-
if (~
|
23889
|
-
d2.month =
|
24477
|
+
const index2 = i18n[arrName].indexOf(v2.charAt(0).toUpperCase() + v2.substr(1).toLowerCase());
|
24478
|
+
if (~index2) {
|
24479
|
+
d2.month = index2;
|
23890
24480
|
}
|
23891
24481
|
};
|
23892
24482
|
}
|
@@ -24105,13 +24695,13 @@ fecha.parse = (dateStr, format2, i18nSettings) => {
|
|
24105
24695
|
format2.replace(token, ($0) => {
|
24106
24696
|
if (parseFlags[$0]) {
|
24107
24697
|
const info2 = parseFlags[$0];
|
24108
|
-
const
|
24109
|
-
if (!~
|
24698
|
+
const index2 = dateStr.search(info2[0]);
|
24699
|
+
if (!~index2) {
|
24110
24700
|
isValid2 = false;
|
24111
24701
|
} else {
|
24112
24702
|
dateStr.replace(info2[0], (result) => {
|
24113
24703
|
info2[1](dateInfo, result, i18n);
|
24114
|
-
dateStr = dateStr.substr(
|
24704
|
+
dateStr = dateStr.substr(index2 + result.length);
|
24115
24705
|
return result;
|
24116
24706
|
});
|
24117
24707
|
}
|
@@ -24944,19 +25534,19 @@ var TimeSpinner = defineComponent({
|
|
24944
25534
|
emit("change", changes);
|
24945
25535
|
emit("pick-click");
|
24946
25536
|
}
|
24947
|
-
function scroll(type,
|
25537
|
+
function scroll(type, index2) {
|
24948
25538
|
const domRef = getDomRef(type);
|
24949
25539
|
const from = domRef.scrollTop;
|
24950
|
-
const to = 32 * getScrollIndex(type,
|
25540
|
+
const to = 32 * getScrollIndex(type, index2);
|
24951
25541
|
scrollTop(domRef, from, to, 500);
|
24952
25542
|
}
|
24953
|
-
function getScrollIndex(type,
|
25543
|
+
function getScrollIndex(type, index2) {
|
24954
25544
|
const t2 = firstUpperCase(type);
|
24955
25545
|
const disabled = props2[`disabled${t2}`];
|
24956
|
-
let ret =
|
25546
|
+
let ret = index2;
|
24957
25547
|
if (disabled.length && props2.hideDisabledOptions) {
|
24958
25548
|
let count = 0;
|
24959
|
-
disabled.forEach((item) => item <=
|
25549
|
+
disabled.forEach((item) => item <= index2 ? count += 1 : "");
|
24960
25550
|
ret -= count;
|
24961
25551
|
}
|
24962
25552
|
return ret;
|
@@ -25869,12 +26459,12 @@ var DateRangePanel = defineComponent({
|
|
25869
26459
|
changePanelDate(otherPanel, "Month", increment, false);
|
25870
26460
|
}
|
25871
26461
|
};
|
25872
|
-
const handleShortcutClick = (shortcut,
|
26462
|
+
const handleShortcutClick = (shortcut, index2) => {
|
25873
26463
|
if (!(shortcut == null ? void 0 : shortcut.value)) {
|
25874
26464
|
return false;
|
25875
26465
|
}
|
25876
26466
|
if (shortcut.onClick) {
|
25877
|
-
shortcut.onClick(shortcut,
|
26467
|
+
shortcut.onClick(shortcut, index2);
|
25878
26468
|
}
|
25879
26469
|
const value = typeof shortcut.value === "function" ? shortcut.value() : shortcut.value;
|
25880
26470
|
const [form2, to] = value;
|
@@ -26013,10 +26603,10 @@ var DateRangePanel = defineComponent({
|
|
26013
26603
|
if (this.shortcuts.length) {
|
26014
26604
|
inner = createVNode("div", {
|
26015
26605
|
"class": "bk-picker-panel-shortcuts"
|
26016
|
-
}, [this.shortcuts.map((item,
|
26017
|
-
"key":
|
26606
|
+
}, [this.shortcuts.map((item, index2) => createVNode("div", {
|
26607
|
+
"key": index2,
|
26018
26608
|
"class": "shortcuts-item",
|
26019
|
-
"onClick": () => this.handleShortcutClick(item,
|
26609
|
+
"onClick": () => this.handleShortcutClick(item, index2)
|
26020
26610
|
}, [item.text]))]);
|
26021
26611
|
}
|
26022
26612
|
}
|
@@ -27424,8 +28014,8 @@ var Component$9 = defineComponent({
|
|
27424
28014
|
const itemKey = item[settingCode.value];
|
27425
28015
|
const from = isLeft ? selectList : selectedList;
|
27426
28016
|
const to = isLeft ? selectedList : selectList;
|
27427
|
-
const
|
27428
|
-
to.value.push(...from.value.splice(
|
28017
|
+
const index2 = from.value.findIndex((item2) => item2[settingCode.value] === itemKey);
|
28018
|
+
to.value.push(...from.value.splice(index2, 1));
|
27429
28019
|
handleEmitUpdateTargetList();
|
27430
28020
|
};
|
27431
28021
|
const handleEmitUpdateTargetList = () => {
|
@@ -27709,8 +28299,8 @@ var useNodeAttribute = (flatData, props2) => {
|
|
27709
28299
|
const getSourceNodeByPath = (path) => {
|
27710
28300
|
const paths = path.split("-");
|
27711
28301
|
return paths.reduce((pre, nodeIndex) => {
|
27712
|
-
const
|
27713
|
-
return Array.isArray(pre) ? pre[
|
28302
|
+
const index2 = Number(nodeIndex);
|
28303
|
+
return Array.isArray(pre) ? pre[index2] : pre[props2.children][index2];
|
27714
28304
|
}, props2.data);
|
27715
28305
|
};
|
27716
28306
|
const getChildNodes = (node) => {
|
@@ -27852,8 +28442,8 @@ const updateTreeNode = (path, treeData, childKey, nodekey, nodeValue) => {
|
|
27852
28442
|
const assignTreeNode = (path, treeData, childKey, assignVal) => {
|
27853
28443
|
const paths = path.split("-");
|
27854
28444
|
const targetNode = paths.reduce((pre, nodeIndex) => {
|
27855
|
-
const
|
27856
|
-
return Array.isArray(pre) ? pre[
|
28445
|
+
const index2 = Number(nodeIndex);
|
28446
|
+
return Array.isArray(pre) ? pre[index2] : pre[childKey][index2];
|
27857
28447
|
}, treeData);
|
27858
28448
|
Object.assign(targetNode, assignVal || {});
|
27859
28449
|
};
|
@@ -28231,9 +28821,9 @@ var useNodeAction = (props2, ctx, flatData, _renderData, schemaValues, initOptio
|
|
28231
28821
|
"--depth": dpth
|
28232
28822
|
});
|
28233
28823
|
const maxDeep = getNodeAttr2(node, NODE_ATTRIBUTES.DEPTH) + 1;
|
28234
|
-
return new Array(maxDeep).fill("").map((_2,
|
28824
|
+
return new Array(maxDeep).fill("").map((_2, index2) => index2).filter((depth) => filterNextNode(depth, node)).filter((depth) => depth > 0).map((index2) => createVNode("span", {
|
28235
28825
|
"class": "node-virtual-line",
|
28236
|
-
"style": getNodeLineStyle(maxDeep -
|
28826
|
+
"style": getNodeLineStyle(maxDeep - index2)
|
28237
28827
|
}, null));
|
28238
28828
|
};
|
28239
28829
|
const renderTreeNode = (item) => {
|
@@ -28657,14 +29247,14 @@ var useTreeInit = (props2) => {
|
|
28657
29247
|
const target = nextLoopEvents.get(key2);
|
28658
29248
|
if (Array.isArray(target)) {
|
28659
29249
|
const clearList = [];
|
28660
|
-
target.forEach((event,
|
29250
|
+
target.forEach((event, index2) => {
|
28661
29251
|
const result = executeFn(event);
|
28662
29252
|
if (result === "once") {
|
28663
|
-
clearList.unshift(
|
29253
|
+
clearList.unshift(index2);
|
28664
29254
|
}
|
28665
29255
|
});
|
28666
29256
|
if (clearList.length) {
|
28667
|
-
clearList.forEach((
|
29257
|
+
clearList.forEach((index2) => target.splice(index2, 1));
|
28668
29258
|
}
|
28669
29259
|
if (target.length === 0) {
|
28670
29260
|
nextLoopEvents.delete(key2);
|
@@ -28902,7 +29492,7 @@ var ComposeFormItem = defineComponent({
|
|
28902
29492
|
});
|
28903
29493
|
const formProps = {
|
28904
29494
|
formType: PropTypes.oneOf(["default", "vertical"]).def("default"),
|
28905
|
-
labelWidth: PropTypes.oneOfType([Number, String]),
|
29495
|
+
labelWidth: PropTypes.oneOfType([Number, String]).def(150),
|
28906
29496
|
labelPosition: PropTypes.oneOf(["left", "center", "right"]),
|
28907
29497
|
model: PropTypes.object,
|
28908
29498
|
rules: PropTypes.object
|
@@ -29010,7 +29600,7 @@ var defaultValidator = {
|
|
29010
29600
|
};
|
29011
29601
|
const formItemProps = {
|
29012
29602
|
label: PropTypes.string,
|
29013
|
-
labelWidth: PropTypes.oneOfType([Number, String])
|
29603
|
+
labelWidth: PropTypes.oneOfType([Number, String]),
|
29014
29604
|
labelPosition: PropTypes.oneOf(["left", "center", "right"]),
|
29015
29605
|
property: PropTypes.string.def(""),
|
29016
29606
|
required: PropTypes.bool.def(false),
|
@@ -29995,10 +30585,10 @@ var Component$7 = defineComponent({
|
|
29995
30585
|
emit("update:modelValue", []);
|
29996
30586
|
emit("clear", JSON.parse(JSON.stringify(props2.modelValue)));
|
29997
30587
|
};
|
29998
|
-
const removeTag = (value,
|
30588
|
+
const removeTag = (value, index2, e) => {
|
29999
30589
|
e.stopPropagation();
|
30000
30590
|
const current = JSON.parse(JSON.stringify(value));
|
30001
|
-
const tag2 = current.splice(
|
30591
|
+
const tag2 = current.splice(index2, 1)[0];
|
30002
30592
|
store.value.removeTag(tag2);
|
30003
30593
|
updateValue(current);
|
30004
30594
|
emit("update:modelValue", store.value.getCheckedNodes().map((node) => node.path));
|
@@ -30081,13 +30671,13 @@ var Component$7 = defineComponent({
|
|
30081
30671
|
}
|
30082
30672
|
return createVNode("div", {
|
30083
30673
|
"class": "cascader-tag-list"
|
30084
|
-
}, [this.selectedTags.map((tag2,
|
30674
|
+
}, [this.selectedTags.map((tag2, index2) => createVNode("span", {
|
30085
30675
|
"class": "cascader-tag-item"
|
30086
30676
|
}, [createVNode("span", {
|
30087
30677
|
"class": "cascader-tag-item-name"
|
30088
30678
|
}, [tag2.text]), createVNode(error, {
|
30089
30679
|
"class": "bk-icon-clear-icon",
|
30090
|
-
"onClick": (e) => this.removeTag(this.modelValue,
|
30680
|
+
"onClick": (e) => this.removeTag(this.modelValue, index2, e)
|
30091
30681
|
}, null)]))]);
|
30092
30682
|
};
|
30093
30683
|
return createVNode("div", {
|
@@ -30555,7 +31145,7 @@ var Component$6 = defineComponent({
|
|
30555
31145
|
};
|
30556
31146
|
const valueChanged = () => {
|
30557
31147
|
if (props2.range) {
|
30558
|
-
return ![rangeMinValue.value, rangeMaxValue.value].every((item,
|
31148
|
+
return ![rangeMinValue.value, rangeMaxValue.value].every((item, index2) => item === oldValue.value[index2]);
|
30559
31149
|
}
|
30560
31150
|
return props2.modelValue !== oldValue.value;
|
30561
31151
|
};
|
@@ -30672,14 +31262,14 @@ var Component$6 = defineComponent({
|
|
30672
31262
|
disable: props2.disable
|
30673
31263
|
}],
|
30674
31264
|
"style": barStyle.value
|
30675
|
-
}, null), props2.showInterval ? intervals.value.map((interval,
|
30676
|
-
"key":
|
31265
|
+
}, null), props2.showInterval ? intervals.value.map((interval, index2) => createVNode("div", {
|
31266
|
+
"key": index2,
|
30677
31267
|
"class": ["bk-slider-interval", {
|
30678
31268
|
vertical: props2.vertical
|
30679
31269
|
}],
|
30680
31270
|
"style": getIntervalStyle(interval)
|
30681
|
-
}, null)) : void 0, props2.customContent ? customList.value.map((custom,
|
30682
|
-
"key":
|
31271
|
+
}, null)) : void 0, props2.customContent ? customList.value.map((custom, index2) => createVNode("div", {
|
31272
|
+
"key": index2,
|
30683
31273
|
"class": ["bk-slider-interval", {
|
30684
31274
|
vertical: props2.vertical
|
30685
31275
|
}],
|
@@ -30701,16 +31291,16 @@ var Component$6 = defineComponent({
|
|
30701
31291
|
}, [props2.formatterLabel(props2.maxValue)])];
|
30702
31292
|
}
|
30703
31293
|
if (props2.showIntervalLabel) {
|
30704
|
-
return intervalLabels.value.map((intervalLabel,
|
31294
|
+
return intervalLabels.value.map((intervalLabel, index2) => createVNode("div", {
|
30705
31295
|
"class": ["bk-slider-label", props2.vertical ? "vertical" : "horizontal"],
|
30706
|
-
"key":
|
31296
|
+
"key": index2,
|
30707
31297
|
"style": getIntervalStyle(intervalLabel.stepWidth)
|
30708
31298
|
}, [intervalLabel.stepLabel]));
|
30709
31299
|
}
|
30710
31300
|
if (props2.customContent) {
|
30711
|
-
return customList.value.map((item,
|
31301
|
+
return customList.value.map((item, index2) => createVNode("div", {
|
30712
31302
|
"class": ["bk-slider-label", props2.vertical ? "vertical" : "horizontal"],
|
30713
|
-
"key":
|
31303
|
+
"key": index2,
|
30714
31304
|
"style": getIntervalStyle(item.percent)
|
30715
31305
|
}, [item.label]));
|
30716
31306
|
}
|
@@ -31167,11 +31757,11 @@ var Component$3 = defineComponent({
|
|
31167
31757
|
defaultProcessList.value.splice(0, defaultProcessList.value.length, ...props2.list);
|
31168
31758
|
}
|
31169
31759
|
};
|
31170
|
-
const jumpTo = async (
|
31760
|
+
const jumpTo = async (index2) => {
|
31171
31761
|
try {
|
31172
|
-
if (props2.controllable &&
|
31173
|
-
emit("update:curProcess",
|
31174
|
-
emit("click",
|
31762
|
+
if (props2.controllable && index2 !== props2.curProcess) {
|
31763
|
+
emit("update:curProcess", index2);
|
31764
|
+
emit("click", index2);
|
31175
31765
|
}
|
31176
31766
|
} catch (e) {
|
31177
31767
|
console.warn(e);
|
@@ -31191,25 +31781,25 @@ var Component$3 = defineComponent({
|
|
31191
31781
|
}, `${processClsPrefix}`);
|
31192
31782
|
const isLoadingStatus = (item) => item.status === "loading";
|
31193
31783
|
const isErrorStatus = (item) => item.status === "error";
|
31194
|
-
const isDone = (
|
31784
|
+
const isDone = (index2) => this.curProcess >= index2 + 1 || this.defaultProcessList[index2].status === "done";
|
31195
31785
|
const isIcon = (item) => item.icon ? item.icon : "";
|
31196
|
-
const renderIcon = (
|
31197
|
-
if (
|
31786
|
+
const renderIcon = (index2, item) => {
|
31787
|
+
if (index2 === this.curProcess - 1 && isLoadingStatus(item)) {
|
31198
31788
|
return createVNode(circle, {
|
31199
31789
|
"class": "bk-icon bk-process-icon icon-loading"
|
31200
31790
|
}, null);
|
31201
31791
|
}
|
31202
|
-
if (
|
31792
|
+
if (index2 === this.curProcess - 1 && isErrorStatus(item)) {
|
31203
31793
|
return createVNode(error, {
|
31204
31794
|
"class": "bk-process-icon"
|
31205
31795
|
}, null);
|
31206
31796
|
}
|
31207
|
-
if (
|
31797
|
+
if (index2 === this.curProcess - 1 && isIcon(item)) {
|
31208
31798
|
return createVNode("span", {
|
31209
31799
|
"class": "bk-process-icon-custom"
|
31210
31800
|
}, [createVNode(item.icon, null, null)]);
|
31211
31801
|
}
|
31212
|
-
if (isDone(
|
31802
|
+
if (isDone(index2)) {
|
31213
31803
|
return createVNode(done, {
|
31214
31804
|
"class": "bk-process-icon-done"
|
31215
31805
|
}, null);
|
@@ -31221,19 +31811,19 @@ var Component$3 = defineComponent({
|
|
31221
31811
|
"style": {
|
31222
31812
|
paddingBottom: `${this.paddingBottom}px`
|
31223
31813
|
}
|
31224
|
-
}, [this.defaultProcessList.map((item,
|
31814
|
+
}, [this.defaultProcessList.map((item, index2) => createVNode("li", {
|
31225
31815
|
"onClick": () => {
|
31226
|
-
this.jumpTo(
|
31816
|
+
this.jumpTo(index2 + 1);
|
31227
31817
|
},
|
31228
31818
|
"style": {
|
31229
31819
|
cursor: this.controllable ? "pointer" : ""
|
31230
31820
|
},
|
31231
31821
|
"class": {
|
31232
|
-
success: this.curProcess >=
|
31233
|
-
current: isLoadingStatus(item) &&
|
31234
|
-
error: isErrorStatus(item) &&
|
31822
|
+
success: this.curProcess >= index2 + 1,
|
31823
|
+
current: isLoadingStatus(item) && index2 === this.curProcess - 1,
|
31824
|
+
error: isErrorStatus(item) && index2 === this.curProcess - 1
|
31235
31825
|
}
|
31236
|
-
}, [item[this.displayKey], renderIcon(
|
31826
|
+
}, [item[this.displayKey], renderIcon(index2, item)]))])]);
|
31237
31827
|
}
|
31238
31828
|
});
|
31239
31829
|
const BkProcess = withInstall(Component$3);
|
@@ -31404,9 +31994,9 @@ var UploadList = defineComponent({
|
|
31404
31994
|
}));
|
31405
31995
|
function formatSize(value) {
|
31406
31996
|
const uints = ["Bytes", "KB", "MB", "GB", "TB"];
|
31407
|
-
const
|
31408
|
-
const size = value / 1024 **
|
31409
|
-
return `${size.toFixed(2)}${uints[
|
31997
|
+
const index2 = Math.floor(Math.log(value) / Math.log(1024));
|
31998
|
+
const size = value / 1024 ** index2;
|
31999
|
+
return `${size.toFixed(2)}${uints[index2]}`;
|
31410
32000
|
}
|
31411
32001
|
function handleRemove(file, e) {
|
31412
32002
|
emit("remove", file, e);
|
@@ -32388,8 +32978,8 @@ const hashFile = (file, chunkSize) => new Promise((resolve, reject) => {
|
|
32388
32978
|
}).catch((err) => {
|
32389
32979
|
console.log(err);
|
32390
32980
|
});
|
32391
|
-
function buildFileId(
|
32392
|
-
return Date.now() +
|
32981
|
+
function buildFileId(index2) {
|
32982
|
+
return Date.now() + index2;
|
32393
32983
|
}
|
32394
32984
|
var useFileHandler = (props2, hooks) => {
|
32395
32985
|
const maxImgSize = computed(() => {
|
@@ -33305,7 +33895,7 @@ function parse(diffInput, config) {
|
|
33305
33895
|
var renameTo = /^rename to "?(.+)"?/;
|
33306
33896
|
var similarityIndex = /^similarity index (\d+)%/;
|
33307
33897
|
var dissimilarityIndex = /^dissimilarity index (\d+)%/;
|
33308
|
-
var
|
33898
|
+
var index2 = /^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/;
|
33309
33899
|
var binaryFiles = /^Binary files (.*) and (.*) differ/;
|
33310
33900
|
var binaryDiff = /^GIT binary patch/;
|
33311
33901
|
var combinedIndex = /^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/;
|
@@ -33515,7 +34105,7 @@ function parse(diffInput, config) {
|
|
33515
34105
|
currentFile.unchangedPercentage = parseInt(values[1], 10);
|
33516
34106
|
} else if (values = dissimilarityIndex.exec(line)) {
|
33517
34107
|
currentFile.changedPercentage = parseInt(values[1], 10);
|
33518
|
-
} else if (values =
|
34108
|
+
} else if (values = index2.exec(line)) {
|
33519
34109
|
currentFile.checksumBefore = values[1];
|
33520
34110
|
currentFile.checksumAfter = values[2];
|
33521
34111
|
values[3] && (currentFile.mode = values[3]);
|
@@ -34611,8 +35201,8 @@ var compiler = {};
|
|
34611
35201
|
seenTag = false;
|
34612
35202
|
lineStart = tokens.length;
|
34613
35203
|
}
|
34614
|
-
function changeDelimiters(text2,
|
34615
|
-
var close2 = "=" + ctag, closeIndex = text2.indexOf(close2,
|
35204
|
+
function changeDelimiters(text2, index2) {
|
35205
|
+
var close2 = "=" + ctag, closeIndex = text2.indexOf(close2, index2), delimiters2 = trim(text2.substring(text2.indexOf("=", index2) + 1, closeIndex)).split(" ");
|
34616
35206
|
otag = delimiters2[0];
|
34617
35207
|
ctag = delimiters2[delimiters2.length - 1];
|
34618
35208
|
return closeIndex + close2.length - 1;
|
@@ -34687,12 +35277,12 @@ var compiler = {};
|
|
34687
35277
|
}
|
34688
35278
|
return s2.replace(/^\s*|\s*$/g, "");
|
34689
35279
|
}
|
34690
|
-
function tagChange(tag2, text,
|
34691
|
-
if (text.charAt(
|
35280
|
+
function tagChange(tag2, text, index2) {
|
35281
|
+
if (text.charAt(index2) != tag2.charAt(0)) {
|
34692
35282
|
return false;
|
34693
35283
|
}
|
34694
35284
|
for (var i2 = 1, l2 = tag2.length; i2 < l2; i2++) {
|
34695
|
-
if (text.charAt(
|
35285
|
+
if (text.charAt(index2 + i2) != tag2.charAt(i2)) {
|
34696
35286
|
return false;
|
34697
35287
|
}
|
34698
35288
|
}
|
@@ -36876,45 +37466,45 @@ var RecommendColors = defineComponent({
|
|
36876
37466
|
deep: true
|
36877
37467
|
});
|
36878
37468
|
const colors = computed(() => getColorsFromRecommend(props2.recommend));
|
36879
|
-
const getColorClass = (color,
|
37469
|
+
const getColorClass = (color, index2) => classes({
|
36880
37470
|
"bk-color-picker-empty": color === "",
|
36881
|
-
"bk-color-picker-recommend-selected-color": isFocused.value && selectedIndex.value ===
|
37471
|
+
"bk-color-picker-recommend-selected-color": isFocused.value && selectedIndex.value === index2
|
36882
37472
|
}, "bk-color-picker-recommend-color");
|
36883
37473
|
const handleKeydown = (e) => {
|
36884
37474
|
if (e.code === "Tab") {
|
36885
37475
|
emit("tab", e);
|
36886
37476
|
} else {
|
36887
|
-
let
|
37477
|
+
let index2 = 0;
|
36888
37478
|
const rowNum = 10;
|
36889
37479
|
const max2 = colors.value.length - 1;
|
36890
37480
|
switch (e.code) {
|
36891
37481
|
case "ArrowLeft":
|
36892
37482
|
e.preventDefault();
|
36893
|
-
|
37483
|
+
index2 = clamp(selectedIndex.value - 1, 0, max2);
|
36894
37484
|
break;
|
36895
37485
|
case "ArrowRight":
|
36896
37486
|
e.preventDefault();
|
36897
|
-
|
37487
|
+
index2 = clamp(selectedIndex.value + 1, 0, max2);
|
36898
37488
|
break;
|
36899
37489
|
case "ArrowUp":
|
36900
37490
|
e.preventDefault();
|
36901
|
-
|
37491
|
+
index2 = clamp(selectedIndex.value - rowNum, 0, max2);
|
36902
37492
|
break;
|
36903
37493
|
case "ArrowDown":
|
36904
37494
|
e.preventDefault();
|
36905
|
-
|
37495
|
+
index2 = clamp(selectedIndex.value + rowNum, 0, max2);
|
36906
37496
|
break;
|
36907
37497
|
default:
|
36908
37498
|
return;
|
36909
37499
|
}
|
36910
|
-
selectColor(
|
37500
|
+
selectColor(index2);
|
36911
37501
|
}
|
36912
37502
|
};
|
36913
|
-
const selectColor = (
|
36914
|
-
const color = colors.value[
|
37503
|
+
const selectColor = (index2) => {
|
37504
|
+
const color = colors.value[index2];
|
36915
37505
|
emit("change", color);
|
36916
37506
|
nextTick(() => {
|
36917
|
-
selectedIndex.value =
|
37507
|
+
selectedIndex.value = index2;
|
36918
37508
|
selectedColor.value = color;
|
36919
37509
|
});
|
36920
37510
|
};
|
@@ -36932,11 +37522,11 @@ var RecommendColors = defineComponent({
|
|
36932
37522
|
"onFocus": () => isFocused.value = true,
|
36933
37523
|
"onBlur": () => isFocused.value = false,
|
36934
37524
|
"onKeydown": handleKeydown
|
36935
|
-
}, [colors.value.map((color,
|
37525
|
+
}, [colors.value.map((color, index2) => createVNode("div", {
|
36936
37526
|
"style": `background: ${color || "#fff"}`,
|
36937
|
-
"class": getColorClass(color,
|
36938
|
-
"onClick": () => selectColor(
|
36939
|
-
}, [selectedIndex.value ===
|
37527
|
+
"class": getColorClass(color, index2),
|
37528
|
+
"onClick": () => selectColor(index2)
|
37529
|
+
}, [selectedIndex.value === index2 ? createVNode("div", {
|
36940
37530
|
"class": "bk-color-picker-pointer"
|
36941
37531
|
}, [createVNode("div", {
|
36942
37532
|
"class": "bk-color-picker-circle"
|
@@ -37586,16 +38176,16 @@ var SearchSelectMenu = defineComponent({
|
|
37586
38176
|
const list = [];
|
37587
38177
|
let lastIndex = -1;
|
37588
38178
|
keyword = keyword.replace(/([.*/]{1})/gmi, "\\$1");
|
37589
|
-
str.replace(new RegExp(`${keyword}`, "igm"), (key2,
|
37590
|
-
if (list.length === 0 &&
|
37591
|
-
list.push(str.slice(0,
|
38179
|
+
str.replace(new RegExp(`${keyword}`, "igm"), (key2, index2) => {
|
38180
|
+
if (list.length === 0 && index2 !== 0) {
|
38181
|
+
list.push(str.slice(0, index2));
|
37592
38182
|
} else if (lastIndex >= 0) {
|
37593
|
-
list.push(str.slice(lastIndex + key2.length,
|
38183
|
+
list.push(str.slice(lastIndex + key2.length, index2));
|
37594
38184
|
}
|
37595
38185
|
list.push(createVNode("span", {
|
37596
38186
|
"class": "is-keyword"
|
37597
38187
|
}, [key2]));
|
37598
|
-
lastIndex =
|
38188
|
+
lastIndex = index2;
|
37599
38189
|
return key2;
|
37600
38190
|
});
|
37601
38191
|
if (lastIndex >= 0) {
|
@@ -37712,9 +38302,9 @@ class SelectedItem {
|
|
37712
38302
|
}
|
37713
38303
|
addValue(item) {
|
37714
38304
|
if (this.multiple) {
|
37715
|
-
const
|
37716
|
-
if (
|
37717
|
-
this.values.splice(
|
38305
|
+
const index2 = this.values.findIndex((val) => val.id === item.id);
|
38306
|
+
if (index2 > -1) {
|
38307
|
+
this.values.splice(index2, 1);
|
37718
38308
|
return;
|
37719
38309
|
}
|
37720
38310
|
this.values.push(item);
|
@@ -37835,11 +38425,11 @@ var SearchSelectInput = defineComponent({
|
|
37835
38425
|
(_a = inputRef.value) == null ? void 0 : _a.blur();
|
37836
38426
|
const len = menuList.value.length;
|
37837
38427
|
let i2 = len;
|
37838
|
-
let
|
38428
|
+
let index2 = menuList.value.findIndex((set) => set.id === menuHoverId.value);
|
37839
38429
|
while (i2 >= 0) {
|
37840
|
-
|
37841
|
-
|
37842
|
-
const item = menuList.value[
|
38430
|
+
index2 = e.code === "ArrowDown" ? index2 + 1 : index2 - 1;
|
38431
|
+
index2 = index2 > len - 1 ? 0 : index2 < 0 ? len - 1 : index2;
|
38432
|
+
const item = menuList.value[index2];
|
37843
38433
|
if (!item.disabled) {
|
37844
38434
|
i2 = -1;
|
37845
38435
|
const dom = document.getElementById(item.id);
|
@@ -38277,17 +38867,17 @@ var SearchSelected = defineComponent({
|
|
38277
38867
|
editKey,
|
38278
38868
|
valueSplitCode
|
38279
38869
|
} = useSearchSelectInject();
|
38280
|
-
function handleDeleteSelected(
|
38281
|
-
emit("delete",
|
38870
|
+
function handleDeleteSelected(index2) {
|
38871
|
+
emit("delete", index2);
|
38282
38872
|
}
|
38283
|
-
function handleEditSeleted(e, item,
|
38873
|
+
function handleEditSeleted(e, item, index2) {
|
38284
38874
|
e.preventDefault();
|
38285
38875
|
e.stopPropagation();
|
38286
|
-
onEditClick(item,
|
38876
|
+
onEditClick(item, index2);
|
38287
38877
|
setTimeout(() => inputRef.value.handleInputFocus(), 200);
|
38288
38878
|
}
|
38289
|
-
function handleAddSelected(item,
|
38290
|
-
onEditEnter(item,
|
38879
|
+
function handleAddSelected(item, index2) {
|
38880
|
+
onEditEnter(item, index2);
|
38291
38881
|
}
|
38292
38882
|
function handleInputFocus(isFocus) {
|
38293
38883
|
if (isFocus)
|
@@ -38314,7 +38904,7 @@ var SearchSelected = defineComponent({
|
|
38314
38904
|
};
|
38315
38905
|
},
|
38316
38906
|
render() {
|
38317
|
-
const contentComponent = (item,
|
38907
|
+
const contentComponent = (item, index2) => this.editKey === `${item.id}_${index2}` ? createVNode("div", {
|
38318
38908
|
"class": "selected-input",
|
38319
38909
|
"key": this.editKey.toString()
|
38320
38910
|
}, [createVNode(SearchSelectInput, {
|
@@ -38328,21 +38918,21 @@ var SearchSelected = defineComponent({
|
|
38328
38918
|
"clickOutside": this.handleInputOutside,
|
38329
38919
|
"getMenuList": this.getMenuList,
|
38330
38920
|
"validateValues": this.validateValues,
|
38331
|
-
"onAdd": (v2) => this.handleAddSelected(v2,
|
38921
|
+
"onAdd": (v2) => this.handleAddSelected(v2, index2),
|
38332
38922
|
"onFocus": this.handleInputFocus
|
38333
38923
|
}, null)]) : createVNode("li", {
|
38334
|
-
"class": `search-container-selected ${!(this.overflowIndex >= 0 ?
|
38335
|
-
"key": `${item.id}_${
|
38924
|
+
"class": `search-container-selected ${!(this.overflowIndex >= 0 ? index2 < this.overflowIndex : index2 >= 0) ? "hidden-selected" : ""}`,
|
38925
|
+
"key": `${item.id}_${index2}`
|
38336
38926
|
}, [createVNode("span", {
|
38337
38927
|
"class": "selected-name",
|
38338
|
-
"onClick": (e) => this.handleEditSeleted(e, item,
|
38928
|
+
"onClick": (e) => this.handleEditSeleted(e, item, index2)
|
38339
38929
|
}, [item.inputInnerText]), createVNode(close$1, {
|
38340
38930
|
"class": "selected-clear",
|
38341
|
-
"onClick": () => this.handleDeleteSelected(
|
38931
|
+
"onClick": () => this.handleDeleteSelected(index2)
|
38342
38932
|
}, null)]);
|
38343
|
-
return createVNode(Fragment, null, [this.selectedList.map((item,
|
38933
|
+
return createVNode(Fragment, null, [this.selectedList.map((item, index2) => [this.overflowIndex >= 0 && index2 === this.overflowIndex && createVNode("div", {
|
38344
38934
|
"class": "search-container-selected overflow-selected"
|
38345
|
-
}, [createTextVNode("+"), this.selectedList.length - this.overflowIndex]), contentComponent(item,
|
38935
|
+
}, [createTextVNode("+"), this.selectedList.length - this.overflowIndex]), contentComponent(item, index2)])]);
|
38346
38936
|
}
|
38347
38937
|
});
|
38348
38938
|
const INPUT_PADDING_WIDTH = 40;
|
@@ -38475,12 +39065,12 @@ var Component = defineComponent({
|
|
38475
39065
|
editKey,
|
38476
39066
|
valueSplitCode: splitCode
|
38477
39067
|
});
|
38478
|
-
function onEditClick(item,
|
38479
|
-
editKey.value = `${item.id}_${
|
39068
|
+
function onEditClick(item, index2) {
|
39069
|
+
editKey.value = `${item.id}_${index2}`;
|
38480
39070
|
}
|
38481
|
-
function onEditEnter(item,
|
39071
|
+
function onEditEnter(item, index2) {
|
38482
39072
|
const list = selectedList.value.slice();
|
38483
|
-
list.splice(
|
39073
|
+
list.splice(index2, 1, item);
|
38484
39074
|
emit("update:modelValue", list.map((item2) => item2.toValue()));
|
38485
39075
|
editKey.value = "";
|
38486
39076
|
}
|
@@ -38500,9 +39090,9 @@ var Component = defineComponent({
|
|
38500
39090
|
const maxWidth = wrapRef.value.querySelector(".search-container").clientWidth - SELETED_MARGING_RIGHT - 2;
|
38501
39091
|
const tagList = inputEl.querySelectorAll(".search-container-selected:not(.overflow-selected)");
|
38502
39092
|
let width = 0;
|
38503
|
-
let
|
39093
|
+
let index2 = 0;
|
38504
39094
|
let i2 = 0;
|
38505
|
-
while (
|
39095
|
+
while (index2 === 0 && width <= maxWidth - INPUT_PADDING_WIDTH && i2 <= tagList.length - 1) {
|
38506
39096
|
const el = tagList[i2];
|
38507
39097
|
if (el.clientHeight > props2.minHeight) {
|
38508
39098
|
overflowIndex.value = i2;
|
@@ -38510,15 +39100,15 @@ var Component = defineComponent({
|
|
38510
39100
|
}
|
38511
39101
|
width += el ? el.clientWidth + SELETED_MARGING_RIGHT : 0;
|
38512
39102
|
if (width >= maxWidth - INPUT_PADDING_WIDTH) {
|
38513
|
-
|
39103
|
+
index2 = i2;
|
38514
39104
|
}
|
38515
39105
|
i2 += 1;
|
38516
39106
|
}
|
38517
|
-
if (
|
39107
|
+
if (index2 === tagList.length - 1 && width <= maxWidth) {
|
38518
39108
|
overflowIndex.value = -1;
|
38519
39109
|
return;
|
38520
39110
|
}
|
38521
|
-
overflowIndex.value = width >= maxWidth - INPUT_PADDING_WIDTH ?
|
39111
|
+
overflowIndex.value = width >= maxWidth - INPUT_PADDING_WIDTH ? index2 : index2 - 1;
|
38522
39112
|
}
|
38523
39113
|
function handleWrapClick() {
|
38524
39114
|
if (!editKey.value) {
|
@@ -38540,9 +39130,9 @@ var Component = defineComponent({
|
|
38540
39130
|
onValidate("");
|
38541
39131
|
emit("update:modelValue", list.map((item2) => item2.toValue()));
|
38542
39132
|
}
|
38543
|
-
function handleDeleteSelected(
|
39133
|
+
function handleDeleteSelected(index2) {
|
38544
39134
|
const list = selectedList.value.slice();
|
38545
|
-
list.splice(typeof
|
39135
|
+
list.splice(typeof index2 === "number" ? index2 : selectedList.value.length - 1, 1);
|
38546
39136
|
onValidate("");
|
38547
39137
|
emit("update:modelValue", list.map((item) => item.toValue()));
|
38548
39138
|
}
|