@apexcura/core 0.0.16-Beta185 → 0.0.16-Beta187
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 +19 -11
- package/dist/index.mjs +19 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -372,17 +372,25 @@ var ElementExecutor = (props) => {
|
|
|
372
372
|
const renderFields = (schema2) => {
|
|
373
373
|
return schema2 && schema2.map((eachSection) => {
|
|
374
374
|
if (eachSection.visible !== false) {
|
|
375
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, { key: eachSection.name }, eachSection.fields && eachSection.fields.length > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderElement(eachSection), /* @__PURE__ */ import_react.default.createElement("div", { className: eachSection.className, key: eachSection.name }, renderFields(eachSection.fields)), eachSection.dateTime ? /* @__PURE__ */ import_react.default.createElement(
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
375
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, { key: eachSection.name }, eachSection.fields && eachSection.fields.length > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderElement(eachSection), /* @__PURE__ */ import_react.default.createElement("div", { className: eachSection.className, key: eachSection.name }, renderFields(eachSection.fields)), eachSection.dateTime ? /* @__PURE__ */ import_react.default.createElement(
|
|
376
|
+
"p",
|
|
377
|
+
{
|
|
378
|
+
style: {
|
|
379
|
+
fontSize: "12px",
|
|
380
|
+
textAlign: eachSection.source === "bot" ? "left" : "right"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
(0, import_moment.default)(eachSection.dateTime).format("LT")
|
|
384
|
+
) : "") : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderElement(eachSection), eachSection.dateTime ? /* @__PURE__ */ import_react.default.createElement(
|
|
385
|
+
"p",
|
|
386
|
+
{
|
|
387
|
+
style: {
|
|
388
|
+
fontSize: "12px",
|
|
389
|
+
textAlign: eachSection.source === "bot" ? "left" : "right"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
(0, import_moment.default)(eachSection.dateTime).format("LT")
|
|
393
|
+
) : ""));
|
|
386
394
|
}
|
|
387
395
|
return null;
|
|
388
396
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -367,17 +367,25 @@ var ElementExecutor = (props) => {
|
|
|
367
367
|
const renderFields = (schema2) => {
|
|
368
368
|
return schema2 && schema2.map((eachSection) => {
|
|
369
369
|
if (eachSection.visible !== false) {
|
|
370
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, { key: eachSection.name }, eachSection.fields && eachSection.fields.length > 0 ? /* @__PURE__ */ React.createElement(React.Fragment, null, renderElement(eachSection), /* @__PURE__ */ React.createElement("div", { className: eachSection.className, key: eachSection.name }, renderFields(eachSection.fields)), eachSection.dateTime ? /* @__PURE__ */ React.createElement(
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
370
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, { key: eachSection.name }, eachSection.fields && eachSection.fields.length > 0 ? /* @__PURE__ */ React.createElement(React.Fragment, null, renderElement(eachSection), /* @__PURE__ */ React.createElement("div", { className: eachSection.className, key: eachSection.name }, renderFields(eachSection.fields)), eachSection.dateTime ? /* @__PURE__ */ React.createElement(
|
|
371
|
+
"p",
|
|
372
|
+
{
|
|
373
|
+
style: {
|
|
374
|
+
fontSize: "12px",
|
|
375
|
+
textAlign: eachSection.source === "bot" ? "left" : "right"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
moment(eachSection.dateTime).format("LT")
|
|
379
|
+
) : "") : /* @__PURE__ */ React.createElement(React.Fragment, null, renderElement(eachSection), eachSection.dateTime ? /* @__PURE__ */ React.createElement(
|
|
380
|
+
"p",
|
|
381
|
+
{
|
|
382
|
+
style: {
|
|
383
|
+
fontSize: "12px",
|
|
384
|
+
textAlign: eachSection.source === "bot" ? "left" : "right"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
moment(eachSection.dateTime).format("LT")
|
|
388
|
+
) : ""));
|
|
381
389
|
}
|
|
382
390
|
return null;
|
|
383
391
|
});
|