ode-explorer 1.3.3-develop-pedago.202402131554 → 1.3.3-develop-pedago.202402141229

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 CHANGED
@@ -38574,23 +38574,8 @@ function requireEsDefineProperty() {
38574
38574
  esDefineProperty = $defineProperty2;
38575
38575
  return esDefineProperty;
38576
38576
  }
38577
- var $defineProperty$1 = requireEsDefineProperty();
38578
- var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
38579
- return !!$defineProperty$1;
38580
- };
38581
- hasPropertyDescriptors$1.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
38582
- if (!$defineProperty$1) {
38583
- return null;
38584
- }
38585
- try {
38586
- return $defineProperty$1([], "length", { value: 1 }).length !== 1;
38587
- } catch (e2) {
38588
- return true;
38589
- }
38590
- };
38591
- var hasPropertyDescriptors_1 = hasPropertyDescriptors$1;
38592
- var GetIntrinsic$4 = getIntrinsic;
38593
- var $gOPD = GetIntrinsic$4("%Object.getOwnPropertyDescriptor%", true);
38577
+ var GetIntrinsic$3 = getIntrinsic;
38578
+ var $gOPD = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
38594
38579
  if ($gOPD) {
38595
38580
  try {
38596
38581
  $gOPD([], "length");
@@ -38599,16 +38584,7 @@ if ($gOPD) {
38599
38584
  }
38600
38585
  }
38601
38586
  var gopd$1 = $gOPD;
38602
- var hasPropertyDescriptors2 = hasPropertyDescriptors_1();
38603
- var GetIntrinsic$3 = getIntrinsic;
38604
- var $defineProperty = hasPropertyDescriptors2 && GetIntrinsic$3("%Object.defineProperty%", true);
38605
- if ($defineProperty) {
38606
- try {
38607
- $defineProperty({}, "a", { value: 1 });
38608
- } catch (e2) {
38609
- $defineProperty = false;
38610
- }
38611
- }
38587
+ var $defineProperty$1 = requireEsDefineProperty();
38612
38588
  var $SyntaxError = syntax;
38613
38589
  var $TypeError$2 = type;
38614
38590
  var gopd = gopd$1;
@@ -38636,8 +38612,8 @@ var defineDataProperty = function defineDataProperty2(obj, property, value) {
38636
38612
  var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
38637
38613
  var loose = arguments.length > 6 ? arguments[6] : false;
38638
38614
  var desc = !!gopd && gopd(obj, property);
38639
- if ($defineProperty) {
38640
- $defineProperty(obj, property, {
38615
+ if ($defineProperty$1) {
38616
+ $defineProperty$1(obj, property, {
38641
38617
  configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
38642
38618
  enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
38643
38619
  value,
@@ -38649,6 +38625,21 @@ var defineDataProperty = function defineDataProperty2(obj, property, value) {
38649
38625
  throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
38650
38626
  }
38651
38627
  };
38628
+ var $defineProperty = requireEsDefineProperty();
38629
+ var hasPropertyDescriptors = function hasPropertyDescriptors2() {
38630
+ return !!$defineProperty;
38631
+ };
38632
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
38633
+ if (!$defineProperty) {
38634
+ return null;
38635
+ }
38636
+ try {
38637
+ return $defineProperty([], "length", { value: 1 }).length !== 1;
38638
+ } catch (e2) {
38639
+ return true;
38640
+ }
38641
+ };
38642
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors;
38652
38643
  var GetIntrinsic$2 = getIntrinsic;
38653
38644
  var define = defineDataProperty;
38654
38645
  var hasDescriptors = hasPropertyDescriptors_1();
@@ -62568,7 +62559,7 @@ const useDropdown = (placement, extraTriggerKeyDownHandler) => {
62568
62559
  rects,
62569
62560
  elements
62570
62561
  }) {
62571
- elements.floating.style, `${rects.reference.width}`;
62562
+ elements.floating.style.minWidth = `${rects.reference.width}px`;
62572
62563
  }
62573
62564
  }), flip$2({
62574
62565
  padding: 0
@@ -63884,12 +63875,12 @@ const ImagePicker = /* @__PURE__ */ reactExports.forwardRef(({
63884
63875
  onValueChange == null || onValueChange(value);
63885
63876
  }
63886
63877
  }, [localValue]);
63887
- const label = typeof localValue == "object" ? localValue.label : localValue;
63878
+ const label = typeof localValue == "object" ? localValue.label : localValue, iconChange = typeof localValue == "object" ? localValue.icon : void 0;
63888
63879
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown$1, { overflow, block, children: [
63889
- /* @__PURE__ */ jsxRuntimeExports.jsx(SelectTrigger$1, { icon, label: t2(label || placeholderOption), variant, size: size2, disabled }),
63880
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SelectTrigger$1, { icon: iconChange || icon, label: t2(label || placeholderOption), variant, size: size2, disabled }),
63890
63881
  /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Menu, { role: "listbox", children: options == null ? void 0 : options.map((option) => {
63891
- const value = typeof option == "object" ? option.value : option, label2 = typeof option == "object" ? option.label : option;
63892
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Item, { type: "action", onClick: () => setLocalValue(option), children: label2 }, value);
63882
+ const value = typeof option == "object" ? option.value : option, label2 = typeof option == "object" ? option.label : option, icon2 = typeof option == "object" ? option.icon : void 0;
63883
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Item, { type: "action", onClick: () => setLocalValue(option), icon: icon2, children: label2 }, value);
63893
63884
  }) })
63894
63885
  ] });
