@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260923043912 → 0.8.1-dev.20260923103910
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/{CommentRendererClient-QC65XBT2.mjs → CommentRendererClient-OHYVSNU5.mjs} +17 -0
- package/dist/{CommentRendererClient-52UOUQAD.mjs → CommentRendererClient-TBATG5LD.mjs} +17 -0
- package/dist/DataBindingControls-SLNZLI3I.mjs +377 -0
- package/dist/DataBindingControls-UDRT7JFF.mjs +381 -0
- package/dist/{InputControlClient-H75UIZE3.mjs → InputControlClient-A3V5YRWH.mjs} +33 -29
- package/dist/{InputControlClient-QBBQP25W.mjs → InputControlClient-NHXG4QBU.mjs} +33 -29
- package/dist/{Pagination-3SOPLEQN.mjs → Pagination-GVFES3JQ.mjs} +1 -1
- package/dist/{Pagination-FEXY7ERI.mjs → Pagination-TCXNZ73R.mjs} +1 -1
- package/dist/{chunk-6MO2JRIT.mjs → chunk-HUCNBVQV.mjs} +7 -6
- package/dist/{chunk-SNDGEYWZ.mjs → chunk-PXALEYS6.mjs} +7 -6
- package/dist/{chunk-7VXZJ55M.mjs → chunk-XDTWUEVR.mjs} +1 -1
- package/dist/index.js +595 -460
- package/dist/index.mjs +302 -272
- package/dist/server.js +636 -501
- package/dist/server.mjs +135 -105
- package/package.json +1 -1
- package/dist/DataBindingControls-CVU43FTE.mjs +0 -298
- package/dist/DataBindingControls-KJIEP7WU.mjs +0 -294
package/dist/index.js
CHANGED
|
@@ -1748,6 +1748,11 @@ var init_CommentNodeRenderer = __esm({
|
|
|
1748
1748
|
if (isTextNode(node)) return node.text ?? "";
|
|
1749
1749
|
const element = asElementNode(node);
|
|
1750
1750
|
if (element.type === "linebreak" || element.type === "line-break") return "\n";
|
|
1751
|
+
if (element.type === "bulletList" || element.type === "numberedList") {
|
|
1752
|
+
const items = Array.isArray(element.items) ? element.items : [];
|
|
1753
|
+
return items.map((item) => `${flattenNodeText(item.children)}
|
|
1754
|
+
`).join("");
|
|
1755
|
+
}
|
|
1751
1756
|
const inner = flattenNodeText(element.children);
|
|
1752
1757
|
return element.type === "paragraph" ? `${inner}
|
|
1753
1758
|
` : inner;
|
|
@@ -1851,6 +1856,18 @@ var init_CommentNodeRenderer = __esm({
|
|
|
1851
1856
|
case "listitem":
|
|
1852
1857
|
case "list-item":
|
|
1853
1858
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("li", { className: "comment-node-listitem", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
1859
|
+
// ContentComposer's shape: items are paragraph-like nodes (their own
|
|
1860
|
+
// `children`), not wrapped in a separate "listitem" node.
|
|
1861
|
+
case "bulletList":
|
|
1862
|
+
case "numberedList": {
|
|
1863
|
+
const ListTag = element.type === "numberedList" ? "ol" : "ul";
|
|
1864
|
+
const items = Array.isArray(element.items) ? element.items : [];
|
|
1865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ListTag, { className: "comment-node-list", children: items.map((item, index) => {
|
|
1866
|
+
const itemChildren = item.children ?? [];
|
|
1867
|
+
const isEmptyItem = itemChildren.length === 0 || itemChildren.every((child) => isTextNode(child) && (child.text ?? "").length === 0);
|
|
1868
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("li", { className: "comment-node-listitem", children: isEmptyItem ? null : renderChildren(item.children, key, assetBaseUrl) }, item.id ?? `${key}-${index}`);
|
|
1869
|
+
}) });
|
|
1870
|
+
}
|
|
1854
1871
|
case "quote":
|
|
1855
1872
|
case "blockquote":
|
|
1856
1873
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
@@ -3633,20 +3650,26 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
3633
3650
|
" ",
|
|
3634
3651
|
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
3635
3652
|
] }),
|
|
3636
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3653
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { children: [
|
|
3654
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3655
|
+
"input",
|
|
3656
|
+
{
|
|
3657
|
+
type: "text",
|
|
3658
|
+
name: props.name,
|
|
3659
|
+
id: props.name,
|
|
3660
|
+
value: searchTerm,
|
|
3661
|
+
onChange: textChangeHandler,
|
|
3662
|
+
onFocus: () => setIsOpen(true),
|
|
3663
|
+
onKeyDown: handleKeyDown,
|
|
3664
|
+
placeholder: props.attributes?.placeholder,
|
|
3665
|
+
required: props.attributes?.required,
|
|
3666
|
+
className: `peer mt-1 py-1.5 block w-full text-black rounded border-gray-300 shadow-sm
|
|
3667
|
+
${isError ? "focus:border-red-300 focus:ring focus:ring-red-200 focus:ring-opacity-50" : "focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"}
|
|
3647
3668
|
disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
|
|
3648
|
-
|
|
3649
|
-
|
|
3669
|
+
}
|
|
3670
|
+
),
|
|
3671
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
|
|
3672
|
+
] }),
|
|
3650
3673
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_react38.default.Fragment, { children: [
|
|
3651
3674
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
|
|
3652
3675
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("h5", { className: "text-md text-white font-medium", children: [
|
|
@@ -4201,21 +4224,18 @@ var init_SwitchInput = __esm({
|
|
|
4201
4224
|
if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
|
|
4202
4225
|
value = true;
|
|
4203
4226
|
}
|
|
4204
|
-
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
|
|
4205
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
),
|
|
4217
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
|
|
4218
|
-
] }),
|
|
4227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "relative flex items-start justify-between gap-4 py-3", children: [
|
|
4228
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "min-w-0", children: props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
4229
|
+
"label",
|
|
4230
|
+
{
|
|
4231
|
+
htmlFor: props.name,
|
|
4232
|
+
className: "inline-block text-sm font-semibold text-slate-800",
|
|
4233
|
+
children: [
|
|
4234
|
+
props.attributes.label,
|
|
4235
|
+
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
4236
|
+
]
|
|
4237
|
+
}
|
|
4238
|
+
) }),
|
|
4219
4239
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
4220
4240
|
"label",
|
|
4221
4241
|
{
|
|
@@ -4246,7 +4266,8 @@ var init_SwitchInput = __esm({
|
|
|
4246
4266
|
{
|
|
4247
4267
|
className: "absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-default shadow\n transition-transform duration-200 ease-in-out\n peer-checked:translate-x-5\n peer-disabled:bg-slate-50"
|
|
4248
4268
|
}
|
|
4249
|
-
)
|
|
4269
|
+
),
|
|
4270
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block absolute left-0 top-full mt-1 w-max max-w-[220px] whitespace-normal bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
|
|
4250
4271
|
]
|
|
4251
4272
|
}
|
|
4252
4273
|
)
|
|
@@ -5241,11 +5262,12 @@ var init_IframeClient = __esm({
|
|
|
5241
5262
|
});
|
|
5242
5263
|
|
|
5243
5264
|
// src/clients/OdataBuilder.tsx
|
|
5244
|
-
var OdataBuilder;
|
|
5265
|
+
var encodeFilter, OdataBuilder;
|
|
5245
5266
|
var init_OdataBuilder = __esm({
|
|
5246
5267
|
"src/clients/OdataBuilder.tsx"() {
|
|
5247
5268
|
"use strict";
|
|
5248
5269
|
init_InputControlType();
|
|
5270
|
+
encodeFilter = (filter) => encodeURIComponent(filter.replace(/'/g, '"'));
|
|
5249
5271
|
OdataBuilder = class {
|
|
5250
5272
|
constructor(url) {
|
|
5251
5273
|
this.baseUrl = url;
|
|
@@ -5327,7 +5349,7 @@ var init_OdataBuilder = __esm({
|
|
|
5327
5349
|
}
|
|
5328
5350
|
if (obj) {
|
|
5329
5351
|
if (obj["$filter"] && obj["$filter"] !== null && obj["$filter"] !== "") {
|
|
5330
|
-
queryString = queryString + `&$filter=${obj["$filter"]}`;
|
|
5352
|
+
queryString = queryString + `&$filter=${encodeFilter(obj["$filter"])}`;
|
|
5331
5353
|
}
|
|
5332
5354
|
if (obj["$orderby"] && obj["$orderby"] !== null && obj["$orderby"] !== "") {
|
|
5333
5355
|
queryString = queryString + `&$orderby=${obj["$orderby"]}`;
|
|
@@ -5387,7 +5409,7 @@ var init_OdataBuilder = __esm({
|
|
|
5387
5409
|
getUrl() {
|
|
5388
5410
|
let url = `${this.baseUrl}?$skip=${this.skip}&$top=${this.top}&$count=true`;
|
|
5389
5411
|
if (this.filterBy !== null && this.filterBy !== "") {
|
|
5390
|
-
url = url + `&$filter=${this.filterBy}`;
|
|
5412
|
+
url = url + `&$filter=${encodeFilter(this.filterBy)}`;
|
|
5391
5413
|
}
|
|
5392
5414
|
if (this.orderBy !== null && this.orderBy !== "") {
|
|
5393
5415
|
url = url + `&$orderby=${this.orderBy}`;
|
|
@@ -5404,7 +5426,7 @@ var init_OdataBuilder = __esm({
|
|
|
5404
5426
|
getNewOrderByUrl(orderBy) {
|
|
5405
5427
|
let url = `${this.baseUrl}?$skip=${0}&$top=${this.top}&$count=true`;
|
|
5406
5428
|
if (this.filterBy !== null && this.filterBy !== "") {
|
|
5407
|
-
url = url + `&$filter=${this.filterBy}`;
|
|
5429
|
+
url = url + `&$filter=${encodeFilter(this.filterBy)}`;
|
|
5408
5430
|
}
|
|
5409
5431
|
if (this.searchTerm) {
|
|
5410
5432
|
url += `&searchTerm=${encodeURIComponent(this.searchTerm)}`;
|
|
@@ -5418,7 +5440,7 @@ var init_OdataBuilder = __esm({
|
|
|
5418
5440
|
getNewFilterUrl(filterBy) {
|
|
5419
5441
|
let url = `${this.baseUrl}?$skip=${0}&$top=${this.top}&$count=true`;
|
|
5420
5442
|
if (filterBy !== null && filterBy !== "") {
|
|
5421
|
-
url = url + `&$filter=${filterBy}`;
|
|
5443
|
+
url = url + `&$filter=${encodeFilter(filterBy)}`;
|
|
5422
5444
|
}
|
|
5423
5445
|
if (this.orderBy !== null && this.orderBy !== "") {
|
|
5424
5446
|
url = url + `&$orderby=${this.orderBy}`;
|
|
@@ -5435,7 +5457,7 @@ var init_OdataBuilder = __esm({
|
|
|
5435
5457
|
let skip = page * Constants.pagesize - Constants.pagesize;
|
|
5436
5458
|
let url = `${this.baseUrl}?$skip=${skip}&$top=${this.top}&$count=true`;
|
|
5437
5459
|
if (this.filterBy !== null && this.filterBy !== "") {
|
|
5438
|
-
url = url + `&$filter=${this.filterBy}`;
|
|
5460
|
+
url = url + `&$filter=${encodeFilter(this.filterBy)}`;
|
|
5439
5461
|
}
|
|
5440
5462
|
if (this.orderBy !== null && this.orderBy !== "") {
|
|
5441
5463
|
url = url + `&$orderby=${this.orderBy}`;
|
|
@@ -5455,7 +5477,7 @@ var init_OdataBuilder = __esm({
|
|
|
5455
5477
|
const skip = (currentPage - 1) * pageSize;
|
|
5456
5478
|
let url = `${this.baseUrl}?$skip=${skip}&$top=${pageSize}&$count=true`;
|
|
5457
5479
|
if (this.filterBy !== null && this.filterBy !== "") {
|
|
5458
|
-
url = url + `&$filter=${this.filterBy}`;
|
|
5480
|
+
url = url + `&$filter=${encodeFilter(this.filterBy)}`;
|
|
5459
5481
|
}
|
|
5460
5482
|
if (this.orderBy !== null && this.orderBy !== "") {
|
|
5461
5483
|
url = url + `&$orderby=${this.orderBy}`;
|
|
@@ -5480,7 +5502,7 @@ var Pagination_exports = {};
|
|
|
5480
5502
|
__export(Pagination_exports, {
|
|
5481
5503
|
default: () => Pagination_default
|
|
5482
5504
|
});
|
|
5483
|
-
var import_react58,
|
|
5505
|
+
var import_react58, import_jsx_runtime85, Pagination, Pagination_default;
|
|
5484
5506
|
var init_Pagination = __esm({
|
|
5485
5507
|
"src/components/Pagination.tsx"() {
|
|
5486
5508
|
"use strict";
|
|
@@ -5491,7 +5513,7 @@ var init_Pagination = __esm({
|
|
|
5491
5513
|
init_StyleTypes();
|
|
5492
5514
|
init_InputControlType();
|
|
5493
5515
|
init_Hyperlink();
|
|
5494
|
-
|
|
5516
|
+
import_jsx_runtime85 = require("react/jsx-runtime");
|
|
5495
5517
|
Pagination = (props) => {
|
|
5496
5518
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
5497
5519
|
const builder = (0, import_react58.useMemo)(() => {
|
|
@@ -5535,7 +5557,7 @@ var init_Pagination = __esm({
|
|
|
5535
5557
|
return range;
|
|
5536
5558
|
};
|
|
5537
5559
|
const paginationRange = getPaginationRange();
|
|
5538
|
-
const PageButton = ({ page, children }) => /* @__PURE__ */ (0,
|
|
5560
|
+
const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5539
5561
|
Hyperlink,
|
|
5540
5562
|
{
|
|
5541
5563
|
linkType: "Link" /* Link */,
|
|
@@ -5550,9 +5572,9 @@ var init_Pagination = __esm({
|
|
|
5550
5572
|
);
|
|
5551
5573
|
const NavigationButton = ({ page, disabled, children }) => {
|
|
5552
5574
|
if (disabled) {
|
|
5553
|
-
return /* @__PURE__ */ (0,
|
|
5575
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border bg-neutral-base cursor-not-allowed", children });
|
|
5554
5576
|
}
|
|
5555
|
-
return /* @__PURE__ */ (0,
|
|
5577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5556
5578
|
Hyperlink,
|
|
5557
5579
|
{
|
|
5558
5580
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border transition-colors duration-150",
|
|
@@ -5562,35 +5584,35 @@ var init_Pagination = __esm({
|
|
|
5562
5584
|
);
|
|
5563
5585
|
};
|
|
5564
5586
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
5565
|
-
return /* @__PURE__ */ (0,
|
|
5566
|
-
/* @__PURE__ */ (0,
|
|
5567
|
-
/* @__PURE__ */ (0,
|
|
5587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "py-6 border-t mt-6", children: [
|
|
5588
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
5589
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-sm", children: [
|
|
5568
5590
|
"Showing ",
|
|
5569
|
-
/* @__PURE__ */ (0,
|
|
5591
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("span", { className: "font-semibold", children: [
|
|
5570
5592
|
startItem,
|
|
5571
5593
|
"-",
|
|
5572
5594
|
endItem
|
|
5573
5595
|
] }),
|
|
5574
5596
|
" ",
|
|
5575
5597
|
"out of ",
|
|
5576
|
-
/* @__PURE__ */ (0,
|
|
5598
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
5577
5599
|
" results"
|
|
5578
5600
|
] }),
|
|
5579
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
5580
|
-
/* @__PURE__ */ (0,
|
|
5601
|
+
totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center space-x-1", children: [
|
|
5602
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
5581
5603
|
NavigationButton,
|
|
5582
5604
|
{
|
|
5583
5605
|
page: activePageNumber - 1,
|
|
5584
5606
|
disabled: activePageNumber === 1,
|
|
5585
5607
|
children: [
|
|
5586
|
-
/* @__PURE__ */ (0,
|
|
5587
|
-
/* @__PURE__ */ (0,
|
|
5608
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
|
|
5609
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "Prev" })
|
|
5588
5610
|
]
|
|
5589
5611
|
}
|
|
5590
5612
|
),
|
|
5591
5613
|
paginationRange.map((item, index) => {
|
|
5592
5614
|
if (item === "...") {
|
|
5593
|
-
return /* @__PURE__ */ (0,
|
|
5615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5594
5616
|
"span",
|
|
5595
5617
|
{
|
|
5596
5618
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
|
|
@@ -5600,23 +5622,23 @@ var init_Pagination = __esm({
|
|
|
5600
5622
|
);
|
|
5601
5623
|
}
|
|
5602
5624
|
const page = item;
|
|
5603
|
-
return /* @__PURE__ */ (0,
|
|
5625
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(PageButton, { page, children: page }, page);
|
|
5604
5626
|
}),
|
|
5605
|
-
/* @__PURE__ */ (0,
|
|
5627
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
5606
5628
|
NavigationButton,
|
|
5607
5629
|
{
|
|
5608
5630
|
page: activePageNumber + 1,
|
|
5609
5631
|
disabled: activePageNumber === totalPages,
|
|
5610
5632
|
children: [
|
|
5611
|
-
/* @__PURE__ */ (0,
|
|
5612
|
-
/* @__PURE__ */ (0,
|
|
5633
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "Next" }),
|
|
5634
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
|
|
5613
5635
|
]
|
|
5614
5636
|
}
|
|
5615
5637
|
)
|
|
5616
5638
|
] }),
|
|
5617
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0,
|
|
5618
|
-
/* @__PURE__ */ (0,
|
|
5619
|
-
/* @__PURE__ */ (0,
|
|
5639
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
5640
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "Go to:" }),
|
|
5641
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5620
5642
|
"input",
|
|
5621
5643
|
{
|
|
5622
5644
|
type: "number",
|
|
@@ -5637,9 +5659,9 @@ var init_Pagination = __esm({
|
|
|
5637
5659
|
) })
|
|
5638
5660
|
] })
|
|
5639
5661
|
] }),
|
|
5640
|
-
showPageSizeSelector && /* @__PURE__ */ (0,
|
|
5641
|
-
/* @__PURE__ */ (0,
|
|
5642
|
-
/* @__PURE__ */ (0,
|
|
5662
|
+
showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
|
|
5663
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "Show:" }),
|
|
5664
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5643
5665
|
Hyperlink,
|
|
5644
5666
|
{
|
|
5645
5667
|
className: `
|
|
@@ -5651,7 +5673,7 @@ var init_Pagination = __esm({
|
|
|
5651
5673
|
},
|
|
5652
5674
|
size
|
|
5653
5675
|
)) }),
|
|
5654
|
-
/* @__PURE__ */ (0,
|
|
5676
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "per page" })
|
|
5655
5677
|
] }) })
|
|
5656
5678
|
] });
|
|
5657
5679
|
};
|
|
@@ -5664,7 +5686,7 @@ var DataBindingControls_exports = {};
|
|
|
5664
5686
|
__export(DataBindingControls_exports, {
|
|
5665
5687
|
default: () => DataBindingControls_default
|
|
5666
5688
|
});
|
|
5667
|
-
var import_react59, import_navigation,
|
|
5689
|
+
var import_react59, import_navigation, import_jsx_runtime86, ACTIVE_QUERY_CONTROLS_EVENT, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, SearchIcon, ResetIcon, normalizeSortOption, DataBindingControls, DataBindingControls_default;
|
|
5668
5690
|
var init_DataBindingControls = __esm({
|
|
5669
5691
|
"src/components/pageRenderingEngine/nodes/DataBindingControls.tsx"() {
|
|
5670
5692
|
"use strict";
|
|
@@ -5675,7 +5697,8 @@ var init_DataBindingControls = __esm({
|
|
|
5675
5697
|
init_InputControl();
|
|
5676
5698
|
init_InputControlType();
|
|
5677
5699
|
init_StyleTypes();
|
|
5678
|
-
|
|
5700
|
+
import_jsx_runtime86 = require("react/jsx-runtime");
|
|
5701
|
+
ACTIVE_QUERY_CONTROLS_EVENT = "data-binding-active-query-controls";
|
|
5679
5702
|
humanize = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
|
|
5680
5703
|
escapeODataString = (value) => value.replace(/'/g, "''");
|
|
5681
5704
|
parseFacetSelections = (filter) => {
|
|
@@ -5704,7 +5727,22 @@ var init_DataBindingControls = __esm({
|
|
|
5704
5727
|
}
|
|
5705
5728
|
return trimmedValue;
|
|
5706
5729
|
};
|
|
5707
|
-
SearchIcon = ({ className = "" }) => /* @__PURE__ */ (0,
|
|
5730
|
+
SearchIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
5731
|
+
"svg",
|
|
5732
|
+
{
|
|
5733
|
+
"aria-hidden": "true",
|
|
5734
|
+
className,
|
|
5735
|
+
fill: "none",
|
|
5736
|
+
viewBox: "0 0 24 24",
|
|
5737
|
+
stroke: "currentColor",
|
|
5738
|
+
strokeWidth: "2",
|
|
5739
|
+
children: [
|
|
5740
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("circle", { cx: "11", cy: "11", r: "7" }),
|
|
5741
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("path", { strokeLinecap: "round", d: "m20 20-4-4" })
|
|
5742
|
+
]
|
|
5743
|
+
}
|
|
5744
|
+
);
|
|
5745
|
+
ResetIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
5708
5746
|
"svg",
|
|
5709
5747
|
{
|
|
5710
5748
|
"aria-hidden": "true",
|
|
@@ -5714,8 +5752,15 @@ var init_DataBindingControls = __esm({
|
|
|
5714
5752
|
stroke: "currentColor",
|
|
5715
5753
|
strokeWidth: "2",
|
|
5716
5754
|
children: [
|
|
5717
|
-
/* @__PURE__ */ (0,
|
|
5718
|
-
/* @__PURE__ */ (0,
|
|
5755
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4 4v6h6" }),
|
|
5756
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
5757
|
+
"path",
|
|
5758
|
+
{
|
|
5759
|
+
strokeLinecap: "round",
|
|
5760
|
+
strokeLinejoin: "round",
|
|
5761
|
+
d: "M5.5 15a8 8 0 1 0 .6-7.8L4 10"
|
|
5762
|
+
}
|
|
5763
|
+
)
|
|
5719
5764
|
]
|
|
5720
5765
|
}
|
|
5721
5766
|
);
|
|
@@ -5726,23 +5771,6 @@ var init_DataBindingControls = __esm({
|
|
|
5726
5771
|
value: [option.name, direction].filter(Boolean).join(" ")
|
|
5727
5772
|
};
|
|
5728
5773
|
};
|
|
5729
|
-
DUMMY_FACETS = {
|
|
5730
|
-
CategoryTitle: [
|
|
5731
|
-
{ value: "Career Readiness", count: 2 },
|
|
5732
|
-
{ value: "Student Learning", count: 2 }
|
|
5733
|
-
],
|
|
5734
|
-
Author: [
|
|
5735
|
-
{ value: "John Smith", count: 2 },
|
|
5736
|
-
{ value: "Sarah Jones", count: 1 },
|
|
5737
|
-
{ value: "Emily Brown", count: 1 }
|
|
5738
|
-
]
|
|
5739
|
-
};
|
|
5740
|
-
DUMMY_SORT_OPTIONS = [
|
|
5741
|
-
{ name: "createdDate", title: "Newest First", direction: "desc" },
|
|
5742
|
-
{ name: "createdDate", title: "Oldest First", direction: "asc" },
|
|
5743
|
-
{ name: "title", title: "Title A-Z", direction: "asc" },
|
|
5744
|
-
{ name: "title", title: "Title Z-A", direction: "desc" }
|
|
5745
|
-
];
|
|
5746
5774
|
DataBindingControls = ({
|
|
5747
5775
|
path,
|
|
5748
5776
|
query,
|
|
@@ -5754,24 +5782,56 @@ var init_DataBindingControls = __esm({
|
|
|
5754
5782
|
mode = "toolbar"
|
|
5755
5783
|
}) => {
|
|
5756
5784
|
const router = (0, import_navigation.useRouter)();
|
|
5757
|
-
const
|
|
5785
|
+
const facetGroups = Object.entries(facets ?? {}).filter(
|
|
5758
5786
|
([, values]) => Array.isArray(values) && values.length > 0
|
|
5759
5787
|
);
|
|
5760
|
-
const
|
|
5761
|
-
const
|
|
5762
|
-
|
|
5763
|
-
);
|
|
5764
|
-
const
|
|
5765
|
-
const normalizedSortOptions = resolvedSortOptions.map(normalizeSortOption).filter((option) => option.value);
|
|
5766
|
-
const currentFilter = query?.["$filter"] ?? query?.filter ?? "";
|
|
5788
|
+
const normalizedSortOptions = (sortOptions ?? []).filter((option) => option?.name && option?.direction).map(normalizeSortOption).filter((option) => option.value);
|
|
5789
|
+
const queryFilter = query?.["$filter"] ?? query?.filter ?? "";
|
|
5790
|
+
const querySort = query?.["$orderby"] ?? query?.orderBy ?? "";
|
|
5791
|
+
const [currentFilter, setCurrentFilter] = (0, import_react59.useState)(queryFilter);
|
|
5792
|
+
const [currentSort, setCurrentSort] = (0, import_react59.useState)(querySort);
|
|
5767
5793
|
const selectedFacetValues = parseFacetSelections(currentFilter);
|
|
5768
|
-
const currentSort = query?.["$orderby"] ?? query?.orderBy ?? "";
|
|
5769
5794
|
const currentSearch = parseODataSearch(query?.["$search"]);
|
|
5770
5795
|
const [searchText, setSearchText] = (0, import_react59.useState)(currentSearch);
|
|
5771
5796
|
const lastNavigationUrl = (0, import_react59.useRef)(null);
|
|
5772
5797
|
(0, import_react59.useEffect)(() => {
|
|
5773
5798
|
setSearchText(currentSearch);
|
|
5774
5799
|
}, [currentSearch]);
|
|
5800
|
+
(0, import_react59.useEffect)(() => {
|
|
5801
|
+
setCurrentFilter(queryFilter);
|
|
5802
|
+
}, [queryFilter]);
|
|
5803
|
+
(0, import_react59.useEffect)(() => {
|
|
5804
|
+
setCurrentSort(querySort);
|
|
5805
|
+
}, [querySort]);
|
|
5806
|
+
(0, import_react59.useEffect)(() => {
|
|
5807
|
+
const syncActiveQueryControls2 = (event) => {
|
|
5808
|
+
const { filter, sort } = event.detail;
|
|
5809
|
+
if (filter !== void 0) {
|
|
5810
|
+
setCurrentFilter(filter);
|
|
5811
|
+
}
|
|
5812
|
+
if (sort !== void 0) {
|
|
5813
|
+
setCurrentSort(sort);
|
|
5814
|
+
}
|
|
5815
|
+
};
|
|
5816
|
+
window.addEventListener(
|
|
5817
|
+
ACTIVE_QUERY_CONTROLS_EVENT,
|
|
5818
|
+
syncActiveQueryControls2
|
|
5819
|
+
);
|
|
5820
|
+
return () => window.removeEventListener(
|
|
5821
|
+
ACTIVE_QUERY_CONTROLS_EVENT,
|
|
5822
|
+
syncActiveQueryControls2
|
|
5823
|
+
);
|
|
5824
|
+
}, []);
|
|
5825
|
+
const syncActiveQueryControls = (0, import_react59.useCallback)(
|
|
5826
|
+
(updates) => {
|
|
5827
|
+
window.dispatchEvent(
|
|
5828
|
+
new CustomEvent(ACTIVE_QUERY_CONTROLS_EVENT, {
|
|
5829
|
+
detail: updates
|
|
5830
|
+
})
|
|
5831
|
+
);
|
|
5832
|
+
},
|
|
5833
|
+
[]
|
|
5834
|
+
);
|
|
5775
5835
|
const getQueryUrl = (0, import_react59.useCallback)(
|
|
5776
5836
|
(updates) => {
|
|
5777
5837
|
const params = new URLSearchParams(query ?? {});
|
|
@@ -5784,7 +5844,9 @@ var init_DataBindingControls = __esm({
|
|
|
5784
5844
|
});
|
|
5785
5845
|
params.delete("$skip");
|
|
5786
5846
|
params.delete("skip");
|
|
5787
|
-
const queryString = Array.from(params.entries()).map(
|
|
5847
|
+
const queryString = Array.from(params.entries()).map(
|
|
5848
|
+
([key, value]) => key === "$filter" || key === "filter" ? `${key}=${encodeURIComponent(value)}` : `${key}=${value}`
|
|
5849
|
+
).join("&");
|
|
5788
5850
|
return queryString ? `${path}?${queryString}` : path;
|
|
5789
5851
|
},
|
|
5790
5852
|
[path, query]
|
|
@@ -5797,6 +5859,7 @@ var init_DataBindingControls = __esm({
|
|
|
5797
5859
|
updatedSelections.delete(field);
|
|
5798
5860
|
}
|
|
5799
5861
|
const updatedFilter = buildFacetFilter(updatedSelections);
|
|
5862
|
+
syncActiveQueryControls({ filter: updatedFilter });
|
|
5800
5863
|
return getQueryUrl({
|
|
5801
5864
|
$filter: updatedFilter || void 0,
|
|
5802
5865
|
filter: void 0
|
|
@@ -5830,33 +5893,49 @@ var init_DataBindingControls = __esm({
|
|
|
5830
5893
|
);
|
|
5831
5894
|
return { isSuccessful: true };
|
|
5832
5895
|
}, [currentSearch, getQueryUrl, navigateWithoutReload, searchText]);
|
|
5896
|
+
const handleClearAll = (0, import_react59.useCallback)(async () => {
|
|
5897
|
+
syncActiveQueryControls({ filter: "", sort: "" });
|
|
5898
|
+
navigateWithoutReload(
|
|
5899
|
+
getQueryUrl({
|
|
5900
|
+
$filter: void 0,
|
|
5901
|
+
filter: void 0,
|
|
5902
|
+
$orderby: void 0,
|
|
5903
|
+
orderBy: void 0
|
|
5904
|
+
})
|
|
5905
|
+
);
|
|
5906
|
+
return { isSuccessful: true };
|
|
5907
|
+
}, [getQueryUrl, navigateWithoutReload, syncActiveQueryControls]);
|
|
5833
5908
|
const hasFacetControls = showFacets && facetGroups.length > 0;
|
|
5834
5909
|
const hasSortControls = showSortOptions && normalizedSortOptions.length > 0;
|
|
5835
|
-
const
|
|
5910
|
+
const hasActiveFiltersOrSort = Boolean(
|
|
5911
|
+
currentFilter.trim() || currentSort.trim()
|
|
5912
|
+
);
|
|
5913
|
+
const shouldShowToolbarClearAll = hasActiveFiltersOrSort && !hasFacetControls;
|
|
5914
|
+
const shouldShowToolbar = mode === "toolbar" && (showSearchBar || hasSortControls || shouldShowToolbarClearAll);
|
|
5836
5915
|
const shouldShowFacets = mode === "facets" && hasFacetControls;
|
|
5837
5916
|
if (!shouldShowToolbar && !shouldShowFacets) {
|
|
5838
5917
|
return null;
|
|
5839
5918
|
}
|
|
5840
|
-
const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0,
|
|
5841
|
-
/* @__PURE__ */ (0,
|
|
5919
|
+
const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: stacked ? "flex flex-col gap-0.5" : "flex flex-wrap gap-1.5", children: [
|
|
5920
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
5842
5921
|
"button",
|
|
5843
5922
|
{
|
|
5844
5923
|
type: "button",
|
|
5845
5924
|
onClick: () => navigateWithoutReload(getFacetUrl(field)),
|
|
5846
5925
|
"aria-pressed": !selectedFacetValues.has(field),
|
|
5847
|
-
className: `px-3 py-
|
|
5926
|
+
className: `cursor-pointer px-3 py-1.5 text-left text-sm transition-all duration-150 ease-out hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary ${stacked ? "w-full" : "border"} ${selectedFacetValues.has(field) ? "hover:bg-info-soft" : "bg-primary-base font-semibold hover:brightness-95"}`,
|
|
5848
5927
|
children: "All"
|
|
5849
5928
|
}
|
|
5850
5929
|
),
|
|
5851
5930
|
values.map((facet) => {
|
|
5852
5931
|
const isSelected = selectedFacetValues.get(field) === facet.value;
|
|
5853
|
-
return /* @__PURE__ */ (0,
|
|
5932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
5854
5933
|
"button",
|
|
5855
5934
|
{
|
|
5856
5935
|
type: "button",
|
|
5857
5936
|
onClick: () => navigateWithoutReload(getFacetUrl(field, facet.value)),
|
|
5858
5937
|
"aria-pressed": isSelected,
|
|
5859
|
-
className: `px-3 py-
|
|
5938
|
+
className: `cursor-pointer px-3 py-1.5 text-left text-sm transition-all duration-150 ease-out hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary ${stacked ? "w-full" : "border"} ${isSelected ? "bg-primary-base font-semibold hover:brightness-95" : "hover:bg-info-soft"}`,
|
|
5860
5939
|
children: [
|
|
5861
5940
|
facet.value,
|
|
5862
5941
|
" (",
|
|
@@ -5868,85 +5947,111 @@ var init_DataBindingControls = __esm({
|
|
|
5868
5947
|
);
|
|
5869
5948
|
})
|
|
5870
5949
|
] });
|
|
5871
|
-
return /* @__PURE__ */ (0,
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
{
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5950
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
5951
|
+
"div",
|
|
5952
|
+
{
|
|
5953
|
+
className: mode === "toolbar" ? "my-6" : "flex flex-col gap-2 border bg-default rounded-[5px] p-3",
|
|
5954
|
+
children: [
|
|
5955
|
+
shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
|
|
5956
|
+
showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
5957
|
+
"form",
|
|
5958
|
+
{
|
|
5959
|
+
role: "search",
|
|
5960
|
+
className: "flex w-full flex-col gap-3 rounded-xl border border-info bg-info-soft p-3 sm:flex-row sm:items-center md:min-w-0 md:flex-1",
|
|
5961
|
+
onSubmit: (event) => {
|
|
5962
|
+
event.preventDefault();
|
|
5963
|
+
void handleSearch();
|
|
5964
|
+
},
|
|
5965
|
+
children: [
|
|
5966
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "relative bg-default rounded-xl min-w-0 flex-1", children: [
|
|
5967
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(SearchIcon, { className: "pointer-events-none absolute left-4 top-1/2 z-10 h-5 w-5 -translate-y-1/2" }),
|
|
5968
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
5969
|
+
InputControl_default,
|
|
5970
|
+
{
|
|
5971
|
+
name: "searchText",
|
|
5972
|
+
controlType: InputControlType_default.lineTextInput,
|
|
5973
|
+
value: searchText,
|
|
5974
|
+
callback: (updatedValues) => setSearchText(updatedValues.value),
|
|
5975
|
+
attributes: {
|
|
5976
|
+
placeholder: "Search discussions, topics, or keywords..."
|
|
5977
|
+
},
|
|
5978
|
+
inputClasses: "!mt-0 !rounded-xl !py-3 !pl-11 !pr-4 !shadow-sm"
|
|
5979
|
+
}
|
|
5980
|
+
)
|
|
5981
|
+
] }),
|
|
5982
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
5983
|
+
Button_default,
|
|
5984
|
+
{
|
|
5985
|
+
ButtonType: "Primary" /* Solid */,
|
|
5986
|
+
onClick: handleSearch,
|
|
5987
|
+
className: "!rounded-xl !px-6 !py-3 sm:self-stretch",
|
|
5988
|
+
children: [
|
|
5989
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(SearchIcon, { className: "h-5 w-5" }),
|
|
5990
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { children: "Search" })
|
|
5991
|
+
]
|
|
5992
|
+
}
|
|
5993
|
+
)
|
|
5994
|
+
]
|
|
5995
|
+
}
|
|
5996
|
+
),
|
|
5997
|
+
hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex w-full items-center gap-3 rounded-2xl border border-info bg-info-soft p-3 text-sm md:ml-auto md:w-auto md:min-w-72 md:self-stretch", children: [
|
|
5998
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
5999
|
+
"label",
|
|
5901
6000
|
{
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
children: [
|
|
5906
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(SearchIcon, { className: "h-5 w-5" }),
|
|
5907
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: "Search" })
|
|
5908
|
-
]
|
|
6001
|
+
htmlFor: "sortOptions",
|
|
6002
|
+
className: "shrink-0 whitespace-nowrap font-medium",
|
|
6003
|
+
children: "Sort by"
|
|
5909
6004
|
}
|
|
5910
|
-
)
|
|
5911
|
-
]
|
|
5912
|
-
}
|
|
5913
|
-
),
|
|
5914
|
-
hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex w-full items-center gap-3 rounded-2xl border border-info bg-info-soft p-3 text-sm md:ml-auto md:w-auto md:min-w-72 md:self-stretch", children: [
|
|
5915
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5916
|
-
"label",
|
|
5917
|
-
{
|
|
5918
|
-
htmlFor: "sortOptions",
|
|
5919
|
-
className: "shrink-0 whitespace-nowrap font-medium",
|
|
5920
|
-
children: "Sort by"
|
|
5921
|
-
}
|
|
5922
|
-
),
|
|
5923
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "min-w-0 flex-1 rounded-xl bg-default md:min-w-48", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5924
|
-
InputControl_default,
|
|
5925
|
-
{
|
|
5926
|
-
name: "sortOptions",
|
|
5927
|
-
controlType: InputControlType_default.select,
|
|
5928
|
-
value: currentSort,
|
|
5929
|
-
dataset: normalizedSortOptions,
|
|
5930
|
-
dataKeyFieldName: "value",
|
|
5931
|
-
dataTextFieldName: "label",
|
|
5932
|
-
callback: (updatedValues) => navigateWithoutReload(
|
|
5933
|
-
getQueryUrl({
|
|
5934
|
-
$orderby: updatedValues.value || void 0,
|
|
5935
|
-
orderBy: void 0
|
|
5936
|
-
})
|
|
5937
6005
|
),
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
6006
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "min-w-0 flex-1 rounded-xl bg-default md:min-w-48", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
6007
|
+
InputControl_default,
|
|
6008
|
+
{
|
|
6009
|
+
name: "sortOptions",
|
|
6010
|
+
controlType: InputControlType_default.select,
|
|
6011
|
+
value: currentSort,
|
|
6012
|
+
dataset: normalizedSortOptions,
|
|
6013
|
+
dataKeyFieldName: "value",
|
|
6014
|
+
dataTextFieldName: "label",
|
|
6015
|
+
callback: (updatedValues) => {
|
|
6016
|
+
const updatedSort = updatedValues.value || "";
|
|
6017
|
+
syncActiveQueryControls({ sort: updatedSort });
|
|
6018
|
+
navigateWithoutReload(
|
|
6019
|
+
getQueryUrl({
|
|
6020
|
+
$orderby: updatedSort || void 0,
|
|
6021
|
+
orderBy: void 0
|
|
6022
|
+
})
|
|
6023
|
+
);
|
|
6024
|
+
},
|
|
6025
|
+
attributes: { placeholder: "Default" },
|
|
6026
|
+
inputClasses: "!mt-0 !rounded-xl !border-info !bg-default !px-4 !py-3 !text-body !shadow-sm focus:!border-primary focus:!ring-primary-base"
|
|
6027
|
+
}
|
|
6028
|
+
) })
|
|
6029
|
+
] })
|
|
6030
|
+
] }),
|
|
6031
|
+
shouldShowFacets && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex items-center justify-between gap-2 border-b pb-2", children: [
|
|
6032
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("h2", { className: "text-lg font-semibold", children: "Filters" }),
|
|
6033
|
+
hasActiveFiltersOrSort && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
6034
|
+
"button",
|
|
6035
|
+
{
|
|
6036
|
+
type: "button",
|
|
6037
|
+
onClick: () => void handleClearAll(),
|
|
6038
|
+
className: "group inline-flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium text-primary transition-colors duration-150 hover:bg-info-soft hover:text-primary-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",
|
|
6039
|
+
"aria-label": "Clear all filters and sorting",
|
|
6040
|
+
children: [
|
|
6041
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ResetIcon, { className: "h-3.5 w-3.5 transition-transform duration-200 group-hover:-rotate-45" }),
|
|
6042
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { children: "Clear all" })
|
|
6043
|
+
]
|
|
6044
|
+
}
|
|
6045
|
+
)
|
|
6046
|
+
] }),
|
|
6047
|
+
shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("nav", { "aria-label": `${humanize(facetGroups[0][0])} filters`, children: renderFacetLinks(facetGroups[0][0], facetGroups[0][1]) }),
|
|
6048
|
+
shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "flex flex-col", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("details", { className: "border-b py-1 last:border-b-0", open: true, children: [
|
|
6049
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("summary", { className: "cursor-pointer rounded-md px-2 py-1.5 font-semibold transition-colors duration-150 hover:bg-info-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary", children: humanize(field) }),
|
|
6050
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "px-1 pb-1 pt-0.5", children: renderFacetLinks(field, values, true) })
|
|
6051
|
+
] }, field)) })
|
|
6052
|
+
]
|
|
6053
|
+
}
|
|
6054
|
+
);
|
|
5950
6055
|
};
|
|
5951
6056
|
DataBindingControls_default = DataBindingControls;
|
|
5952
6057
|
}
|
|
@@ -5957,13 +6062,13 @@ var Slider_exports = {};
|
|
|
5957
6062
|
__export(Slider_exports, {
|
|
5958
6063
|
default: () => Slider_default
|
|
5959
6064
|
});
|
|
5960
|
-
var import_react60,
|
|
6065
|
+
var import_react60, import_jsx_runtime87, Slider, ArrowButton, ProgressPill, Slider_default;
|
|
5961
6066
|
var init_Slider = __esm({
|
|
5962
6067
|
"src/components/Slider.tsx"() {
|
|
5963
6068
|
"use strict";
|
|
5964
6069
|
"use client";
|
|
5965
6070
|
import_react60 = __toESM(require("react"));
|
|
5966
|
-
|
|
6071
|
+
import_jsx_runtime87 = require("react/jsx-runtime");
|
|
5967
6072
|
Slider = ({
|
|
5968
6073
|
children,
|
|
5969
6074
|
columns,
|
|
@@ -6082,7 +6187,7 @@ var init_Slider = __esm({
|
|
|
6082
6187
|
if (!import_react60.default.isValidElement(child)) return null;
|
|
6083
6188
|
const childProps = child.props;
|
|
6084
6189
|
const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
|
|
6085
|
-
return /* @__PURE__ */ (0,
|
|
6190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6086
6191
|
"div",
|
|
6087
6192
|
{
|
|
6088
6193
|
className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
|
|
@@ -6094,8 +6199,8 @@ var init_Slider = __esm({
|
|
|
6094
6199
|
index
|
|
6095
6200
|
);
|
|
6096
6201
|
});
|
|
6097
|
-
return /* @__PURE__ */ (0,
|
|
6098
|
-
show_dots && progressPosition === "top" && /* @__PURE__ */ (0,
|
|
6202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "w-full", children: [
|
|
6203
|
+
show_dots && progressPosition === "top" && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "flex justify-center space-x-1.5 mb-4", children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6099
6204
|
ProgressPill,
|
|
6100
6205
|
{
|
|
6101
6206
|
active: index === currentSlide,
|
|
@@ -6111,14 +6216,14 @@ var init_Slider = __esm({
|
|
|
6111
6216
|
},
|
|
6112
6217
|
index
|
|
6113
6218
|
)) }),
|
|
6114
|
-
/* @__PURE__ */ (0,
|
|
6219
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
6115
6220
|
"div",
|
|
6116
6221
|
{
|
|
6117
6222
|
className: `relative w-full overflow-hidden ${className}`,
|
|
6118
6223
|
onMouseEnter: handleMouseEnter,
|
|
6119
6224
|
onMouseLeave: handleMouseLeave,
|
|
6120
6225
|
children: [
|
|
6121
|
-
/* @__PURE__ */ (0,
|
|
6226
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6122
6227
|
"div",
|
|
6123
6228
|
{
|
|
6124
6229
|
className: "flex h-full",
|
|
@@ -6129,32 +6234,32 @@ var init_Slider = __esm({
|
|
|
6129
6234
|
children: slides
|
|
6130
6235
|
}
|
|
6131
6236
|
),
|
|
6132
|
-
show_arrows && /* @__PURE__ */ (0,
|
|
6133
|
-
/* @__PURE__ */ (0,
|
|
6237
|
+
show_arrows && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
|
|
6238
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6134
6239
|
ArrowButton,
|
|
6135
6240
|
{
|
|
6136
6241
|
direction: "left",
|
|
6137
6242
|
onClick: prevSlide,
|
|
6138
6243
|
visible: infinite_scroll || currentSlide > 0,
|
|
6139
6244
|
className: arrowClassName,
|
|
6140
|
-
children: /* @__PURE__ */ (0,
|
|
6245
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
|
|
6141
6246
|
}
|
|
6142
6247
|
),
|
|
6143
|
-
/* @__PURE__ */ (0,
|
|
6248
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6144
6249
|
ArrowButton,
|
|
6145
6250
|
{
|
|
6146
6251
|
direction: "right",
|
|
6147
6252
|
onClick: nextSlide,
|
|
6148
6253
|
visible: infinite_scroll || currentSlide < maxSlide,
|
|
6149
6254
|
className: arrowClassName,
|
|
6150
|
-
children: /* @__PURE__ */ (0,
|
|
6255
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) })
|
|
6151
6256
|
}
|
|
6152
6257
|
)
|
|
6153
6258
|
] })
|
|
6154
6259
|
]
|
|
6155
6260
|
}
|
|
6156
6261
|
),
|
|
6157
|
-
show_dots && progressPosition !== "top" && /* @__PURE__ */ (0,
|
|
6262
|
+
show_dots && progressPosition !== "top" && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "flex justify-center space-x-1.5 mt-5", children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6158
6263
|
ProgressPill,
|
|
6159
6264
|
{
|
|
6160
6265
|
active: index === currentSlide,
|
|
@@ -6178,7 +6283,7 @@ var init_Slider = __esm({
|
|
|
6178
6283
|
visible,
|
|
6179
6284
|
children,
|
|
6180
6285
|
className = ""
|
|
6181
|
-
}) => /* @__PURE__ */ (0,
|
|
6286
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6182
6287
|
"button",
|
|
6183
6288
|
{
|
|
6184
6289
|
className: `
|
|
@@ -6265,7 +6370,7 @@ var init_Slider = __esm({
|
|
|
6265
6370
|
const renderProgressBar = () => {
|
|
6266
6371
|
if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
|
|
6267
6372
|
const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
|
|
6268
|
-
return /* @__PURE__ */ (0,
|
|
6373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6269
6374
|
"div",
|
|
6270
6375
|
{
|
|
6271
6376
|
className: `absolute top-0 left-0 h-full rounded-full ${style === "cumulative" && isFilled ? activeClassName || "bg-white" : activeClassName || "bg-white"} transition-all duration-50 ease-linear`,
|
|
@@ -6277,7 +6382,7 @@ var init_Slider = __esm({
|
|
|
6277
6382
|
};
|
|
6278
6383
|
const renderCumulativeFill = () => {
|
|
6279
6384
|
if (style === "cumulative" && isFilled && !isActive) {
|
|
6280
|
-
return /* @__PURE__ */ (0,
|
|
6385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6281
6386
|
"div",
|
|
6282
6387
|
{
|
|
6283
6388
|
className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
|
|
@@ -6287,7 +6392,7 @@ var init_Slider = __esm({
|
|
|
6287
6392
|
}
|
|
6288
6393
|
return null;
|
|
6289
6394
|
};
|
|
6290
|
-
return /* @__PURE__ */ (0,
|
|
6395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
6291
6396
|
"button",
|
|
6292
6397
|
{
|
|
6293
6398
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -7831,10 +7936,39 @@ var NoDataFound = () => {
|
|
|
7831
7936
|
};
|
|
7832
7937
|
var NoDataFound_default = NoDataFound;
|
|
7833
7938
|
|
|
7939
|
+
// src/components/NoFilterResultsFound.tsx
|
|
7940
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
7941
|
+
var NoFilterResultsFound = () => {
|
|
7942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
7943
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7944
|
+
"svg",
|
|
7945
|
+
{
|
|
7946
|
+
className: "w-10 h-10",
|
|
7947
|
+
fill: "none",
|
|
7948
|
+
stroke: "currentColor",
|
|
7949
|
+
viewBox: "0 0 24 24",
|
|
7950
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7951
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7952
|
+
"path",
|
|
7953
|
+
{
|
|
7954
|
+
strokeLinecap: "round",
|
|
7955
|
+
strokeLinejoin: "round",
|
|
7956
|
+
strokeWidth: "1.5",
|
|
7957
|
+
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"
|
|
7958
|
+
}
|
|
7959
|
+
)
|
|
7960
|
+
}
|
|
7961
|
+
) }) }),
|
|
7962
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No Results Found" }),
|
|
7963
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "max-w-sm mb-0", children: "No data matches the current search query and configured parameters. Try adjusting your search criteria or filters to view available results." })
|
|
7964
|
+
] });
|
|
7965
|
+
};
|
|
7966
|
+
var NoFilterResultsFound_default = NoFilterResultsFound;
|
|
7967
|
+
|
|
7834
7968
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
7835
7969
|
init_AssetUtility();
|
|
7836
7970
|
var import_dynamic12 = __toESM(require("next/dynamic"));
|
|
7837
|
-
var
|
|
7971
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
7838
7972
|
var HlsPlayer4 = (0, import_dynamic12.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
7839
7973
|
var deviceToMediaQuery = (device) => {
|
|
7840
7974
|
switch (device) {
|
|
@@ -7990,8 +8124,8 @@ var ImageGalleryNode = (props) => {
|
|
|
7990
8124
|
right: "justify-end"
|
|
7991
8125
|
};
|
|
7992
8126
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
7993
|
-
return /* @__PURE__ */ (0,
|
|
7994
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0,
|
|
8127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
|
|
8128
|
+
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_jsx_runtime82.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7995
8129
|
HlsPlayer4,
|
|
7996
8130
|
{
|
|
7997
8131
|
sources: hlsSources,
|
|
@@ -8006,7 +8140,7 @@ var ImageGalleryNode = (props) => {
|
|
|
8006
8140
|
styles: hlsStyles
|
|
8007
8141
|
}
|
|
8008
8142
|
) }),
|
|
8009
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0,
|
|
8143
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_jsx_runtime82.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("picture", { children: [
|
|
8010
8144
|
DEVICE_ORDER.map((deviceKey) => {
|
|
8011
8145
|
const match = staticSources.find(
|
|
8012
8146
|
(img) => img.device === deviceKey
|
|
@@ -8022,7 +8156,7 @@ var ImageGalleryNode = (props) => {
|
|
|
8022
8156
|
if (!srcUrl) {
|
|
8023
8157
|
return null;
|
|
8024
8158
|
}
|
|
8025
|
-
return /* @__PURE__ */ (0,
|
|
8159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8026
8160
|
"source",
|
|
8027
8161
|
{
|
|
8028
8162
|
media: deviceToMediaQuery(match.device),
|
|
@@ -8047,7 +8181,7 @@ var ImageGalleryNode = (props) => {
|
|
|
8047
8181
|
if (img.borderRadius) {
|
|
8048
8182
|
styles.borderRadius = img.borderRadius;
|
|
8049
8183
|
}
|
|
8050
|
-
return /* @__PURE__ */ (0,
|
|
8184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8051
8185
|
"img",
|
|
8052
8186
|
{
|
|
8053
8187
|
loading: "lazy",
|
|
@@ -8062,7 +8196,7 @@ var ImageGalleryNode = (props) => {
|
|
|
8062
8196
|
})()
|
|
8063
8197
|
] }) : (
|
|
8064
8198
|
/* Case 2: Only device-specific images exist */
|
|
8065
|
-
/* @__PURE__ */ (0,
|
|
8199
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_jsx_runtime82.Fragment, { children: staticSources.map((img, index) => {
|
|
8066
8200
|
const resolved = resolveImage(img);
|
|
8067
8201
|
const imageUrl = resolved?.imageUrl;
|
|
8068
8202
|
if (!imageUrl) {
|
|
@@ -8089,7 +8223,7 @@ var ImageGalleryNode = (props) => {
|
|
|
8089
8223
|
default:
|
|
8090
8224
|
display = "block";
|
|
8091
8225
|
}
|
|
8092
|
-
return /* @__PURE__ */ (0,
|
|
8226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8093
8227
|
"img",
|
|
8094
8228
|
{
|
|
8095
8229
|
loading: "lazy",
|
|
@@ -8230,7 +8364,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
8230
8364
|
|
|
8231
8365
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
8232
8366
|
init_AssetUtility();
|
|
8233
|
-
var
|
|
8367
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
8234
8368
|
var getNestedValue5 = (obj, path) => {
|
|
8235
8369
|
if (!obj || !path) return void 0;
|
|
8236
8370
|
return path.split(".").reduce((current, key) => {
|
|
@@ -8261,21 +8395,21 @@ var parseDocuments = (value) => {
|
|
|
8261
8395
|
}
|
|
8262
8396
|
return [];
|
|
8263
8397
|
};
|
|
8264
|
-
var PdfIcon2 = () => /* @__PURE__ */ (0,
|
|
8398
|
+
var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8265
8399
|
"svg",
|
|
8266
8400
|
{
|
|
8267
8401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8268
8402
|
viewBox: "0 0 48 48",
|
|
8269
8403
|
className: "w-10 h-10",
|
|
8270
8404
|
children: [
|
|
8271
|
-
/* @__PURE__ */ (0,
|
|
8405
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8272
8406
|
"path",
|
|
8273
8407
|
{
|
|
8274
8408
|
fill: "#e53935",
|
|
8275
8409
|
d: "M38,42H10c-2.209,0-4-1.791-4-4V10c0-2.209,1.791-4,4-4h28c2.209,0,4,1.791,4,4v28 C42,40.209,40.209,42,38,42z"
|
|
8276
8410
|
}
|
|
8277
8411
|
),
|
|
8278
|
-
/* @__PURE__ */ (0,
|
|
8412
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8279
8413
|
"path",
|
|
8280
8414
|
{
|
|
8281
8415
|
fill: "#fff",
|
|
@@ -8285,55 +8419,55 @@ var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8285
8419
|
]
|
|
8286
8420
|
}
|
|
8287
8421
|
);
|
|
8288
|
-
var ExcelIcon2 = () => /* @__PURE__ */ (0,
|
|
8422
|
+
var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8289
8423
|
"svg",
|
|
8290
8424
|
{
|
|
8291
8425
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8292
8426
|
viewBox: "0 0 48 48",
|
|
8293
8427
|
className: "w-10 h-10",
|
|
8294
8428
|
children: [
|
|
8295
|
-
/* @__PURE__ */ (0,
|
|
8429
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8296
8430
|
"path",
|
|
8297
8431
|
{
|
|
8298
8432
|
fill: "#169154",
|
|
8299
8433
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
8300
8434
|
}
|
|
8301
8435
|
),
|
|
8302
|
-
/* @__PURE__ */ (0,
|
|
8436
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8303
8437
|
"path",
|
|
8304
8438
|
{
|
|
8305
8439
|
fill: "#18482a",
|
|
8306
8440
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
8307
8441
|
}
|
|
8308
8442
|
),
|
|
8309
|
-
/* @__PURE__ */ (0,
|
|
8310
|
-
/* @__PURE__ */ (0,
|
|
8311
|
-
/* @__PURE__ */ (0,
|
|
8312
|
-
/* @__PURE__ */ (0,
|
|
8443
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
8444
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
8445
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("g", { children: [
|
|
8446
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8313
8447
|
"path",
|
|
8314
8448
|
{
|
|
8315
8449
|
fill: "#29c27f",
|
|
8316
8450
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
8317
8451
|
}
|
|
8318
8452
|
),
|
|
8319
|
-
/* @__PURE__ */ (0,
|
|
8453
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8320
8454
|
"path",
|
|
8321
8455
|
{
|
|
8322
8456
|
fill: "#27663f",
|
|
8323
8457
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
8324
8458
|
}
|
|
8325
8459
|
),
|
|
8326
|
-
/* @__PURE__ */ (0,
|
|
8327
|
-
/* @__PURE__ */ (0,
|
|
8460
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
8461
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
8328
8462
|
] }),
|
|
8329
|
-
/* @__PURE__ */ (0,
|
|
8463
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8330
8464
|
"path",
|
|
8331
8465
|
{
|
|
8332
8466
|
fill: "#0c7238",
|
|
8333
8467
|
d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
|
|
8334
8468
|
}
|
|
8335
8469
|
),
|
|
8336
|
-
/* @__PURE__ */ (0,
|
|
8470
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8337
8471
|
"path",
|
|
8338
8472
|
{
|
|
8339
8473
|
fill: "#fff",
|
|
@@ -8343,7 +8477,7 @@ var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8343
8477
|
]
|
|
8344
8478
|
}
|
|
8345
8479
|
);
|
|
8346
|
-
var WordIcon2 = () => /* @__PURE__ */ (0,
|
|
8480
|
+
var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8347
8481
|
"svg",
|
|
8348
8482
|
{
|
|
8349
8483
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8351,14 +8485,14 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8351
8485
|
className: "w-10 h-10",
|
|
8352
8486
|
baseProfile: "basic",
|
|
8353
8487
|
children: [
|
|
8354
|
-
/* @__PURE__ */ (0,
|
|
8488
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8355
8489
|
"path",
|
|
8356
8490
|
{
|
|
8357
8491
|
fill: "#283593",
|
|
8358
8492
|
d: "M9,33.595l14.911-18.706L41,26v13.306C41,41.346,39.346,43,37.306,43H15.332 C11.835,43,9,40.164,9,36.667C9,36.667,9,33.595,9,33.595z"
|
|
8359
8493
|
}
|
|
8360
8494
|
),
|
|
8361
|
-
/* @__PURE__ */ (0,
|
|
8495
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8362
8496
|
"linearGradient",
|
|
8363
8497
|
{
|
|
8364
8498
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -8369,19 +8503,19 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8369
8503
|
gradientTransform: "translate(0 -339.89)",
|
|
8370
8504
|
gradientUnits: "userSpaceOnUse",
|
|
8371
8505
|
children: [
|
|
8372
|
-
/* @__PURE__ */ (0,
|
|
8373
|
-
/* @__PURE__ */ (0,
|
|
8506
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
8507
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
8374
8508
|
]
|
|
8375
8509
|
}
|
|
8376
8510
|
),
|
|
8377
|
-
/* @__PURE__ */ (0,
|
|
8511
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8378
8512
|
"path",
|
|
8379
8513
|
{
|
|
8380
8514
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
8381
8515
|
d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
|
|
8382
8516
|
}
|
|
8383
8517
|
),
|
|
8384
|
-
/* @__PURE__ */ (0,
|
|
8518
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8385
8519
|
"path",
|
|
8386
8520
|
{
|
|
8387
8521
|
fill: "#1e88e5",
|
|
@@ -8389,21 +8523,21 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8389
8523
|
d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
|
|
8390
8524
|
}
|
|
8391
8525
|
),
|
|
8392
|
-
/* @__PURE__ */ (0,
|
|
8526
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8393
8527
|
"path",
|
|
8394
8528
|
{
|
|
8395
8529
|
fill: "#00e5ff",
|
|
8396
8530
|
d: "M9,10.333C9,6.836,11.835,4,15.332,4h21.975C39.346,4,41,5.654,41,7.694v5.611 C41,15.346,39.346,17,37.306,17H15.332C11.835,17,9,19.836,9,23.333C9,23.333,9,10.333,9,10.333z"
|
|
8397
8531
|
}
|
|
8398
8532
|
),
|
|
8399
|
-
/* @__PURE__ */ (0,
|
|
8533
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8400
8534
|
"path",
|
|
8401
8535
|
{
|
|
8402
8536
|
fill: "#1565c0",
|
|
8403
8537
|
d: "M7.5,23h10c1.933,0,3.5,1.567,3.5,3.5v10c0,1.933-1.567,3.5-3.5,3.5h-10C5.567,40,4,38.433,4,36.5 v-10C4,24.567,5.567,23,7.5,23z"
|
|
8404
8538
|
}
|
|
8405
8539
|
),
|
|
8406
|
-
/* @__PURE__ */ (0,
|
|
8540
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8407
8541
|
"path",
|
|
8408
8542
|
{
|
|
8409
8543
|
fill: "#fff",
|
|
@@ -8413,42 +8547,42 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8413
8547
|
]
|
|
8414
8548
|
}
|
|
8415
8549
|
);
|
|
8416
|
-
var StandardIcon2 = () => /* @__PURE__ */ (0,
|
|
8550
|
+
var StandardIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8417
8551
|
"svg",
|
|
8418
8552
|
{
|
|
8419
8553
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8420
8554
|
viewBox: "0 0 48 48",
|
|
8421
8555
|
className: "w-10 h-10",
|
|
8422
8556
|
children: [
|
|
8423
|
-
/* @__PURE__ */ (0,
|
|
8424
|
-
/* @__PURE__ */ (0,
|
|
8557
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
8558
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
8425
8559
|
]
|
|
8426
8560
|
}
|
|
8427
8561
|
);
|
|
8428
|
-
var PowerPointIcon2 = () => /* @__PURE__ */ (0,
|
|
8562
|
+
var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8429
8563
|
"svg",
|
|
8430
8564
|
{
|
|
8431
8565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8432
8566
|
viewBox: "0 0 48 48",
|
|
8433
8567
|
className: "w-10 h-10",
|
|
8434
8568
|
children: [
|
|
8435
|
-
/* @__PURE__ */ (0,
|
|
8569
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8436
8570
|
"path",
|
|
8437
8571
|
{
|
|
8438
8572
|
fill: "#dc4c2c",
|
|
8439
8573
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
8440
8574
|
}
|
|
8441
8575
|
),
|
|
8442
|
-
/* @__PURE__ */ (0,
|
|
8443
|
-
/* @__PURE__ */ (0,
|
|
8444
|
-
/* @__PURE__ */ (0,
|
|
8576
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
8577
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
8578
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8445
8579
|
"path",
|
|
8446
8580
|
{
|
|
8447
8581
|
fill: "#9b341f",
|
|
8448
8582
|
d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
|
|
8449
8583
|
}
|
|
8450
8584
|
),
|
|
8451
|
-
/* @__PURE__ */ (0,
|
|
8585
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8452
8586
|
"path",
|
|
8453
8587
|
{
|
|
8454
8588
|
fill: "#fff",
|
|
@@ -8458,16 +8592,16 @@ var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8458
8592
|
]
|
|
8459
8593
|
}
|
|
8460
8594
|
);
|
|
8461
|
-
var TextIcon2 = () => /* @__PURE__ */ (0,
|
|
8595
|
+
var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8462
8596
|
"svg",
|
|
8463
8597
|
{
|
|
8464
8598
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8465
8599
|
viewBox: "0 0 48 48",
|
|
8466
8600
|
className: "w-10 h-10",
|
|
8467
8601
|
children: [
|
|
8468
|
-
/* @__PURE__ */ (0,
|
|
8469
|
-
/* @__PURE__ */ (0,
|
|
8470
|
-
/* @__PURE__ */ (0,
|
|
8602
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
8603
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
8604
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8471
8605
|
"path",
|
|
8472
8606
|
{
|
|
8473
8607
|
fill: "#1976D2",
|
|
@@ -8477,7 +8611,7 @@ var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8477
8611
|
]
|
|
8478
8612
|
}
|
|
8479
8613
|
);
|
|
8480
|
-
var ArchiveIcon2 = () => /* @__PURE__ */ (0,
|
|
8614
|
+
var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8481
8615
|
"svg",
|
|
8482
8616
|
{
|
|
8483
8617
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8487,14 +8621,14 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8487
8621
|
version: "1.0",
|
|
8488
8622
|
className: "w-10 h-10",
|
|
8489
8623
|
children: [
|
|
8490
|
-
/* @__PURE__ */ (0,
|
|
8624
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8491
8625
|
"path",
|
|
8492
8626
|
{
|
|
8493
8627
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
8494
8628
|
"clip-rule": "nonzero"
|
|
8495
8629
|
}
|
|
8496
8630
|
) }) }),
|
|
8497
|
-
/* @__PURE__ */ (0,
|
|
8631
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8498
8632
|
"path",
|
|
8499
8633
|
{
|
|
8500
8634
|
fill: "#ff9100",
|
|
@@ -8503,7 +8637,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8503
8637
|
"fill-rule": "nonzero"
|
|
8504
8638
|
}
|
|
8505
8639
|
) }),
|
|
8506
|
-
/* @__PURE__ */ (0,
|
|
8640
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8507
8641
|
"path",
|
|
8508
8642
|
{
|
|
8509
8643
|
fill: "#fbe9e7",
|
|
@@ -8512,7 +8646,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8512
8646
|
"fill-rule": "nonzero"
|
|
8513
8647
|
}
|
|
8514
8648
|
),
|
|
8515
|
-
/* @__PURE__ */ (0,
|
|
8649
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8516
8650
|
"path",
|
|
8517
8651
|
{
|
|
8518
8652
|
fill: "#ffe0b2",
|
|
@@ -8521,7 +8655,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8521
8655
|
"fill-rule": "nonzero"
|
|
8522
8656
|
}
|
|
8523
8657
|
),
|
|
8524
|
-
/* @__PURE__ */ (0,
|
|
8658
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8525
8659
|
"path",
|
|
8526
8660
|
{
|
|
8527
8661
|
fill: "#ffe0b2",
|
|
@@ -8530,7 +8664,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8530
8664
|
"fill-rule": "nonzero"
|
|
8531
8665
|
}
|
|
8532
8666
|
),
|
|
8533
|
-
/* @__PURE__ */ (0,
|
|
8667
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8534
8668
|
"path",
|
|
8535
8669
|
{
|
|
8536
8670
|
fill: "#ffe0b2",
|
|
@@ -8580,8 +8714,8 @@ var DocumentNode = (props) => {
|
|
|
8580
8714
|
documents = parseDocuments(props.node.documentAsset);
|
|
8581
8715
|
}
|
|
8582
8716
|
if (documents.length === 0) {
|
|
8583
|
-
return /* @__PURE__ */ (0,
|
|
8584
|
-
/* @__PURE__ */ (0,
|
|
8717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_jsx_runtime83.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
8718
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8585
8719
|
"svg",
|
|
8586
8720
|
{
|
|
8587
8721
|
className: "w-5 h-5",
|
|
@@ -8589,7 +8723,7 @@ var DocumentNode = (props) => {
|
|
|
8589
8723
|
stroke: "currentColor",
|
|
8590
8724
|
viewBox: "0 0 24 24",
|
|
8591
8725
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8592
|
-
children: /* @__PURE__ */ (0,
|
|
8726
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8593
8727
|
"path",
|
|
8594
8728
|
{
|
|
8595
8729
|
strokeLinecap: "round",
|
|
@@ -8600,11 +8734,11 @@ var DocumentNode = (props) => {
|
|
|
8600
8734
|
)
|
|
8601
8735
|
}
|
|
8602
8736
|
) }),
|
|
8603
|
-
/* @__PURE__ */ (0,
|
|
8604
|
-
/* @__PURE__ */ (0,
|
|
8737
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
8738
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
8605
8739
|
] }) });
|
|
8606
8740
|
}
|
|
8607
|
-
return /* @__PURE__ */ (0,
|
|
8741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
8608
8742
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
8609
8743
|
props.assetBaseUrl,
|
|
8610
8744
|
doc.assetUrl
|
|
@@ -8622,16 +8756,16 @@ var DocumentNode = (props) => {
|
|
|
8622
8756
|
}
|
|
8623
8757
|
}
|
|
8624
8758
|
const { Icon: Icon2, extLabel } = getFileDetails2(documentUrl);
|
|
8625
|
-
return /* @__PURE__ */ (0,
|
|
8759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8626
8760
|
"div",
|
|
8627
8761
|
{
|
|
8628
8762
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
8629
8763
|
children: [
|
|
8630
|
-
/* @__PURE__ */ (0,
|
|
8631
|
-
/* @__PURE__ */ (0,
|
|
8632
|
-
/* @__PURE__ */ (0,
|
|
8764
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex items-center space-x-4 min-w-0", children: [
|
|
8765
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon2, {}) }),
|
|
8766
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex items-baseline space-x-2 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("h4", { className: "text-base font-semibold truncate", title: documentTitle, children: documentTitle }) })
|
|
8633
8767
|
] }),
|
|
8634
|
-
/* @__PURE__ */ (0,
|
|
8768
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8635
8769
|
"a",
|
|
8636
8770
|
{
|
|
8637
8771
|
href: documentUrl,
|
|
@@ -8639,7 +8773,7 @@ var DocumentNode = (props) => {
|
|
|
8639
8773
|
rel: "noopener noreferrer",
|
|
8640
8774
|
className: "inline-flex items-center px-4 py-2 text-sm font-medium bg-default border rounded focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors shrink-0",
|
|
8641
8775
|
children: [
|
|
8642
|
-
/* @__PURE__ */ (0,
|
|
8776
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8643
8777
|
"svg",
|
|
8644
8778
|
{
|
|
8645
8779
|
className: "w-4 h-4 mr-2",
|
|
@@ -8647,7 +8781,7 @@ var DocumentNode = (props) => {
|
|
|
8647
8781
|
stroke: "currentColor",
|
|
8648
8782
|
viewBox: "0 0 24 24",
|
|
8649
8783
|
children: [
|
|
8650
|
-
/* @__PURE__ */ (0,
|
|
8784
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8651
8785
|
"path",
|
|
8652
8786
|
{
|
|
8653
8787
|
strokeLinecap: "round",
|
|
@@ -8656,7 +8790,7 @@ var DocumentNode = (props) => {
|
|
|
8656
8790
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
8657
8791
|
}
|
|
8658
8792
|
),
|
|
8659
|
-
/* @__PURE__ */ (0,
|
|
8793
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8660
8794
|
"path",
|
|
8661
8795
|
{
|
|
8662
8796
|
strokeLinecap: "round",
|
|
@@ -8682,13 +8816,13 @@ var DocumentNode_default = DocumentNode;
|
|
|
8682
8816
|
|
|
8683
8817
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
8684
8818
|
var import_dynamic13 = __toESM(require("next/dynamic"));
|
|
8685
|
-
var
|
|
8819
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
8686
8820
|
var IframeClient3 = (0, import_dynamic13.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
8687
8821
|
ssr: false
|
|
8688
8822
|
});
|
|
8689
8823
|
var GoogleMapNode = (props) => {
|
|
8690
8824
|
let src = props.node.embedUrl;
|
|
8691
|
-
return /* @__PURE__ */ (0,
|
|
8825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8692
8826
|
IframeClient3,
|
|
8693
8827
|
{
|
|
8694
8828
|
src,
|
|
@@ -8700,7 +8834,7 @@ var GoogleMapNode = (props) => {
|
|
|
8700
8834
|
var GoogleMapNode_default = GoogleMapNode;
|
|
8701
8835
|
|
|
8702
8836
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
8703
|
-
var
|
|
8837
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
8704
8838
|
var Pagination2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
|
|
8705
8839
|
var DataBindingControls2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
|
|
8706
8840
|
ssr: true
|
|
@@ -8985,7 +9119,7 @@ var DivContainer = async (props) => {
|
|
|
8985
9119
|
}
|
|
8986
9120
|
const SelectedNode = NodeTypes2[node.type];
|
|
8987
9121
|
if (!SelectedNode) return null;
|
|
8988
|
-
return /* @__PURE__ */ (0,
|
|
9122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
8989
9123
|
SelectedNode,
|
|
8990
9124
|
{
|
|
8991
9125
|
node,
|
|
@@ -9077,7 +9211,7 @@ var DivContainer = async (props) => {
|
|
|
9077
9211
|
item,
|
|
9078
9212
|
idx,
|
|
9079
9213
|
props.href ? void 0 : item?.links?.view
|
|
9080
|
-
)?.map((child, i) => /* @__PURE__ */ (0,
|
|
9214
|
+
)?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react61.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
|
|
9081
9215
|
);
|
|
9082
9216
|
}
|
|
9083
9217
|
return props.node.children.flatMap((node, childIndex) => {
|
|
@@ -9188,21 +9322,24 @@ var DivContainer = async (props) => {
|
|
|
9188
9322
|
!!props.node.enterAnimation && "enter-animation"
|
|
9189
9323
|
].filter(Boolean).join(" ");
|
|
9190
9324
|
const isRepeatedContainer = props.node.repeatForEachItem === true || props.node.replicate === true;
|
|
9325
|
+
const hasActiveFilter = Boolean(
|
|
9326
|
+
(props.query?.["$filter"] ?? props.query?.filter)?.trim()
|
|
9327
|
+
);
|
|
9191
9328
|
const showDataBindingControls = !isRepeatedContainer && Boolean(
|
|
9192
9329
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
9193
9330
|
);
|
|
9194
9331
|
const WrapperComponent = Wrapper;
|
|
9195
|
-
const renderedContainer = /* @__PURE__ */ (0,
|
|
9332
|
+
const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9196
9333
|
WrapperComponent,
|
|
9197
9334
|
{
|
|
9198
9335
|
id: guid,
|
|
9199
9336
|
style: combinedStyles,
|
|
9200
9337
|
className: classNames || void 0,
|
|
9201
9338
|
...wrapperProps,
|
|
9202
|
-
children: shouldShowNoDataMessage ? /* @__PURE__ */ (0,
|
|
9339
|
+
children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(NoFilterResultsFound_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(NoDataFound_default, {}) : renderContainerChildren()
|
|
9203
9340
|
}
|
|
9204
9341
|
);
|
|
9205
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0,
|
|
9342
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9206
9343
|
Pagination2,
|
|
9207
9344
|
{
|
|
9208
9345
|
path: props.path,
|
|
@@ -9210,15 +9347,15 @@ var DivContainer = async (props) => {
|
|
|
9210
9347
|
dataset: response
|
|
9211
9348
|
}
|
|
9212
9349
|
) : null;
|
|
9213
|
-
return /* @__PURE__ */ (0,
|
|
9214
|
-
/* @__PURE__ */ (0,
|
|
9350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react61.default.Fragment, { children: [
|
|
9351
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9215
9352
|
"style",
|
|
9216
9353
|
{
|
|
9217
9354
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
9218
9355
|
}
|
|
9219
9356
|
),
|
|
9220
|
-
showDataBindingControls ? /* @__PURE__ */ (0,
|
|
9221
|
-
/* @__PURE__ */ (0,
|
|
9357
|
+
showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react61.default.Fragment, { children: [
|
|
9358
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9222
9359
|
DataBindingControls2,
|
|
9223
9360
|
{
|
|
9224
9361
|
mode: "toolbar",
|
|
@@ -9226,45 +9363,43 @@ var DivContainer = async (props) => {
|
|
|
9226
9363
|
query: props.query,
|
|
9227
9364
|
facets: response?.facets,
|
|
9228
9365
|
sortOptions: response?.sortOptions,
|
|
9366
|
+
showFacets: dataBindingProperties?.showFacets,
|
|
9229
9367
|
showSortOptions: dataBindingProperties?.showSortOptions,
|
|
9230
9368
|
showSearchBar: dataBindingProperties?.showSearchBar
|
|
9231
9369
|
}
|
|
9232
9370
|
),
|
|
9233
|
-
/* @__PURE__ */ (0,
|
|
9371
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
9234
9372
|
"div",
|
|
9235
9373
|
{
|
|
9236
9374
|
className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
|
|
9237
9375
|
children: [
|
|
9238
|
-
/* @__PURE__ */ (0,
|
|
9376
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "min-w-0", children: [
|
|
9239
9377
|
renderedContainer,
|
|
9240
9378
|
paginationControl
|
|
9241
9379
|
] }),
|
|
9242
|
-
dataBindingProperties?.showFacets && /* @__PURE__ */ (0,
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
}
|
|
9253
|
-
)
|
|
9254
|
-
] })
|
|
9380
|
+
dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("aside", { className: " lg:sticky lg:top-[90px] lg:self-start", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9381
|
+
DataBindingControls2,
|
|
9382
|
+
{
|
|
9383
|
+
mode: "facets",
|
|
9384
|
+
path: props.path,
|
|
9385
|
+
query: props.query,
|
|
9386
|
+
facets: response?.facets,
|
|
9387
|
+
showFacets: dataBindingProperties.showFacets
|
|
9388
|
+
}
|
|
9389
|
+
) })
|
|
9255
9390
|
]
|
|
9256
9391
|
}
|
|
9257
9392
|
)
|
|
9258
|
-
] }) : /* @__PURE__ */ (0,
|
|
9393
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react61.default.Fragment, { children: [
|
|
9259
9394
|
renderedContainer,
|
|
9260
|
-
paginationControl && /* @__PURE__ */ (0,
|
|
9395
|
+
paginationControl && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: paginationControl })
|
|
9261
9396
|
] })
|
|
9262
9397
|
] });
|
|
9263
9398
|
};
|
|
9264
9399
|
var DivContainer_default = DivContainer;
|
|
9265
9400
|
|
|
9266
9401
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
9267
|
-
var
|
|
9402
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
9268
9403
|
var NodeTypes = {
|
|
9269
9404
|
["paragraph"]: ParagraphNode_default,
|
|
9270
9405
|
["heading"]: HeadingNode_default,
|
|
@@ -9302,14 +9437,14 @@ var PageBodyRenderer = (props) => {
|
|
|
9302
9437
|
}
|
|
9303
9438
|
return true;
|
|
9304
9439
|
};
|
|
9305
|
-
return /* @__PURE__ */ (0,
|
|
9440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
9306
9441
|
{
|
|
9307
9442
|
}
|
|
9308
9443
|
const SelectedNode = NodeTypes[node.type];
|
|
9309
9444
|
if (!shouldRenderNode(node)) {
|
|
9310
9445
|
return null;
|
|
9311
9446
|
}
|
|
9312
|
-
return /* @__PURE__ */ (0,
|
|
9447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9313
9448
|
SelectedNode,
|
|
9314
9449
|
{
|
|
9315
9450
|
node,
|
|
@@ -9325,7 +9460,7 @@ var PageBodyRenderer = (props) => {
|
|
|
9325
9460
|
device: props.device,
|
|
9326
9461
|
widgetRenderer: props.widgetRenderer
|
|
9327
9462
|
}
|
|
9328
|
-
) }) : /* @__PURE__ */ (0,
|
|
9463
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9329
9464
|
SelectedNode,
|
|
9330
9465
|
{
|
|
9331
9466
|
node,
|
|
@@ -9396,7 +9531,7 @@ function EnterAnimationHydrator() {
|
|
|
9396
9531
|
// src/components/Toast.tsx
|
|
9397
9532
|
var import_react64 = require("react");
|
|
9398
9533
|
init_ToastService();
|
|
9399
|
-
var
|
|
9534
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
9400
9535
|
var Toast = () => {
|
|
9401
9536
|
const [showToast, setShowToast] = (0, import_react64.useState)(false);
|
|
9402
9537
|
const [message, setMessage] = (0, import_react64.useState)("");
|
|
@@ -9430,8 +9565,8 @@ var Toast = () => {
|
|
|
9430
9565
|
});
|
|
9431
9566
|
};
|
|
9432
9567
|
}, [closeToast, showMessage]);
|
|
9433
|
-
return /* @__PURE__ */ (0,
|
|
9434
|
-
/* @__PURE__ */ (0,
|
|
9568
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_jsx_runtime90.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("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__ */ (0, import_jsx_runtime90.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
|
|
9569
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9435
9570
|
"span",
|
|
9436
9571
|
{
|
|
9437
9572
|
className: "font-medium text-inherit text-sm",
|
|
@@ -9439,7 +9574,7 @@ var Toast = () => {
|
|
|
9439
9574
|
children: message
|
|
9440
9575
|
}
|
|
9441
9576
|
),
|
|
9442
|
-
/* @__PURE__ */ (0,
|
|
9577
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9443
9578
|
"svg",
|
|
9444
9579
|
{
|
|
9445
9580
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9447,7 +9582,7 @@ var Toast = () => {
|
|
|
9447
9582
|
fill: "none",
|
|
9448
9583
|
viewBox: "0 0 24 24",
|
|
9449
9584
|
stroke: "currentColor",
|
|
9450
|
-
children: /* @__PURE__ */ (0,
|
|
9585
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
|
|
9451
9586
|
}
|
|
9452
9587
|
) })
|
|
9453
9588
|
] }) }) });
|
|
@@ -9476,7 +9611,7 @@ init_RadioInput();
|
|
|
9476
9611
|
// src/components/NavigationTabsV2.tsx
|
|
9477
9612
|
var import_link3 = __toESM(require("next/link"));
|
|
9478
9613
|
var import_navigation2 = require("next/navigation");
|
|
9479
|
-
var
|
|
9614
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
9480
9615
|
function resolveRoutePlaceholders(route, params) {
|
|
9481
9616
|
return route.replace(/\{([^}]+)\}/g, (match, key) => {
|
|
9482
9617
|
const value = params[key];
|
|
@@ -9501,8 +9636,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
9501
9636
|
isActive: tab.isActive
|
|
9502
9637
|
})) || [];
|
|
9503
9638
|
if (mappedTabs.length === 0) return null;
|
|
9504
|
-
return /* @__PURE__ */ (0,
|
|
9505
|
-
return /* @__PURE__ */ (0,
|
|
9639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
|
|
9640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
9506
9641
|
"div",
|
|
9507
9642
|
{
|
|
9508
9643
|
className: `text-sm font-medium border-b-2 px-6 py-2 transition
|
|
@@ -9521,9 +9656,9 @@ var import_navigation3 = require("next/navigation");
|
|
|
9521
9656
|
|
|
9522
9657
|
// src/components/dataForm/NoContentView.tsx
|
|
9523
9658
|
var import_react65 = __toESM(require("react"));
|
|
9524
|
-
var
|
|
9659
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
9525
9660
|
var NoContentView = (props) => {
|
|
9526
|
-
return /* @__PURE__ */ (0,
|
|
9661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react65.default.Fragment, { children: props.isDataFound === false && props.children });
|
|
9527
9662
|
};
|
|
9528
9663
|
var NoContentView_default = NoContentView;
|
|
9529
9664
|
|
|
@@ -9532,38 +9667,38 @@ init_InputControlType();
|
|
|
9532
9667
|
|
|
9533
9668
|
// src/components/dataForm/ContentView.tsx
|
|
9534
9669
|
var import_react66 = __toESM(require("react"));
|
|
9535
|
-
var
|
|
9670
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
9536
9671
|
var ContentView = (props) => {
|
|
9537
|
-
return /* @__PURE__ */ (0,
|
|
9538
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
9539
|
-
/* @__PURE__ */ (0,
|
|
9540
|
-
/* @__PURE__ */ (0,
|
|
9541
|
-
/* @__PURE__ */ (0,
|
|
9542
|
-
/* @__PURE__ */ (0,
|
|
9543
|
-
/* @__PURE__ */ (0,
|
|
9672
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_react66.default.Fragment, { children: [
|
|
9673
|
+
props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
9674
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
9675
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
9676
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "ml-2", children: [
|
|
9677
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
9678
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
9544
9679
|
] })
|
|
9545
9680
|
] }),
|
|
9546
|
-
/* @__PURE__ */ (0,
|
|
9547
|
-
/* @__PURE__ */ (0,
|
|
9548
|
-
/* @__PURE__ */ (0,
|
|
9549
|
-
/* @__PURE__ */ (0,
|
|
9550
|
-
/* @__PURE__ */ (0,
|
|
9551
|
-
/* @__PURE__ */ (0,
|
|
9552
|
-
/* @__PURE__ */ (0,
|
|
9681
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
9682
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "animate-pulse", children: [
|
|
9683
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
9684
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
9685
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
9686
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
9687
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
9553
9688
|
] }),
|
|
9554
|
-
/* @__PURE__ */ (0,
|
|
9555
|
-
/* @__PURE__ */ (0,
|
|
9556
|
-
/* @__PURE__ */ (0,
|
|
9557
|
-
/* @__PURE__ */ (0,
|
|
9558
|
-
/* @__PURE__ */ (0,
|
|
9559
|
-
/* @__PURE__ */ (0,
|
|
9689
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "animate-pulse", children: [
|
|
9690
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
9691
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
9692
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
9693
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
9694
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
9560
9695
|
] }),
|
|
9561
|
-
/* @__PURE__ */ (0,
|
|
9562
|
-
/* @__PURE__ */ (0,
|
|
9563
|
-
/* @__PURE__ */ (0,
|
|
9564
|
-
/* @__PURE__ */ (0,
|
|
9565
|
-
/* @__PURE__ */ (0,
|
|
9566
|
-
/* @__PURE__ */ (0,
|
|
9696
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "animate-pulse", children: [
|
|
9697
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
9698
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
9699
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
9700
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
9701
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
9567
9702
|
] })
|
|
9568
9703
|
] })
|
|
9569
9704
|
] }) }),
|
|
@@ -9623,7 +9758,7 @@ function FormReducer(state, action) {
|
|
|
9623
9758
|
var FormReducer_default = FormReducer;
|
|
9624
9759
|
|
|
9625
9760
|
// src/components/dataForm/DataList.tsx
|
|
9626
|
-
var
|
|
9761
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
9627
9762
|
var DataList = (props) => {
|
|
9628
9763
|
const router = (0, import_navigation3.useRouter)();
|
|
9629
9764
|
let builder = new OdataBuilder(props.path);
|
|
@@ -9664,7 +9799,7 @@ var DataList = (props) => {
|
|
|
9664
9799
|
if (path.includes(".")) {
|
|
9665
9800
|
return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
|
|
9666
9801
|
} else if (Array.isArray(obj[path])) {
|
|
9667
|
-
return obj[path].map((item, index) => /* @__PURE__ */ (0,
|
|
9802
|
+
return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { children: item }, index));
|
|
9668
9803
|
} else {
|
|
9669
9804
|
return obj[path];
|
|
9670
9805
|
}
|
|
@@ -9746,30 +9881,30 @@ var DataList = (props) => {
|
|
|
9746
9881
|
const renderPageNumbers = () => {
|
|
9747
9882
|
if (pages <= 10) {
|
|
9748
9883
|
return Array.from({ length: pages }, (_, index) => index + 1).map(
|
|
9749
|
-
(page) => /* @__PURE__ */ (0,
|
|
9884
|
+
(page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react67.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9750
9885
|
Hyperlink,
|
|
9751
9886
|
{
|
|
9752
9887
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
9753
9888
|
href: builder.getNewPageUrl(page),
|
|
9754
9889
|
children: page
|
|
9755
9890
|
}
|
|
9756
|
-
) : /* @__PURE__ */ (0,
|
|
9891
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
9757
9892
|
);
|
|
9758
9893
|
} else {
|
|
9759
9894
|
const showFirstPages = activePageNumber <= 5;
|
|
9760
9895
|
const showLastPages = activePageNumber > pages - 5;
|
|
9761
9896
|
if (showFirstPages) {
|
|
9762
|
-
return /* @__PURE__ */ (0,
|
|
9763
|
-
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0,
|
|
9897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
|
|
9898
|
+
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react67.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9764
9899
|
Hyperlink,
|
|
9765
9900
|
{
|
|
9766
9901
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
9767
9902
|
href: builder.getNewPageUrl(page),
|
|
9768
9903
|
children: page
|
|
9769
9904
|
}
|
|
9770
|
-
) : /* @__PURE__ */ (0,
|
|
9771
|
-
/* @__PURE__ */ (0,
|
|
9772
|
-
/* @__PURE__ */ (0,
|
|
9905
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
9906
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
9907
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9773
9908
|
Hyperlink,
|
|
9774
9909
|
{
|
|
9775
9910
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9777,7 +9912,7 @@ var DataList = (props) => {
|
|
|
9777
9912
|
children: pages - 1
|
|
9778
9913
|
}
|
|
9779
9914
|
),
|
|
9780
|
-
/* @__PURE__ */ (0,
|
|
9915
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9781
9916
|
Hyperlink,
|
|
9782
9917
|
{
|
|
9783
9918
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9785,7 +9920,7 @@ var DataList = (props) => {
|
|
|
9785
9920
|
children: pages
|
|
9786
9921
|
}
|
|
9787
9922
|
),
|
|
9788
|
-
/* @__PURE__ */ (0,
|
|
9923
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9789
9924
|
"select",
|
|
9790
9925
|
{
|
|
9791
9926
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -9797,18 +9932,18 @@ var DataList = (props) => {
|
|
|
9797
9932
|
}
|
|
9798
9933
|
},
|
|
9799
9934
|
children: [
|
|
9800
|
-
/* @__PURE__ */ (0,
|
|
9935
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { className: "", value: "", children: "Jump to" }),
|
|
9801
9936
|
Array.from(
|
|
9802
9937
|
{ length: Math.max(0, pages - 10) },
|
|
9803
9938
|
(_, index) => index + 9
|
|
9804
|
-
).map((page) => /* @__PURE__ */ (0,
|
|
9939
|
+
).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { value: page, children: page }, page))
|
|
9805
9940
|
]
|
|
9806
9941
|
}
|
|
9807
9942
|
) })
|
|
9808
9943
|
] });
|
|
9809
9944
|
} else if (showLastPages) {
|
|
9810
|
-
return /* @__PURE__ */ (0,
|
|
9811
|
-
/* @__PURE__ */ (0,
|
|
9945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
|
|
9946
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9812
9947
|
Hyperlink,
|
|
9813
9948
|
{
|
|
9814
9949
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9816,7 +9951,7 @@ var DataList = (props) => {
|
|
|
9816
9951
|
children: "1"
|
|
9817
9952
|
}
|
|
9818
9953
|
),
|
|
9819
|
-
/* @__PURE__ */ (0,
|
|
9954
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9820
9955
|
Hyperlink,
|
|
9821
9956
|
{
|
|
9822
9957
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9824,21 +9959,21 @@ var DataList = (props) => {
|
|
|
9824
9959
|
children: "2"
|
|
9825
9960
|
}
|
|
9826
9961
|
),
|
|
9827
|
-
/* @__PURE__ */ (0,
|
|
9962
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
9828
9963
|
Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
|
|
9829
|
-
(page) => /* @__PURE__ */ (0,
|
|
9964
|
+
(page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react67.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9830
9965
|
Hyperlink,
|
|
9831
9966
|
{
|
|
9832
9967
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
9833
9968
|
href: builder.getNewPageUrl(page),
|
|
9834
9969
|
children: page
|
|
9835
9970
|
}
|
|
9836
|
-
) : /* @__PURE__ */ (0,
|
|
9971
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
9837
9972
|
)
|
|
9838
9973
|
] });
|
|
9839
9974
|
} else {
|
|
9840
|
-
return /* @__PURE__ */ (0,
|
|
9841
|
-
/* @__PURE__ */ (0,
|
|
9975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
|
|
9976
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9842
9977
|
Hyperlink,
|
|
9843
9978
|
{
|
|
9844
9979
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9846,7 +9981,7 @@ var DataList = (props) => {
|
|
|
9846
9981
|
children: "1"
|
|
9847
9982
|
}
|
|
9848
9983
|
),
|
|
9849
|
-
/* @__PURE__ */ (0,
|
|
9984
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9850
9985
|
Hyperlink,
|
|
9851
9986
|
{
|
|
9852
9987
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9854,20 +9989,20 @@ var DataList = (props) => {
|
|
|
9854
9989
|
children: "2"
|
|
9855
9990
|
}
|
|
9856
9991
|
),
|
|
9857
|
-
/* @__PURE__ */ (0,
|
|
9992
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
9858
9993
|
Array.from(
|
|
9859
9994
|
{ length: 5 },
|
|
9860
9995
|
(_, index) => activePageNumber - 2 + index
|
|
9861
|
-
).map((page) => /* @__PURE__ */ (0,
|
|
9996
|
+
).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react67.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9862
9997
|
Hyperlink,
|
|
9863
9998
|
{
|
|
9864
9999
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
9865
10000
|
href: builder.getNewPageUrl(page),
|
|
9866
10001
|
children: page
|
|
9867
10002
|
}
|
|
9868
|
-
) : /* @__PURE__ */ (0,
|
|
9869
|
-
/* @__PURE__ */ (0,
|
|
9870
|
-
/* @__PURE__ */ (0,
|
|
10003
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
10004
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
10005
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9871
10006
|
Hyperlink,
|
|
9872
10007
|
{
|
|
9873
10008
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9875,7 +10010,7 @@ var DataList = (props) => {
|
|
|
9875
10010
|
children: pages - 1
|
|
9876
10011
|
}
|
|
9877
10012
|
),
|
|
9878
|
-
/* @__PURE__ */ (0,
|
|
10013
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9879
10014
|
Hyperlink,
|
|
9880
10015
|
{
|
|
9881
10016
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9883,7 +10018,7 @@ var DataList = (props) => {
|
|
|
9883
10018
|
children: pages
|
|
9884
10019
|
}
|
|
9885
10020
|
),
|
|
9886
|
-
/* @__PURE__ */ (0,
|
|
10021
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9887
10022
|
"select",
|
|
9888
10023
|
{
|
|
9889
10024
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -9895,8 +10030,8 @@ var DataList = (props) => {
|
|
|
9895
10030
|
}
|
|
9896
10031
|
},
|
|
9897
10032
|
children: [
|
|
9898
|
-
/* @__PURE__ */ (0,
|
|
9899
|
-
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0,
|
|
10033
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { value: "", children: "Jump to" }),
|
|
10034
|
+
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { value: page, children: page }, page))
|
|
9900
10035
|
]
|
|
9901
10036
|
}
|
|
9902
10037
|
) })
|
|
@@ -9904,16 +10039,16 @@ var DataList = (props) => {
|
|
|
9904
10039
|
}
|
|
9905
10040
|
}
|
|
9906
10041
|
};
|
|
9907
|
-
return /* @__PURE__ */ (0,
|
|
9908
|
-
/* @__PURE__ */ (0,
|
|
9909
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0,
|
|
10042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_react67.default.Fragment, { children: [
|
|
10043
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(ContentView_default, { isDataFound, children: [
|
|
10044
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9910
10045
|
"div",
|
|
9911
10046
|
{
|
|
9912
10047
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
9913
10048
|
children: [
|
|
9914
|
-
props.title ? /* @__PURE__ */ (0,
|
|
9915
|
-
/* @__PURE__ */ (0,
|
|
9916
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0,
|
|
10049
|
+
props.title ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", {}),
|
|
10050
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
10051
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9917
10052
|
InputControl_default,
|
|
9918
10053
|
{
|
|
9919
10054
|
name: "Search_input",
|
|
@@ -9926,7 +10061,7 @@ var DataList = (props) => {
|
|
|
9926
10061
|
}
|
|
9927
10062
|
}
|
|
9928
10063
|
),
|
|
9929
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0,
|
|
10064
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9930
10065
|
InputControl_default,
|
|
9931
10066
|
{
|
|
9932
10067
|
name: filter.name,
|
|
@@ -9941,15 +10076,15 @@ var DataList = (props) => {
|
|
|
9941
10076
|
},
|
|
9942
10077
|
filter.name
|
|
9943
10078
|
)),
|
|
9944
|
-
props.addLinkHref && /* @__PURE__ */ (0,
|
|
10079
|
+
props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9945
10080
|
Hyperlink,
|
|
9946
10081
|
{
|
|
9947
10082
|
className: "gap-1",
|
|
9948
10083
|
linkType: "Primary" /* Solid */,
|
|
9949
10084
|
href: props.addLinkHref,
|
|
9950
10085
|
children: [
|
|
9951
|
-
/* @__PURE__ */ (0,
|
|
9952
|
-
/* @__PURE__ */ (0,
|
|
10086
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
10087
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
9953
10088
|
]
|
|
9954
10089
|
}
|
|
9955
10090
|
)
|
|
@@ -9957,8 +10092,8 @@ var DataList = (props) => {
|
|
|
9957
10092
|
]
|
|
9958
10093
|
}
|
|
9959
10094
|
),
|
|
9960
|
-
/* @__PURE__ */ (0,
|
|
9961
|
-
/* @__PURE__ */ (0,
|
|
10095
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("table", { className: "w-full divide-y divide-gray-200", children: [
|
|
10096
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("tr", { children: [
|
|
9962
10097
|
props?.columns?.map((column) => {
|
|
9963
10098
|
let url = builder.getNewOrderByUrl(column.name);
|
|
9964
10099
|
let icon = "chevronUpDown";
|
|
@@ -9969,18 +10104,18 @@ var DataList = (props) => {
|
|
|
9969
10104
|
icon = "chevronUp";
|
|
9970
10105
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
9971
10106
|
}
|
|
9972
|
-
return /* @__PURE__ */ (0,
|
|
10107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9973
10108
|
"th",
|
|
9974
10109
|
{
|
|
9975
10110
|
className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
|
|
9976
|
-
children: /* @__PURE__ */ (0,
|
|
10111
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9977
10112
|
Hyperlink,
|
|
9978
10113
|
{
|
|
9979
10114
|
href: column.enableSorting ? url : void 0,
|
|
9980
10115
|
className: "!text-neutral-contrast ",
|
|
9981
|
-
children: /* @__PURE__ */ (0,
|
|
9982
|
-
/* @__PURE__ */ (0,
|
|
9983
|
-
column.enableSorting && /* @__PURE__ */ (0,
|
|
10116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: "flex items-center space-x-1", children: [
|
|
10117
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-black", children: column.label }),
|
|
10118
|
+
column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
|
|
9984
10119
|
] })
|
|
9985
10120
|
}
|
|
9986
10121
|
)
|
|
@@ -9988,25 +10123,25 @@ var DataList = (props) => {
|
|
|
9988
10123
|
column.name
|
|
9989
10124
|
);
|
|
9990
10125
|
}),
|
|
9991
|
-
props.onQuickView && /* @__PURE__ */ (0,
|
|
10126
|
+
props.onQuickView && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
|
|
9992
10127
|
] }) }),
|
|
9993
|
-
/* @__PURE__ */ (0,
|
|
10128
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
9994
10129
|
let validityClass = "";
|
|
9995
10130
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
9996
10131
|
validityClass = "bg-alert-200";
|
|
9997
10132
|
}
|
|
9998
|
-
return /* @__PURE__ */ (0,
|
|
10133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("tr", { className: validityClass, children: [
|
|
9999
10134
|
props?.columns?.map((column, colindex) => {
|
|
10000
|
-
return /* @__PURE__ */ (0,
|
|
10135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react67.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10001
10136
|
"td",
|
|
10002
10137
|
{
|
|
10003
10138
|
className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
|
|
10004
|
-
children: column.addhref === true ? /* @__PURE__ */ (0,
|
|
10139
|
+
children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10005
10140
|
Hyperlink,
|
|
10006
10141
|
{
|
|
10007
10142
|
className: "",
|
|
10008
10143
|
href: `https://${dataitem[column.name]}`,
|
|
10009
|
-
children: /* @__PURE__ */ (0,
|
|
10144
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10010
10145
|
ViewControl_default,
|
|
10011
10146
|
{
|
|
10012
10147
|
controlType: column.controlType,
|
|
@@ -10019,11 +10154,11 @@ var DataList = (props) => {
|
|
|
10019
10154
|
}
|
|
10020
10155
|
)
|
|
10021
10156
|
}
|
|
10022
|
-
) : column.showAsLink ? /* @__PURE__ */ (0,
|
|
10157
|
+
) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10023
10158
|
Hyperlink,
|
|
10024
10159
|
{
|
|
10025
10160
|
href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
|
|
10026
|
-
children: /* @__PURE__ */ (0,
|
|
10161
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10027
10162
|
ViewControl_default,
|
|
10028
10163
|
{
|
|
10029
10164
|
controlType: column.controlType,
|
|
@@ -10033,7 +10168,7 @@ var DataList = (props) => {
|
|
|
10033
10168
|
}
|
|
10034
10169
|
)
|
|
10035
10170
|
}
|
|
10036
|
-
) : /* @__PURE__ */ (0,
|
|
10171
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10037
10172
|
ViewControl_default,
|
|
10038
10173
|
{
|
|
10039
10174
|
controlType: column.controlType,
|
|
@@ -10045,7 +10180,7 @@ var DataList = (props) => {
|
|
|
10045
10180
|
}
|
|
10046
10181
|
) }, colindex);
|
|
10047
10182
|
}),
|
|
10048
|
-
props.onQuickView && /* @__PURE__ */ (0,
|
|
10183
|
+
props.onQuickView && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
10049
10184
|
"button",
|
|
10050
10185
|
{
|
|
10051
10186
|
type: "button",
|
|
@@ -10055,7 +10190,7 @@ var DataList = (props) => {
|
|
|
10055
10190
|
},
|
|
10056
10191
|
className: "inline-flex items-center gap-1.5 px-3 py-1 text-xs font-semibold rounded-md border border-neutral-300 bg-white hover:bg-neutral-100 text-neutral-800 transition-colors shadow-xs",
|
|
10057
10192
|
children: [
|
|
10058
|
-
/* @__PURE__ */ (0,
|
|
10193
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
10059
10194
|
"svg",
|
|
10060
10195
|
{
|
|
10061
10196
|
className: "w-3.5 h-3.5",
|
|
@@ -10066,22 +10201,22 @@ var DataList = (props) => {
|
|
|
10066
10201
|
strokeLinecap: "round",
|
|
10067
10202
|
strokeLinejoin: "round",
|
|
10068
10203
|
children: [
|
|
10069
|
-
/* @__PURE__ */ (0,
|
|
10070
|
-
/* @__PURE__ */ (0,
|
|
10204
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
10205
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("circle", { cx: "12", cy: "12", r: "3" })
|
|
10071
10206
|
]
|
|
10072
10207
|
}
|
|
10073
10208
|
),
|
|
10074
|
-
/* @__PURE__ */ (0,
|
|
10209
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { children: props.quickViewLabel || "Quick View" })
|
|
10075
10210
|
]
|
|
10076
10211
|
}
|
|
10077
10212
|
) })
|
|
10078
10213
|
] }, index);
|
|
10079
10214
|
}) })
|
|
10080
10215
|
] }) }),
|
|
10081
|
-
/* @__PURE__ */ (0,
|
|
10082
|
-
/* @__PURE__ */ (0,
|
|
10083
|
-
/* @__PURE__ */ (0,
|
|
10084
|
-
activePageNumber > 1 && /* @__PURE__ */ (0,
|
|
10216
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
10217
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "text-gray-700", children: label }),
|
|
10218
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex space-x-2 items-center", children: [
|
|
10219
|
+
activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10085
10220
|
Hyperlink,
|
|
10086
10221
|
{
|
|
10087
10222
|
className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -10089,9 +10224,9 @@ var DataList = (props) => {
|
|
|
10089
10224
|
children: "Prev"
|
|
10090
10225
|
}
|
|
10091
10226
|
),
|
|
10092
|
-
activePageNumber <= 1 && /* @__PURE__ */ (0,
|
|
10227
|
+
activePageNumber <= 1 && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "px-3 py-1 rounded-l-md border border-gray-300 bg-gray-200 text-gray-500 hover:bg-gray-200", children: "Prev" }),
|
|
10093
10228
|
renderPageNumbers(),
|
|
10094
|
-
activePageNumber < pages && /* @__PURE__ */ (0,
|
|
10229
|
+
activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10095
10230
|
Hyperlink,
|
|
10096
10231
|
{
|
|
10097
10232
|
className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -10099,19 +10234,19 @@ var DataList = (props) => {
|
|
|
10099
10234
|
children: "Next"
|
|
10100
10235
|
}
|
|
10101
10236
|
),
|
|
10102
|
-
activePageNumber >= pages && /* @__PURE__ */ (0,
|
|
10237
|
+
activePageNumber >= pages && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
|
|
10103
10238
|
] })
|
|
10104
10239
|
] }) })
|
|
10105
10240
|
] }),
|
|
10106
|
-
/* @__PURE__ */ (0,
|
|
10107
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0,
|
|
10241
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(NoContentView_default, { isDataFound, children: [
|
|
10242
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
10108
10243
|
"div",
|
|
10109
10244
|
{
|
|
10110
10245
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md border-b border-neutral-200`,
|
|
10111
10246
|
children: [
|
|
10112
|
-
props.title ? /* @__PURE__ */ (0,
|
|
10113
|
-
/* @__PURE__ */ (0,
|
|
10114
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0,
|
|
10247
|
+
props.title ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", {}),
|
|
10248
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
10249
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10115
10250
|
InputControl_default,
|
|
10116
10251
|
{
|
|
10117
10252
|
name: "Search_input",
|
|
@@ -10124,7 +10259,7 @@ var DataList = (props) => {
|
|
|
10124
10259
|
}
|
|
10125
10260
|
}
|
|
10126
10261
|
),
|
|
10127
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0,
|
|
10262
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10128
10263
|
InputControl_default,
|
|
10129
10264
|
{
|
|
10130
10265
|
name: filter.name,
|
|
@@ -10139,15 +10274,15 @@ var DataList = (props) => {
|
|
|
10139
10274
|
},
|
|
10140
10275
|
filter.name
|
|
10141
10276
|
)),
|
|
10142
|
-
props.addLinkHref && /* @__PURE__ */ (0,
|
|
10277
|
+
props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
10143
10278
|
Hyperlink,
|
|
10144
10279
|
{
|
|
10145
10280
|
className: "gap-1",
|
|
10146
10281
|
linkType: "Primary" /* Solid */,
|
|
10147
10282
|
href: props.addLinkHref,
|
|
10148
10283
|
children: [
|
|
10149
|
-
/* @__PURE__ */ (0,
|
|
10150
|
-
/* @__PURE__ */ (0,
|
|
10284
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
10285
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
10151
10286
|
]
|
|
10152
10287
|
}
|
|
10153
10288
|
)
|
|
@@ -10155,8 +10290,8 @@ var DataList = (props) => {
|
|
|
10155
10290
|
]
|
|
10156
10291
|
}
|
|
10157
10292
|
),
|
|
10158
|
-
/* @__PURE__ */ (0,
|
|
10159
|
-
/* @__PURE__ */ (0,
|
|
10293
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
10294
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("thead", { className: "bg-gray-50", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tr", { children: props?.columns?.map((column) => {
|
|
10160
10295
|
let url = builder.getNewOrderByUrl(column.name);
|
|
10161
10296
|
let icon = "chevronUpDown";
|
|
10162
10297
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -10166,18 +10301,18 @@ var DataList = (props) => {
|
|
|
10166
10301
|
icon = "chevronUp";
|
|
10167
10302
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
10168
10303
|
}
|
|
10169
|
-
return /* @__PURE__ */ (0,
|
|
10304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10170
10305
|
"th",
|
|
10171
10306
|
{
|
|
10172
10307
|
className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
|
|
10173
|
-
children: /* @__PURE__ */ (0,
|
|
10308
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10174
10309
|
Hyperlink,
|
|
10175
10310
|
{
|
|
10176
10311
|
href: column.enableSorting ? url : void 0,
|
|
10177
10312
|
className: "text-body-950",
|
|
10178
|
-
children: /* @__PURE__ */ (0,
|
|
10179
|
-
/* @__PURE__ */ (0,
|
|
10180
|
-
column.enableSorting && /* @__PURE__ */ (0,
|
|
10313
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: "flex items-center space-x-1", children: [
|
|
10314
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { children: column.label }),
|
|
10315
|
+
column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
|
|
10181
10316
|
] })
|
|
10182
10317
|
}
|
|
10183
10318
|
)
|
|
@@ -10185,7 +10320,7 @@ var DataList = (props) => {
|
|
|
10185
10320
|
column.name
|
|
10186
10321
|
);
|
|
10187
10322
|
}) }) }) }) }),
|
|
10188
|
-
/* @__PURE__ */ (0,
|
|
10323
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
|
|
10189
10324
|
] })
|
|
10190
10325
|
] })
|
|
10191
10326
|
] });
|
|
@@ -10198,7 +10333,7 @@ init_ServiceClient();
|
|
|
10198
10333
|
init_OdataBuilder();
|
|
10199
10334
|
init_SelectWithSearchInput();
|
|
10200
10335
|
var import_navigation4 = require("next/navigation");
|
|
10201
|
-
var
|
|
10336
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
10202
10337
|
var viewControlMap = {
|
|
10203
10338
|
number: ViewControlTypes.number,
|
|
10204
10339
|
lineText: ViewControlTypes.lineText,
|
|
@@ -10293,13 +10428,13 @@ var DataListRenderer = ({
|
|
|
10293
10428
|
isActive: landingPageUrl === pathname
|
|
10294
10429
|
};
|
|
10295
10430
|
});
|
|
10296
|
-
return /* @__PURE__ */ (0,
|
|
10431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_react68.default.Fragment, { children: [
|
|
10297
10432
|
resolvedTabs.length > 0 && // <NavigationTabsV2
|
|
10298
10433
|
// tabs={resolvedTabs}
|
|
10299
10434
|
// params={(widgetProps?.params ?? params) as Record<string, any>}
|
|
10300
10435
|
// />
|
|
10301
|
-
/* @__PURE__ */ (0,
|
|
10302
|
-
/* @__PURE__ */ (0,
|
|
10436
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
10437
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
10303
10438
|
DataList_default,
|
|
10304
10439
|
{
|
|
10305
10440
|
addLinkHref,
|
|
@@ -10356,7 +10491,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
10356
10491
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
10357
10492
|
|
|
10358
10493
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
10359
|
-
var
|
|
10494
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
10360
10495
|
var DataFormChildSection = (props) => {
|
|
10361
10496
|
const { section } = props;
|
|
10362
10497
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -10424,14 +10559,14 @@ var DataFormChildSection = (props) => {
|
|
|
10424
10559
|
childItemsToRender,
|
|
10425
10560
|
allChildItems: childItems
|
|
10426
10561
|
});
|
|
10427
|
-
return /* @__PURE__ */ (0,
|
|
10428
|
-
section.sectionTitle && /* @__PURE__ */ (0,
|
|
10429
|
-
/* @__PURE__ */ (0,
|
|
10430
|
-
/* @__PURE__ */ (0,
|
|
10431
|
-
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0,
|
|
10432
|
-
return /* @__PURE__ */ (0,
|
|
10562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react69.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
|
|
10563
|
+
section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
|
|
10564
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col justify-between gap-2", children: [
|
|
10565
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
|
|
10566
|
+
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
10567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("tr", { className: "", children: [
|
|
10433
10568
|
sectionRow.elements.map((field, index) => {
|
|
10434
|
-
return /* @__PURE__ */ (0,
|
|
10569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10435
10570
|
"th",
|
|
10436
10571
|
{
|
|
10437
10572
|
className: "py-3 font-normal text-left",
|
|
@@ -10440,21 +10575,21 @@ var DataFormChildSection = (props) => {
|
|
|
10440
10575
|
field.name
|
|
10441
10576
|
);
|
|
10442
10577
|
}),
|
|
10443
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
10578
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
|
|
10444
10579
|
] }, sectionRowIndex);
|
|
10445
10580
|
}) }),
|
|
10446
|
-
/* @__PURE__ */ (0,
|
|
10581
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
|
|
10447
10582
|
const { item, originalIndex } = visibleItem;
|
|
10448
10583
|
const rowKey = originalIndex;
|
|
10449
|
-
return /* @__PURE__ */ (0,
|
|
10584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react69.default.Fragment, { children: section.sectionRows.map(
|
|
10450
10585
|
(sectionRow, sectionRowIndex) => {
|
|
10451
|
-
return /* @__PURE__ */ (0,
|
|
10586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
10452
10587
|
"tr",
|
|
10453
10588
|
{
|
|
10454
10589
|
className: "",
|
|
10455
10590
|
children: [
|
|
10456
10591
|
sectionRow.elements.map((field, index) => {
|
|
10457
|
-
return /* @__PURE__ */ (0,
|
|
10592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "w-11/12", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10458
10593
|
InputControl_default,
|
|
10459
10594
|
{
|
|
10460
10595
|
index: filteredIndex,
|
|
@@ -10474,7 +10609,7 @@ var DataFormChildSection = (props) => {
|
|
|
10474
10609
|
}
|
|
10475
10610
|
) }) }) }, field.name);
|
|
10476
10611
|
}),
|
|
10477
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
10612
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10478
10613
|
ClientButton_default,
|
|
10479
10614
|
{
|
|
10480
10615
|
ButtonType: StyleTypes2.Hollow,
|
|
@@ -10483,7 +10618,7 @@ var DataFormChildSection = (props) => {
|
|
|
10483
10618
|
},
|
|
10484
10619
|
dataRole: "delete",
|
|
10485
10620
|
tabIndex: -1,
|
|
10486
|
-
children: /* @__PURE__ */ (0,
|
|
10621
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10487
10622
|
Icon_default,
|
|
10488
10623
|
{
|
|
10489
10624
|
className: "w-4 h-4",
|
|
@@ -10500,7 +10635,7 @@ var DataFormChildSection = (props) => {
|
|
|
10500
10635
|
) }, rowKey);
|
|
10501
10636
|
}) })
|
|
10502
10637
|
] }) }),
|
|
10503
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
10638
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10504
10639
|
ClientButton_default,
|
|
10505
10640
|
{
|
|
10506
10641
|
ButtonType: "Link" /* Link */,
|
|
@@ -10515,7 +10650,7 @@ var DataFormChildSection = (props) => {
|
|
|
10515
10650
|
var DataFormChildSection_default = DataFormChildSection;
|
|
10516
10651
|
|
|
10517
10652
|
// src/components/dataForm/DataForm.tsx
|
|
10518
|
-
var
|
|
10653
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
10519
10654
|
var DataForm = (props) => {
|
|
10520
10655
|
const formRef = (0, import_react70.useRef)(null);
|
|
10521
10656
|
console.log(props.dataItem, "dssads");
|
|
@@ -10735,19 +10870,19 @@ var DataForm = (props) => {
|
|
|
10735
10870
|
return false;
|
|
10736
10871
|
}
|
|
10737
10872
|
}
|
|
10738
|
-
return /* @__PURE__ */ (0,
|
|
10739
|
-
props.title && /* @__PURE__ */ (0,
|
|
10873
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react70.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-grow flex flex-col", children: [
|
|
10874
|
+
props.title && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "inline-flex items-center gap-2 px-6 py-3 border border-neutral-200 bg-white shadow-sm rounded-t-md", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
10740
10875
|
"div",
|
|
10741
10876
|
{
|
|
10742
10877
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
10743
10878
|
onClick: () => window.history.back(),
|
|
10744
10879
|
children: [
|
|
10745
|
-
/* @__PURE__ */ (0,
|
|
10746
|
-
/* @__PURE__ */ (0,
|
|
10880
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
|
|
10881
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
|
|
10747
10882
|
]
|
|
10748
10883
|
}
|
|
10749
10884
|
) }),
|
|
10750
|
-
/* @__PURE__ */ (0,
|
|
10885
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10751
10886
|
"form",
|
|
10752
10887
|
{
|
|
10753
10888
|
className: "group space-y-6 pb-6 overflow-y-auto",
|
|
@@ -10768,8 +10903,8 @@ var DataForm = (props) => {
|
|
|
10768
10903
|
}
|
|
10769
10904
|
}
|
|
10770
10905
|
},
|
|
10771
|
-
children: /* @__PURE__ */ (0,
|
|
10772
|
-
return /* @__PURE__ */ (0,
|
|
10906
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
|
|
10907
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react70.default.Fragment, { children: !section.isChildSection && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
|
|
10773
10908
|
section.sectionRows?.map(
|
|
10774
10909
|
(sectionRow, sectionRowIndex) => {
|
|
10775
10910
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -10780,14 +10915,14 @@ var DataForm = (props) => {
|
|
|
10780
10915
|
sectionRow.visible
|
|
10781
10916
|
);
|
|
10782
10917
|
}
|
|
10783
|
-
return /* @__PURE__ */ (0,
|
|
10784
|
-
return /* @__PURE__ */ (0,
|
|
10918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react70.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
|
|
10919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
10785
10920
|
"div",
|
|
10786
10921
|
{
|
|
10787
10922
|
className: sectionRow.grow ? "grow" : "",
|
|
10788
10923
|
children: [
|
|
10789
|
-
/* @__PURE__ */ (0,
|
|
10790
|
-
/* @__PURE__ */ (0,
|
|
10924
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: field.controlType }),
|
|
10925
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10791
10926
|
InputControl_default,
|
|
10792
10927
|
{
|
|
10793
10928
|
name: field.name,
|
|
@@ -10817,12 +10952,12 @@ var DataForm = (props) => {
|
|
|
10817
10952
|
}) }) }, sectionRowIndex);
|
|
10818
10953
|
}
|
|
10819
10954
|
),
|
|
10820
|
-
/* @__PURE__ */ (0,
|
|
10955
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: section.childSections?.map(
|
|
10821
10956
|
(childSection, childSectionIndex) => {
|
|
10822
|
-
return /* @__PURE__ */ (0,
|
|
10957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: childSection.name && evalutateCondition(
|
|
10823
10958
|
formState.inputValues,
|
|
10824
10959
|
childSection.visible
|
|
10825
|
-
) && /* @__PURE__ */ (0,
|
|
10960
|
+
) && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10826
10961
|
DataFormChildSection_default,
|
|
10827
10962
|
{
|
|
10828
10963
|
section: childSection,
|
|
@@ -10837,8 +10972,8 @@ var DataForm = (props) => {
|
|
|
10837
10972
|
}) })
|
|
10838
10973
|
}
|
|
10839
10974
|
),
|
|
10840
|
-
/* @__PURE__ */ (0,
|
|
10841
|
-
/* @__PURE__ */ (0,
|
|
10975
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
10976
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10842
10977
|
Button_default,
|
|
10843
10978
|
{
|
|
10844
10979
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -10846,7 +10981,7 @@ var DataForm = (props) => {
|
|
|
10846
10981
|
children: props.additionalActions.title
|
|
10847
10982
|
}
|
|
10848
10983
|
) }),
|
|
10849
|
-
/* @__PURE__ */ (0,
|
|
10984
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10850
10985
|
Button_default,
|
|
10851
10986
|
{
|
|
10852
10987
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -10857,7 +10992,7 @@ var DataForm = (props) => {
|
|
|
10857
10992
|
children: "Delete"
|
|
10858
10993
|
}
|
|
10859
10994
|
) }),
|
|
10860
|
-
/* @__PURE__ */ (0,
|
|
10995
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10861
10996
|
Button_default,
|
|
10862
10997
|
{
|
|
10863
10998
|
onValidate,
|
|
@@ -10875,7 +11010,7 @@ var DataForm_default = DataForm;
|
|
|
10875
11010
|
|
|
10876
11011
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
10877
11012
|
init_ServiceClient();
|
|
10878
|
-
var
|
|
11013
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
10879
11014
|
function getAction(actions, code) {
|
|
10880
11015
|
return actions?.find((a) => a.actionCode === code);
|
|
10881
11016
|
}
|
|
@@ -10901,9 +11036,9 @@ var DataFormRenderer = ({
|
|
|
10901
11036
|
"Delete"
|
|
10902
11037
|
);
|
|
10903
11038
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
10904
|
-
return /* @__PURE__ */ (0,
|
|
10905
|
-
widgetProps && /* @__PURE__ */ (0,
|
|
10906
|
-
/* @__PURE__ */ (0,
|
|
11039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex-grow flex flex-col", children: [
|
|
11040
|
+
widgetProps && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
11041
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
10907
11042
|
DataForm_default,
|
|
10908
11043
|
{
|
|
10909
11044
|
title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",
|