@esic-lab/data-core-ui 0.0.82 → 0.0.83
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.js +36 -15
- package/dist/index.mjs +36 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4451,9 +4451,9 @@ function ProfileSelect({
|
|
|
4451
4451
|
filteredAssigned.map((user) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4452
4452
|
"button",
|
|
4453
4453
|
{
|
|
4454
|
-
className: "flex items-center group my-1 w-full p-1 rounded hover:bg-gray-100",
|
|
4454
|
+
className: "flex items-center text-left group my-1 w-full p-1 rounded hover:bg-gray-100 ",
|
|
4455
4455
|
children: [
|
|
4456
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "relative cursor-pointer", children: [
|
|
4456
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "relative cursor-pointer flex-shrink-0", children: [
|
|
4457
4457
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4458
4458
|
"img",
|
|
4459
4459
|
{
|
|
@@ -4464,7 +4464,7 @@ function ProfileSelect({
|
|
|
4464
4464
|
height: avatarSize,
|
|
4465
4465
|
borderRadius: "50%"
|
|
4466
4466
|
},
|
|
4467
|
-
className: "border-3 border-red-500"
|
|
4467
|
+
className: "border-3 border-red-500 "
|
|
4468
4468
|
}
|
|
4469
4469
|
),
|
|
4470
4470
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
@@ -4478,7 +4478,14 @@ function ProfileSelect({
|
|
|
4478
4478
|
] }),
|
|
4479
4479
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-col justify-start items-start", children: [
|
|
4480
4480
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "ml-2 body-3", children: user.name }),
|
|
4481
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4481
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4482
|
+
"span",
|
|
4483
|
+
{
|
|
4484
|
+
className: "ml-2 body-3 text-gray-400 line-clamp-1",
|
|
4485
|
+
title: user.institute,
|
|
4486
|
+
children: user.institute
|
|
4487
|
+
}
|
|
4488
|
+
)
|
|
4482
4489
|
] })
|
|
4483
4490
|
]
|
|
4484
4491
|
},
|
|
@@ -4495,7 +4502,7 @@ function ProfileSelect({
|
|
|
4495
4502
|
className: "flex items-center hover:bg-gray-100 w-full p-1 rounded transition-colors text-left",
|
|
4496
4503
|
onClick: () => onUpdateAssignUser(user, "add"),
|
|
4497
4504
|
children: [
|
|
4498
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4505
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "relative cursor-pointer flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4499
4506
|
"img",
|
|
4500
4507
|
{
|
|
4501
4508
|
src: user.profile,
|
|
@@ -4506,10 +4513,17 @@ function ProfileSelect({
|
|
|
4506
4513
|
},
|
|
4507
4514
|
className: "border"
|
|
4508
4515
|
}
|
|
4509
|
-
),
|
|
4516
|
+
) }),
|
|
4510
4517
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-col ml-2", children: [
|
|
4511
4518
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "body-3", children: user.name }),
|
|
4512
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4519
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4520
|
+
"span",
|
|
4521
|
+
{
|
|
4522
|
+
className: "body-3 text-gray-400 leading-3 line-clamp-1",
|
|
4523
|
+
title: user.institute,
|
|
4524
|
+
children: user.institute
|
|
4525
|
+
}
|
|
4526
|
+
)
|
|
4513
4527
|
] })
|
|
4514
4528
|
]
|
|
4515
4529
|
},
|
|
@@ -4526,19 +4540,26 @@ function ProfileSelect({
|
|
|
4526
4540
|
items: Object.entries(groupedUsers).map(
|
|
4527
4541
|
([company, users], index) => ({
|
|
4528
4542
|
key: index.toString(),
|
|
4529
|
-
label: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4543
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4544
|
+
"span",
|
|
4545
|
+
{
|
|
4546
|
+
className: "font-semibold body-3 line-clamp-1",
|
|
4547
|
+
title: company,
|
|
4548
|
+
children: [
|
|
4549
|
+
company,
|
|
4550
|
+
" (",
|
|
4551
|
+
users.length,
|
|
4552
|
+
")"
|
|
4553
|
+
]
|
|
4554
|
+
}
|
|
4555
|
+
),
|
|
4535
4556
|
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex flex-col gap-1 pl-2", children: users.map((user) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4536
4557
|
"button",
|
|
4537
4558
|
{
|
|
4538
4559
|
className: "flex items-center hover:bg-gray-100 w-full p-1 rounded text-left",
|
|
4539
4560
|
onClick: () => onUpdateAssignUser(user, "add"),
|
|
4540
4561
|
children: [
|
|
4541
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4562
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "relative cursor-pointer flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4542
4563
|
"img",
|
|
4543
4564
|
{
|
|
4544
4565
|
src: user.profile,
|
|
@@ -4549,7 +4570,7 @@ function ProfileSelect({
|
|
|
4549
4570
|
},
|
|
4550
4571
|
className: "border"
|
|
4551
4572
|
}
|
|
4552
|
-
),
|
|
4573
|
+
) }),
|
|
4553
4574
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "ml-2 body-3", children: user.name })
|
|
4554
4575
|
]
|
|
4555
4576
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -4385,9 +4385,9 @@ function ProfileSelect({
|
|
|
4385
4385
|
filteredAssigned.map((user) => /* @__PURE__ */ jsxs34(
|
|
4386
4386
|
"button",
|
|
4387
4387
|
{
|
|
4388
|
-
className: "flex items-center group my-1 w-full p-1 rounded hover:bg-gray-100",
|
|
4388
|
+
className: "flex items-center text-left group my-1 w-full p-1 rounded hover:bg-gray-100 ",
|
|
4389
4389
|
children: [
|
|
4390
|
-
/* @__PURE__ */ jsxs34("div", { className: "relative cursor-pointer", children: [
|
|
4390
|
+
/* @__PURE__ */ jsxs34("div", { className: "relative cursor-pointer flex-shrink-0", children: [
|
|
4391
4391
|
/* @__PURE__ */ jsx43(
|
|
4392
4392
|
"img",
|
|
4393
4393
|
{
|
|
@@ -4398,7 +4398,7 @@ function ProfileSelect({
|
|
|
4398
4398
|
height: avatarSize,
|
|
4399
4399
|
borderRadius: "50%"
|
|
4400
4400
|
},
|
|
4401
|
-
className: "border-3 border-red-500"
|
|
4401
|
+
className: "border-3 border-red-500 "
|
|
4402
4402
|
}
|
|
4403
4403
|
),
|
|
4404
4404
|
/* @__PURE__ */ jsx43(
|
|
@@ -4412,7 +4412,14 @@ function ProfileSelect({
|
|
|
4412
4412
|
] }),
|
|
4413
4413
|
/* @__PURE__ */ jsxs34("div", { className: "flex flex-col justify-start items-start", children: [
|
|
4414
4414
|
/* @__PURE__ */ jsx43("span", { className: "ml-2 body-3", children: user.name }),
|
|
4415
|
-
/* @__PURE__ */ jsx43(
|
|
4415
|
+
/* @__PURE__ */ jsx43(
|
|
4416
|
+
"span",
|
|
4417
|
+
{
|
|
4418
|
+
className: "ml-2 body-3 text-gray-400 line-clamp-1",
|
|
4419
|
+
title: user.institute,
|
|
4420
|
+
children: user.institute
|
|
4421
|
+
}
|
|
4422
|
+
)
|
|
4416
4423
|
] })
|
|
4417
4424
|
]
|
|
4418
4425
|
},
|
|
@@ -4429,7 +4436,7 @@ function ProfileSelect({
|
|
|
4429
4436
|
className: "flex items-center hover:bg-gray-100 w-full p-1 rounded transition-colors text-left",
|
|
4430
4437
|
onClick: () => onUpdateAssignUser(user, "add"),
|
|
4431
4438
|
children: [
|
|
4432
|
-
/* @__PURE__ */ jsx43(
|
|
4439
|
+
/* @__PURE__ */ jsx43("div", { className: "relative cursor-pointer flex-shrink-0", children: /* @__PURE__ */ jsx43(
|
|
4433
4440
|
"img",
|
|
4434
4441
|
{
|
|
4435
4442
|
src: user.profile,
|
|
@@ -4440,10 +4447,17 @@ function ProfileSelect({
|
|
|
4440
4447
|
},
|
|
4441
4448
|
className: "border"
|
|
4442
4449
|
}
|
|
4443
|
-
),
|
|
4450
|
+
) }),
|
|
4444
4451
|
/* @__PURE__ */ jsxs34("div", { className: "flex flex-col ml-2", children: [
|
|
4445
4452
|
/* @__PURE__ */ jsx43("span", { className: "body-3", children: user.name }),
|
|
4446
|
-
/* @__PURE__ */ jsx43(
|
|
4453
|
+
/* @__PURE__ */ jsx43(
|
|
4454
|
+
"span",
|
|
4455
|
+
{
|
|
4456
|
+
className: "body-3 text-gray-400 leading-3 line-clamp-1",
|
|
4457
|
+
title: user.institute,
|
|
4458
|
+
children: user.institute
|
|
4459
|
+
}
|
|
4460
|
+
)
|
|
4447
4461
|
] })
|
|
4448
4462
|
]
|
|
4449
4463
|
},
|
|
@@ -4460,19 +4474,26 @@ function ProfileSelect({
|
|
|
4460
4474
|
items: Object.entries(groupedUsers).map(
|
|
4461
4475
|
([company, users], index) => ({
|
|
4462
4476
|
key: index.toString(),
|
|
4463
|
-
label: /* @__PURE__ */ jsxs34(
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4477
|
+
label: /* @__PURE__ */ jsxs34(
|
|
4478
|
+
"span",
|
|
4479
|
+
{
|
|
4480
|
+
className: "font-semibold body-3 line-clamp-1",
|
|
4481
|
+
title: company,
|
|
4482
|
+
children: [
|
|
4483
|
+
company,
|
|
4484
|
+
" (",
|
|
4485
|
+
users.length,
|
|
4486
|
+
")"
|
|
4487
|
+
]
|
|
4488
|
+
}
|
|
4489
|
+
),
|
|
4469
4490
|
children: /* @__PURE__ */ jsx43("div", { className: "flex flex-col gap-1 pl-2", children: users.map((user) => /* @__PURE__ */ jsxs34(
|
|
4470
4491
|
"button",
|
|
4471
4492
|
{
|
|
4472
4493
|
className: "flex items-center hover:bg-gray-100 w-full p-1 rounded text-left",
|
|
4473
4494
|
onClick: () => onUpdateAssignUser(user, "add"),
|
|
4474
4495
|
children: [
|
|
4475
|
-
/* @__PURE__ */ jsx43(
|
|
4496
|
+
/* @__PURE__ */ jsx43("div", { className: "relative cursor-pointer flex-shrink-0", children: /* @__PURE__ */ jsx43(
|
|
4476
4497
|
"img",
|
|
4477
4498
|
{
|
|
4478
4499
|
src: user.profile,
|
|
@@ -4483,7 +4504,7 @@ function ProfileSelect({
|
|
|
4483
4504
|
},
|
|
4484
4505
|
className: "border"
|
|
4485
4506
|
}
|
|
4486
|
-
),
|
|
4507
|
+
) }),
|
|
4487
4508
|
/* @__PURE__ */ jsx43("span", { className: "ml-2 body-3", children: user.name })
|
|
4488
4509
|
]
|
|
4489
4510
|
},
|