@apexcura/core 0.0.16-Beta183 → 0.0.16-Beta185
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 +11 -1
- package/dist/index.mjs +11 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -372,7 +372,17 @@ 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("p",
|
|
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("p", { style: {
|
|
376
|
+
fontSize: "12px",
|
|
377
|
+
position: "absolute",
|
|
378
|
+
[eachSection.source === "bot" ? "left" : "right"]: "0",
|
|
379
|
+
margin: "0"
|
|
380
|
+
} }, (0, import_moment.default)(eachSection.dateTime).format("LT")) : "") : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderElement(eachSection), eachSection.dateTime ? /* @__PURE__ */ import_react.default.createElement("p", { style: {
|
|
381
|
+
fontSize: "12px",
|
|
382
|
+
position: "absolute",
|
|
383
|
+
[eachSection.source === "bot" ? "left" : "right"]: "0",
|
|
384
|
+
margin: "0"
|
|
385
|
+
} }, (0, import_moment.default)(eachSection.dateTime).format("LT")) : ""));
|
|
376
386
|
}
|
|
377
387
|
return null;
|
|
378
388
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -367,7 +367,17 @@ 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("p",
|
|
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("p", { style: {
|
|
371
|
+
fontSize: "12px",
|
|
372
|
+
position: "absolute",
|
|
373
|
+
[eachSection.source === "bot" ? "left" : "right"]: "0",
|
|
374
|
+
margin: "0"
|
|
375
|
+
} }, moment(eachSection.dateTime).format("LT")) : "") : /* @__PURE__ */ React.createElement(React.Fragment, null, renderElement(eachSection), eachSection.dateTime ? /* @__PURE__ */ React.createElement("p", { style: {
|
|
376
|
+
fontSize: "12px",
|
|
377
|
+
position: "absolute",
|
|
378
|
+
[eachSection.source === "bot" ? "left" : "right"]: "0",
|
|
379
|
+
margin: "0"
|
|
380
|
+
} }, moment(eachSection.dateTime).format("LT")) : ""));
|
|
371
381
|
}
|
|
372
382
|
return null;
|
|
373
383
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apexcura/core",
|
|
3
|
-
"version": "0.0.16-
|
|
3
|
+
"version": "0.0.16-Beta185",
|
|
4
4
|
"description": "Apex cura React components library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apex cura",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"build": "tsup"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@apexcura/ui-components": "^0.0.14-
|
|
31
|
+
"@apexcura/ui-components": "^0.0.14-Beta175",
|
|
32
32
|
"@testing-library/jest-dom": "^6.4.2",
|
|
33
33
|
"@testing-library/react": "^15.0.6",
|
|
34
34
|
"@types/react-global-configuration": "^1.3.3",
|