@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260627090429 → 0.8.1-dev.20260629084835
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 +82 -35
- package/dist/index.mjs +82 -35
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6034,9 +6034,28 @@ var DocumentNode = (props) => {
|
|
|
6034
6034
|
}
|
|
6035
6035
|
}
|
|
6036
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-
|
|
6038
|
-
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("
|
|
6039
|
-
|
|
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." })
|
|
6040
6059
|
] }) });
|
|
6041
6060
|
}
|
|
6042
6061
|
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
@@ -6124,10 +6143,7 @@ function convertKeysToCamelCase(obj) {
|
|
|
6124
6143
|
if (!obj || typeof obj !== "object") return obj;
|
|
6125
6144
|
if (Array.isArray(obj)) return obj.map(convertKeysToCamelCase);
|
|
6126
6145
|
return Object.fromEntries(
|
|
6127
|
-
Object.entries(obj).filter(([_, value]) => value !== "" && value !== void 0).map(([key, value]) => [
|
|
6128
|
-
toCamelCase(key),
|
|
6129
|
-
convertKeysToCamelCase(value)
|
|
6130
|
-
])
|
|
6146
|
+
Object.entries(obj).filter(([_, value]) => value !== "" && value !== void 0).map(([key, value]) => [toCamelCase(key), convertKeysToCamelCase(value)])
|
|
6131
6147
|
);
|
|
6132
6148
|
}
|
|
6133
6149
|
var getNestedValue5 = (obj, path) => {
|
|
@@ -6175,14 +6191,8 @@ function generateCompleteBackgroundString(layers, apiBaseUrl, dataItem) {
|
|
|
6175
6191
|
const imageValue = layer.value;
|
|
6176
6192
|
let assetUrl = imageValue.assetUrl || "";
|
|
6177
6193
|
if (layer.datafield && dataItem) {
|
|
6178
|
-
const fieldValue = getNestedValue5(
|
|
6179
|
-
|
|
6180
|
-
layer.datafield
|
|
6181
|
-
);
|
|
6182
|
-
const resolvedAssetUrl = resolveAssetUrl2(
|
|
6183
|
-
fieldValue,
|
|
6184
|
-
layer.tag
|
|
6185
|
-
);
|
|
6194
|
+
const fieldValue = getNestedValue5(dataItem, layer.datafield);
|
|
6195
|
+
const resolvedAssetUrl = resolveAssetUrl2(fieldValue, layer.tag);
|
|
6186
6196
|
if (resolvedAssetUrl) {
|
|
6187
6197
|
assetUrl = resolvedAssetUrl;
|
|
6188
6198
|
}
|
|
@@ -6190,10 +6200,7 @@ function generateCompleteBackgroundString(layers, apiBaseUrl, dataItem) {
|
|
|
6190
6200
|
if (!assetUrl) {
|
|
6191
6201
|
return "";
|
|
6192
6202
|
}
|
|
6193
|
-
const url = `url('${AssetUtility_default.resolveUrl(
|
|
6194
|
-
apiBaseUrl,
|
|
6195
|
-
assetUrl
|
|
6196
|
-
)}')`;
|
|
6203
|
+
const url = `url('${AssetUtility_default.resolveUrl(apiBaseUrl, assetUrl)}')`;
|
|
6197
6204
|
const repeat = layer.repeat || "no-repeat";
|
|
6198
6205
|
const position = layer.position || "center";
|
|
6199
6206
|
const size = layer.size || "auto";
|
|
@@ -6322,24 +6329,32 @@ var DivContainer = async (props) => {
|
|
|
6322
6329
|
let animationCSS = "";
|
|
6323
6330
|
if (enterAnimation?.name) {
|
|
6324
6331
|
animationCSS += AnimationUtility_default.generateAnimationCSS(
|
|
6325
|
-
{
|
|
6332
|
+
{
|
|
6333
|
+
animation: enterAnimation.name,
|
|
6334
|
+
mode: "enter",
|
|
6335
|
+
...enterAnimation.properties
|
|
6336
|
+
},
|
|
6326
6337
|
`#${guid}`
|
|
6327
6338
|
);
|
|
6328
6339
|
}
|
|
6329
6340
|
if (hoverAnimation?.name) {
|
|
6330
6341
|
animationCSS += AnimationUtility_default.generateAnimationCSS(
|
|
6331
|
-
{
|
|
6342
|
+
{
|
|
6343
|
+
animation: hoverAnimation.name,
|
|
6344
|
+
mode: "hover",
|
|
6345
|
+
...hoverAnimation.properties
|
|
6346
|
+
},
|
|
6332
6347
|
`#${guid}`
|
|
6333
6348
|
);
|
|
6334
6349
|
}
|
|
6335
6350
|
const shouldHideContainer = () => {
|
|
6336
6351
|
if (!props.node.fieldVisibleOnTrue) return false;
|
|
6337
|
-
const condition = props.node.fieldVisibleOnTrue;
|
|
6352
|
+
const condition = props.node.fieldVisibleOnTrue.trim();
|
|
6338
6353
|
const isNegated = condition.startsWith("!");
|
|
6339
|
-
const fieldName = isNegated ? condition.substring(1) : condition;
|
|
6354
|
+
const fieldName = isNegated ? condition.substring(1).trim() : condition;
|
|
6340
6355
|
const fieldValue = getNestedValue5(props.dataitem, fieldName);
|
|
6341
|
-
if (fieldValue ===
|
|
6342
|
-
return
|
|
6356
|
+
if (fieldValue == null || fieldValue === 0) {
|
|
6357
|
+
return true;
|
|
6343
6358
|
}
|
|
6344
6359
|
return isNegated ? fieldValue === true : fieldValue === false;
|
|
6345
6360
|
};
|
|
@@ -6379,7 +6394,10 @@ var DivContainer = async (props) => {
|
|
|
6379
6394
|
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(NoDataFound_default, {});
|
|
6380
6395
|
}
|
|
6381
6396
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
6382
|
-
childCollectionData = getNestedValue5(
|
|
6397
|
+
childCollectionData = getNestedValue5(
|
|
6398
|
+
props.dataitem,
|
|
6399
|
+
dataBindingProperties.childCollectionName
|
|
6400
|
+
);
|
|
6383
6401
|
}
|
|
6384
6402
|
}
|
|
6385
6403
|
const cssResult = generateCssString(
|
|
@@ -6416,7 +6434,10 @@ var DivContainer = async (props) => {
|
|
|
6416
6434
|
function renderChildren(nodes, props2, data, key, href) {
|
|
6417
6435
|
if (!nodes) return null;
|
|
6418
6436
|
const childNodes = nodes.map((node, index) => {
|
|
6419
|
-
if (
|
|
6437
|
+
if (
|
|
6438
|
+
// @ts-expect-error custom code
|
|
6439
|
+
node.type === "div-container" && node.dataBinding?.childCollectionName && data
|
|
6440
|
+
) {
|
|
6420
6441
|
return renderNode(node, props2, data, index, href);
|
|
6421
6442
|
}
|
|
6422
6443
|
return renderNode(node, props2, data, index, href);
|
|
@@ -6475,7 +6496,10 @@ var DivContainer = async (props) => {
|
|
|
6475
6496
|
medium: Math.ceil(largeCols / 2),
|
|
6476
6497
|
small: 1
|
|
6477
6498
|
};
|
|
6478
|
-
wrapperProps = {
|
|
6499
|
+
wrapperProps = {
|
|
6500
|
+
...props.node.componentProperties,
|
|
6501
|
+
slidesToShow
|
|
6502
|
+
};
|
|
6479
6503
|
break;
|
|
6480
6504
|
case !!(props.node.href || props.href):
|
|
6481
6505
|
Wrapper = import_link2.default;
|
|
@@ -6483,11 +6507,18 @@ var DivContainer = async (props) => {
|
|
|
6483
6507
|
if (href?.includes("{")) {
|
|
6484
6508
|
href = resolveHrefTemplate(href, props.dataitem);
|
|
6485
6509
|
}
|
|
6486
|
-
const currentPath = decodeURIComponent(
|
|
6510
|
+
const currentPath = decodeURIComponent(
|
|
6511
|
+
PathUtility_default.removeTrailingSlash(props.path) + "?" + queryObjectToString(props.query)
|
|
6512
|
+
);
|
|
6487
6513
|
const resolvedHref = decodeURIComponent(href || "");
|
|
6488
6514
|
const isSelected = currentPath === resolvedHref;
|
|
6489
6515
|
noLinkColor = true;
|
|
6490
|
-
wrapperProps = {
|
|
6516
|
+
wrapperProps = {
|
|
6517
|
+
href,
|
|
6518
|
+
"data-isSelected": isSelected,
|
|
6519
|
+
"data-path": currentPath,
|
|
6520
|
+
"data-href": resolvedHref
|
|
6521
|
+
};
|
|
6491
6522
|
break;
|
|
6492
6523
|
default: {
|
|
6493
6524
|
const replacementTag = props.node.replaceDivTagWith;
|
|
@@ -6513,7 +6544,12 @@ var DivContainer = async (props) => {
|
|
|
6513
6544
|
noLinkColor && "no-link-color"
|
|
6514
6545
|
].filter(Boolean).join(" ");
|
|
6515
6546
|
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react50.default.Fragment, { children: [
|
|
6516
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6547
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6548
|
+
"style",
|
|
6549
|
+
{
|
|
6550
|
+
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
6551
|
+
}
|
|
6552
|
+
),
|
|
6517
6553
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react50.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6518
6554
|
Wrapper,
|
|
6519
6555
|
{
|
|
@@ -6522,13 +6558,24 @@ var DivContainer = async (props) => {
|
|
|
6522
6558
|
className: classNames || void 0,
|
|
6523
6559
|
...wrapperProps,
|
|
6524
6560
|
children: dataToRender.map(
|
|
6525
|
-
(item, idx) => item?.links?.view && renderLink ? renderChildren(
|
|
6526
|
-
|
|
6527
|
-
|
|
6561
|
+
(item, idx) => item?.links?.view && renderLink ? renderChildren(
|
|
6562
|
+
props.node.children,
|
|
6563
|
+
props,
|
|
6564
|
+
item,
|
|
6565
|
+
idx,
|
|
6566
|
+
props.href ? void 0 : item?.links?.view
|
|
6567
|
+
)?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react50.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
6528
6568
|
)
|
|
6529
6569
|
}
|
|
6530
6570
|
) }),
|
|
6531
|
-
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6571
|
+
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6572
|
+
Pagination_default,
|
|
6573
|
+
{
|
|
6574
|
+
path: props.path,
|
|
6575
|
+
query: props.query,
|
|
6576
|
+
dataset: response
|
|
6577
|
+
}
|
|
6578
|
+
) })
|
|
6532
6579
|
] });
|
|
6533
6580
|
};
|
|
6534
6581
|
var DivContainer_default = DivContainer;
|
package/dist/index.mjs
CHANGED
|
@@ -4428,9 +4428,28 @@ var DocumentNode = (props) => {
|
|
|
4428
4428
|
}
|
|
4429
4429
|
}
|
|
4430
4430
|
if (documents.length === 0) {
|
|
4431
|
-
return /* @__PURE__ */ jsx59(Fragment9, { children: /* @__PURE__ */ jsxs32("div", { className: "py-4 px-2 bg-neutral-
|
|
4432
|
-
/* @__PURE__ */ jsx59("
|
|
4433
|
-
|
|
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." })
|
|
4434
4453
|
] }) });
|
|
4435
4454
|
}
|
|
4436
4455
|
return /* @__PURE__ */ jsx59("div", { className: "", children: documents.map((doc, index) => {
|
|
@@ -4518,10 +4537,7 @@ function convertKeysToCamelCase(obj) {
|
|
|
4518
4537
|
if (!obj || typeof obj !== "object") return obj;
|
|
4519
4538
|
if (Array.isArray(obj)) return obj.map(convertKeysToCamelCase);
|
|
4520
4539
|
return Object.fromEntries(
|
|
4521
|
-
Object.entries(obj).filter(([_, value]) => value !== "" && value !== void 0).map(([key, value]) => [
|
|
4522
|
-
toCamelCase(key),
|
|
4523
|
-
convertKeysToCamelCase(value)
|
|
4524
|
-
])
|
|
4540
|
+
Object.entries(obj).filter(([_, value]) => value !== "" && value !== void 0).map(([key, value]) => [toCamelCase(key), convertKeysToCamelCase(value)])
|
|
4525
4541
|
);
|
|
4526
4542
|
}
|
|
4527
4543
|
var getNestedValue5 = (obj, path) => {
|
|
@@ -4569,14 +4585,8 @@ function generateCompleteBackgroundString(layers, apiBaseUrl, dataItem) {
|
|
|
4569
4585
|
const imageValue = layer.value;
|
|
4570
4586
|
let assetUrl = imageValue.assetUrl || "";
|
|
4571
4587
|
if (layer.datafield && dataItem) {
|
|
4572
|
-
const fieldValue = getNestedValue5(
|
|
4573
|
-
|
|
4574
|
-
layer.datafield
|
|
4575
|
-
);
|
|
4576
|
-
const resolvedAssetUrl = resolveAssetUrl2(
|
|
4577
|
-
fieldValue,
|
|
4578
|
-
layer.tag
|
|
4579
|
-
);
|
|
4588
|
+
const fieldValue = getNestedValue5(dataItem, layer.datafield);
|
|
4589
|
+
const resolvedAssetUrl = resolveAssetUrl2(fieldValue, layer.tag);
|
|
4580
4590
|
if (resolvedAssetUrl) {
|
|
4581
4591
|
assetUrl = resolvedAssetUrl;
|
|
4582
4592
|
}
|
|
@@ -4584,10 +4594,7 @@ function generateCompleteBackgroundString(layers, apiBaseUrl, dataItem) {
|
|
|
4584
4594
|
if (!assetUrl) {
|
|
4585
4595
|
return "";
|
|
4586
4596
|
}
|
|
4587
|
-
const url = `url('${AssetUtility_default.resolveUrl(
|
|
4588
|
-
apiBaseUrl,
|
|
4589
|
-
assetUrl
|
|
4590
|
-
)}')`;
|
|
4597
|
+
const url = `url('${AssetUtility_default.resolveUrl(apiBaseUrl, assetUrl)}')`;
|
|
4591
4598
|
const repeat = layer.repeat || "no-repeat";
|
|
4592
4599
|
const position = layer.position || "center";
|
|
4593
4600
|
const size = layer.size || "auto";
|
|
@@ -4716,24 +4723,32 @@ var DivContainer = async (props) => {
|
|
|
4716
4723
|
let animationCSS = "";
|
|
4717
4724
|
if (enterAnimation?.name) {
|
|
4718
4725
|
animationCSS += AnimationUtility_default.generateAnimationCSS(
|
|
4719
|
-
{
|
|
4726
|
+
{
|
|
4727
|
+
animation: enterAnimation.name,
|
|
4728
|
+
mode: "enter",
|
|
4729
|
+
...enterAnimation.properties
|
|
4730
|
+
},
|
|
4720
4731
|
`#${guid}`
|
|
4721
4732
|
);
|
|
4722
4733
|
}
|
|
4723
4734
|
if (hoverAnimation?.name) {
|
|
4724
4735
|
animationCSS += AnimationUtility_default.generateAnimationCSS(
|
|
4725
|
-
{
|
|
4736
|
+
{
|
|
4737
|
+
animation: hoverAnimation.name,
|
|
4738
|
+
mode: "hover",
|
|
4739
|
+
...hoverAnimation.properties
|
|
4740
|
+
},
|
|
4726
4741
|
`#${guid}`
|
|
4727
4742
|
);
|
|
4728
4743
|
}
|
|
4729
4744
|
const shouldHideContainer = () => {
|
|
4730
4745
|
if (!props.node.fieldVisibleOnTrue) return false;
|
|
4731
|
-
const condition = props.node.fieldVisibleOnTrue;
|
|
4746
|
+
const condition = props.node.fieldVisibleOnTrue.trim();
|
|
4732
4747
|
const isNegated = condition.startsWith("!");
|
|
4733
|
-
const fieldName = isNegated ? condition.substring(1) : condition;
|
|
4748
|
+
const fieldName = isNegated ? condition.substring(1).trim() : condition;
|
|
4734
4749
|
const fieldValue = getNestedValue5(props.dataitem, fieldName);
|
|
4735
|
-
if (fieldValue ===
|
|
4736
|
-
return
|
|
4750
|
+
if (fieldValue == null || fieldValue === 0) {
|
|
4751
|
+
return true;
|
|
4737
4752
|
}
|
|
4738
4753
|
return isNegated ? fieldValue === true : fieldValue === false;
|
|
4739
4754
|
};
|
|
@@ -4773,7 +4788,10 @@ var DivContainer = async (props) => {
|
|
|
4773
4788
|
return /* @__PURE__ */ jsx60(NoDataFound_default, {});
|
|
4774
4789
|
}
|
|
4775
4790
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
4776
|
-
childCollectionData = getNestedValue5(
|
|
4791
|
+
childCollectionData = getNestedValue5(
|
|
4792
|
+
props.dataitem,
|
|
4793
|
+
dataBindingProperties.childCollectionName
|
|
4794
|
+
);
|
|
4777
4795
|
}
|
|
4778
4796
|
}
|
|
4779
4797
|
const cssResult = generateCssString(
|
|
@@ -4810,7 +4828,10 @@ var DivContainer = async (props) => {
|
|
|
4810
4828
|
function renderChildren(nodes, props2, data, key, href) {
|
|
4811
4829
|
if (!nodes) return null;
|
|
4812
4830
|
const childNodes = nodes.map((node, index) => {
|
|
4813
|
-
if (
|
|
4831
|
+
if (
|
|
4832
|
+
// @ts-expect-error custom code
|
|
4833
|
+
node.type === "div-container" && node.dataBinding?.childCollectionName && data
|
|
4834
|
+
) {
|
|
4814
4835
|
return renderNode(node, props2, data, index, href);
|
|
4815
4836
|
}
|
|
4816
4837
|
return renderNode(node, props2, data, index, href);
|
|
@@ -4869,7 +4890,10 @@ var DivContainer = async (props) => {
|
|
|
4869
4890
|
medium: Math.ceil(largeCols / 2),
|
|
4870
4891
|
small: 1
|
|
4871
4892
|
};
|
|
4872
|
-
wrapperProps = {
|
|
4893
|
+
wrapperProps = {
|
|
4894
|
+
...props.node.componentProperties,
|
|
4895
|
+
slidesToShow
|
|
4896
|
+
};
|
|
4873
4897
|
break;
|
|
4874
4898
|
case !!(props.node.href || props.href):
|
|
4875
4899
|
Wrapper = Link2;
|
|
@@ -4877,11 +4901,18 @@ var DivContainer = async (props) => {
|
|
|
4877
4901
|
if (href?.includes("{")) {
|
|
4878
4902
|
href = resolveHrefTemplate(href, props.dataitem);
|
|
4879
4903
|
}
|
|
4880
|
-
const currentPath = decodeURIComponent(
|
|
4904
|
+
const currentPath = decodeURIComponent(
|
|
4905
|
+
PathUtility_default.removeTrailingSlash(props.path) + "?" + queryObjectToString(props.query)
|
|
4906
|
+
);
|
|
4881
4907
|
const resolvedHref = decodeURIComponent(href || "");
|
|
4882
4908
|
const isSelected = currentPath === resolvedHref;
|
|
4883
4909
|
noLinkColor = true;
|
|
4884
|
-
wrapperProps = {
|
|
4910
|
+
wrapperProps = {
|
|
4911
|
+
href,
|
|
4912
|
+
"data-isSelected": isSelected,
|
|
4913
|
+
"data-path": currentPath,
|
|
4914
|
+
"data-href": resolvedHref
|
|
4915
|
+
};
|
|
4885
4916
|
break;
|
|
4886
4917
|
default: {
|
|
4887
4918
|
const replacementTag = props.node.replaceDivTagWith;
|
|
@@ -4907,7 +4938,12 @@ var DivContainer = async (props) => {
|
|
|
4907
4938
|
noLinkColor && "no-link-color"
|
|
4908
4939
|
].filter(Boolean).join(" ");
|
|
4909
4940
|
return /* @__PURE__ */ jsxs33(React41.Fragment, { children: [
|
|
4910
|
-
/* @__PURE__ */ jsx60(
|
|
4941
|
+
/* @__PURE__ */ jsx60(
|
|
4942
|
+
"style",
|
|
4943
|
+
{
|
|
4944
|
+
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
4945
|
+
}
|
|
4946
|
+
),
|
|
4911
4947
|
/* @__PURE__ */ jsx60(React41.Fragment, { children: /* @__PURE__ */ jsx60(
|
|
4912
4948
|
Wrapper,
|
|
4913
4949
|
{
|
|
@@ -4916,13 +4952,24 @@ var DivContainer = async (props) => {
|
|
|
4916
4952
|
className: classNames || void 0,
|
|
4917
4953
|
...wrapperProps,
|
|
4918
4954
|
children: dataToRender.map(
|
|
4919
|
-
(item, idx) => item?.links?.view && renderLink ? renderChildren(
|
|
4920
|
-
|
|
4921
|
-
|
|
4955
|
+
(item, idx) => item?.links?.view && renderLink ? renderChildren(
|
|
4956
|
+
props.node.children,
|
|
4957
|
+
props,
|
|
4958
|
+
item,
|
|
4959
|
+
idx,
|
|
4960
|
+
props.href ? void 0 : item?.links?.view
|
|
4961
|
+
)?.map((child, i) => /* @__PURE__ */ jsx60(React41.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
4922
4962
|
)
|
|
4923
4963
|
}
|
|
4924
4964
|
) }),
|
|
4925
|
-
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx60("div", { children: /* @__PURE__ */ jsx60(
|
|
4965
|
+
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx60("div", { children: /* @__PURE__ */ jsx60(
|
|
4966
|
+
Pagination_default,
|
|
4967
|
+
{
|
|
4968
|
+
path: props.path,
|
|
4969
|
+
query: props.query,
|
|
4970
|
+
dataset: response
|
|
4971
|
+
}
|
|
4972
|
+
) })
|
|
4926
4973
|
] });
|
|
4927
4974
|
};
|
|
4928
4975
|
var DivContainer_default = DivContainer;
|
package/package.json
CHANGED