@thanh01.pmt/interactive-quiz-kit 1.0.83 → 1.0.84

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.
@@ -77236,6 +77236,9 @@ function LearningObjectiveManager({
77236
77236
  try {
77237
77237
  setItems(MetadataService.getLearningObjectives());
77238
77238
  setSubjects(MetadataService.getSubjects());
77239
+ setCategories(MetadataService.getCategories());
77240
+ setTopics(MetadataService.getTopics());
77241
+ setGradeLevels(MetadataService.getGradeLevels());
77239
77242
  } catch (error) {
77240
77243
  toast2({
77241
77244
  title: "Error",
@@ -77473,7 +77476,7 @@ function LearningObjectiveManager({
77473
77476
  value: formState.name || "",
77474
77477
  onChange: (e2) => handleFormChange("name", e2.target.value)
77475
77478
  }
77476
- ))), /* @__PURE__ */ React117__namespace.default.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4" }, /* @__PURE__ */ React117__namespace.default.createElement("div", null, /* @__PURE__ */ React117__namespace.default.createElement(Label2, { htmlFor: "subjectCode" }, "Subject"), /* @__PURE__ */ React117__namespace.default.createElement(Select2, { value: formState.subjectCode || "", onValueChange: (val) => handleFormChange("subjectCode", val) }, /* @__PURE__ */ React117__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__namespace.default.createElement(SelectValue2, { placeholder: "Select a subject..." })), /* @__PURE__ */ React117__namespace.default.createElement(SelectContent2, null, subjects.map((s2) => /* @__PURE__ */ React117__namespace.default.createElement(SelectItem2, { key: s2.code, value: s2.code }, s2.name))))), /* @__PURE__ */ React117__namespace.default.createElement("div", null, /* @__PURE__ */ React117__namespace.default.createElement(Label2, { htmlFor: "categoryCode" }, "Category"), /* @__PURE__ */ React117__namespace.default.createElement(Select2, { value: formState.categoryCode || "", onValueChange: (val) => handleFormChange("categoryCode", val), disabled: !formState.subjectCode }, /* @__PURE__ */ React117__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__namespace.default.createElement(SelectValue2, { placeholder: "Select a category..." })), /* @__PURE__ */ React117__namespace.default.createElement(SelectContent2, null, filteredCategories.map((c2) => /* @__PURE__ */ React117__namespace.default.createElement(SelectItem2, { key: c2.code, value: c2.code }, c2.name)))))), /* @__PURE__ */ React117__namespace.default.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4" }, /* @__PURE__ */ React117__namespace.default.createElement("div", null, /* @__PURE__ */ React117__namespace.default.createElement(Label2, { htmlFor: "topicCode" }, "Topic"), /* @__PURE__ */ React117__namespace.default.createElement(Select2, { value: formState.topicCode || "", onValueChange: (val) => handleFormChange("topicCode", val), disabled: !formState.categoryCode }, /* @__PURE__ */ React117__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__namespace.default.createElement(SelectValue2, { placeholder: "Select a topic..." })), /* @__PURE__ */ React117__namespace.default.createElement(SelectContent2, null, filteredTopics.map((t2) => /* @__PURE__ */ React117__namespace.default.createElement(SelectItem2, { key: t2.code, value: t2.code }, t2.name))))), /* @__PURE__ */ React117__namespace.default.createElement("div", null, /* @__PURE__ */ React117__namespace.default.createElement(Label2, { htmlFor: "gradeCode" }, "Grade Level"), /* @__PURE__ */ React117__namespace.default.createElement(Select2, { value: formState.gradeCode || "", onValueChange: (val) => handleFormChange("gradeCode", val) }, /* @__PURE__ */ React117__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__namespace.default.createElement(SelectValue2, { placeholder: "Select a grade level..." })), /* @__PURE__ */ React117__namespace.default.createElement(SelectContent2, null, gradeLevels.map((g) => /* @__PURE__ */ React117__namespace.default.createElement(SelectItem2, { key: g.code, value: g.code }, g.name)))))), /* @__PURE__ */ React117__namespace.default.createElement("div", null, /* @__PURE__ */ React117__namespace.default.createElement(Label2, { htmlFor: "keywords" }, "Keywords (comma-separated)"), /* @__PURE__ */ React117__namespace.default.createElement(
77479
+ ))), /* @__PURE__ */ React117__namespace.default.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4" }, /* @__PURE__ */ React117__namespace.default.createElement("div", null, /* @__PURE__ */ React117__namespace.default.createElement(Label2, { htmlFor: "subjectCode" }, "Subject"), /* @__PURE__ */ React117__namespace.default.createElement(Select2, { value: formState.subjectCode || "", onValueChange: (val) => handleFormChange("subjectCode", val) }, /* @__PURE__ */ React117__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__namespace.default.createElement(SelectValue2, { placeholder: "Select a subject..." })), /* @__PURE__ */ React117__namespace.default.createElement(SelectContent2, null, subjects.map((s2) => /* @__PURE__ */ React117__namespace.default.createElement(SelectItem2, { key: s2.code, value: s2.code }, s2.name))))), /* @__PURE__ */ React117__namespace.default.createElement("div", null, /* @__PURE__ */ React117__namespace.default.createElement(Label2, { htmlFor: "categoryCode" }, "Category"), /* @__PURE__ */ React117__namespace.default.createElement(Select2, { value: formState.categoryCode || "", onValueChange: (val) => handleFormChange("categoryCode", val), disabled: !formState.subjectCode || filteredCategories.length === 0 }, /* @__PURE__ */ React117__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__namespace.default.createElement(SelectValue2, { placeholder: "Select a category..." })), /* @__PURE__ */ React117__namespace.default.createElement(SelectContent2, null, filteredCategories.map((c2) => /* @__PURE__ */ React117__namespace.default.createElement(SelectItem2, { key: c2.code, value: c2.code }, c2.name)))))), /* @__PURE__ */ React117__namespace.default.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4" }, /* @__PURE__ */ React117__namespace.default.createElement("div", null, /* @__PURE__ */ React117__namespace.default.createElement(Label2, { htmlFor: "topicCode" }, "Topic"), /* @__PURE__ */ React117__namespace.default.createElement(Select2, { value: formState.topicCode || "", onValueChange: (val) => handleFormChange("topicCode", val), disabled: !formState.categoryCode || filteredTopics.length === 0 }, /* @__PURE__ */ React117__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__namespace.default.createElement(SelectValue2, { placeholder: "Select a topic..." })), /* @__PURE__ */ React117__namespace.default.createElement(SelectContent2, null, filteredTopics.map((t2) => /* @__PURE__ */ React117__namespace.default.createElement(SelectItem2, { key: t2.code, value: t2.code }, t2.name))))), /* @__PURE__ */ React117__namespace.default.createElement("div", null, /* @__PURE__ */ React117__namespace.default.createElement(Label2, { htmlFor: "gradeCode" }, "Grade Level"), /* @__PURE__ */ React117__namespace.default.createElement(Select2, { value: formState.gradeCode || "", onValueChange: (val) => handleFormChange("gradeCode", val) }, /* @__PURE__ */ React117__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__namespace.default.createElement(SelectValue2, { placeholder: "Select a grade level..." })), /* @__PURE__ */ React117__namespace.default.createElement(SelectContent2, null, gradeLevels.map((g) => /* @__PURE__ */ React117__namespace.default.createElement(SelectItem2, { key: g.code, value: g.code }, g.name)))))), /* @__PURE__ */ React117__namespace.default.createElement("div", null, /* @__PURE__ */ React117__namespace.default.createElement(Label2, { htmlFor: "keywords" }, "Keywords (comma-separated)"), /* @__PURE__ */ React117__namespace.default.createElement(
77477
77480
  Textarea,
77478
77481
  {
77479
77482
  id: "keywords",
@@ -77171,6 +77171,9 @@ function LearningObjectiveManager({
77171
77171
  try {
77172
77172
  setItems(MetadataService.getLearningObjectives());
77173
77173
  setSubjects(MetadataService.getSubjects());
77174
+ setCategories(MetadataService.getCategories());
77175
+ setTopics(MetadataService.getTopics());
77176
+ setGradeLevels(MetadataService.getGradeLevels());
77174
77177
  } catch (error) {
77175
77178
  toast2({
77176
77179
  title: "Error",
@@ -77408,7 +77411,7 @@ function LearningObjectiveManager({
77408
77411
  value: formState.name || "",
77409
77412
  onChange: (e2) => handleFormChange("name", e2.target.value)
77410
77413
  }
77411
- ))), /* @__PURE__ */ React117__default.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4" }, /* @__PURE__ */ React117__default.createElement("div", null, /* @__PURE__ */ React117__default.createElement(Label2, { htmlFor: "subjectCode" }, "Subject"), /* @__PURE__ */ React117__default.createElement(Select2, { value: formState.subjectCode || "", onValueChange: (val) => handleFormChange("subjectCode", val) }, /* @__PURE__ */ React117__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__default.createElement(SelectValue2, { placeholder: "Select a subject..." })), /* @__PURE__ */ React117__default.createElement(SelectContent2, null, subjects.map((s2) => /* @__PURE__ */ React117__default.createElement(SelectItem2, { key: s2.code, value: s2.code }, s2.name))))), /* @__PURE__ */ React117__default.createElement("div", null, /* @__PURE__ */ React117__default.createElement(Label2, { htmlFor: "categoryCode" }, "Category"), /* @__PURE__ */ React117__default.createElement(Select2, { value: formState.categoryCode || "", onValueChange: (val) => handleFormChange("categoryCode", val), disabled: !formState.subjectCode }, /* @__PURE__ */ React117__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__default.createElement(SelectValue2, { placeholder: "Select a category..." })), /* @__PURE__ */ React117__default.createElement(SelectContent2, null, filteredCategories.map((c2) => /* @__PURE__ */ React117__default.createElement(SelectItem2, { key: c2.code, value: c2.code }, c2.name)))))), /* @__PURE__ */ React117__default.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4" }, /* @__PURE__ */ React117__default.createElement("div", null, /* @__PURE__ */ React117__default.createElement(Label2, { htmlFor: "topicCode" }, "Topic"), /* @__PURE__ */ React117__default.createElement(Select2, { value: formState.topicCode || "", onValueChange: (val) => handleFormChange("topicCode", val), disabled: !formState.categoryCode }, /* @__PURE__ */ React117__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__default.createElement(SelectValue2, { placeholder: "Select a topic..." })), /* @__PURE__ */ React117__default.createElement(SelectContent2, null, filteredTopics.map((t2) => /* @__PURE__ */ React117__default.createElement(SelectItem2, { key: t2.code, value: t2.code }, t2.name))))), /* @__PURE__ */ React117__default.createElement("div", null, /* @__PURE__ */ React117__default.createElement(Label2, { htmlFor: "gradeCode" }, "Grade Level"), /* @__PURE__ */ React117__default.createElement(Select2, { value: formState.gradeCode || "", onValueChange: (val) => handleFormChange("gradeCode", val) }, /* @__PURE__ */ React117__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__default.createElement(SelectValue2, { placeholder: "Select a grade level..." })), /* @__PURE__ */ React117__default.createElement(SelectContent2, null, gradeLevels.map((g) => /* @__PURE__ */ React117__default.createElement(SelectItem2, { key: g.code, value: g.code }, g.name)))))), /* @__PURE__ */ React117__default.createElement("div", null, /* @__PURE__ */ React117__default.createElement(Label2, { htmlFor: "keywords" }, "Keywords (comma-separated)"), /* @__PURE__ */ React117__default.createElement(
77414
+ ))), /* @__PURE__ */ React117__default.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4" }, /* @__PURE__ */ React117__default.createElement("div", null, /* @__PURE__ */ React117__default.createElement(Label2, { htmlFor: "subjectCode" }, "Subject"), /* @__PURE__ */ React117__default.createElement(Select2, { value: formState.subjectCode || "", onValueChange: (val) => handleFormChange("subjectCode", val) }, /* @__PURE__ */ React117__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__default.createElement(SelectValue2, { placeholder: "Select a subject..." })), /* @__PURE__ */ React117__default.createElement(SelectContent2, null, subjects.map((s2) => /* @__PURE__ */ React117__default.createElement(SelectItem2, { key: s2.code, value: s2.code }, s2.name))))), /* @__PURE__ */ React117__default.createElement("div", null, /* @__PURE__ */ React117__default.createElement(Label2, { htmlFor: "categoryCode" }, "Category"), /* @__PURE__ */ React117__default.createElement(Select2, { value: formState.categoryCode || "", onValueChange: (val) => handleFormChange("categoryCode", val), disabled: !formState.subjectCode || filteredCategories.length === 0 }, /* @__PURE__ */ React117__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__default.createElement(SelectValue2, { placeholder: "Select a category..." })), /* @__PURE__ */ React117__default.createElement(SelectContent2, null, filteredCategories.map((c2) => /* @__PURE__ */ React117__default.createElement(SelectItem2, { key: c2.code, value: c2.code }, c2.name)))))), /* @__PURE__ */ React117__default.createElement("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4" }, /* @__PURE__ */ React117__default.createElement("div", null, /* @__PURE__ */ React117__default.createElement(Label2, { htmlFor: "topicCode" }, "Topic"), /* @__PURE__ */ React117__default.createElement(Select2, { value: formState.topicCode || "", onValueChange: (val) => handleFormChange("topicCode", val), disabled: !formState.categoryCode || filteredTopics.length === 0 }, /* @__PURE__ */ React117__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__default.createElement(SelectValue2, { placeholder: "Select a topic..." })), /* @__PURE__ */ React117__default.createElement(SelectContent2, null, filteredTopics.map((t2) => /* @__PURE__ */ React117__default.createElement(SelectItem2, { key: t2.code, value: t2.code }, t2.name))))), /* @__PURE__ */ React117__default.createElement("div", null, /* @__PURE__ */ React117__default.createElement(Label2, { htmlFor: "gradeCode" }, "Grade Level"), /* @__PURE__ */ React117__default.createElement(Select2, { value: formState.gradeCode || "", onValueChange: (val) => handleFormChange("gradeCode", val) }, /* @__PURE__ */ React117__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React117__default.createElement(SelectValue2, { placeholder: "Select a grade level..." })), /* @__PURE__ */ React117__default.createElement(SelectContent2, null, gradeLevels.map((g) => /* @__PURE__ */ React117__default.createElement(SelectItem2, { key: g.code, value: g.code }, g.name)))))), /* @__PURE__ */ React117__default.createElement("div", null, /* @__PURE__ */ React117__default.createElement(Label2, { htmlFor: "keywords" }, "Keywords (comma-separated)"), /* @__PURE__ */ React117__default.createElement(
77412
77415
  Textarea,
77413
77416
  {
77414
77417
  id: "keywords",
package/dist/react-ui.cjs CHANGED
@@ -139534,6 +139534,9 @@ function LearningObjectiveManager({
139534
139534
  try {
139535
139535
  setItems(MetadataService.getLearningObjectives());
139536
139536
  setSubjects(MetadataService.getSubjects());
139537
+ setCategories(MetadataService.getCategories());
139538
+ setTopics(MetadataService.getTopics());
139539
+ setGradeLevels(MetadataService.getGradeLevels());
139537
139540
  } catch (error) {
139538
139541
  toast2({
139539
139542
  title: "Error",
@@ -139771,7 +139774,7 @@ function LearningObjectiveManager({
139771
139774
  value: formState.name || "",
139772
139775
  onChange: (e3) => handleFormChange("name", e3.target.value)
139773
139776
  }
139774
- ))), /* @__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: "subjectCode" }, "Subject"), /* @__PURE__ */ React169__namespace.default.createElement(Select2, { value: formState.subjectCode || "", onValueChange: (val) => handleFormChange("subjectCode", val) }, /* @__PURE__ */ React169__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__namespace.default.createElement(SelectValue2, { placeholder: "Select a subject..." })), /* @__PURE__ */ React169__namespace.default.createElement(SelectContent2, null, subjects.map((s4) => /* @__PURE__ */ React169__namespace.default.createElement(SelectItem2, { key: s4.code, value: s4.code }, s4.name))))), /* @__PURE__ */ React169__namespace.default.createElement("div", null, /* @__PURE__ */ React169__namespace.default.createElement(Label2, { htmlFor: "categoryCode" }, "Category"), /* @__PURE__ */ React169__namespace.default.createElement(Select2, { value: formState.categoryCode || "", onValueChange: (val) => handleFormChange("categoryCode", val), disabled: !formState.subjectCode }, /* @__PURE__ */ React169__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__namespace.default.createElement(SelectValue2, { placeholder: "Select a category..." })), /* @__PURE__ */ React169__namespace.default.createElement(SelectContent2, null, filteredCategories.map((c4) => /* @__PURE__ */ React169__namespace.default.createElement(SelectItem2, { key: c4.code, value: c4.code }, c4.name)))))), /* @__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: "topicCode" }, "Topic"), /* @__PURE__ */ React169__namespace.default.createElement(Select2, { value: formState.topicCode || "", onValueChange: (val) => handleFormChange("topicCode", val), disabled: !formState.categoryCode }, /* @__PURE__ */ React169__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__namespace.default.createElement(SelectValue2, { placeholder: "Select a topic..." })), /* @__PURE__ */ React169__namespace.default.createElement(SelectContent2, null, filteredTopics.map((t4) => /* @__PURE__ */ React169__namespace.default.createElement(SelectItem2, { key: t4.code, value: t4.code }, t4.name))))), /* @__PURE__ */ React169__namespace.default.createElement("div", null, /* @__PURE__ */ React169__namespace.default.createElement(Label2, { htmlFor: "gradeCode" }, "Grade Level"), /* @__PURE__ */ React169__namespace.default.createElement(Select2, { value: formState.gradeCode || "", onValueChange: (val) => handleFormChange("gradeCode", val) }, /* @__PURE__ */ React169__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__namespace.default.createElement(SelectValue2, { placeholder: "Select a grade level..." })), /* @__PURE__ */ React169__namespace.default.createElement(SelectContent2, null, gradeLevels.map((g) => /* @__PURE__ */ React169__namespace.default.createElement(SelectItem2, { key: g.code, value: g.code }, g.name)))))), /* @__PURE__ */ React169__namespace.default.createElement("div", null, /* @__PURE__ */ React169__namespace.default.createElement(Label2, { htmlFor: "keywords" }, "Keywords (comma-separated)"), /* @__PURE__ */ React169__namespace.default.createElement(
139777
+ ))), /* @__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: "subjectCode" }, "Subject"), /* @__PURE__ */ React169__namespace.default.createElement(Select2, { value: formState.subjectCode || "", onValueChange: (val) => handleFormChange("subjectCode", val) }, /* @__PURE__ */ React169__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__namespace.default.createElement(SelectValue2, { placeholder: "Select a subject..." })), /* @__PURE__ */ React169__namespace.default.createElement(SelectContent2, null, subjects.map((s4) => /* @__PURE__ */ React169__namespace.default.createElement(SelectItem2, { key: s4.code, value: s4.code }, s4.name))))), /* @__PURE__ */ React169__namespace.default.createElement("div", null, /* @__PURE__ */ React169__namespace.default.createElement(Label2, { htmlFor: "categoryCode" }, "Category"), /* @__PURE__ */ React169__namespace.default.createElement(Select2, { value: formState.categoryCode || "", onValueChange: (val) => handleFormChange("categoryCode", val), disabled: !formState.subjectCode || filteredCategories.length === 0 }, /* @__PURE__ */ React169__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__namespace.default.createElement(SelectValue2, { placeholder: "Select a category..." })), /* @__PURE__ */ React169__namespace.default.createElement(SelectContent2, null, filteredCategories.map((c4) => /* @__PURE__ */ React169__namespace.default.createElement(SelectItem2, { key: c4.code, value: c4.code }, c4.name)))))), /* @__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: "topicCode" }, "Topic"), /* @__PURE__ */ React169__namespace.default.createElement(Select2, { value: formState.topicCode || "", onValueChange: (val) => handleFormChange("topicCode", val), disabled: !formState.categoryCode || filteredTopics.length === 0 }, /* @__PURE__ */ React169__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__namespace.default.createElement(SelectValue2, { placeholder: "Select a topic..." })), /* @__PURE__ */ React169__namespace.default.createElement(SelectContent2, null, filteredTopics.map((t4) => /* @__PURE__ */ React169__namespace.default.createElement(SelectItem2, { key: t4.code, value: t4.code }, t4.name))))), /* @__PURE__ */ React169__namespace.default.createElement("div", null, /* @__PURE__ */ React169__namespace.default.createElement(Label2, { htmlFor: "gradeCode" }, "Grade Level"), /* @__PURE__ */ React169__namespace.default.createElement(Select2, { value: formState.gradeCode || "", onValueChange: (val) => handleFormChange("gradeCode", val) }, /* @__PURE__ */ React169__namespace.default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__namespace.default.createElement(SelectValue2, { placeholder: "Select a grade level..." })), /* @__PURE__ */ React169__namespace.default.createElement(SelectContent2, null, gradeLevels.map((g) => /* @__PURE__ */ React169__namespace.default.createElement(SelectItem2, { key: g.code, value: g.code }, g.name)))))), /* @__PURE__ */ React169__namespace.default.createElement("div", null, /* @__PURE__ */ React169__namespace.default.createElement(Label2, { htmlFor: "keywords" }, "Keywords (comma-separated)"), /* @__PURE__ */ React169__namespace.default.createElement(
139775
139778
  Textarea,
139776
139779
  {
139777
139780
  id: "keywords",
package/dist/react-ui.mjs CHANGED
@@ -139468,6 +139468,9 @@ function LearningObjectiveManager({
139468
139468
  try {
139469
139469
  setItems(MetadataService.getLearningObjectives());
139470
139470
  setSubjects(MetadataService.getSubjects());
139471
+ setCategories(MetadataService.getCategories());
139472
+ setTopics(MetadataService.getTopics());
139473
+ setGradeLevels(MetadataService.getGradeLevels());
139471
139474
  } catch (error) {
139472
139475
  toast2({
139473
139476
  title: "Error",
@@ -139705,7 +139708,7 @@ function LearningObjectiveManager({
139705
139708
  value: formState.name || "",
139706
139709
  onChange: (e3) => handleFormChange("name", e3.target.value)
139707
139710
  }
139708
- ))), /* @__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: "subjectCode" }, "Subject"), /* @__PURE__ */ React169__default.createElement(Select2, { value: formState.subjectCode || "", onValueChange: (val) => handleFormChange("subjectCode", val) }, /* @__PURE__ */ React169__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__default.createElement(SelectValue2, { placeholder: "Select a subject..." })), /* @__PURE__ */ React169__default.createElement(SelectContent2, null, subjects.map((s4) => /* @__PURE__ */ React169__default.createElement(SelectItem2, { key: s4.code, value: s4.code }, s4.name))))), /* @__PURE__ */ React169__default.createElement("div", null, /* @__PURE__ */ React169__default.createElement(Label2, { htmlFor: "categoryCode" }, "Category"), /* @__PURE__ */ React169__default.createElement(Select2, { value: formState.categoryCode || "", onValueChange: (val) => handleFormChange("categoryCode", val), disabled: !formState.subjectCode }, /* @__PURE__ */ React169__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__default.createElement(SelectValue2, { placeholder: "Select a category..." })), /* @__PURE__ */ React169__default.createElement(SelectContent2, null, filteredCategories.map((c4) => /* @__PURE__ */ React169__default.createElement(SelectItem2, { key: c4.code, value: c4.code }, c4.name)))))), /* @__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: "topicCode" }, "Topic"), /* @__PURE__ */ React169__default.createElement(Select2, { value: formState.topicCode || "", onValueChange: (val) => handleFormChange("topicCode", val), disabled: !formState.categoryCode }, /* @__PURE__ */ React169__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__default.createElement(SelectValue2, { placeholder: "Select a topic..." })), /* @__PURE__ */ React169__default.createElement(SelectContent2, null, filteredTopics.map((t4) => /* @__PURE__ */ React169__default.createElement(SelectItem2, { key: t4.code, value: t4.code }, t4.name))))), /* @__PURE__ */ React169__default.createElement("div", null, /* @__PURE__ */ React169__default.createElement(Label2, { htmlFor: "gradeCode" }, "Grade Level"), /* @__PURE__ */ React169__default.createElement(Select2, { value: formState.gradeCode || "", onValueChange: (val) => handleFormChange("gradeCode", val) }, /* @__PURE__ */ React169__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__default.createElement(SelectValue2, { placeholder: "Select a grade level..." })), /* @__PURE__ */ React169__default.createElement(SelectContent2, null, gradeLevels.map((g) => /* @__PURE__ */ React169__default.createElement(SelectItem2, { key: g.code, value: g.code }, g.name)))))), /* @__PURE__ */ React169__default.createElement("div", null, /* @__PURE__ */ React169__default.createElement(Label2, { htmlFor: "keywords" }, "Keywords (comma-separated)"), /* @__PURE__ */ React169__default.createElement(
139711
+ ))), /* @__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: "subjectCode" }, "Subject"), /* @__PURE__ */ React169__default.createElement(Select2, { value: formState.subjectCode || "", onValueChange: (val) => handleFormChange("subjectCode", val) }, /* @__PURE__ */ React169__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__default.createElement(SelectValue2, { placeholder: "Select a subject..." })), /* @__PURE__ */ React169__default.createElement(SelectContent2, null, subjects.map((s4) => /* @__PURE__ */ React169__default.createElement(SelectItem2, { key: s4.code, value: s4.code }, s4.name))))), /* @__PURE__ */ React169__default.createElement("div", null, /* @__PURE__ */ React169__default.createElement(Label2, { htmlFor: "categoryCode" }, "Category"), /* @__PURE__ */ React169__default.createElement(Select2, { value: formState.categoryCode || "", onValueChange: (val) => handleFormChange("categoryCode", val), disabled: !formState.subjectCode || filteredCategories.length === 0 }, /* @__PURE__ */ React169__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__default.createElement(SelectValue2, { placeholder: "Select a category..." })), /* @__PURE__ */ React169__default.createElement(SelectContent2, null, filteredCategories.map((c4) => /* @__PURE__ */ React169__default.createElement(SelectItem2, { key: c4.code, value: c4.code }, c4.name)))))), /* @__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: "topicCode" }, "Topic"), /* @__PURE__ */ React169__default.createElement(Select2, { value: formState.topicCode || "", onValueChange: (val) => handleFormChange("topicCode", val), disabled: !formState.categoryCode || filteredTopics.length === 0 }, /* @__PURE__ */ React169__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__default.createElement(SelectValue2, { placeholder: "Select a topic..." })), /* @__PURE__ */ React169__default.createElement(SelectContent2, null, filteredTopics.map((t4) => /* @__PURE__ */ React169__default.createElement(SelectItem2, { key: t4.code, value: t4.code }, t4.name))))), /* @__PURE__ */ React169__default.createElement("div", null, /* @__PURE__ */ React169__default.createElement(Label2, { htmlFor: "gradeCode" }, "Grade Level"), /* @__PURE__ */ React169__default.createElement(Select2, { value: formState.gradeCode || "", onValueChange: (val) => handleFormChange("gradeCode", val) }, /* @__PURE__ */ React169__default.createElement(SelectTrigger2, null, /* @__PURE__ */ React169__default.createElement(SelectValue2, { placeholder: "Select a grade level..." })), /* @__PURE__ */ React169__default.createElement(SelectContent2, null, gradeLevels.map((g) => /* @__PURE__ */ React169__default.createElement(SelectItem2, { key: g.code, value: g.code }, g.name)))))), /* @__PURE__ */ React169__default.createElement("div", null, /* @__PURE__ */ React169__default.createElement(Label2, { htmlFor: "keywords" }, "Keywords (comma-separated)"), /* @__PURE__ */ React169__default.createElement(
139709
139712
  Textarea,
139710
139713
  {
139711
139714
  id: "keywords",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thanh01.pmt/interactive-quiz-kit",
3
- "version": "1.0.83",
3
+ "version": "1.0.84",
4
4
  "description": "A comprehensive library for creating, managing, and playing interactive quizzes, with AI generation and SCORM support.",
5
5
  "keywords": [
6
6
  "react",