@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260627063733 → 0.8.1-dev.20260627092052

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
@@ -6033,7 +6033,31 @@ var DocumentNode = (props) => {
6033
6033
  documents = [docData];
6034
6034
  }
6035
6035
  }
6036
- if (documents.length === 0) return null;
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-weak border rounded text-center flex flex-col gap-2", children: [
6038
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6039
+ "svg",
6040
+ {
6041
+ className: "w-5 h-5",
6042
+ fill: "none",
6043
+ stroke: "currentColor",
6044
+ viewBox: "0 0 24 24",
6045
+ xmlns: "http://www.w3.org/2000/svg",
6046
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6047
+ "path",
6048
+ {
6049
+ strokeLinecap: "round",
6050
+ strokeLinejoin: "round",
6051
+ strokeWidth: "1.5",
6052
+ d: "M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"
6053
+ }
6054
+ )
6055
+ }
6056
+ ) }),
6057
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
6058
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
6059
+ ] }) });
6060
+ }
6037
6061
  return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "", children: documents.map((doc, index) => {
6038
6062
  const documentUrl = AssetUtility_default.resolveUrl(
6039
6063
  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,31 @@ var DocumentNode = (props) => {
4427
4427
  documents = [docData];
4428
4428
  }
4429
4429
  }
4430
- if (documents.length === 0) return null;
4430
+ if (documents.length === 0) {
4431
+ return /* @__PURE__ */ jsx59(Fragment9, { children: /* @__PURE__ */ jsxs32("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
4432
+ /* @__PURE__ */ jsx59("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx59(
4433
+ "svg",
4434
+ {
4435
+ className: "w-5 h-5",
4436
+ fill: "none",
4437
+ stroke: "currentColor",
4438
+ viewBox: "0 0 24 24",
4439
+ xmlns: "http://www.w3.org/2000/svg",
4440
+ children: /* @__PURE__ */ jsx59(
4441
+ "path",
4442
+ {
4443
+ strokeLinecap: "round",
4444
+ strokeLinejoin: "round",
4445
+ strokeWidth: "1.5",
4446
+ d: "M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"
4447
+ }
4448
+ )
4449
+ }
4450
+ ) }),
4451
+ /* @__PURE__ */ jsx59("div", { className: "text-sm font-medium", children: "No documents found" }),
4452
+ /* @__PURE__ */ jsx59("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
4453
+ ] }) });
4454
+ }
4431
4455
  return /* @__PURE__ */ jsx59("div", { className: "", children: documents.map((doc, index) => {
4432
4456
  const documentUrl = AssetUtility_default.resolveUrl(
4433
4457
  props.assetBaseUrl,
@@ -5005,7 +5029,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
5005
5029
 
5006
5030
  // src/components/Toast.tsx
5007
5031
  import { useState as useState8 } from "react";
5008
- import { Fragment as Fragment9, jsx as jsx62, jsxs as jsxs34 } from "react/jsx-runtime";
5032
+ import { Fragment as Fragment10, jsx as jsx62, jsxs as jsxs34 } from "react/jsx-runtime";
5009
5033
  var Toast = () => {
5010
5034
  const [showToast, setShowToast] = useState8(false);
5011
5035
  const [message, setMessage] = useState8("");
@@ -5048,7 +5072,7 @@ var Toast = () => {
5048
5072
  const closeToast = () => {
5049
5073
  setShowToast(false);
5050
5074
  };
5051
- return /* @__PURE__ */ jsx62(Fragment9, { 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: [
5075
+ 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
5076
  /* @__PURE__ */ jsx62(
5053
5077
  "span",
5054
5078
  {
@@ -5168,7 +5192,7 @@ var ContentView = (props) => {
5168
5192
  var ContentView_default = ContentView;
5169
5193
 
5170
5194
  // src/components/dataForm/DataList.tsx
5171
- import { Fragment as Fragment10, jsx as jsx66, jsxs as jsxs36 } from "react/jsx-runtime";
5195
+ import { Fragment as Fragment11, jsx as jsx66, jsxs as jsxs36 } from "react/jsx-runtime";
5172
5196
  var DataList = (props) => {
5173
5197
  const router = useRouter();
5174
5198
  let builder = new OdataBuilder(props.path);
@@ -5298,7 +5322,7 @@ var DataList = (props) => {
5298
5322
  const showFirstPages = activePageNumber <= 5;
5299
5323
  const showLastPages = activePageNumber > pages - 5;
5300
5324
  if (showFirstPages) {
5301
- return /* @__PURE__ */ jsxs36(Fragment10, { children: [
5325
+ return /* @__PURE__ */ jsxs36(Fragment11, { children: [
5302
5326
  Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx66(React46.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx66(
5303
5327
  Hyperlink,
5304
5328
  {
@@ -5346,7 +5370,7 @@ var DataList = (props) => {
5346
5370
  ) })
5347
5371
  ] });
5348
5372
  } else if (showLastPages) {
5349
- return /* @__PURE__ */ jsxs36(Fragment10, { children: [
5373
+ return /* @__PURE__ */ jsxs36(Fragment11, { children: [
5350
5374
  /* @__PURE__ */ jsx66(
5351
5375
  Hyperlink,
5352
5376
  {
@@ -5376,7 +5400,7 @@ var DataList = (props) => {
5376
5400
  )
5377
5401
  ] });
5378
5402
  } else {
5379
- return /* @__PURE__ */ jsxs36(Fragment10, { children: [
5403
+ return /* @__PURE__ */ jsxs36(Fragment11, { children: [
5380
5404
  /* @__PURE__ */ jsx66(
5381
5405
  Hyperlink,
5382
5406
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acoustte-digital-services/digitalstore-controls-dev",
3
- "version": "0.8.1-dev.20260627063733",
3
+ "version": "0.8.1-dev.20260627092052",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",