63895
63886
  }, Select$1 = Select;
@@ -64554,11 +64545,29 @@ function PublishModal$2({
64554
64545
  /* @__PURE__ */ jsxRuntimeExports.jsx(SubjectsDropdown, { control, selectedSubjectAreas, selectSubjects }),
64555
64546
  /* @__PURE__ */ jsxRuntimeExports.jsx(LangSelect, { control })
64556
64547
  ] }),
64548
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown$1, { children: [
64549
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Trigger, { label: "Dropdown" }),
64550
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown$1.Menu, { children: [
64551
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Item, { onClick: () => alert("click"), children: "Dropdown Item" }),
64552
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Separator, {}),
64553
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown$1.MenuGroup, { label: "Title label", children: [
64554
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Item, { children: "Dropdown Item" }),
64555
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Item, { children: "Dropdown Item" })
64556
+ ] }),
64557
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Separator, {}),
64558
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown$1.MenuGroup, { label: "Title label", children: [
64559
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Item, { children: "Dropdown Item" }),
64560
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Item, { children: "Dropdown Item" })
64561
+ ] }),
64562
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Separator, {}),
64563
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown$1.Item, { children: "Dropdown Item" })
64564
+ ] })
64565
+ ] }),
64557
64566
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-24", children: [
64558
64567
  /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: "", className: "form-label", children: t2("bpr.form.publication.age") }),
64559
64568
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "d-flex gap-8", children: [
64560
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "col col-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AgeSelect, { control, name: "ageMin", placeholderOption: defaultSelectAgeMinOption, validate: (value, formValues) => parseInt(value) <= parseInt(formValues.ageMax) }) }),
64561
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "col col-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AgeSelect, { control, name: "ageMax", placeholderOption: defaultSelectAgeMaxOption, validate: (value, formValues) => parseInt(value) >= parseInt(formValues.ageMin) }) })
64569
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "col col-md-2 d-flex", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AgeSelect, { control, name: "ageMin", placeholderOption: defaultSelectAgeMinOption, validate: (value, formValues) => parseInt(value) <= parseInt(formValues.ageMax) }) }),
64570
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "col col-md-2 d-flex", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AgeSelect, { control, name: "ageMax", placeholderOption: defaultSelectAgeMaxOption, validate: (value, formValues) => parseInt(value) >= parseInt(formValues.ageMin) }) })
64562
64571
  ] })
64563
64572
  ] }),
64564
64573
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mb-24", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "keywords", isOptional: true, children: [
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-b2school-SNAPSHOT 13/02/2024 15:54:32
1
+ ode-explorer=1.0-b2school-SNAPSHOT 14/02/2024 12:30:12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.3.3-develop-pedago.202402131554",
3
+ "version": "1.3.3-develop-pedago.202402141229",
4
4
  "description": "Open Digital Education Explorer",
5
5
  "homepage": "https://github.com/opendigitaleducation/explorer#readme",
6
6
  "bugs": {