@infuro/cms-core 1.0.55 → 1.0.56
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/admin.cjs +20 -11
- package/dist/admin.js +20 -11
- package/package.json +1 -1
package/dist/admin.cjs
CHANGED
|
@@ -887,7 +887,7 @@ var init_admin_config_context = __esm({
|
|
|
887
887
|
var CMS_VERSION;
|
|
888
888
|
var init_cms_version = __esm({
|
|
889
889
|
"src/lib/cms-version.ts"() {
|
|
890
|
-
CMS_VERSION = "1.0.
|
|
890
|
+
CMS_VERSION = "1.0.56" ;
|
|
891
891
|
}
|
|
892
892
|
});
|
|
893
893
|
function useCatalogCategories(enabled = true) {
|
|
@@ -33696,7 +33696,7 @@ function EventEditPage({ eventId }) {
|
|
|
33696
33696
|
setExhibitors(parseNamedListFromApi(data.exhibitors, "exhibitor"));
|
|
33697
33697
|
setPartners(parseNamedListFromApi(data.partners, "partner"));
|
|
33698
33698
|
setSpeakers(parseNamedListFromApi(data.speakers, "speaker"));
|
|
33699
|
-
setSortOrder(Number(data.sortOrder)
|
|
33699
|
+
setSortOrder(data.sortOrder != null ? Number(data.sortOrder) : 0);
|
|
33700
33700
|
setContactFormId(data.contactFormId != null && Number.isFinite(Number(data.contactFormId)) ? Number(data.contactFormId) : null);
|
|
33701
33701
|
const loadedDefault = String(data.defaultCurrency ?? DEFAULT_EVENT_CURRENCY).trim().toUpperCase() || DEFAULT_EVENT_CURRENCY;
|
|
33702
33702
|
setDefaultCurrency(loadedDefault);
|
|
@@ -33808,7 +33808,7 @@ function EventEditPage({ eventId }) {
|
|
|
33808
33808
|
exhibitors: namedListToPayload(exhibitors),
|
|
33809
33809
|
partners: namedListToPayload(partners),
|
|
33810
33810
|
speakers: namedListToPayload(speakers),
|
|
33811
|
-
sortOrder,
|
|
33811
|
+
sortOrder: sortOrder === "" ? 0 : sortOrder,
|
|
33812
33812
|
contactFormId
|
|
33813
33813
|
};
|
|
33814
33814
|
if (approvalOn) {
|
|
@@ -34075,8 +34075,19 @@ function EventEditPage({ eventId }) {
|
|
|
34075
34075
|
className: labelCls6
|
|
34076
34076
|
}, "Sort order"), /* @__PURE__ */ React.createElement("input", {
|
|
34077
34077
|
type: "number",
|
|
34078
|
+
min: 0,
|
|
34078
34079
|
value: sortOrder,
|
|
34079
|
-
onChange: /* @__PURE__ */ __name((e) =>
|
|
34080
|
+
onChange: /* @__PURE__ */ __name((e) => {
|
|
34081
|
+
const value = e.target.value;
|
|
34082
|
+
if (value === "") {
|
|
34083
|
+
setSortOrder("");
|
|
34084
|
+
return;
|
|
34085
|
+
}
|
|
34086
|
+
const number = Number(value);
|
|
34087
|
+
if (number >= 0) {
|
|
34088
|
+
setSortOrder(number);
|
|
34089
|
+
}
|
|
34090
|
+
}, "onChange"),
|
|
34080
34091
|
className: inputCls6
|
|
34081
34092
|
})), /* @__PURE__ */ React.createElement("div", {
|
|
34082
34093
|
className: "sm:col-span-2"
|
|
@@ -34353,17 +34364,15 @@ function EventEditPage({ eventId }) {
|
|
|
34353
34364
|
}))))
|
|
34354
34365
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
34355
34366
|
className: "flex items-center justify-between border-t border-gray-200 px-4 py-4 sm:px-6"
|
|
34356
|
-
}, /* @__PURE__ */ React.createElement("button", {
|
|
34367
|
+
}, activeTabIndex > 0 ? /* @__PURE__ */ React.createElement("button", {
|
|
34357
34368
|
type: "button",
|
|
34358
34369
|
onClick: goToPreviousTab,
|
|
34359
|
-
|
|
34360
|
-
|
|
34361
|
-
}, "Previous"), /* @__PURE__ */ React.createElement("button", {
|
|
34370
|
+
className: "rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50"
|
|
34371
|
+
}, "Previous") : /* @__PURE__ */ React.createElement("div", null), activeTabIndex < eventTabs.length - 1 ? /* @__PURE__ */ React.createElement("button", {
|
|
34362
34372
|
type: "button",
|
|
34363
34373
|
onClick: goToNextTab,
|
|
34364
|
-
|
|
34365
|
-
|
|
34366
|
-
}, "Next")), showEventProducts ? /* @__PURE__ */ React.createElement("div", {
|
|
34374
|
+
className: "rounded-md bg-gray-900 px-4 py-2 text-sm font-medium text-white hover:bg-gray-800"
|
|
34375
|
+
}, "Next") : /* @__PURE__ */ React.createElement("div", null)), showEventProducts ? /* @__PURE__ */ React.createElement("div", {
|
|
34367
34376
|
className: "border-t border-gray-200 px-4 py-4 sm:px-6"
|
|
34368
34377
|
}, /* @__PURE__ */ React.createElement(EventProductsSection, {
|
|
34369
34378
|
eventId: eventRecordId,
|
package/dist/admin.js
CHANGED
|
@@ -853,7 +853,7 @@ var init_admin_config_context = __esm({
|
|
|
853
853
|
var CMS_VERSION;
|
|
854
854
|
var init_cms_version = __esm({
|
|
855
855
|
"src/lib/cms-version.ts"() {
|
|
856
|
-
CMS_VERSION = "1.0.
|
|
856
|
+
CMS_VERSION = "1.0.56" ;
|
|
857
857
|
}
|
|
858
858
|
});
|
|
859
859
|
function useCatalogCategories(enabled = true) {
|
|
@@ -33662,7 +33662,7 @@ function EventEditPage({ eventId }) {
|
|
|
33662
33662
|
setExhibitors(parseNamedListFromApi(data.exhibitors, "exhibitor"));
|
|
33663
33663
|
setPartners(parseNamedListFromApi(data.partners, "partner"));
|
|
33664
33664
|
setSpeakers(parseNamedListFromApi(data.speakers, "speaker"));
|
|
33665
|
-
setSortOrder(Number(data.sortOrder)
|
|
33665
|
+
setSortOrder(data.sortOrder != null ? Number(data.sortOrder) : 0);
|
|
33666
33666
|
setContactFormId(data.contactFormId != null && Number.isFinite(Number(data.contactFormId)) ? Number(data.contactFormId) : null);
|
|
33667
33667
|
const loadedDefault = String(data.defaultCurrency ?? DEFAULT_EVENT_CURRENCY).trim().toUpperCase() || DEFAULT_EVENT_CURRENCY;
|
|
33668
33668
|
setDefaultCurrency(loadedDefault);
|
|
@@ -33774,7 +33774,7 @@ function EventEditPage({ eventId }) {
|
|
|
33774
33774
|
exhibitors: namedListToPayload(exhibitors),
|
|
33775
33775
|
partners: namedListToPayload(partners),
|
|
33776
33776
|
speakers: namedListToPayload(speakers),
|
|
33777
|
-
sortOrder,
|
|
33777
|
+
sortOrder: sortOrder === "" ? 0 : sortOrder,
|
|
33778
33778
|
contactFormId
|
|
33779
33779
|
};
|
|
33780
33780
|
if (approvalOn) {
|
|
@@ -34041,8 +34041,19 @@ function EventEditPage({ eventId }) {
|
|
|
34041
34041
|
className: labelCls6
|
|
34042
34042
|
}, "Sort order"), /* @__PURE__ */ React.createElement("input", {
|
|
34043
34043
|
type: "number",
|
|
34044
|
+
min: 0,
|
|
34044
34045
|
value: sortOrder,
|
|
34045
|
-
onChange: /* @__PURE__ */ __name((e) =>
|
|
34046
|
+
onChange: /* @__PURE__ */ __name((e) => {
|
|
34047
|
+
const value = e.target.value;
|
|
34048
|
+
if (value === "") {
|
|
34049
|
+
setSortOrder("");
|
|
34050
|
+
return;
|
|
34051
|
+
}
|
|
34052
|
+
const number = Number(value);
|
|
34053
|
+
if (number >= 0) {
|
|
34054
|
+
setSortOrder(number);
|
|
34055
|
+
}
|
|
34056
|
+
}, "onChange"),
|
|
34046
34057
|
className: inputCls6
|
|
34047
34058
|
})), /* @__PURE__ */ React.createElement("div", {
|
|
34048
34059
|
className: "sm:col-span-2"
|
|
@@ -34319,17 +34330,15 @@ function EventEditPage({ eventId }) {
|
|
|
34319
34330
|
}))))
|
|
34320
34331
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
34321
34332
|
className: "flex items-center justify-between border-t border-gray-200 px-4 py-4 sm:px-6"
|
|
34322
|
-
}, /* @__PURE__ */ React.createElement("button", {
|
|
34333
|
+
}, activeTabIndex > 0 ? /* @__PURE__ */ React.createElement("button", {
|
|
34323
34334
|
type: "button",
|
|
34324
34335
|
onClick: goToPreviousTab,
|
|
34325
|
-
|
|
34326
|
-
|
|
34327
|
-
}, "Previous"), /* @__PURE__ */ React.createElement("button", {
|
|
34336
|
+
className: "rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50"
|
|
34337
|
+
}, "Previous") : /* @__PURE__ */ React.createElement("div", null), activeTabIndex < eventTabs.length - 1 ? /* @__PURE__ */ React.createElement("button", {
|
|
34328
34338
|
type: "button",
|
|
34329
34339
|
onClick: goToNextTab,
|
|
34330
|
-
|
|
34331
|
-
|
|
34332
|
-
}, "Next")), showEventProducts ? /* @__PURE__ */ React.createElement("div", {
|
|
34340
|
+
className: "rounded-md bg-gray-900 px-4 py-2 text-sm font-medium text-white hover:bg-gray-800"
|
|
34341
|
+
}, "Next") : /* @__PURE__ */ React.createElement("div", null)), showEventProducts ? /* @__PURE__ */ React.createElement("div", {
|
|
34333
34342
|
className: "border-t border-gray-200 px-4 py-4 sm:px-6"
|
|
34334
34343
|
}, /* @__PURE__ */ React.createElement(EventProductsSection, {
|
|
34335
34344
|
eventId: eventRecordId,
|