@blueking/bk-user-selector 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/package.json +1 -1
- package/typings/components/me-tag.vue.d.ts +39 -0
- package/typings/components/multiple-selector.vue.d.ts +40 -1
- package/typings/components/selection-popover.vue.d.ts +154 -0
- package/typings/components/user-selector.vue.d.ts +10 -1
- package/typings/types/index.d.ts +36 -39
- package/vue2/index.es.min.js +371 -206
- package/vue2/index.iife.min.js +371 -206
- package/vue2/index.umd.min.js +371 -206
- package/vue2/vue2.css +83 -129
- package/vue3/index.es.min.js +370 -206
- package/vue3/index.iife.min.js +370 -206
- package/vue3/index.umd.min.js +369 -205
- package/vue3/vue3.css +83 -129
package/vue2/vue2.css
CHANGED
|
@@ -1314,7 +1314,69 @@ optgroup {
|
|
|
1314
1314
|
line-height: 0;
|
|
1315
1315
|
cursor: pointer;
|
|
1316
1316
|
}
|
|
1317
|
-
.
|
|
1317
|
+
.me-tag[data-v-887b7c44] {
|
|
1318
|
+
display: inline-flex;
|
|
1319
|
+
align-items: center;
|
|
1320
|
+
justify-content: center;
|
|
1321
|
+
background-color: #e1ecff;
|
|
1322
|
+
color: #4d4f56;
|
|
1323
|
+
border-radius: 50%;
|
|
1324
|
+
padding: 0 8px;
|
|
1325
|
+
height: 24px;
|
|
1326
|
+
width: 24px;
|
|
1327
|
+
cursor: pointer;
|
|
1328
|
+
font-size: 12px;
|
|
1329
|
+
position: absolute;
|
|
1330
|
+
right: 8px;
|
|
1331
|
+
top: 50%;
|
|
1332
|
+
transform: translateY(-50%);
|
|
1333
|
+
z-index: 1;
|
|
1334
|
+
}
|
|
1335
|
+
.me-tag[data-v-887b7c44]:hover {
|
|
1336
|
+
background-color: #cddffe;
|
|
1337
|
+
color: #3a84ff;
|
|
1338
|
+
}
|
|
1339
|
+
.me-tag.disabled[data-v-887b7c44] {
|
|
1340
|
+
background-color: #f0f1f5;
|
|
1341
|
+
color: #c4c6cc;
|
|
1342
|
+
cursor: not-allowed;
|
|
1343
|
+
}.dropdown-content[data-v-c68dfcac] {
|
|
1344
|
+
min-height: 40px;
|
|
1345
|
+
max-height: 300px;
|
|
1346
|
+
overflow-y: auto;
|
|
1347
|
+
padding: 5px 0;
|
|
1348
|
+
}
|
|
1349
|
+
.dropdown-content .no-data[data-v-c68dfcac] {
|
|
1350
|
+
padding: 10px;
|
|
1351
|
+
text-align: center;
|
|
1352
|
+
color: #979ba5;
|
|
1353
|
+
}
|
|
1354
|
+
.dropdown-content .user-group .group-header[data-v-c68dfcac] {
|
|
1355
|
+
padding: 8px 12px;
|
|
1356
|
+
color: #979ba5;
|
|
1357
|
+
display: flex;
|
|
1358
|
+
align-items: center;
|
|
1359
|
+
}
|
|
1360
|
+
.dropdown-content .user-group .group-header .group-count[data-v-c68dfcac] {
|
|
1361
|
+
margin-left: 4px;
|
|
1362
|
+
}
|
|
1363
|
+
.dropdown-content .user-option[data-v-c68dfcac] {
|
|
1364
|
+
padding: 8px 12px;
|
|
1365
|
+
cursor: pointer;
|
|
1366
|
+
display: flex;
|
|
1367
|
+
align-items: center;
|
|
1368
|
+
height: 32px;
|
|
1369
|
+
}
|
|
1370
|
+
.dropdown-content .user-option[data-v-c68dfcac]:hover {
|
|
1371
|
+
background-color: #f5f7fa;
|
|
1372
|
+
}
|
|
1373
|
+
.dropdown-content .user-option .tenant-name[data-v-c68dfcac] {
|
|
1374
|
+
color: #f59500;
|
|
1375
|
+
margin-left: 4px;
|
|
1376
|
+
padding: 0 4px;
|
|
1377
|
+
}.bk-user-selector-popover.bk-popover.bk-pop2-content {
|
|
1378
|
+
padding: 0;
|
|
1379
|
+
}.user-tag[data-v-203c36cb] {
|
|
1318
1380
|
margin-right: 4px;
|
|
1319
1381
|
}
|
|
1320
1382
|
.user-tag.draggable[data-v-203c36cb] {
|
|
@@ -1336,113 +1398,58 @@ optgroup {
|
|
|
1336
1398
|
white-space: nowrap;
|
|
1337
1399
|
padding: 0 3px;
|
|
1338
1400
|
border-radius: 2px;
|
|
1339
|
-
}.
|
|
1340
|
-
padding: 0;
|
|
1341
|
-
}.multiple-selector[data-v-50540b99] {
|
|
1401
|
+
}.multiple-selector[data-v-a09f11c3] {
|
|
1342
1402
|
position: relative;
|
|
1343
1403
|
width: 100%;
|
|
1344
1404
|
}
|
|
1345
|
-
.multiple-selector .tags-container[data-v-
|
|
1405
|
+
.multiple-selector .tags-container[data-v-a09f11c3] {
|
|
1346
1406
|
min-height: 32px;
|
|
1347
1407
|
border: 1px solid #dcdee5;
|
|
1348
1408
|
border-radius: 2px;
|
|
1349
|
-
padding: 1px
|
|
1409
|
+
padding: 1px 10px 1px 8px;
|
|
1350
1410
|
transition: all 0.2s ease;
|
|
1351
1411
|
background-color: #fff;
|
|
1352
1412
|
}
|
|
1353
|
-
.multiple-selector .tags-container.focused[data-v-
|
|
1413
|
+
.multiple-selector .tags-container.focused[data-v-a09f11c3] {
|
|
1354
1414
|
border-color: #3a84ff;
|
|
1355
1415
|
box-shadow: 0 0 0 2px rgba(58, 132, 255, 0.1);
|
|
1356
1416
|
}
|
|
1357
|
-
.multiple-selector .tags-container.collapsed[data-v-
|
|
1417
|
+
.multiple-selector .tags-container.collapsed[data-v-a09f11c3] {
|
|
1358
1418
|
display: flex;
|
|
1359
1419
|
flex-wrap: wrap;
|
|
1360
1420
|
align-items: center;
|
|
1361
1421
|
}
|
|
1362
|
-
.multiple-selector .tag-list[data-v-
|
|
1422
|
+
.multiple-selector .tag-list[data-v-a09f11c3] {
|
|
1363
1423
|
display: flex;
|
|
1364
1424
|
flex-wrap: wrap;
|
|
1365
1425
|
align-items: center;
|
|
1366
1426
|
}
|
|
1367
|
-
.multiple-selector .tag-wrapper[data-v-
|
|
1427
|
+
.multiple-selector .tag-wrapper[data-v-a09f11c3] {
|
|
1368
1428
|
display: inline-flex;
|
|
1369
1429
|
align-items: center;
|
|
1370
1430
|
max-width: 100%;
|
|
1371
1431
|
}
|
|
1372
|
-
.multiple-selector .search-input[data-v-
|
|
1432
|
+
.multiple-selector .search-input[data-v-a09f11c3] {
|
|
1373
1433
|
outline: none;
|
|
1374
1434
|
border: none;
|
|
1375
1435
|
height: 28px;
|
|
1376
1436
|
min-width: 10px;
|
|
1377
1437
|
background: transparent;
|
|
1378
1438
|
}
|
|
1379
|
-
.multiple-selector .search-input[data-v-
|
|
1439
|
+
.multiple-selector .search-input[data-v-a09f11c3]::placeholder {
|
|
1380
1440
|
color: #c4c6cc;
|
|
1381
1441
|
}
|
|
1382
|
-
.multiple-selector .search-input.inline[data-v-
|
|
1442
|
+
.multiple-selector .search-input.inline[data-v-a09f11c3] {
|
|
1383
1443
|
min-width: 10px;
|
|
1384
1444
|
}
|
|
1385
|
-
.multiple-selector .search-input.last[data-v-
|
|
1445
|
+
.multiple-selector .search-input.last[data-v-a09f11c3], .multiple-selector .search-input.collapsed[data-v-a09f11c3] {
|
|
1386
1446
|
flex: 1;
|
|
1387
1447
|
min-width: 60px;
|
|
1388
|
-
}
|
|
1389
|
-
.dropdown-content[data-v-50540b99] {
|
|
1390
|
-
min-height: 40px;
|
|
1391
|
-
max-height: 300px;
|
|
1392
|
-
overflow-y: auto;
|
|
1393
|
-
padding: 5px 0;
|
|
1394
|
-
}
|
|
1395
|
-
.dropdown-content .no-data[data-v-50540b99] {
|
|
1396
|
-
padding: 10px;
|
|
1397
|
-
text-align: center;
|
|
1398
|
-
color: #979ba5;
|
|
1399
|
-
}
|
|
1400
|
-
.dropdown-content .user-option[data-v-50540b99] {
|
|
1401
|
-
padding: 8px 12px;
|
|
1402
|
-
cursor: pointer;
|
|
1403
|
-
display: flex;
|
|
1404
|
-
align-items: center;
|
|
1405
|
-
height: 32px;
|
|
1406
|
-
}
|
|
1407
|
-
.dropdown-content .user-option[data-v-50540b99]:hover {
|
|
1408
|
-
background-color: #f5f7fa;
|
|
1409
|
-
}
|
|
1410
|
-
.dropdown-content .user-option .tenant-name[data-v-50540b99] {
|
|
1411
|
-
color: #f59500;
|
|
1412
|
-
margin-left: 4px;
|
|
1413
|
-
padding: 0 4px;
|
|
1414
|
-
}
|
|
1415
|
-
.me-tag[data-v-50540b99] {
|
|
1416
|
-
display: inline-flex;
|
|
1417
|
-
align-items: center;
|
|
1418
|
-
justify-content: center;
|
|
1419
|
-
background-color: #e1ecff;
|
|
1420
|
-
color: #4d4f56;
|
|
1421
|
-
border-radius: 50%;
|
|
1422
|
-
padding: 0 8px;
|
|
1423
|
-
height: 24px;
|
|
1424
|
-
width: 24px;
|
|
1425
|
-
cursor: pointer;
|
|
1426
|
-
font-size: 12px;
|
|
1427
|
-
position: absolute;
|
|
1428
|
-
right: 8px;
|
|
1429
|
-
top: 50%;
|
|
1430
|
-
transform: translateY(-50%);
|
|
1431
|
-
z-index: 1;
|
|
1432
|
-
}
|
|
1433
|
-
.me-tag[data-v-50540b99]:hover {
|
|
1434
|
-
background-color: #cddffe;
|
|
1435
|
-
color: #3a84ff;
|
|
1436
|
-
}
|
|
1437
|
-
.me-tag.disabled[data-v-50540b99] {
|
|
1438
|
-
background-color: #f0f1f5;
|
|
1439
|
-
color: #c4c6cc;
|
|
1440
|
-
cursor: not-allowed;
|
|
1441
|
-
}.single-selector[data-v-308925e9] {
|
|
1448
|
+
}.single-selector[data-v-8b8dd0fd] {
|
|
1442
1449
|
position: relative;
|
|
1443
1450
|
width: 100%;
|
|
1444
1451
|
}
|
|
1445
|
-
.input-container[data-v-
|
|
1452
|
+
.input-container[data-v-8b8dd0fd] {
|
|
1446
1453
|
position: relative;
|
|
1447
1454
|
display: flex;
|
|
1448
1455
|
align-items: center;
|
|
@@ -1452,21 +1459,21 @@ optgroup {
|
|
|
1452
1459
|
padding: 0 8px;
|
|
1453
1460
|
background-color: #fff;
|
|
1454
1461
|
}
|
|
1455
|
-
.input-container[data-v-
|
|
1462
|
+
.input-container[data-v-8b8dd0fd]:focus-within {
|
|
1456
1463
|
border-color: #3a84ff;
|
|
1457
1464
|
box-shadow: 0 0 0 2px rgba(58, 132, 255, 0.1);
|
|
1458
1465
|
}
|
|
1459
|
-
.search-input[data-v-
|
|
1466
|
+
.search-input[data-v-8b8dd0fd] {
|
|
1460
1467
|
flex: 1;
|
|
1461
1468
|
outline: none;
|
|
1462
1469
|
border: none;
|
|
1463
1470
|
height: 30px;
|
|
1464
1471
|
background: transparent;
|
|
1465
1472
|
}
|
|
1466
|
-
.search-input[data-v-
|
|
1473
|
+
.search-input[data-v-8b8dd0fd]::placeholder {
|
|
1467
1474
|
color: #c4c6cc;
|
|
1468
1475
|
}
|
|
1469
|
-
.selected-user[data-v-
|
|
1476
|
+
.selected-user[data-v-8b8dd0fd] {
|
|
1470
1477
|
display: inline-flex;
|
|
1471
1478
|
align-items: center;
|
|
1472
1479
|
background-color: #f0f1f5;
|
|
@@ -1476,68 +1483,15 @@ optgroup {
|
|
|
1476
1483
|
height: 24px;
|
|
1477
1484
|
max-width: calc(100% - 32px);
|
|
1478
1485
|
}
|
|
1479
|
-
.selected-user .tenant-name[data-v-
|
|
1486
|
+
.selected-user .tenant-name[data-v-8b8dd0fd] {
|
|
1480
1487
|
color: #f59500;
|
|
1481
1488
|
margin-left: 4px;
|
|
1482
1489
|
}
|
|
1483
|
-
.selected-user .close-icon[data-v-
|
|
1490
|
+
.selected-user .close-icon[data-v-8b8dd0fd] {
|
|
1484
1491
|
margin-left: 4px;
|
|
1485
1492
|
cursor: pointer;
|
|
1486
1493
|
font-style: normal;
|
|
1487
|
-
}
|
|
1488
|
-
.dropdown-content[data-v-308925e9] {
|
|
1489
|
-
min-height: 40px;
|
|
1490
|
-
max-height: 300px;
|
|
1491
|
-
overflow-y: auto;
|
|
1492
|
-
padding: 5px 0;
|
|
1493
|
-
}
|
|
1494
|
-
.dropdown-content .no-data[data-v-308925e9] {
|
|
1495
|
-
padding: 10px;
|
|
1496
|
-
text-align: center;
|
|
1497
|
-
color: #979ba5;
|
|
1498
|
-
}
|
|
1499
|
-
.dropdown-content .user-option[data-v-308925e9] {
|
|
1500
|
-
padding: 8px 12px;
|
|
1501
|
-
cursor: pointer;
|
|
1502
|
-
display: flex;
|
|
1503
|
-
align-items: center;
|
|
1504
|
-
height: 32px;
|
|
1505
|
-
}
|
|
1506
|
-
.dropdown-content .user-option[data-v-308925e9]:hover {
|
|
1507
|
-
background-color: #f5f7fa;
|
|
1508
|
-
}
|
|
1509
|
-
.dropdown-content .user-option .tenant-name[data-v-308925e9] {
|
|
1510
|
-
color: #f59500;
|
|
1511
|
-
margin-left: 4px;
|
|
1512
|
-
padding: 0 4px;
|
|
1513
|
-
}
|
|
1514
|
-
.me-tag[data-v-308925e9] {
|
|
1515
|
-
display: inline-flex;
|
|
1516
|
-
align-items: center;
|
|
1517
|
-
justify-content: center;
|
|
1518
|
-
background-color: #e1ecff;
|
|
1519
|
-
color: #4d4f56;
|
|
1520
|
-
border-radius: 50%;
|
|
1521
|
-
padding: 0 8px;
|
|
1522
|
-
height: 24px;
|
|
1523
|
-
width: 24px;
|
|
1524
|
-
cursor: pointer;
|
|
1525
|
-
font-size: 12px;
|
|
1526
|
-
position: absolute;
|
|
1527
|
-
right: 8px;
|
|
1528
|
-
top: 50%;
|
|
1529
|
-
transform: translateY(-50%);
|
|
1530
|
-
z-index: 1;
|
|
1531
|
-
}
|
|
1532
|
-
.me-tag[data-v-308925e9]:hover {
|
|
1533
|
-
background-color: #cddffe;
|
|
1534
|
-
color: #3a84ff;
|
|
1535
|
-
}
|
|
1536
|
-
.me-tag.disabled[data-v-308925e9] {
|
|
1537
|
-
background-color: #f0f1f5;
|
|
1538
|
-
color: #c4c6cc;
|
|
1539
|
-
cursor: not-allowed;
|
|
1540
|
-
}.bk-user-selector[data-v-fe084750] {
|
|
1494
|
+
}.bk-user-selector[data-v-bc7b4ccd] {
|
|
1541
1495
|
width: 100%;
|
|
1542
1496
|
position: relative;
|
|
1543
1497
|
font-size: 12px;
|