@thanh01.pmt/interactive-quiz-kit 1.0.78 → 1.0.79
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/authoring.cjs +23 -20
- package/dist/authoring.mjs +23 -20
- package/dist/react-ui.cjs +23 -20
- package/dist/react-ui.mjs +23 -20
- package/package.json +1 -1
package/dist/authoring.cjs
CHANGED
|
@@ -77412,32 +77412,35 @@ function LearningObjectiveManager({
|
|
|
77412
77412
|
}
|
|
77413
77413
|
};
|
|
77414
77414
|
return (
|
|
77415
|
-
// --- START: FIX
|
|
77415
|
+
// --- START: FIX ---
|
|
77416
77416
|
/* @__PURE__ */ React119__namespace.default.createElement(Card, { className: "flex flex-col h-full" }, /* @__PURE__ */ React119__namespace.default.createElement(CardHeader, null, /* @__PURE__ */ React119__namespace.default.createElement(CardTitle, { className: "flex justify-between items-center" }, /* @__PURE__ */ React119__namespace.default.createElement("span", { className: "flex items-center" }, /* @__PURE__ */ React119__namespace.default.createElement(Lightbulb, { className: "mr-2 h-5 w-5 text-primary" }), " ", "Manage Learning Objectives"), /* @__PURE__ */ React119__namespace.default.createElement("div", { className: "flex items-center gap-2" }, onBulkAdd && /* @__PURE__ */ React119__namespace.default.createElement(
|
|
77417
77417
|
MetadataImportControls,
|
|
77418
77418
|
{
|
|
77419
77419
|
metadataName: "Learning Objectives",
|
|
77420
77420
|
onImport: handleImport
|
|
77421
77421
|
}
|
|
77422
|
-
), /* @__PURE__ */ React119__namespace.default.createElement(Button, { onClick: handleAddItem, size: "sm" }, /* @__PURE__ */ React119__namespace.default.createElement(CirclePlus, { className: "mr-2 h-4 w-4" }), " Add Learning Objective")))), /* @__PURE__ */ React119__namespace.default.createElement(CardContent, { className: "flex-
|
|
77423
|
-
|
|
77424
|
-
{
|
|
77425
|
-
|
|
77426
|
-
|
|
77427
|
-
|
|
77428
|
-
|
|
77429
|
-
|
|
77430
|
-
|
|
77431
|
-
|
|
77432
|
-
|
|
77433
|
-
|
|
77434
|
-
|
|
77435
|
-
|
|
77436
|
-
|
|
77437
|
-
|
|
77438
|
-
|
|
77439
|
-
|
|
77440
|
-
|
|
77422
|
+
), /* @__PURE__ */ React119__namespace.default.createElement(Button, { onClick: handleAddItem, size: "sm" }, /* @__PURE__ */ React119__namespace.default.createElement(CirclePlus, { className: "mr-2 h-4 w-4" }), " Add Learning Objective")))), /* @__PURE__ */ React119__namespace.default.createElement(CardContent, { className: "flex-1 flex flex-col min-h-0" }, isLoading ? /* @__PURE__ */ React119__namespace.default.createElement("div", { className: "flex justify-center items-center h-full" }, /* @__PURE__ */ React119__namespace.default.createElement(LoaderCircle, { className: "h-8 w-8 animate-spin text-primary" })) : items.length === 0 ? /* @__PURE__ */ React119__namespace.default.createElement("p", { className: "text-center text-muted-foreground py-4" }, "No Learning Objectives found.") : (
|
|
77423
|
+
// --- START: FIX ---
|
|
77424
|
+
/* @__PURE__ */ React119__namespace.default.createElement("div", { className: "flex-1 relative border rounded-md" }, /* @__PURE__ */ React119__namespace.default.createElement(ScrollArea2, { className: "absolute inset-0" }, /* @__PURE__ */ React119__namespace.default.createElement(Table2, null, /* @__PURE__ */ React119__namespace.default.createElement(TableHeader, { className: "sticky top-0 bg-card z-10" }, /* @__PURE__ */ React119__namespace.default.createElement(TableRow, null, /* @__PURE__ */ React119__namespace.default.createElement(TableHead, null, "Code"), /* @__PURE__ */ React119__namespace.default.createElement(TableHead, null, "Name"), /* @__PURE__ */ React119__namespace.default.createElement(TableHead, null, "Subject"), /* @__PURE__ */ React119__namespace.default.createElement(TableHead, null, "Topic"), /* @__PURE__ */ React119__namespace.default.createElement(TableHead, { className: "text-right w-[120px]" }, "Actions"))), /* @__PURE__ */ React119__namespace.default.createElement(TableBody, null, items.map((item) => /* @__PURE__ */ React119__namespace.default.createElement(TableRow, { key: item.id }, /* @__PURE__ */ React119__namespace.default.createElement(TableCell, { className: "font-mono text-xs" }, item.code), /* @__PURE__ */ React119__namespace.default.createElement(TableCell, { className: "font-medium" }, item.name), /* @__PURE__ */ React119__namespace.default.createElement(TableCell, null, item.subject || item.subjectCode), /* @__PURE__ */ React119__namespace.default.createElement(TableCell, null, item.topic || item.topicCode), /* @__PURE__ */ React119__namespace.default.createElement(TableCell, { className: "text-right" }, /* @__PURE__ */ React119__namespace.default.createElement(
|
|
77425
|
+
Button,
|
|
77426
|
+
{
|
|
77427
|
+
variant: "ghost",
|
|
77428
|
+
size: "icon",
|
|
77429
|
+
onClick: () => handleEditItem(item),
|
|
77430
|
+
className: "mr-2"
|
|
77431
|
+
},
|
|
77432
|
+
/* @__PURE__ */ React119__namespace.default.createElement(PenLine, { className: "h-4 w-4" })
|
|
77433
|
+
), /* @__PURE__ */ React119__namespace.default.createElement(
|
|
77434
|
+
Button,
|
|
77435
|
+
{
|
|
77436
|
+
variant: "ghost",
|
|
77437
|
+
size: "icon",
|
|
77438
|
+
onClick: () => handleDeleteItem(item),
|
|
77439
|
+
className: "text-destructive hover:text-destructive"
|
|
77440
|
+
},
|
|
77441
|
+
/* @__PURE__ */ React119__namespace.default.createElement(Trash2, { className: "h-4 w-4" })
|
|
77442
|
+
))))))))
|
|
77443
|
+
), /* @__PURE__ */ React119__namespace.default.createElement(Dialog2, { open: isDialogOpen, onOpenChange: setIsDialogOpen }, /* @__PURE__ */ React119__namespace.default.createElement(DialogContent2, { className: "sm:max-w-2xl max-h-[90vh] overflow-y-auto" }, /* @__PURE__ */ React119__namespace.default.createElement(DialogHeader, null, /* @__PURE__ */ React119__namespace.default.createElement(DialogTitle2, null, currentItem ? "Edit Learning Objective" : "Add New Learning Objective")), /* @__PURE__ */ React119__namespace.default.createElement("div", { className: "grid gap-4 py-4" }, /* @__PURE__ */ React119__namespace.default.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4" }, /* @__PURE__ */ React119__namespace.default.createElement("div", null, /* @__PURE__ */ React119__namespace.default.createElement(Label2, { htmlFor: "code" }, "Code"), /* @__PURE__ */ React119__namespace.default.createElement(
|
|
77441
77444
|
Input,
|
|
77442
77445
|
{
|
|
77443
77446
|
id: "code",
|
package/dist/authoring.mjs
CHANGED
|
@@ -77347,32 +77347,35 @@ function LearningObjectiveManager({
|
|
|
77347
77347
|
}
|
|
77348
77348
|
};
|
|
77349
77349
|
return (
|
|
77350
|
-
// --- START: FIX
|
|
77350
|
+
// --- START: FIX ---
|
|
77351
77351
|
/* @__PURE__ */ React119__default.createElement(Card, { className: "flex flex-col h-full" }, /* @__PURE__ */ React119__default.createElement(CardHeader, null, /* @__PURE__ */ React119__default.createElement(CardTitle, { className: "flex justify-between items-center" }, /* @__PURE__ */ React119__default.createElement("span", { className: "flex items-center" }, /* @__PURE__ */ React119__default.createElement(Lightbulb, { className: "mr-2 h-5 w-5 text-primary" }), " ", "Manage Learning Objectives"), /* @__PURE__ */ React119__default.createElement("div", { className: "flex items-center gap-2" }, onBulkAdd && /* @__PURE__ */ React119__default.createElement(
|
|
77352
77352
|
MetadataImportControls,
|
|
77353
77353
|
{
|
|
77354
77354
|
metadataName: "Learning Objectives",
|
|
77355
77355
|
onImport: handleImport
|
|
77356
77356
|
}
|
|
77357
|
-
), /* @__PURE__ */ React119__default.createElement(Button, { onClick: handleAddItem, size: "sm" }, /* @__PURE__ */ React119__default.createElement(CirclePlus, { className: "mr-2 h-4 w-4" }), " Add Learning Objective")))), /* @__PURE__ */ React119__default.createElement(CardContent, { className: "flex-
|
|
77358
|
-
|
|
77359
|
-
{
|
|
77360
|
-
|
|
77361
|
-
|
|
77362
|
-
|
|
77363
|
-
|
|
77364
|
-
|
|
77365
|
-
|
|
77366
|
-
|
|
77367
|
-
|
|
77368
|
-
|
|
77369
|
-
|
|
77370
|
-
|
|
77371
|
-
|
|
77372
|
-
|
|
77373
|
-
|
|
77374
|
-
|
|
77375
|
-
|
|
77357
|
+
), /* @__PURE__ */ React119__default.createElement(Button, { onClick: handleAddItem, size: "sm" }, /* @__PURE__ */ React119__default.createElement(CirclePlus, { className: "mr-2 h-4 w-4" }), " Add Learning Objective")))), /* @__PURE__ */ React119__default.createElement(CardContent, { className: "flex-1 flex flex-col min-h-0" }, isLoading ? /* @__PURE__ */ React119__default.createElement("div", { className: "flex justify-center items-center h-full" }, /* @__PURE__ */ React119__default.createElement(LoaderCircle, { className: "h-8 w-8 animate-spin text-primary" })) : items.length === 0 ? /* @__PURE__ */ React119__default.createElement("p", { className: "text-center text-muted-foreground py-4" }, "No Learning Objectives found.") : (
|
|
77358
|
+
// --- START: FIX ---
|
|
77359
|
+
/* @__PURE__ */ React119__default.createElement("div", { className: "flex-1 relative border rounded-md" }, /* @__PURE__ */ React119__default.createElement(ScrollArea2, { className: "absolute inset-0" }, /* @__PURE__ */ React119__default.createElement(Table2, null, /* @__PURE__ */ React119__default.createElement(TableHeader, { className: "sticky top-0 bg-card z-10" }, /* @__PURE__ */ React119__default.createElement(TableRow, null, /* @__PURE__ */ React119__default.createElement(TableHead, null, "Code"), /* @__PURE__ */ React119__default.createElement(TableHead, null, "Name"), /* @__PURE__ */ React119__default.createElement(TableHead, null, "Subject"), /* @__PURE__ */ React119__default.createElement(TableHead, null, "Topic"), /* @__PURE__ */ React119__default.createElement(TableHead, { className: "text-right w-[120px]" }, "Actions"))), /* @__PURE__ */ React119__default.createElement(TableBody, null, items.map((item) => /* @__PURE__ */ React119__default.createElement(TableRow, { key: item.id }, /* @__PURE__ */ React119__default.createElement(TableCell, { className: "font-mono text-xs" }, item.code), /* @__PURE__ */ React119__default.createElement(TableCell, { className: "font-medium" }, item.name), /* @__PURE__ */ React119__default.createElement(TableCell, null, item.subject || item.subjectCode), /* @__PURE__ */ React119__default.createElement(TableCell, null, item.topic || item.topicCode), /* @__PURE__ */ React119__default.createElement(TableCell, { className: "text-right" }, /* @__PURE__ */ React119__default.createElement(
|
|
77360
|
+
Button,
|
|
77361
|
+
{
|
|
77362
|
+
variant: "ghost",
|
|
77363
|
+
size: "icon",
|
|
77364
|
+
onClick: () => handleEditItem(item),
|
|
77365
|
+
className: "mr-2"
|
|
77366
|
+
},
|
|
77367
|
+
/* @__PURE__ */ React119__default.createElement(PenLine, { className: "h-4 w-4" })
|
|
77368
|
+
), /* @__PURE__ */ React119__default.createElement(
|
|
77369
|
+
Button,
|
|
77370
|
+
{
|
|
77371
|
+
variant: "ghost",
|
|
77372
|
+
size: "icon",
|
|
77373
|
+
onClick: () => handleDeleteItem(item),
|
|
77374
|
+
className: "text-destructive hover:text-destructive"
|
|
77375
|
+
},
|
|
77376
|
+
/* @__PURE__ */ React119__default.createElement(Trash2, { className: "h-4 w-4" })
|
|
77377
|
+
))))))))
|
|
77378
|
+
), /* @__PURE__ */ React119__default.createElement(Dialog2, { open: isDialogOpen, onOpenChange: setIsDialogOpen }, /* @__PURE__ */ React119__default.createElement(DialogContent2, { className: "sm:max-w-2xl max-h-[90vh] overflow-y-auto" }, /* @__PURE__ */ React119__default.createElement(DialogHeader, null, /* @__PURE__ */ React119__default.createElement(DialogTitle2, null, currentItem ? "Edit Learning Objective" : "Add New Learning Objective")), /* @__PURE__ */ React119__default.createElement("div", { className: "grid gap-4 py-4" }, /* @__PURE__ */ React119__default.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4" }, /* @__PURE__ */ React119__default.createElement("div", null, /* @__PURE__ */ React119__default.createElement(Label2, { htmlFor: "code" }, "Code"), /* @__PURE__ */ React119__default.createElement(
|
|
77376
77379
|
Input,
|
|
77377
77380
|
{
|
|
77378
77381
|
id: "code",
|
package/dist/react-ui.cjs
CHANGED
|
@@ -139710,32 +139710,35 @@ function LearningObjectiveManager({
|
|
|
139710
139710
|
}
|
|
139711
139711
|
};
|
|
139712
139712
|
return (
|
|
139713
|
-
// --- START: FIX
|
|
139713
|
+
// --- START: FIX ---
|
|
139714
139714
|
/* @__PURE__ */ React169__namespace.default.createElement(Card, { className: "flex flex-col h-full" }, /* @__PURE__ */ React169__namespace.default.createElement(CardHeader, null, /* @__PURE__ */ React169__namespace.default.createElement(CardTitle, { className: "flex justify-between items-center" }, /* @__PURE__ */ React169__namespace.default.createElement("span", { className: "flex items-center" }, /* @__PURE__ */ React169__namespace.default.createElement(Lightbulb, { className: "mr-2 h-5 w-5 text-primary" }), " ", "Manage Learning Objectives"), /* @__PURE__ */ React169__namespace.default.createElement("div", { className: "flex items-center gap-2" }, onBulkAdd && /* @__PURE__ */ React169__namespace.default.createElement(
|
|
139715
139715
|
MetadataImportControls,
|
|
139716
139716
|
{
|
|
139717
139717
|
metadataName: "Learning Objectives",
|
|
139718
139718
|
onImport: handleImport
|
|
139719
139719
|
}
|
|
139720
|
-
), /* @__PURE__ */ React169__namespace.default.createElement(Button, { onClick: handleAddItem, size: "sm" }, /* @__PURE__ */ React169__namespace.default.createElement(CirclePlus, { className: "mr-2 h-4 w-4" }), " Add Learning Objective")))), /* @__PURE__ */ React169__namespace.default.createElement(CardContent, { className: "flex-
|
|
139721
|
-
|
|
139722
|
-
{
|
|
139723
|
-
|
|
139724
|
-
|
|
139725
|
-
|
|
139726
|
-
|
|
139727
|
-
|
|
139728
|
-
|
|
139729
|
-
|
|
139730
|
-
|
|
139731
|
-
|
|
139732
|
-
|
|
139733
|
-
|
|
139734
|
-
|
|
139735
|
-
|
|
139736
|
-
|
|
139737
|
-
|
|
139738
|
-
|
|
139720
|
+
), /* @__PURE__ */ React169__namespace.default.createElement(Button, { onClick: handleAddItem, size: "sm" }, /* @__PURE__ */ React169__namespace.default.createElement(CirclePlus, { className: "mr-2 h-4 w-4" }), " Add Learning Objective")))), /* @__PURE__ */ React169__namespace.default.createElement(CardContent, { className: "flex-1 flex flex-col min-h-0" }, isLoading ? /* @__PURE__ */ React169__namespace.default.createElement("div", { className: "flex justify-center items-center h-full" }, /* @__PURE__ */ React169__namespace.default.createElement(LoaderCircle, { className: "h-8 w-8 animate-spin text-primary" })) : items.length === 0 ? /* @__PURE__ */ React169__namespace.default.createElement("p", { className: "text-center text-muted-foreground py-4" }, "No Learning Objectives found.") : (
|
|
139721
|
+
// --- START: FIX ---
|
|
139722
|
+
/* @__PURE__ */ React169__namespace.default.createElement("div", { className: "flex-1 relative border rounded-md" }, /* @__PURE__ */ React169__namespace.default.createElement(ScrollArea2, { className: "absolute inset-0" }, /* @__PURE__ */ React169__namespace.default.createElement(Table3, null, /* @__PURE__ */ React169__namespace.default.createElement(TableHeader, { className: "sticky top-0 bg-card z-10" }, /* @__PURE__ */ React169__namespace.default.createElement(TableRow, null, /* @__PURE__ */ React169__namespace.default.createElement(TableHead, null, "Code"), /* @__PURE__ */ React169__namespace.default.createElement(TableHead, null, "Name"), /* @__PURE__ */ React169__namespace.default.createElement(TableHead, null, "Subject"), /* @__PURE__ */ React169__namespace.default.createElement(TableHead, null, "Topic"), /* @__PURE__ */ React169__namespace.default.createElement(TableHead, { className: "text-right w-[120px]" }, "Actions"))), /* @__PURE__ */ React169__namespace.default.createElement(TableBody, null, items.map((item) => /* @__PURE__ */ React169__namespace.default.createElement(TableRow, { key: item.id }, /* @__PURE__ */ React169__namespace.default.createElement(TableCell, { className: "font-mono text-xs" }, item.code), /* @__PURE__ */ React169__namespace.default.createElement(TableCell, { className: "font-medium" }, item.name), /* @__PURE__ */ React169__namespace.default.createElement(TableCell, null, item.subject || item.subjectCode), /* @__PURE__ */ React169__namespace.default.createElement(TableCell, null, item.topic || item.topicCode), /* @__PURE__ */ React169__namespace.default.createElement(TableCell, { className: "text-right" }, /* @__PURE__ */ React169__namespace.default.createElement(
|
|
139723
|
+
Button,
|
|
139724
|
+
{
|
|
139725
|
+
variant: "ghost",
|
|
139726
|
+
size: "icon",
|
|
139727
|
+
onClick: () => handleEditItem(item),
|
|
139728
|
+
className: "mr-2"
|
|
139729
|
+
},
|
|
139730
|
+
/* @__PURE__ */ React169__namespace.default.createElement(PenLine, { className: "h-4 w-4" })
|
|
139731
|
+
), /* @__PURE__ */ React169__namespace.default.createElement(
|
|
139732
|
+
Button,
|
|
139733
|
+
{
|
|
139734
|
+
variant: "ghost",
|
|
139735
|
+
size: "icon",
|
|
139736
|
+
onClick: () => handleDeleteItem(item),
|
|
139737
|
+
className: "text-destructive hover:text-destructive"
|
|
139738
|
+
},
|
|
139739
|
+
/* @__PURE__ */ React169__namespace.default.createElement(Trash2, { className: "h-4 w-4" })
|
|
139740
|
+
))))))))
|
|
139741
|
+
), /* @__PURE__ */ React169__namespace.default.createElement(Dialog2, { open: isDialogOpen, onOpenChange: setIsDialogOpen }, /* @__PURE__ */ React169__namespace.default.createElement(DialogContent2, { className: "sm:max-w-2xl max-h-[90vh] overflow-y-auto" }, /* @__PURE__ */ React169__namespace.default.createElement(DialogHeader, null, /* @__PURE__ */ React169__namespace.default.createElement(DialogTitle2, null, currentItem ? "Edit Learning Objective" : "Add New Learning Objective")), /* @__PURE__ */ React169__namespace.default.createElement("div", { className: "grid gap-4 py-4" }, /* @__PURE__ */ React169__namespace.default.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4" }, /* @__PURE__ */ React169__namespace.default.createElement("div", null, /* @__PURE__ */ React169__namespace.default.createElement(Label2, { htmlFor: "code" }, "Code"), /* @__PURE__ */ React169__namespace.default.createElement(
|
|
139739
139742
|
Input,
|
|
139740
139743
|
{
|
|
139741
139744
|
id: "code",
|
package/dist/react-ui.mjs
CHANGED
|
@@ -139644,32 +139644,35 @@ function LearningObjectiveManager({
|
|
|
139644
139644
|
}
|
|
139645
139645
|
};
|
|
139646
139646
|
return (
|
|
139647
|
-
// --- START: FIX
|
|
139647
|
+
// --- START: FIX ---
|
|
139648
139648
|
/* @__PURE__ */ React169__default.createElement(Card, { className: "flex flex-col h-full" }, /* @__PURE__ */ React169__default.createElement(CardHeader, null, /* @__PURE__ */ React169__default.createElement(CardTitle, { className: "flex justify-between items-center" }, /* @__PURE__ */ React169__default.createElement("span", { className: "flex items-center" }, /* @__PURE__ */ React169__default.createElement(Lightbulb, { className: "mr-2 h-5 w-5 text-primary" }), " ", "Manage Learning Objectives"), /* @__PURE__ */ React169__default.createElement("div", { className: "flex items-center gap-2" }, onBulkAdd && /* @__PURE__ */ React169__default.createElement(
|
|
139649
139649
|
MetadataImportControls,
|
|
139650
139650
|
{
|
|
139651
139651
|
metadataName: "Learning Objectives",
|
|
139652
139652
|
onImport: handleImport
|
|
139653
139653
|
}
|
|
139654
|
-
), /* @__PURE__ */ React169__default.createElement(Button, { onClick: handleAddItem, size: "sm" }, /* @__PURE__ */ React169__default.createElement(CirclePlus, { className: "mr-2 h-4 w-4" }), " Add Learning Objective")))), /* @__PURE__ */ React169__default.createElement(CardContent, { className: "flex-
|
|
139655
|
-
|
|
139656
|
-
{
|
|
139657
|
-
|
|
139658
|
-
|
|
139659
|
-
|
|
139660
|
-
|
|
139661
|
-
|
|
139662
|
-
|
|
139663
|
-
|
|
139664
|
-
|
|
139665
|
-
|
|
139666
|
-
|
|
139667
|
-
|
|
139668
|
-
|
|
139669
|
-
|
|
139670
|
-
|
|
139671
|
-
|
|
139672
|
-
|
|
139654
|
+
), /* @__PURE__ */ React169__default.createElement(Button, { onClick: handleAddItem, size: "sm" }, /* @__PURE__ */ React169__default.createElement(CirclePlus, { className: "mr-2 h-4 w-4" }), " Add Learning Objective")))), /* @__PURE__ */ React169__default.createElement(CardContent, { className: "flex-1 flex flex-col min-h-0" }, isLoading ? /* @__PURE__ */ React169__default.createElement("div", { className: "flex justify-center items-center h-full" }, /* @__PURE__ */ React169__default.createElement(LoaderCircle, { className: "h-8 w-8 animate-spin text-primary" })) : items.length === 0 ? /* @__PURE__ */ React169__default.createElement("p", { className: "text-center text-muted-foreground py-4" }, "No Learning Objectives found.") : (
|
|
139655
|
+
// --- START: FIX ---
|
|
139656
|
+
/* @__PURE__ */ React169__default.createElement("div", { className: "flex-1 relative border rounded-md" }, /* @__PURE__ */ React169__default.createElement(ScrollArea2, { className: "absolute inset-0" }, /* @__PURE__ */ React169__default.createElement(Table3, null, /* @__PURE__ */ React169__default.createElement(TableHeader, { className: "sticky top-0 bg-card z-10" }, /* @__PURE__ */ React169__default.createElement(TableRow, null, /* @__PURE__ */ React169__default.createElement(TableHead, null, "Code"), /* @__PURE__ */ React169__default.createElement(TableHead, null, "Name"), /* @__PURE__ */ React169__default.createElement(TableHead, null, "Subject"), /* @__PURE__ */ React169__default.createElement(TableHead, null, "Topic"), /* @__PURE__ */ React169__default.createElement(TableHead, { className: "text-right w-[120px]" }, "Actions"))), /* @__PURE__ */ React169__default.createElement(TableBody, null, items.map((item) => /* @__PURE__ */ React169__default.createElement(TableRow, { key: item.id }, /* @__PURE__ */ React169__default.createElement(TableCell, { className: "font-mono text-xs" }, item.code), /* @__PURE__ */ React169__default.createElement(TableCell, { className: "font-medium" }, item.name), /* @__PURE__ */ React169__default.createElement(TableCell, null, item.subject || item.subjectCode), /* @__PURE__ */ React169__default.createElement(TableCell, null, item.topic || item.topicCode), /* @__PURE__ */ React169__default.createElement(TableCell, { className: "text-right" }, /* @__PURE__ */ React169__default.createElement(
|
|
139657
|
+
Button,
|
|
139658
|
+
{
|
|
139659
|
+
variant: "ghost",
|
|
139660
|
+
size: "icon",
|
|
139661
|
+
onClick: () => handleEditItem(item),
|
|
139662
|
+
className: "mr-2"
|
|
139663
|
+
},
|
|
139664
|
+
/* @__PURE__ */ React169__default.createElement(PenLine, { className: "h-4 w-4" })
|
|
139665
|
+
), /* @__PURE__ */ React169__default.createElement(
|
|
139666
|
+
Button,
|
|
139667
|
+
{
|
|
139668
|
+
variant: "ghost",
|
|
139669
|
+
size: "icon",
|
|
139670
|
+
onClick: () => handleDeleteItem(item),
|
|
139671
|
+
className: "text-destructive hover:text-destructive"
|
|
139672
|
+
},
|
|
139673
|
+
/* @__PURE__ */ React169__default.createElement(Trash2, { className: "h-4 w-4" })
|
|
139674
|
+
))))))))
|
|
139675
|
+
), /* @__PURE__ */ React169__default.createElement(Dialog2, { open: isDialogOpen, onOpenChange: setIsDialogOpen }, /* @__PURE__ */ React169__default.createElement(DialogContent2, { className: "sm:max-w-2xl max-h-[90vh] overflow-y-auto" }, /* @__PURE__ */ React169__default.createElement(DialogHeader, null, /* @__PURE__ */ React169__default.createElement(DialogTitle2, null, currentItem ? "Edit Learning Objective" : "Add New Learning Objective")), /* @__PURE__ */ React169__default.createElement("div", { className: "grid gap-4 py-4" }, /* @__PURE__ */ React169__default.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4" }, /* @__PURE__ */ React169__default.createElement("div", null, /* @__PURE__ */ React169__default.createElement(Label2, { htmlFor: "code" }, "Code"), /* @__PURE__ */ React169__default.createElement(
|
|
139673
139676
|
Input,
|
|
139674
139677
|
{
|
|
139675
139678
|
id: "code",
|
package/package.json
CHANGED