@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260627063733 → 0.8.1-dev.20260627090429
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 +6 -1
- package/dist/index.mjs +13 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6033,7 +6033,12 @@ var DocumentNode = (props) => {
|
|
|
6033
6033
|
documents = [docData];
|
|
6034
6034
|
}
|
|
6035
6035
|
}
|
|
6036
|
-
if (documents.length === 0)
|
|
6036
|
+
if (documents.length === 0) {
|
|
6037
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "py-4 px-2 bg-neutral-soft gap-4 border rounded", children: [
|
|
6038
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-sm font-medium", children: "\u{1F4C4} No documents found" }),
|
|
6039
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-xs", children: "Kindly Check Later" })
|
|
6040
|
+
] }) });
|
|
6041
|
+
}
|
|
6037
6042
|
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
6038
6043
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
6039
6044
|
props.assetBaseUrl,
|
package/dist/index.mjs
CHANGED
|
@@ -4076,7 +4076,7 @@ var validateRoleVisibility = (roleCode, oAuthToken) => {
|
|
|
4076
4076
|
};
|
|
4077
4077
|
|
|
4078
4078
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
4079
|
-
import { jsx as jsx59, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4079
|
+
import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4080
4080
|
var getNestedValue4 = (obj, path) => {
|
|
4081
4081
|
if (!obj || !path) return void 0;
|
|
4082
4082
|
return path.split(".").reduce((current, key) => {
|
|
@@ -4427,7 +4427,12 @@ var DocumentNode = (props) => {
|
|
|
4427
4427
|
documents = [docData];
|
|
4428
4428
|
}
|
|
4429
4429
|
}
|
|
4430
|
-
if (documents.length === 0)
|
|
4430
|
+
if (documents.length === 0) {
|
|
4431
|
+
return /* @__PURE__ */ jsx59(Fragment9, { children: /* @__PURE__ */ jsxs32("div", { className: "py-4 px-2 bg-neutral-soft gap-4 border rounded", children: [
|
|
4432
|
+
/* @__PURE__ */ jsx59("p", { className: "text-sm font-medium", children: "\u{1F4C4} No documents found" }),
|
|
4433
|
+
/* @__PURE__ */ jsx59("p", { className: "text-xs", children: "Kindly Check Later" })
|
|
4434
|
+
] }) });
|
|
4435
|
+
}
|
|
4431
4436
|
return /* @__PURE__ */ jsx59("div", { className: "", children: documents.map((doc, index) => {
|
|
4432
4437
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
4433
4438
|
props.assetBaseUrl,
|
|
@@ -5005,7 +5010,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
|
|
|
5005
5010
|
|
|
5006
5011
|
// src/components/Toast.tsx
|
|
5007
5012
|
import { useState as useState8 } from "react";
|
|
5008
|
-
import { Fragment as
|
|
5013
|
+
import { Fragment as Fragment10, jsx as jsx62, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
5009
5014
|
var Toast = () => {
|
|
5010
5015
|
const [showToast, setShowToast] = useState8(false);
|
|
5011
5016
|
const [message, setMessage] = useState8("");
|
|
@@ -5048,7 +5053,7 @@ var Toast = () => {
|
|
|
5048
5053
|
const closeToast = () => {
|
|
5049
5054
|
setShowToast(false);
|
|
5050
5055
|
};
|
|
5051
|
-
return /* @__PURE__ */ jsx62(
|
|
5056
|
+
return /* @__PURE__ */ jsx62(Fragment10, { children: showToast && /* @__PURE__ */ jsx62("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs34("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
|
|
5052
5057
|
/* @__PURE__ */ jsx62(
|
|
5053
5058
|
"span",
|
|
5054
5059
|
{
|
|
@@ -5168,7 +5173,7 @@ var ContentView = (props) => {
|
|
|
5168
5173
|
var ContentView_default = ContentView;
|
|
5169
5174
|
|
|
5170
5175
|
// src/components/dataForm/DataList.tsx
|
|
5171
|
-
import { Fragment as
|
|
5176
|
+
import { Fragment as Fragment11, jsx as jsx66, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
5172
5177
|
var DataList = (props) => {
|
|
5173
5178
|
const router = useRouter();
|
|
5174
5179
|
let builder = new OdataBuilder(props.path);
|
|
@@ -5298,7 +5303,7 @@ var DataList = (props) => {
|
|
|
5298
5303
|
const showFirstPages = activePageNumber <= 5;
|
|
5299
5304
|
const showLastPages = activePageNumber > pages - 5;
|
|
5300
5305
|
if (showFirstPages) {
|
|
5301
|
-
return /* @__PURE__ */ jsxs36(
|
|
5306
|
+
return /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
5302
5307
|
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx66(React46.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx66(
|
|
5303
5308
|
Hyperlink,
|
|
5304
5309
|
{
|
|
@@ -5346,7 +5351,7 @@ var DataList = (props) => {
|
|
|
5346
5351
|
) })
|
|
5347
5352
|
] });
|
|
5348
5353
|
} else if (showLastPages) {
|
|
5349
|
-
return /* @__PURE__ */ jsxs36(
|
|
5354
|
+
return /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
5350
5355
|
/* @__PURE__ */ jsx66(
|
|
5351
5356
|
Hyperlink,
|
|
5352
5357
|
{
|
|
@@ -5376,7 +5381,7 @@ var DataList = (props) => {
|
|
|
5376
5381
|
)
|
|
5377
5382
|
] });
|
|
5378
5383
|
} else {
|
|
5379
|
-
return /* @__PURE__ */ jsxs36(
|
|
5384
|
+
return /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
5380
5385
|
/* @__PURE__ */ jsx66(
|
|
5381
5386
|
Hyperlink,
|
|
5382
5387
|
{
|
package/package.json
CHANGED