@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260923102653 → 0.8.1-dev.20260923125229
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/DataBindingControls-SLNZLI3I.mjs +377 -0
- package/dist/DataBindingControls-UDRT7JFF.mjs +381 -0
- package/dist/{Pagination-3SOPLEQN.mjs → Pagination-STOHS3LO.mjs} +1 -1
- package/dist/{Pagination-FEXY7ERI.mjs → Pagination-V53JCR6P.mjs} +1 -1
- package/dist/{chunk-6MO2JRIT.mjs → chunk-I3ND2ZRE.mjs} +7 -6
- package/dist/{chunk-SNDGEYWZ.mjs → chunk-K6GGVJCI.mjs} +7 -6
- package/dist/index.js +545 -431
- package/dist/index.mjs +300 -270
- package/dist/server.js +593 -479
- package/dist/server.mjs +134 -104
- package/package.json +1 -1
- package/dist/DataBindingControls-CUZ34EVI.mjs +0 -294
- package/dist/DataBindingControls-TBDJBK62.mjs +0 -298
package/dist/index.js
CHANGED
|
@@ -5262,11 +5262,12 @@ var init_IframeClient = __esm({
|
|
|
5262
5262
|
});
|
|
5263
5263
|
|
|
5264
5264
|
// src/clients/OdataBuilder.tsx
|
|
5265
|
-
var OdataBuilder;
|
|
5265
|
+
var encodeFilter, OdataBuilder;
|
|
5266
5266
|
var init_OdataBuilder = __esm({
|
|
5267
5267
|
"src/clients/OdataBuilder.tsx"() {
|
|
5268
5268
|
"use strict";
|
|
5269
5269
|
init_InputControlType();
|
|
5270
|
+
encodeFilter = (filter) => encodeURIComponent(filter);
|
|
5270
5271
|
OdataBuilder = class {
|
|
5271
5272
|
constructor(url) {
|
|
5272
5273
|
this.baseUrl = url;
|
|
@@ -5348,7 +5349,7 @@ var init_OdataBuilder = __esm({
|
|
|
5348
5349
|
}
|
|
5349
5350
|
if (obj) {
|
|
5350
5351
|
if (obj["$filter"] && obj["$filter"] !== null && obj["$filter"] !== "") {
|
|
5351
|
-
queryString = queryString + `&$filter=${obj["$filter"]}`;
|
|
5352
|
+
queryString = queryString + `&$filter=${encodeFilter(obj["$filter"])}`;
|
|
5352
5353
|
}
|
|
5353
5354
|
if (obj["$orderby"] && obj["$orderby"] !== null && obj["$orderby"] !== "") {
|
|
5354
5355
|
queryString = queryString + `&$orderby=${obj["$orderby"]}`;
|
|
@@ -5408,7 +5409,7 @@ var init_OdataBuilder = __esm({
|
|
|
5408
5409
|
getUrl() {
|
|
5409
5410
|
let url = `${this.baseUrl}?$skip=${this.skip}&$top=${this.top}&$count=true`;
|
|
5410
5411
|
if (this.filterBy !== null && this.filterBy !== "") {
|
|
5411
|
-
url = url + `&$filter=${this.filterBy}`;
|
|
5412
|
+
url = url + `&$filter=${encodeFilter(this.filterBy)}`;
|
|
5412
5413
|
}
|
|
5413
5414
|
if (this.orderBy !== null && this.orderBy !== "") {
|
|
5414
5415
|
url = url + `&$orderby=${this.orderBy}`;
|
|
@@ -5425,7 +5426,7 @@ var init_OdataBuilder = __esm({
|
|
|
5425
5426
|
getNewOrderByUrl(orderBy) {
|
|
5426
5427
|
let url = `${this.baseUrl}?$skip=${0}&$top=${this.top}&$count=true`;
|
|
5427
5428
|
if (this.filterBy !== null && this.filterBy !== "") {
|
|
5428
|
-
url = url + `&$filter=${this.filterBy}`;
|
|
5429
|
+
url = url + `&$filter=${encodeFilter(this.filterBy)}`;
|
|
5429
5430
|
}
|
|
5430
5431
|
if (this.searchTerm) {
|
|
5431
5432
|
url += `&searchTerm=${encodeURIComponent(this.searchTerm)}`;
|
|
@@ -5439,7 +5440,7 @@ var init_OdataBuilder = __esm({
|
|
|
5439
5440
|
getNewFilterUrl(filterBy) {
|
|
5440
5441
|
let url = `${this.baseUrl}?$skip=${0}&$top=${this.top}&$count=true`;
|
|
5441
5442
|
if (filterBy !== null && filterBy !== "") {
|
|
5442
|
-
url = url + `&$filter=${filterBy}`;
|
|
5443
|
+
url = url + `&$filter=${encodeFilter(filterBy)}`;
|
|
5443
5444
|
}
|
|
5444
5445
|
if (this.orderBy !== null && this.orderBy !== "") {
|
|
5445
5446
|
url = url + `&$orderby=${this.orderBy}`;
|
|
@@ -5456,7 +5457,7 @@ var init_OdataBuilder = __esm({
|
|
|
5456
5457
|
let skip = page * Constants.pagesize - Constants.pagesize;
|
|
5457
5458
|
let url = `${this.baseUrl}?$skip=${skip}&$top=${this.top}&$count=true`;
|
|
5458
5459
|
if (this.filterBy !== null && this.filterBy !== "") {
|
|
5459
|
-
url = url + `&$filter=${this.filterBy}`;
|
|
5460
|
+
url = url + `&$filter=${encodeFilter(this.filterBy)}`;
|
|
5460
5461
|
}
|
|
5461
5462
|
if (this.orderBy !== null && this.orderBy !== "") {
|
|
5462
5463
|
url = url + `&$orderby=${this.orderBy}`;
|
|
@@ -5476,7 +5477,7 @@ var init_OdataBuilder = __esm({
|
|
|
5476
5477
|
const skip = (currentPage - 1) * pageSize;
|
|
5477
5478
|
let url = `${this.baseUrl}?$skip=${skip}&$top=${pageSize}&$count=true`;
|
|
5478
5479
|
if (this.filterBy !== null && this.filterBy !== "") {
|
|
5479
|
-
url = url + `&$filter=${this.filterBy}`;
|
|
5480
|
+
url = url + `&$filter=${encodeFilter(this.filterBy)}`;
|
|
5480
5481
|
}
|
|
5481
5482
|
if (this.orderBy !== null && this.orderBy !== "") {
|
|
5482
5483
|
url = url + `&$orderby=${this.orderBy}`;
|
|
@@ -5501,7 +5502,7 @@ var Pagination_exports = {};
|
|
|
5501
5502
|
__export(Pagination_exports, {
|
|
5502
5503
|
default: () => Pagination_default
|
|
5503
5504
|
});
|
|
5504
|
-
var import_react58,
|
|
5505
|
+
var import_react58, import_jsx_runtime85, Pagination, Pagination_default;
|
|
5505
5506
|
var init_Pagination = __esm({
|
|
5506
5507
|
"src/components/Pagination.tsx"() {
|
|
5507
5508
|
"use strict";
|
|
@@ -5512,7 +5513,7 @@ var init_Pagination = __esm({
|
|
|
5512
5513
|
init_StyleTypes();
|
|
5513
5514
|
init_InputControlType();
|
|
5514
5515
|
init_Hyperlink();
|
|
5515
|
-
|
|
5516
|
+
import_jsx_runtime85 = require("react/jsx-runtime");
|
|
5516
5517
|
Pagination = (props) => {
|
|
5517
5518
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
5518
5519
|
const builder = (0, import_react58.useMemo)(() => {
|
|
@@ -5556,7 +5557,7 @@ var init_Pagination = __esm({
|
|
|
5556
5557
|
return range;
|
|
5557
5558
|
};
|
|
5558
5559
|
const paginationRange = getPaginationRange();
|
|
5559
|
-
const PageButton = ({ page, children }) => /* @__PURE__ */ (0,
|
|
5560
|
+
const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5560
5561
|
Hyperlink,
|
|
5561
5562
|
{
|
|
5562
5563
|
linkType: "Link" /* Link */,
|
|
@@ -5571,9 +5572,9 @@ var init_Pagination = __esm({
|
|
|
5571
5572
|
);
|
|
5572
5573
|
const NavigationButton = ({ page, disabled, children }) => {
|
|
5573
5574
|
if (disabled) {
|
|
5574
|
-
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 });
|
|
5575
5576
|
}
|
|
5576
|
-
return /* @__PURE__ */ (0,
|
|
5577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5577
5578
|
Hyperlink,
|
|
5578
5579
|
{
|
|
5579
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",
|
|
@@ -5583,35 +5584,35 @@ var init_Pagination = __esm({
|
|
|
5583
5584
|
);
|
|
5584
5585
|
};
|
|
5585
5586
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
5586
|
-
return /* @__PURE__ */ (0,
|
|
5587
|
-
/* @__PURE__ */ (0,
|
|
5588
|
-
/* @__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: [
|
|
5589
5590
|
"Showing ",
|
|
5590
|
-
/* @__PURE__ */ (0,
|
|
5591
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("span", { className: "font-semibold", children: [
|
|
5591
5592
|
startItem,
|
|
5592
5593
|
"-",
|
|
5593
5594
|
endItem
|
|
5594
5595
|
] }),
|
|
5595
5596
|
" ",
|
|
5596
5597
|
"out of ",
|
|
5597
|
-
/* @__PURE__ */ (0,
|
|
5598
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
5598
5599
|
" results"
|
|
5599
5600
|
] }),
|
|
5600
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
5601
|
-
/* @__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)(
|
|
5602
5603
|
NavigationButton,
|
|
5603
5604
|
{
|
|
5604
5605
|
page: activePageNumber - 1,
|
|
5605
5606
|
disabled: activePageNumber === 1,
|
|
5606
5607
|
children: [
|
|
5607
|
-
/* @__PURE__ */ (0,
|
|
5608
|
-
/* @__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" })
|
|
5609
5610
|
]
|
|
5610
5611
|
}
|
|
5611
5612
|
),
|
|
5612
5613
|
paginationRange.map((item, index) => {
|
|
5613
5614
|
if (item === "...") {
|
|
5614
|
-
return /* @__PURE__ */ (0,
|
|
5615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5615
5616
|
"span",
|
|
5616
5617
|
{
|
|
5617
5618
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
|
|
@@ -5621,23 +5622,23 @@ var init_Pagination = __esm({
|
|
|
5621
5622
|
);
|
|
5622
5623
|
}
|
|
5623
5624
|
const page = item;
|
|
5624
|
-
return /* @__PURE__ */ (0,
|
|
5625
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(PageButton, { page, children: page }, page);
|
|
5625
5626
|
}),
|
|
5626
|
-
/* @__PURE__ */ (0,
|
|
5627
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
5627
5628
|
NavigationButton,
|
|
5628
5629
|
{
|
|
5629
5630
|
page: activePageNumber + 1,
|
|
5630
5631
|
disabled: activePageNumber === totalPages,
|
|
5631
5632
|
children: [
|
|
5632
|
-
/* @__PURE__ */ (0,
|
|
5633
|
-
/* @__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" }) })
|
|
5634
5635
|
]
|
|
5635
5636
|
}
|
|
5636
5637
|
)
|
|
5637
5638
|
] }),
|
|
5638
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0,
|
|
5639
|
-
/* @__PURE__ */ (0,
|
|
5640
|
-
/* @__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)(
|
|
5641
5642
|
"input",
|
|
5642
5643
|
{
|
|
5643
5644
|
type: "number",
|
|
@@ -5658,9 +5659,9 @@ var init_Pagination = __esm({
|
|
|
5658
5659
|
) })
|
|
5659
5660
|
] })
|
|
5660
5661
|
] }),
|
|
5661
|
-
showPageSizeSelector && /* @__PURE__ */ (0,
|
|
5662
|
-
/* @__PURE__ */ (0,
|
|
5663
|
-
/* @__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)(
|
|
5664
5665
|
Hyperlink,
|
|
5665
5666
|
{
|
|
5666
5667
|
className: `
|
|
@@ -5672,7 +5673,7 @@ var init_Pagination = __esm({
|
|
|
5672
5673
|
},
|
|
5673
5674
|
size
|
|
5674
5675
|
)) }),
|
|
5675
|
-
/* @__PURE__ */ (0,
|
|
5676
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "per page" })
|
|
5676
5677
|
] }) })
|
|
5677
5678
|
] });
|
|
5678
5679
|
};
|
|
@@ -5685,7 +5686,7 @@ var DataBindingControls_exports = {};
|
|
|
5685
5686
|
__export(DataBindingControls_exports, {
|
|
5686
5687
|
default: () => DataBindingControls_default
|
|
5687
5688
|
});
|
|
5688
|
-
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;
|
|
5689
5690
|
var init_DataBindingControls = __esm({
|
|
5690
5691
|
"src/components/pageRenderingEngine/nodes/DataBindingControls.tsx"() {
|
|
5691
5692
|
"use strict";
|
|
@@ -5696,7 +5697,8 @@ var init_DataBindingControls = __esm({
|
|
|
5696
5697
|
init_InputControl();
|
|
5697
5698
|
init_InputControlType();
|
|
5698
5699
|
init_StyleTypes();
|
|
5699
|
-
|
|
5700
|
+
import_jsx_runtime86 = require("react/jsx-runtime");
|
|
5701
|
+
ACTIVE_QUERY_CONTROLS_EVENT = "data-binding-active-query-controls";
|
|
5700
5702
|
humanize = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
|
|
5701
5703
|
escapeODataString = (value) => value.replace(/'/g, "''");
|
|
5702
5704
|
parseFacetSelections = (filter) => {
|
|
@@ -5725,7 +5727,22 @@ var init_DataBindingControls = __esm({
|
|
|
5725
5727
|
}
|
|
5726
5728
|
return trimmedValue;
|
|
5727
5729
|
};
|
|
5728
|
-
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)(
|
|
5729
5746
|
"svg",
|
|
5730
5747
|
{
|
|
5731
5748
|
"aria-hidden": "true",
|
|
@@ -5735,8 +5752,15 @@ var init_DataBindingControls = __esm({
|
|
|
5735
5752
|
stroke: "currentColor",
|
|
5736
5753
|
strokeWidth: "2",
|
|
5737
5754
|
children: [
|
|
5738
|
-
/* @__PURE__ */ (0,
|
|
5739
|
-
/* @__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
|
+
)
|
|
5740
5764
|
]
|
|
5741
5765
|
}
|
|
5742
5766
|
);
|
|
@@ -5747,23 +5771,6 @@ var init_DataBindingControls = __esm({
|
|
|
5747
5771
|
value: [option.name, direction].filter(Boolean).join(" ")
|
|
5748
5772
|
};
|
|
5749
5773
|
};
|
|
5750
|
-
DUMMY_FACETS = {
|
|
5751
|
-
CategoryTitle: [
|
|
5752
|
-
{ value: "Career Readiness", count: 2 },
|
|
5753
|
-
{ value: "Student Learning", count: 2 }
|
|
5754
|
-
],
|
|
5755
|
-
Author: [
|
|
5756
|
-
{ value: "John Smith", count: 2 },
|
|
5757
|
-
{ value: "Sarah Jones", count: 1 },
|
|
5758
|
-
{ value: "Emily Brown", count: 1 }
|
|
5759
|
-
]
|
|
5760
|
-
};
|
|
5761
|
-
DUMMY_SORT_OPTIONS = [
|
|
5762
|
-
{ name: "createdDate", title: "Newest First", direction: "desc" },
|
|
5763
|
-
{ name: "createdDate", title: "Oldest First", direction: "asc" },
|
|
5764
|
-
{ name: "title", title: "Title A-Z", direction: "asc" },
|
|
5765
|
-
{ name: "title", title: "Title Z-A", direction: "desc" }
|
|
5766
|
-
];
|
|
5767
5774
|
DataBindingControls = ({
|
|
5768
5775
|
path,
|
|
5769
5776
|
query,
|
|
@@ -5775,24 +5782,56 @@ var init_DataBindingControls = __esm({
|
|
|
5775
5782
|
mode = "toolbar"
|
|
5776
5783
|
}) => {
|
|
5777
5784
|
const router = (0, import_navigation.useRouter)();
|
|
5778
|
-
const
|
|
5785
|
+
const facetGroups = Object.entries(facets ?? {}).filter(
|
|
5779
5786
|
([, values]) => Array.isArray(values) && values.length > 0
|
|
5780
5787
|
);
|
|
5781
|
-
const
|
|
5782
|
-
const
|
|
5783
|
-
|
|
5784
|
-
);
|
|
5785
|
-
const
|
|
5786
|
-
const normalizedSortOptions = resolvedSortOptions.map(normalizeSortOption).filter((option) => option.value);
|
|
5787
|
-
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);
|
|
5788
5793
|
const selectedFacetValues = parseFacetSelections(currentFilter);
|
|
5789
|
-
const currentSort = query?.["$orderby"] ?? query?.orderBy ?? "";
|
|
5790
5794
|
const currentSearch = parseODataSearch(query?.["$search"]);
|
|
5791
5795
|
const [searchText, setSearchText] = (0, import_react59.useState)(currentSearch);
|
|
5792
5796
|
const lastNavigationUrl = (0, import_react59.useRef)(null);
|
|
5793
5797
|
(0, import_react59.useEffect)(() => {
|
|
5794
5798
|
setSearchText(currentSearch);
|
|
5795
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
|
+
);
|
|
5796
5835
|
const getQueryUrl = (0, import_react59.useCallback)(
|
|
5797
5836
|
(updates) => {
|
|
5798
5837
|
const params = new URLSearchParams(query ?? {});
|
|
@@ -5805,7 +5844,9 @@ var init_DataBindingControls = __esm({
|
|
|
5805
5844
|
});
|
|
5806
5845
|
params.delete("$skip");
|
|
5807
5846
|
params.delete("skip");
|
|
5808
|
-
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("&");
|
|
5809
5850
|
return queryString ? `${path}?${queryString}` : path;
|
|
5810
5851
|
},
|
|
5811
5852
|
[path, query]
|
|
@@ -5818,6 +5859,7 @@ var init_DataBindingControls = __esm({
|
|
|
5818
5859
|
updatedSelections.delete(field);
|
|
5819
5860
|
}
|
|
5820
5861
|
const updatedFilter = buildFacetFilter(updatedSelections);
|
|
5862
|
+
syncActiveQueryControls({ filter: updatedFilter });
|
|
5821
5863
|
return getQueryUrl({
|
|
5822
5864
|
$filter: updatedFilter || void 0,
|
|
5823
5865
|
filter: void 0
|
|
@@ -5851,33 +5893,49 @@ var init_DataBindingControls = __esm({
|
|
|
5851
5893
|
);
|
|
5852
5894
|
return { isSuccessful: true };
|
|
5853
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]);
|
|
5854
5908
|
const hasFacetControls = showFacets && facetGroups.length > 0;
|
|
5855
5909
|
const hasSortControls = showSortOptions && normalizedSortOptions.length > 0;
|
|
5856
|
-
const
|
|
5910
|
+
const hasActiveFiltersOrSort = Boolean(
|
|
5911
|
+
currentFilter.trim() || currentSort.trim()
|
|
5912
|
+
);
|
|
5913
|
+
const shouldShowToolbarClearAll = hasActiveFiltersOrSort && !hasFacetControls;
|
|
5914
|
+
const shouldShowToolbar = mode === "toolbar" && (showSearchBar || hasSortControls || shouldShowToolbarClearAll);
|
|
5857
5915
|
const shouldShowFacets = mode === "facets" && hasFacetControls;
|
|
5858
5916
|
if (!shouldShowToolbar && !shouldShowFacets) {
|
|
5859
5917
|
return null;
|
|
5860
5918
|
}
|
|
5861
|
-
const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0,
|
|
5862
|
-
/* @__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)(
|
|
5863
5921
|
"button",
|
|
5864
5922
|
{
|
|
5865
5923
|
type: "button",
|
|
5866
5924
|
onClick: () => navigateWithoutReload(getFacetUrl(field)),
|
|
5867
5925
|
"aria-pressed": !selectedFacetValues.has(field),
|
|
5868
|
-
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"}`,
|
|
5869
5927
|
children: "All"
|
|
5870
5928
|
}
|
|
5871
5929
|
),
|
|
5872
5930
|
values.map((facet) => {
|
|
5873
5931
|
const isSelected = selectedFacetValues.get(field) === facet.value;
|
|
5874
|
-
return /* @__PURE__ */ (0,
|
|
5932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
5875
5933
|
"button",
|
|
5876
5934
|
{
|
|
5877
5935
|
type: "button",
|
|
5878
5936
|
onClick: () => navigateWithoutReload(getFacetUrl(field, facet.value)),
|
|
5879
5937
|
"aria-pressed": isSelected,
|
|
5880
|
-
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"}`,
|
|
5881
5939
|
children: [
|
|
5882
5940
|
facet.value,
|
|
5883
5941
|
" (",
|
|
@@ -5889,85 +5947,111 @@ var init_DataBindingControls = __esm({
|
|
|
5889
5947
|
);
|
|
5890
5948
|
})
|
|
5891
5949
|
] });
|
|
5892
|
-
return /* @__PURE__ */ (0,
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
{
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
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",
|
|
5922
6000
|
{
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
children: [
|
|
5927
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(SearchIcon, { className: "h-5 w-5" }),
|
|
5928
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: "Search" })
|
|
5929
|
-
]
|
|
6001
|
+
htmlFor: "sortOptions",
|
|
6002
|
+
className: "shrink-0 whitespace-nowrap font-medium",
|
|
6003
|
+
children: "Sort by"
|
|
5930
6004
|
}
|
|
5931
|
-
)
|
|
5932
|
-
]
|
|
5933
|
-
}
|
|
5934
|
-
),
|
|
5935
|
-
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: [
|
|
5936
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5937
|
-
"label",
|
|
5938
|
-
{
|
|
5939
|
-
htmlFor: "sortOptions",
|
|
5940
|
-
className: "shrink-0 whitespace-nowrap font-medium",
|
|
5941
|
-
children: "Sort by"
|
|
5942
|
-
}
|
|
5943
|
-
),
|
|
5944
|
-
/* @__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)(
|
|
5945
|
-
InputControl_default,
|
|
5946
|
-
{
|
|
5947
|
-
name: "sortOptions",
|
|
5948
|
-
controlType: InputControlType_default.select,
|
|
5949
|
-
value: currentSort,
|
|
5950
|
-
dataset: normalizedSortOptions,
|
|
5951
|
-
dataKeyFieldName: "value",
|
|
5952
|
-
dataTextFieldName: "label",
|
|
5953
|
-
callback: (updatedValues) => navigateWithoutReload(
|
|
5954
|
-
getQueryUrl({
|
|
5955
|
-
$orderby: updatedValues.value || void 0,
|
|
5956
|
-
orderBy: void 0
|
|
5957
|
-
})
|
|
5958
6005
|
),
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
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
|
+
);
|
|
5971
6055
|
};
|
|
5972
6056
|
DataBindingControls_default = DataBindingControls;
|
|
5973
6057
|
}
|
|
@@ -5978,13 +6062,13 @@ var Slider_exports = {};
|
|
|
5978
6062
|
__export(Slider_exports, {
|
|
5979
6063
|
default: () => Slider_default
|
|
5980
6064
|
});
|
|
5981
|
-
var import_react60,
|
|
6065
|
+
var import_react60, import_jsx_runtime87, Slider, ArrowButton, ProgressPill, Slider_default;
|
|
5982
6066
|
var init_Slider = __esm({
|
|
5983
6067
|
"src/components/Slider.tsx"() {
|
|
5984
6068
|
"use strict";
|
|
5985
6069
|
"use client";
|
|
5986
6070
|
import_react60 = __toESM(require("react"));
|
|
5987
|
-
|
|
6071
|
+
import_jsx_runtime87 = require("react/jsx-runtime");
|
|
5988
6072
|
Slider = ({
|
|
5989
6073
|
children,
|
|
5990
6074
|
columns,
|
|
@@ -6103,7 +6187,7 @@ var init_Slider = __esm({
|
|
|
6103
6187
|
if (!import_react60.default.isValidElement(child)) return null;
|
|
6104
6188
|
const childProps = child.props;
|
|
6105
6189
|
const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
|
|
6106
|
-
return /* @__PURE__ */ (0,
|
|
6190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6107
6191
|
"div",
|
|
6108
6192
|
{
|
|
6109
6193
|
className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
|
|
@@ -6115,8 +6199,8 @@ var init_Slider = __esm({
|
|
|
6115
6199
|
index
|
|
6116
6200
|
);
|
|
6117
6201
|
});
|
|
6118
|
-
return /* @__PURE__ */ (0,
|
|
6119
|
-
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)(
|
|
6120
6204
|
ProgressPill,
|
|
6121
6205
|
{
|
|
6122
6206
|
active: index === currentSlide,
|
|
@@ -6132,14 +6216,14 @@ var init_Slider = __esm({
|
|
|
6132
6216
|
},
|
|
6133
6217
|
index
|
|
6134
6218
|
)) }),
|
|
6135
|
-
/* @__PURE__ */ (0,
|
|
6219
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
6136
6220
|
"div",
|
|
6137
6221
|
{
|
|
6138
6222
|
className: `relative w-full overflow-hidden ${className}`,
|
|
6139
6223
|
onMouseEnter: handleMouseEnter,
|
|
6140
6224
|
onMouseLeave: handleMouseLeave,
|
|
6141
6225
|
children: [
|
|
6142
|
-
/* @__PURE__ */ (0,
|
|
6226
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6143
6227
|
"div",
|
|
6144
6228
|
{
|
|
6145
6229
|
className: "flex h-full",
|
|
@@ -6150,32 +6234,32 @@ var init_Slider = __esm({
|
|
|
6150
6234
|
children: slides
|
|
6151
6235
|
}
|
|
6152
6236
|
),
|
|
6153
|
-
show_arrows && /* @__PURE__ */ (0,
|
|
6154
|
-
/* @__PURE__ */ (0,
|
|
6237
|
+
show_arrows && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
|
|
6238
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6155
6239
|
ArrowButton,
|
|
6156
6240
|
{
|
|
6157
6241
|
direction: "left",
|
|
6158
6242
|
onClick: prevSlide,
|
|
6159
6243
|
visible: infinite_scroll || currentSlide > 0,
|
|
6160
6244
|
className: arrowClassName,
|
|
6161
|
-
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" }) })
|
|
6162
6246
|
}
|
|
6163
6247
|
),
|
|
6164
|
-
/* @__PURE__ */ (0,
|
|
6248
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6165
6249
|
ArrowButton,
|
|
6166
6250
|
{
|
|
6167
6251
|
direction: "right",
|
|
6168
6252
|
onClick: nextSlide,
|
|
6169
6253
|
visible: infinite_scroll || currentSlide < maxSlide,
|
|
6170
6254
|
className: arrowClassName,
|
|
6171
|
-
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" }) })
|
|
6172
6256
|
}
|
|
6173
6257
|
)
|
|
6174
6258
|
] })
|
|
6175
6259
|
]
|
|
6176
6260
|
}
|
|
6177
6261
|
),
|
|
6178
|
-
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)(
|
|
6179
6263
|
ProgressPill,
|
|
6180
6264
|
{
|
|
6181
6265
|
active: index === currentSlide,
|
|
@@ -6199,7 +6283,7 @@ var init_Slider = __esm({
|
|
|
6199
6283
|
visible,
|
|
6200
6284
|
children,
|
|
6201
6285
|
className = ""
|
|
6202
|
-
}) => /* @__PURE__ */ (0,
|
|
6286
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6203
6287
|
"button",
|
|
6204
6288
|
{
|
|
6205
6289
|
className: `
|
|
@@ -6286,7 +6370,7 @@ var init_Slider = __esm({
|
|
|
6286
6370
|
const renderProgressBar = () => {
|
|
6287
6371
|
if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
|
|
6288
6372
|
const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
|
|
6289
|
-
return /* @__PURE__ */ (0,
|
|
6373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6290
6374
|
"div",
|
|
6291
6375
|
{
|
|
6292
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`,
|
|
@@ -6298,7 +6382,7 @@ var init_Slider = __esm({
|
|
|
6298
6382
|
};
|
|
6299
6383
|
const renderCumulativeFill = () => {
|
|
6300
6384
|
if (style === "cumulative" && isFilled && !isActive) {
|
|
6301
|
-
return /* @__PURE__ */ (0,
|
|
6385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6302
6386
|
"div",
|
|
6303
6387
|
{
|
|
6304
6388
|
className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
|
|
@@ -6308,7 +6392,7 @@ var init_Slider = __esm({
|
|
|
6308
6392
|
}
|
|
6309
6393
|
return null;
|
|
6310
6394
|
};
|
|
6311
|
-
return /* @__PURE__ */ (0,
|
|
6395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
6312
6396
|
"button",
|
|
6313
6397
|
{
|
|
6314
6398
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -7852,10 +7936,39 @@ var NoDataFound = () => {
|
|
|
7852
7936
|
};
|
|
7853
7937
|
var NoDataFound_default = NoDataFound;
|
|
7854
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
|
+
|
|
7855
7968
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
7856
7969
|
init_AssetUtility();
|
|
7857
7970
|
var import_dynamic12 = __toESM(require("next/dynamic"));
|
|
7858
|
-
var
|
|
7971
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
7859
7972
|
var HlsPlayer4 = (0, import_dynamic12.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
7860
7973
|
var deviceToMediaQuery = (device) => {
|
|
7861
7974
|
switch (device) {
|
|
@@ -8011,8 +8124,8 @@ var ImageGalleryNode = (props) => {
|
|
|
8011
8124
|
right: "justify-end"
|
|
8012
8125
|
};
|
|
8013
8126
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
8014
|
-
return /* @__PURE__ */ (0,
|
|
8015
|
-
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)(
|
|
8016
8129
|
HlsPlayer4,
|
|
8017
8130
|
{
|
|
8018
8131
|
sources: hlsSources,
|
|
@@ -8027,7 +8140,7 @@ var ImageGalleryNode = (props) => {
|
|
|
8027
8140
|
styles: hlsStyles
|
|
8028
8141
|
}
|
|
8029
8142
|
) }),
|
|
8030
|
-
(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: [
|
|
8031
8144
|
DEVICE_ORDER.map((deviceKey) => {
|
|
8032
8145
|
const match = staticSources.find(
|
|
8033
8146
|
(img) => img.device === deviceKey
|
|
@@ -8043,7 +8156,7 @@ var ImageGalleryNode = (props) => {
|
|
|
8043
8156
|
if (!srcUrl) {
|
|
8044
8157
|
return null;
|
|
8045
8158
|
}
|
|
8046
|
-
return /* @__PURE__ */ (0,
|
|
8159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8047
8160
|
"source",
|
|
8048
8161
|
{
|
|
8049
8162
|
media: deviceToMediaQuery(match.device),
|
|
@@ -8068,7 +8181,7 @@ var ImageGalleryNode = (props) => {
|
|
|
8068
8181
|
if (img.borderRadius) {
|
|
8069
8182
|
styles.borderRadius = img.borderRadius;
|
|
8070
8183
|
}
|
|
8071
|
-
return /* @__PURE__ */ (0,
|
|
8184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8072
8185
|
"img",
|
|
8073
8186
|
{
|
|
8074
8187
|
loading: "lazy",
|
|
@@ -8083,7 +8196,7 @@ var ImageGalleryNode = (props) => {
|
|
|
8083
8196
|
})()
|
|
8084
8197
|
] }) : (
|
|
8085
8198
|
/* Case 2: Only device-specific images exist */
|
|
8086
|
-
/* @__PURE__ */ (0,
|
|
8199
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_jsx_runtime82.Fragment, { children: staticSources.map((img, index) => {
|
|
8087
8200
|
const resolved = resolveImage(img);
|
|
8088
8201
|
const imageUrl = resolved?.imageUrl;
|
|
8089
8202
|
if (!imageUrl) {
|
|
@@ -8110,7 +8223,7 @@ var ImageGalleryNode = (props) => {
|
|
|
8110
8223
|
default:
|
|
8111
8224
|
display = "block";
|
|
8112
8225
|
}
|
|
8113
|
-
return /* @__PURE__ */ (0,
|
|
8226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8114
8227
|
"img",
|
|
8115
8228
|
{
|
|
8116
8229
|
loading: "lazy",
|
|
@@ -8251,7 +8364,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
8251
8364
|
|
|
8252
8365
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
8253
8366
|
init_AssetUtility();
|
|
8254
|
-
var
|
|
8367
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
8255
8368
|
var getNestedValue5 = (obj, path) => {
|
|
8256
8369
|
if (!obj || !path) return void 0;
|
|
8257
8370
|
return path.split(".").reduce((current, key) => {
|
|
@@ -8282,21 +8395,21 @@ var parseDocuments = (value) => {
|
|
|
8282
8395
|
}
|
|
8283
8396
|
return [];
|
|
8284
8397
|
};
|
|
8285
|
-
var PdfIcon2 = () => /* @__PURE__ */ (0,
|
|
8398
|
+
var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8286
8399
|
"svg",
|
|
8287
8400
|
{
|
|
8288
8401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8289
8402
|
viewBox: "0 0 48 48",
|
|
8290
8403
|
className: "w-10 h-10",
|
|
8291
8404
|
children: [
|
|
8292
|
-
/* @__PURE__ */ (0,
|
|
8405
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8293
8406
|
"path",
|
|
8294
8407
|
{
|
|
8295
8408
|
fill: "#e53935",
|
|
8296
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"
|
|
8297
8410
|
}
|
|
8298
8411
|
),
|
|
8299
|
-
/* @__PURE__ */ (0,
|
|
8412
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8300
8413
|
"path",
|
|
8301
8414
|
{
|
|
8302
8415
|
fill: "#fff",
|
|
@@ -8306,55 +8419,55 @@ var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8306
8419
|
]
|
|
8307
8420
|
}
|
|
8308
8421
|
);
|
|
8309
|
-
var ExcelIcon2 = () => /* @__PURE__ */ (0,
|
|
8422
|
+
var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8310
8423
|
"svg",
|
|
8311
8424
|
{
|
|
8312
8425
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8313
8426
|
viewBox: "0 0 48 48",
|
|
8314
8427
|
className: "w-10 h-10",
|
|
8315
8428
|
children: [
|
|
8316
|
-
/* @__PURE__ */ (0,
|
|
8429
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8317
8430
|
"path",
|
|
8318
8431
|
{
|
|
8319
8432
|
fill: "#169154",
|
|
8320
8433
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
8321
8434
|
}
|
|
8322
8435
|
),
|
|
8323
|
-
/* @__PURE__ */ (0,
|
|
8436
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8324
8437
|
"path",
|
|
8325
8438
|
{
|
|
8326
8439
|
fill: "#18482a",
|
|
8327
8440
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
8328
8441
|
}
|
|
8329
8442
|
),
|
|
8330
|
-
/* @__PURE__ */ (0,
|
|
8331
|
-
/* @__PURE__ */ (0,
|
|
8332
|
-
/* @__PURE__ */ (0,
|
|
8333
|
-
/* @__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)(
|
|
8334
8447
|
"path",
|
|
8335
8448
|
{
|
|
8336
8449
|
fill: "#29c27f",
|
|
8337
8450
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
8338
8451
|
}
|
|
8339
8452
|
),
|
|
8340
|
-
/* @__PURE__ */ (0,
|
|
8453
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8341
8454
|
"path",
|
|
8342
8455
|
{
|
|
8343
8456
|
fill: "#27663f",
|
|
8344
8457
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
8345
8458
|
}
|
|
8346
8459
|
),
|
|
8347
|
-
/* @__PURE__ */ (0,
|
|
8348
|
-
/* @__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" })
|
|
8349
8462
|
] }),
|
|
8350
|
-
/* @__PURE__ */ (0,
|
|
8463
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8351
8464
|
"path",
|
|
8352
8465
|
{
|
|
8353
8466
|
fill: "#0c7238",
|
|
8354
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"
|
|
8355
8468
|
}
|
|
8356
8469
|
),
|
|
8357
|
-
/* @__PURE__ */ (0,
|
|
8470
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8358
8471
|
"path",
|
|
8359
8472
|
{
|
|
8360
8473
|
fill: "#fff",
|
|
@@ -8364,7 +8477,7 @@ var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8364
8477
|
]
|
|
8365
8478
|
}
|
|
8366
8479
|
);
|
|
8367
|
-
var WordIcon2 = () => /* @__PURE__ */ (0,
|
|
8480
|
+
var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8368
8481
|
"svg",
|
|
8369
8482
|
{
|
|
8370
8483
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8372,14 +8485,14 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8372
8485
|
className: "w-10 h-10",
|
|
8373
8486
|
baseProfile: "basic",
|
|
8374
8487
|
children: [
|
|
8375
|
-
/* @__PURE__ */ (0,
|
|
8488
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8376
8489
|
"path",
|
|
8377
8490
|
{
|
|
8378
8491
|
fill: "#283593",
|
|
8379
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"
|
|
8380
8493
|
}
|
|
8381
8494
|
),
|
|
8382
|
-
/* @__PURE__ */ (0,
|
|
8495
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8383
8496
|
"linearGradient",
|
|
8384
8497
|
{
|
|
8385
8498
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -8390,19 +8503,19 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8390
8503
|
gradientTransform: "translate(0 -339.89)",
|
|
8391
8504
|
gradientUnits: "userSpaceOnUse",
|
|
8392
8505
|
children: [
|
|
8393
|
-
/* @__PURE__ */ (0,
|
|
8394
|
-
/* @__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" })
|
|
8395
8508
|
]
|
|
8396
8509
|
}
|
|
8397
8510
|
),
|
|
8398
|
-
/* @__PURE__ */ (0,
|
|
8511
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8399
8512
|
"path",
|
|
8400
8513
|
{
|
|
8401
8514
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
8402
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"
|
|
8403
8516
|
}
|
|
8404
8517
|
),
|
|
8405
|
-
/* @__PURE__ */ (0,
|
|
8518
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8406
8519
|
"path",
|
|
8407
8520
|
{
|
|
8408
8521
|
fill: "#1e88e5",
|
|
@@ -8410,21 +8523,21 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8410
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"
|
|
8411
8524
|
}
|
|
8412
8525
|
),
|
|
8413
|
-
/* @__PURE__ */ (0,
|
|
8526
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8414
8527
|
"path",
|
|
8415
8528
|
{
|
|
8416
8529
|
fill: "#00e5ff",
|
|
8417
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"
|
|
8418
8531
|
}
|
|
8419
8532
|
),
|
|
8420
|
-
/* @__PURE__ */ (0,
|
|
8533
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8421
8534
|
"path",
|
|
8422
8535
|
{
|
|
8423
8536
|
fill: "#1565c0",
|
|
8424
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"
|
|
8425
8538
|
}
|
|
8426
8539
|
),
|
|
8427
|
-
/* @__PURE__ */ (0,
|
|
8540
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8428
8541
|
"path",
|
|
8429
8542
|
{
|
|
8430
8543
|
fill: "#fff",
|
|
@@ -8434,42 +8547,42 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8434
8547
|
]
|
|
8435
8548
|
}
|
|
8436
8549
|
);
|
|
8437
|
-
var StandardIcon2 = () => /* @__PURE__ */ (0,
|
|
8550
|
+
var StandardIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8438
8551
|
"svg",
|
|
8439
8552
|
{
|
|
8440
8553
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8441
8554
|
viewBox: "0 0 48 48",
|
|
8442
8555
|
className: "w-10 h-10",
|
|
8443
8556
|
children: [
|
|
8444
|
-
/* @__PURE__ */ (0,
|
|
8445
|
-
/* @__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" })
|
|
8446
8559
|
]
|
|
8447
8560
|
}
|
|
8448
8561
|
);
|
|
8449
|
-
var PowerPointIcon2 = () => /* @__PURE__ */ (0,
|
|
8562
|
+
var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8450
8563
|
"svg",
|
|
8451
8564
|
{
|
|
8452
8565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8453
8566
|
viewBox: "0 0 48 48",
|
|
8454
8567
|
className: "w-10 h-10",
|
|
8455
8568
|
children: [
|
|
8456
|
-
/* @__PURE__ */ (0,
|
|
8569
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8457
8570
|
"path",
|
|
8458
8571
|
{
|
|
8459
8572
|
fill: "#dc4c2c",
|
|
8460
8573
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
8461
8574
|
}
|
|
8462
8575
|
),
|
|
8463
|
-
/* @__PURE__ */ (0,
|
|
8464
|
-
/* @__PURE__ */ (0,
|
|
8465
|
-
/* @__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)(
|
|
8466
8579
|
"path",
|
|
8467
8580
|
{
|
|
8468
8581
|
fill: "#9b341f",
|
|
8469
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"
|
|
8470
8583
|
}
|
|
8471
8584
|
),
|
|
8472
|
-
/* @__PURE__ */ (0,
|
|
8585
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8473
8586
|
"path",
|
|
8474
8587
|
{
|
|
8475
8588
|
fill: "#fff",
|
|
@@ -8479,16 +8592,16 @@ var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8479
8592
|
]
|
|
8480
8593
|
}
|
|
8481
8594
|
);
|
|
8482
|
-
var TextIcon2 = () => /* @__PURE__ */ (0,
|
|
8595
|
+
var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8483
8596
|
"svg",
|
|
8484
8597
|
{
|
|
8485
8598
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8486
8599
|
viewBox: "0 0 48 48",
|
|
8487
8600
|
className: "w-10 h-10",
|
|
8488
8601
|
children: [
|
|
8489
|
-
/* @__PURE__ */ (0,
|
|
8490
|
-
/* @__PURE__ */ (0,
|
|
8491
|
-
/* @__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)(
|
|
8492
8605
|
"path",
|
|
8493
8606
|
{
|
|
8494
8607
|
fill: "#1976D2",
|
|
@@ -8498,7 +8611,7 @@ var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8498
8611
|
]
|
|
8499
8612
|
}
|
|
8500
8613
|
);
|
|
8501
|
-
var ArchiveIcon2 = () => /* @__PURE__ */ (0,
|
|
8614
|
+
var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8502
8615
|
"svg",
|
|
8503
8616
|
{
|
|
8504
8617
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8508,14 +8621,14 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8508
8621
|
version: "1.0",
|
|
8509
8622
|
className: "w-10 h-10",
|
|
8510
8623
|
children: [
|
|
8511
|
-
/* @__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)(
|
|
8512
8625
|
"path",
|
|
8513
8626
|
{
|
|
8514
8627
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
8515
8628
|
"clip-rule": "nonzero"
|
|
8516
8629
|
}
|
|
8517
8630
|
) }) }),
|
|
8518
|
-
/* @__PURE__ */ (0,
|
|
8631
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8519
8632
|
"path",
|
|
8520
8633
|
{
|
|
8521
8634
|
fill: "#ff9100",
|
|
@@ -8524,7 +8637,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8524
8637
|
"fill-rule": "nonzero"
|
|
8525
8638
|
}
|
|
8526
8639
|
) }),
|
|
8527
|
-
/* @__PURE__ */ (0,
|
|
8640
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8528
8641
|
"path",
|
|
8529
8642
|
{
|
|
8530
8643
|
fill: "#fbe9e7",
|
|
@@ -8533,7 +8646,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8533
8646
|
"fill-rule": "nonzero"
|
|
8534
8647
|
}
|
|
8535
8648
|
),
|
|
8536
|
-
/* @__PURE__ */ (0,
|
|
8649
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8537
8650
|
"path",
|
|
8538
8651
|
{
|
|
8539
8652
|
fill: "#ffe0b2",
|
|
@@ -8542,7 +8655,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8542
8655
|
"fill-rule": "nonzero"
|
|
8543
8656
|
}
|
|
8544
8657
|
),
|
|
8545
|
-
/* @__PURE__ */ (0,
|
|
8658
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8546
8659
|
"path",
|
|
8547
8660
|
{
|
|
8548
8661
|
fill: "#ffe0b2",
|
|
@@ -8551,7 +8664,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8551
8664
|
"fill-rule": "nonzero"
|
|
8552
8665
|
}
|
|
8553
8666
|
),
|
|
8554
|
-
/* @__PURE__ */ (0,
|
|
8667
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8555
8668
|
"path",
|
|
8556
8669
|
{
|
|
8557
8670
|
fill: "#ffe0b2",
|
|
@@ -8601,8 +8714,8 @@ var DocumentNode = (props) => {
|
|
|
8601
8714
|
documents = parseDocuments(props.node.documentAsset);
|
|
8602
8715
|
}
|
|
8603
8716
|
if (documents.length === 0) {
|
|
8604
|
-
return /* @__PURE__ */ (0,
|
|
8605
|
-
/* @__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)(
|
|
8606
8719
|
"svg",
|
|
8607
8720
|
{
|
|
8608
8721
|
className: "w-5 h-5",
|
|
@@ -8610,7 +8723,7 @@ var DocumentNode = (props) => {
|
|
|
8610
8723
|
stroke: "currentColor",
|
|
8611
8724
|
viewBox: "0 0 24 24",
|
|
8612
8725
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8613
|
-
children: /* @__PURE__ */ (0,
|
|
8726
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8614
8727
|
"path",
|
|
8615
8728
|
{
|
|
8616
8729
|
strokeLinecap: "round",
|
|
@@ -8621,11 +8734,11 @@ var DocumentNode = (props) => {
|
|
|
8621
8734
|
)
|
|
8622
8735
|
}
|
|
8623
8736
|
) }),
|
|
8624
|
-
/* @__PURE__ */ (0,
|
|
8625
|
-
/* @__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." })
|
|
8626
8739
|
] }) });
|
|
8627
8740
|
}
|
|
8628
|
-
return /* @__PURE__ */ (0,
|
|
8741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
8629
8742
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
8630
8743
|
props.assetBaseUrl,
|
|
8631
8744
|
doc.assetUrl
|
|
@@ -8643,16 +8756,16 @@ var DocumentNode = (props) => {
|
|
|
8643
8756
|
}
|
|
8644
8757
|
}
|
|
8645
8758
|
const { Icon: Icon2, extLabel } = getFileDetails2(documentUrl);
|
|
8646
|
-
return /* @__PURE__ */ (0,
|
|
8759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8647
8760
|
"div",
|
|
8648
8761
|
{
|
|
8649
8762
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
8650
8763
|
children: [
|
|
8651
|
-
/* @__PURE__ */ (0,
|
|
8652
|
-
/* @__PURE__ */ (0,
|
|
8653
|
-
/* @__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 }) })
|
|
8654
8767
|
] }),
|
|
8655
|
-
/* @__PURE__ */ (0,
|
|
8768
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8656
8769
|
"a",
|
|
8657
8770
|
{
|
|
8658
8771
|
href: documentUrl,
|
|
@@ -8660,7 +8773,7 @@ var DocumentNode = (props) => {
|
|
|
8660
8773
|
rel: "noopener noreferrer",
|
|
8661
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",
|
|
8662
8775
|
children: [
|
|
8663
|
-
/* @__PURE__ */ (0,
|
|
8776
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8664
8777
|
"svg",
|
|
8665
8778
|
{
|
|
8666
8779
|
className: "w-4 h-4 mr-2",
|
|
@@ -8668,7 +8781,7 @@ var DocumentNode = (props) => {
|
|
|
8668
8781
|
stroke: "currentColor",
|
|
8669
8782
|
viewBox: "0 0 24 24",
|
|
8670
8783
|
children: [
|
|
8671
|
-
/* @__PURE__ */ (0,
|
|
8784
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8672
8785
|
"path",
|
|
8673
8786
|
{
|
|
8674
8787
|
strokeLinecap: "round",
|
|
@@ -8677,7 +8790,7 @@ var DocumentNode = (props) => {
|
|
|
8677
8790
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
8678
8791
|
}
|
|
8679
8792
|
),
|
|
8680
|
-
/* @__PURE__ */ (0,
|
|
8793
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8681
8794
|
"path",
|
|
8682
8795
|
{
|
|
8683
8796
|
strokeLinecap: "round",
|
|
@@ -8703,13 +8816,13 @@ var DocumentNode_default = DocumentNode;
|
|
|
8703
8816
|
|
|
8704
8817
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
8705
8818
|
var import_dynamic13 = __toESM(require("next/dynamic"));
|
|
8706
|
-
var
|
|
8819
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
8707
8820
|
var IframeClient3 = (0, import_dynamic13.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
8708
8821
|
ssr: false
|
|
8709
8822
|
});
|
|
8710
8823
|
var GoogleMapNode = (props) => {
|
|
8711
8824
|
let src = props.node.embedUrl;
|
|
8712
|
-
return /* @__PURE__ */ (0,
|
|
8825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8713
8826
|
IframeClient3,
|
|
8714
8827
|
{
|
|
8715
8828
|
src,
|
|
@@ -8721,7 +8834,7 @@ var GoogleMapNode = (props) => {
|
|
|
8721
8834
|
var GoogleMapNode_default = GoogleMapNode;
|
|
8722
8835
|
|
|
8723
8836
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
8724
|
-
var
|
|
8837
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
8725
8838
|
var Pagination2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
|
|
8726
8839
|
var DataBindingControls2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
|
|
8727
8840
|
ssr: true
|
|
@@ -9006,7 +9119,7 @@ var DivContainer = async (props) => {
|
|
|
9006
9119
|
}
|
|
9007
9120
|
const SelectedNode = NodeTypes2[node.type];
|
|
9008
9121
|
if (!SelectedNode) return null;
|
|
9009
|
-
return /* @__PURE__ */ (0,
|
|
9122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9010
9123
|
SelectedNode,
|
|
9011
9124
|
{
|
|
9012
9125
|
node,
|
|
@@ -9098,7 +9211,7 @@ var DivContainer = async (props) => {
|
|
|
9098
9211
|
item,
|
|
9099
9212
|
idx,
|
|
9100
9213
|
props.href ? void 0 : item?.links?.view
|
|
9101
|
-
)?.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)
|
|
9102
9215
|
);
|
|
9103
9216
|
}
|
|
9104
9217
|
return props.node.children.flatMap((node, childIndex) => {
|
|
@@ -9209,21 +9322,24 @@ var DivContainer = async (props) => {
|
|
|
9209
9322
|
!!props.node.enterAnimation && "enter-animation"
|
|
9210
9323
|
].filter(Boolean).join(" ");
|
|
9211
9324
|
const isRepeatedContainer = props.node.repeatForEachItem === true || props.node.replicate === true;
|
|
9325
|
+
const hasActiveFilter = Boolean(
|
|
9326
|
+
(props.query?.["$filter"] ?? props.query?.filter)?.trim()
|
|
9327
|
+
);
|
|
9212
9328
|
const showDataBindingControls = !isRepeatedContainer && Boolean(
|
|
9213
9329
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
9214
9330
|
);
|
|
9215
9331
|
const WrapperComponent = Wrapper;
|
|
9216
|
-
const renderedContainer = /* @__PURE__ */ (0,
|
|
9332
|
+
const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9217
9333
|
WrapperComponent,
|
|
9218
9334
|
{
|
|
9219
9335
|
id: guid,
|
|
9220
9336
|
style: combinedStyles,
|
|
9221
9337
|
className: classNames || void 0,
|
|
9222
9338
|
...wrapperProps,
|
|
9223
|
-
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()
|
|
9224
9340
|
}
|
|
9225
9341
|
);
|
|
9226
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0,
|
|
9342
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9227
9343
|
Pagination2,
|
|
9228
9344
|
{
|
|
9229
9345
|
path: props.path,
|
|
@@ -9231,15 +9347,15 @@ var DivContainer = async (props) => {
|
|
|
9231
9347
|
dataset: response
|
|
9232
9348
|
}
|
|
9233
9349
|
) : null;
|
|
9234
|
-
return /* @__PURE__ */ (0,
|
|
9235
|
-
/* @__PURE__ */ (0,
|
|
9350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react61.default.Fragment, { children: [
|
|
9351
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9236
9352
|
"style",
|
|
9237
9353
|
{
|
|
9238
9354
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
9239
9355
|
}
|
|
9240
9356
|
),
|
|
9241
|
-
showDataBindingControls ? /* @__PURE__ */ (0,
|
|
9242
|
-
/* @__PURE__ */ (0,
|
|
9357
|
+
showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react61.default.Fragment, { children: [
|
|
9358
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9243
9359
|
DataBindingControls2,
|
|
9244
9360
|
{
|
|
9245
9361
|
mode: "toolbar",
|
|
@@ -9247,45 +9363,43 @@ var DivContainer = async (props) => {
|
|
|
9247
9363
|
query: props.query,
|
|
9248
9364
|
facets: response?.facets,
|
|
9249
9365
|
sortOptions: response?.sortOptions,
|
|
9366
|
+
showFacets: dataBindingProperties?.showFacets,
|
|
9250
9367
|
showSortOptions: dataBindingProperties?.showSortOptions,
|
|
9251
9368
|
showSearchBar: dataBindingProperties?.showSearchBar
|
|
9252
9369
|
}
|
|
9253
9370
|
),
|
|
9254
|
-
/* @__PURE__ */ (0,
|
|
9371
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
9255
9372
|
"div",
|
|
9256
9373
|
{
|
|
9257
9374
|
className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
|
|
9258
9375
|
children: [
|
|
9259
|
-
/* @__PURE__ */ (0,
|
|
9376
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "min-w-0", children: [
|
|
9260
9377
|
renderedContainer,
|
|
9261
9378
|
paginationControl
|
|
9262
9379
|
] }),
|
|
9263
|
-
dataBindingProperties?.showFacets && /* @__PURE__ */ (0,
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
}
|
|
9274
|
-
)
|
|
9275
|
-
] })
|
|
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
|
+
) })
|
|
9276
9390
|
]
|
|
9277
9391
|
}
|
|
9278
9392
|
)
|
|
9279
|
-
] }) : /* @__PURE__ */ (0,
|
|
9393
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react61.default.Fragment, { children: [
|
|
9280
9394
|
renderedContainer,
|
|
9281
|
-
paginationControl && /* @__PURE__ */ (0,
|
|
9395
|
+
paginationControl && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: paginationControl })
|
|
9282
9396
|
] })
|
|
9283
9397
|
] });
|
|
9284
9398
|
};
|
|
9285
9399
|
var DivContainer_default = DivContainer;
|
|
9286
9400
|
|
|
9287
9401
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
9288
|
-
var
|
|
9402
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
9289
9403
|
var NodeTypes = {
|
|
9290
9404
|
["paragraph"]: ParagraphNode_default,
|
|
9291
9405
|
["heading"]: HeadingNode_default,
|
|
@@ -9323,14 +9437,14 @@ var PageBodyRenderer = (props) => {
|
|
|
9323
9437
|
}
|
|
9324
9438
|
return true;
|
|
9325
9439
|
};
|
|
9326
|
-
return /* @__PURE__ */ (0,
|
|
9440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
9327
9441
|
{
|
|
9328
9442
|
}
|
|
9329
9443
|
const SelectedNode = NodeTypes[node.type];
|
|
9330
9444
|
if (!shouldRenderNode(node)) {
|
|
9331
9445
|
return null;
|
|
9332
9446
|
}
|
|
9333
|
-
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)(
|
|
9334
9448
|
SelectedNode,
|
|
9335
9449
|
{
|
|
9336
9450
|
node,
|
|
@@ -9346,7 +9460,7 @@ var PageBodyRenderer = (props) => {
|
|
|
9346
9460
|
device: props.device,
|
|
9347
9461
|
widgetRenderer: props.widgetRenderer
|
|
9348
9462
|
}
|
|
9349
|
-
) }) : /* @__PURE__ */ (0,
|
|
9463
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9350
9464
|
SelectedNode,
|
|
9351
9465
|
{
|
|
9352
9466
|
node,
|
|
@@ -9417,7 +9531,7 @@ function EnterAnimationHydrator() {
|
|
|
9417
9531
|
// src/components/Toast.tsx
|
|
9418
9532
|
var import_react64 = require("react");
|
|
9419
9533
|
init_ToastService();
|
|
9420
|
-
var
|
|
9534
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
9421
9535
|
var Toast = () => {
|
|
9422
9536
|
const [showToast, setShowToast] = (0, import_react64.useState)(false);
|
|
9423
9537
|
const [message, setMessage] = (0, import_react64.useState)("");
|
|
@@ -9451,8 +9565,8 @@ var Toast = () => {
|
|
|
9451
9565
|
});
|
|
9452
9566
|
};
|
|
9453
9567
|
}, [closeToast, showMessage]);
|
|
9454
|
-
return /* @__PURE__ */ (0,
|
|
9455
|
-
/* @__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)(
|
|
9456
9570
|
"span",
|
|
9457
9571
|
{
|
|
9458
9572
|
className: "font-medium text-inherit text-sm",
|
|
@@ -9460,7 +9574,7 @@ var Toast = () => {
|
|
|
9460
9574
|
children: message
|
|
9461
9575
|
}
|
|
9462
9576
|
),
|
|
9463
|
-
/* @__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)(
|
|
9464
9578
|
"svg",
|
|
9465
9579
|
{
|
|
9466
9580
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9468,7 +9582,7 @@ var Toast = () => {
|
|
|
9468
9582
|
fill: "none",
|
|
9469
9583
|
viewBox: "0 0 24 24",
|
|
9470
9584
|
stroke: "currentColor",
|
|
9471
|
-
children: /* @__PURE__ */ (0,
|
|
9585
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
|
|
9472
9586
|
}
|
|
9473
9587
|
) })
|
|
9474
9588
|
] }) }) });
|
|
@@ -9497,7 +9611,7 @@ init_RadioInput();
|
|
|
9497
9611
|
// src/components/NavigationTabsV2.tsx
|
|
9498
9612
|
var import_link3 = __toESM(require("next/link"));
|
|
9499
9613
|
var import_navigation2 = require("next/navigation");
|
|
9500
|
-
var
|
|
9614
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
9501
9615
|
function resolveRoutePlaceholders(route, params) {
|
|
9502
9616
|
return route.replace(/\{([^}]+)\}/g, (match, key) => {
|
|
9503
9617
|
const value = params[key];
|
|
@@ -9522,8 +9636,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
9522
9636
|
isActive: tab.isActive
|
|
9523
9637
|
})) || [];
|
|
9524
9638
|
if (mappedTabs.length === 0) return null;
|
|
9525
|
-
return /* @__PURE__ */ (0,
|
|
9526
|
-
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)(
|
|
9527
9641
|
"div",
|
|
9528
9642
|
{
|
|
9529
9643
|
className: `text-sm font-medium border-b-2 px-6 py-2 transition
|
|
@@ -9542,9 +9656,9 @@ var import_navigation3 = require("next/navigation");
|
|
|
9542
9656
|
|
|
9543
9657
|
// src/components/dataForm/NoContentView.tsx
|
|
9544
9658
|
var import_react65 = __toESM(require("react"));
|
|
9545
|
-
var
|
|
9659
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
9546
9660
|
var NoContentView = (props) => {
|
|
9547
|
-
return /* @__PURE__ */ (0,
|
|
9661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react65.default.Fragment, { children: props.isDataFound === false && props.children });
|
|
9548
9662
|
};
|
|
9549
9663
|
var NoContentView_default = NoContentView;
|
|
9550
9664
|
|
|
@@ -9553,38 +9667,38 @@ init_InputControlType();
|
|
|
9553
9667
|
|
|
9554
9668
|
// src/components/dataForm/ContentView.tsx
|
|
9555
9669
|
var import_react66 = __toESM(require("react"));
|
|
9556
|
-
var
|
|
9670
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
9557
9671
|
var ContentView = (props) => {
|
|
9558
|
-
return /* @__PURE__ */ (0,
|
|
9559
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
9560
|
-
/* @__PURE__ */ (0,
|
|
9561
|
-
/* @__PURE__ */ (0,
|
|
9562
|
-
/* @__PURE__ */ (0,
|
|
9563
|
-
/* @__PURE__ */ (0,
|
|
9564
|
-
/* @__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" })
|
|
9565
9679
|
] })
|
|
9566
9680
|
] }),
|
|
9567
|
-
/* @__PURE__ */ (0,
|
|
9568
|
-
/* @__PURE__ */ (0,
|
|
9569
|
-
/* @__PURE__ */ (0,
|
|
9570
|
-
/* @__PURE__ */ (0,
|
|
9571
|
-
/* @__PURE__ */ (0,
|
|
9572
|
-
/* @__PURE__ */ (0,
|
|
9573
|
-
/* @__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" })
|
|
9574
9688
|
] }),
|
|
9575
|
-
/* @__PURE__ */ (0,
|
|
9576
|
-
/* @__PURE__ */ (0,
|
|
9577
|
-
/* @__PURE__ */ (0,
|
|
9578
|
-
/* @__PURE__ */ (0,
|
|
9579
|
-
/* @__PURE__ */ (0,
|
|
9580
|
-
/* @__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" })
|
|
9581
9695
|
] }),
|
|
9582
|
-
/* @__PURE__ */ (0,
|
|
9583
|
-
/* @__PURE__ */ (0,
|
|
9584
|
-
/* @__PURE__ */ (0,
|
|
9585
|
-
/* @__PURE__ */ (0,
|
|
9586
|
-
/* @__PURE__ */ (0,
|
|
9587
|
-
/* @__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" })
|
|
9588
9702
|
] })
|
|
9589
9703
|
] })
|
|
9590
9704
|
] }) }),
|
|
@@ -9644,7 +9758,7 @@ function FormReducer(state, action) {
|
|
|
9644
9758
|
var FormReducer_default = FormReducer;
|
|
9645
9759
|
|
|
9646
9760
|
// src/components/dataForm/DataList.tsx
|
|
9647
|
-
var
|
|
9761
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
9648
9762
|
var DataList = (props) => {
|
|
9649
9763
|
const router = (0, import_navigation3.useRouter)();
|
|
9650
9764
|
let builder = new OdataBuilder(props.path);
|
|
@@ -9685,7 +9799,7 @@ var DataList = (props) => {
|
|
|
9685
9799
|
if (path.includes(".")) {
|
|
9686
9800
|
return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
|
|
9687
9801
|
} else if (Array.isArray(obj[path])) {
|
|
9688
|
-
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));
|
|
9689
9803
|
} else {
|
|
9690
9804
|
return obj[path];
|
|
9691
9805
|
}
|
|
@@ -9767,30 +9881,30 @@ var DataList = (props) => {
|
|
|
9767
9881
|
const renderPageNumbers = () => {
|
|
9768
9882
|
if (pages <= 10) {
|
|
9769
9883
|
return Array.from({ length: pages }, (_, index) => index + 1).map(
|
|
9770
|
-
(page) => /* @__PURE__ */ (0,
|
|
9884
|
+
(page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react67.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9771
9885
|
Hyperlink,
|
|
9772
9886
|
{
|
|
9773
9887
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
9774
9888
|
href: builder.getNewPageUrl(page),
|
|
9775
9889
|
children: page
|
|
9776
9890
|
}
|
|
9777
|
-
) : /* @__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)
|
|
9778
9892
|
);
|
|
9779
9893
|
} else {
|
|
9780
9894
|
const showFirstPages = activePageNumber <= 5;
|
|
9781
9895
|
const showLastPages = activePageNumber > pages - 5;
|
|
9782
9896
|
if (showFirstPages) {
|
|
9783
|
-
return /* @__PURE__ */ (0,
|
|
9784
|
-
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)(
|
|
9785
9899
|
Hyperlink,
|
|
9786
9900
|
{
|
|
9787
9901
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
9788
9902
|
href: builder.getNewPageUrl(page),
|
|
9789
9903
|
children: page
|
|
9790
9904
|
}
|
|
9791
|
-
) : /* @__PURE__ */ (0,
|
|
9792
|
-
/* @__PURE__ */ (0,
|
|
9793
|
-
/* @__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)(
|
|
9794
9908
|
Hyperlink,
|
|
9795
9909
|
{
|
|
9796
9910
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9798,7 +9912,7 @@ var DataList = (props) => {
|
|
|
9798
9912
|
children: pages - 1
|
|
9799
9913
|
}
|
|
9800
9914
|
),
|
|
9801
|
-
/* @__PURE__ */ (0,
|
|
9915
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9802
9916
|
Hyperlink,
|
|
9803
9917
|
{
|
|
9804
9918
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9806,7 +9920,7 @@ var DataList = (props) => {
|
|
|
9806
9920
|
children: pages
|
|
9807
9921
|
}
|
|
9808
9922
|
),
|
|
9809
|
-
/* @__PURE__ */ (0,
|
|
9923
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9810
9924
|
"select",
|
|
9811
9925
|
{
|
|
9812
9926
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -9818,18 +9932,18 @@ var DataList = (props) => {
|
|
|
9818
9932
|
}
|
|
9819
9933
|
},
|
|
9820
9934
|
children: [
|
|
9821
|
-
/* @__PURE__ */ (0,
|
|
9935
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { className: "", value: "", children: "Jump to" }),
|
|
9822
9936
|
Array.from(
|
|
9823
9937
|
{ length: Math.max(0, pages - 10) },
|
|
9824
9938
|
(_, index) => index + 9
|
|
9825
|
-
).map((page) => /* @__PURE__ */ (0,
|
|
9939
|
+
).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { value: page, children: page }, page))
|
|
9826
9940
|
]
|
|
9827
9941
|
}
|
|
9828
9942
|
) })
|
|
9829
9943
|
] });
|
|
9830
9944
|
} else if (showLastPages) {
|
|
9831
|
-
return /* @__PURE__ */ (0,
|
|
9832
|
-
/* @__PURE__ */ (0,
|
|
9945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
|
|
9946
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9833
9947
|
Hyperlink,
|
|
9834
9948
|
{
|
|
9835
9949
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9837,7 +9951,7 @@ var DataList = (props) => {
|
|
|
9837
9951
|
children: "1"
|
|
9838
9952
|
}
|
|
9839
9953
|
),
|
|
9840
|
-
/* @__PURE__ */ (0,
|
|
9954
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9841
9955
|
Hyperlink,
|
|
9842
9956
|
{
|
|
9843
9957
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9845,21 +9959,21 @@ var DataList = (props) => {
|
|
|
9845
9959
|
children: "2"
|
|
9846
9960
|
}
|
|
9847
9961
|
),
|
|
9848
|
-
/* @__PURE__ */ (0,
|
|
9962
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
9849
9963
|
Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
|
|
9850
|
-
(page) => /* @__PURE__ */ (0,
|
|
9964
|
+
(page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react67.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9851
9965
|
Hyperlink,
|
|
9852
9966
|
{
|
|
9853
9967
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
9854
9968
|
href: builder.getNewPageUrl(page),
|
|
9855
9969
|
children: page
|
|
9856
9970
|
}
|
|
9857
|
-
) : /* @__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)
|
|
9858
9972
|
)
|
|
9859
9973
|
] });
|
|
9860
9974
|
} else {
|
|
9861
|
-
return /* @__PURE__ */ (0,
|
|
9862
|
-
/* @__PURE__ */ (0,
|
|
9975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
|
|
9976
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9863
9977
|
Hyperlink,
|
|
9864
9978
|
{
|
|
9865
9979
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9867,7 +9981,7 @@ var DataList = (props) => {
|
|
|
9867
9981
|
children: "1"
|
|
9868
9982
|
}
|
|
9869
9983
|
),
|
|
9870
|
-
/* @__PURE__ */ (0,
|
|
9984
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9871
9985
|
Hyperlink,
|
|
9872
9986
|
{
|
|
9873
9987
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9875,20 +9989,20 @@ var DataList = (props) => {
|
|
|
9875
9989
|
children: "2"
|
|
9876
9990
|
}
|
|
9877
9991
|
),
|
|
9878
|
-
/* @__PURE__ */ (0,
|
|
9992
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
9879
9993
|
Array.from(
|
|
9880
9994
|
{ length: 5 },
|
|
9881
9995
|
(_, index) => activePageNumber - 2 + index
|
|
9882
|
-
).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)(
|
|
9883
9997
|
Hyperlink,
|
|
9884
9998
|
{
|
|
9885
9999
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
9886
10000
|
href: builder.getNewPageUrl(page),
|
|
9887
10001
|
children: page
|
|
9888
10002
|
}
|
|
9889
|
-
) : /* @__PURE__ */ (0,
|
|
9890
|
-
/* @__PURE__ */ (0,
|
|
9891
|
-
/* @__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)(
|
|
9892
10006
|
Hyperlink,
|
|
9893
10007
|
{
|
|
9894
10008
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9896,7 +10010,7 @@ var DataList = (props) => {
|
|
|
9896
10010
|
children: pages - 1
|
|
9897
10011
|
}
|
|
9898
10012
|
),
|
|
9899
|
-
/* @__PURE__ */ (0,
|
|
10013
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9900
10014
|
Hyperlink,
|
|
9901
10015
|
{
|
|
9902
10016
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9904,7 +10018,7 @@ var DataList = (props) => {
|
|
|
9904
10018
|
children: pages
|
|
9905
10019
|
}
|
|
9906
10020
|
),
|
|
9907
|
-
/* @__PURE__ */ (0,
|
|
10021
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9908
10022
|
"select",
|
|
9909
10023
|
{
|
|
9910
10024
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -9916,8 +10030,8 @@ var DataList = (props) => {
|
|
|
9916
10030
|
}
|
|
9917
10031
|
},
|
|
9918
10032
|
children: [
|
|
9919
|
-
/* @__PURE__ */ (0,
|
|
9920
|
-
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))
|
|
9921
10035
|
]
|
|
9922
10036
|
}
|
|
9923
10037
|
) })
|
|
@@ -9925,16 +10039,16 @@ var DataList = (props) => {
|
|
|
9925
10039
|
}
|
|
9926
10040
|
}
|
|
9927
10041
|
};
|
|
9928
|
-
return /* @__PURE__ */ (0,
|
|
9929
|
-
/* @__PURE__ */ (0,
|
|
9930
|
-
(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)(
|
|
9931
10045
|
"div",
|
|
9932
10046
|
{
|
|
9933
10047
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
9934
10048
|
children: [
|
|
9935
|
-
props.title ? /* @__PURE__ */ (0,
|
|
9936
|
-
/* @__PURE__ */ (0,
|
|
9937
|
-
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)(
|
|
9938
10052
|
InputControl_default,
|
|
9939
10053
|
{
|
|
9940
10054
|
name: "Search_input",
|
|
@@ -9947,7 +10061,7 @@ var DataList = (props) => {
|
|
|
9947
10061
|
}
|
|
9948
10062
|
}
|
|
9949
10063
|
),
|
|
9950
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0,
|
|
10064
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9951
10065
|
InputControl_default,
|
|
9952
10066
|
{
|
|
9953
10067
|
name: filter.name,
|
|
@@ -9962,15 +10076,15 @@ var DataList = (props) => {
|
|
|
9962
10076
|
},
|
|
9963
10077
|
filter.name
|
|
9964
10078
|
)),
|
|
9965
|
-
props.addLinkHref && /* @__PURE__ */ (0,
|
|
10079
|
+
props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9966
10080
|
Hyperlink,
|
|
9967
10081
|
{
|
|
9968
10082
|
className: "gap-1",
|
|
9969
10083
|
linkType: "Primary" /* Solid */,
|
|
9970
10084
|
href: props.addLinkHref,
|
|
9971
10085
|
children: [
|
|
9972
|
-
/* @__PURE__ */ (0,
|
|
9973
|
-
/* @__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" })
|
|
9974
10088
|
]
|
|
9975
10089
|
}
|
|
9976
10090
|
)
|
|
@@ -9978,8 +10092,8 @@ var DataList = (props) => {
|
|
|
9978
10092
|
]
|
|
9979
10093
|
}
|
|
9980
10094
|
),
|
|
9981
|
-
/* @__PURE__ */ (0,
|
|
9982
|
-
/* @__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: [
|
|
9983
10097
|
props?.columns?.map((column) => {
|
|
9984
10098
|
let url = builder.getNewOrderByUrl(column.name);
|
|
9985
10099
|
let icon = "chevronUpDown";
|
|
@@ -9990,18 +10104,18 @@ var DataList = (props) => {
|
|
|
9990
10104
|
icon = "chevronUp";
|
|
9991
10105
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
9992
10106
|
}
|
|
9993
|
-
return /* @__PURE__ */ (0,
|
|
10107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9994
10108
|
"th",
|
|
9995
10109
|
{
|
|
9996
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" : ""),
|
|
9997
|
-
children: /* @__PURE__ */ (0,
|
|
10111
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9998
10112
|
Hyperlink,
|
|
9999
10113
|
{
|
|
10000
10114
|
href: column.enableSorting ? url : void 0,
|
|
10001
10115
|
className: "!text-neutral-contrast ",
|
|
10002
|
-
children: /* @__PURE__ */ (0,
|
|
10003
|
-
/* @__PURE__ */ (0,
|
|
10004
|
-
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 })
|
|
10005
10119
|
] })
|
|
10006
10120
|
}
|
|
10007
10121
|
)
|
|
@@ -10009,25 +10123,25 @@ var DataList = (props) => {
|
|
|
10009
10123
|
column.name
|
|
10010
10124
|
);
|
|
10011
10125
|
}),
|
|
10012
|
-
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" })
|
|
10013
10127
|
] }) }),
|
|
10014
|
-
/* @__PURE__ */ (0,
|
|
10128
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
10015
10129
|
let validityClass = "";
|
|
10016
10130
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
10017
10131
|
validityClass = "bg-alert-200";
|
|
10018
10132
|
}
|
|
10019
|
-
return /* @__PURE__ */ (0,
|
|
10133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("tr", { className: validityClass, children: [
|
|
10020
10134
|
props?.columns?.map((column, colindex) => {
|
|
10021
|
-
return /* @__PURE__ */ (0,
|
|
10135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react67.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10022
10136
|
"td",
|
|
10023
10137
|
{
|
|
10024
10138
|
className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
|
|
10025
|
-
children: column.addhref === true ? /* @__PURE__ */ (0,
|
|
10139
|
+
children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10026
10140
|
Hyperlink,
|
|
10027
10141
|
{
|
|
10028
10142
|
className: "",
|
|
10029
10143
|
href: `https://${dataitem[column.name]}`,
|
|
10030
|
-
children: /* @__PURE__ */ (0,
|
|
10144
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10031
10145
|
ViewControl_default,
|
|
10032
10146
|
{
|
|
10033
10147
|
controlType: column.controlType,
|
|
@@ -10040,11 +10154,11 @@ var DataList = (props) => {
|
|
|
10040
10154
|
}
|
|
10041
10155
|
)
|
|
10042
10156
|
}
|
|
10043
|
-
) : column.showAsLink ? /* @__PURE__ */ (0,
|
|
10157
|
+
) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10044
10158
|
Hyperlink,
|
|
10045
10159
|
{
|
|
10046
10160
|
href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
|
|
10047
|
-
children: /* @__PURE__ */ (0,
|
|
10161
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10048
10162
|
ViewControl_default,
|
|
10049
10163
|
{
|
|
10050
10164
|
controlType: column.controlType,
|
|
@@ -10054,7 +10168,7 @@ var DataList = (props) => {
|
|
|
10054
10168
|
}
|
|
10055
10169
|
)
|
|
10056
10170
|
}
|
|
10057
|
-
) : /* @__PURE__ */ (0,
|
|
10171
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10058
10172
|
ViewControl_default,
|
|
10059
10173
|
{
|
|
10060
10174
|
controlType: column.controlType,
|
|
@@ -10066,7 +10180,7 @@ var DataList = (props) => {
|
|
|
10066
10180
|
}
|
|
10067
10181
|
) }, colindex);
|
|
10068
10182
|
}),
|
|
10069
|
-
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)(
|
|
10070
10184
|
"button",
|
|
10071
10185
|
{
|
|
10072
10186
|
type: "button",
|
|
@@ -10076,7 +10190,7 @@ var DataList = (props) => {
|
|
|
10076
10190
|
},
|
|
10077
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",
|
|
10078
10192
|
children: [
|
|
10079
|
-
/* @__PURE__ */ (0,
|
|
10193
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
10080
10194
|
"svg",
|
|
10081
10195
|
{
|
|
10082
10196
|
className: "w-3.5 h-3.5",
|
|
@@ -10087,22 +10201,22 @@ var DataList = (props) => {
|
|
|
10087
10201
|
strokeLinecap: "round",
|
|
10088
10202
|
strokeLinejoin: "round",
|
|
10089
10203
|
children: [
|
|
10090
|
-
/* @__PURE__ */ (0,
|
|
10091
|
-
/* @__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" })
|
|
10092
10206
|
]
|
|
10093
10207
|
}
|
|
10094
10208
|
),
|
|
10095
|
-
/* @__PURE__ */ (0,
|
|
10209
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { children: props.quickViewLabel || "Quick View" })
|
|
10096
10210
|
]
|
|
10097
10211
|
}
|
|
10098
10212
|
) })
|
|
10099
10213
|
] }, index);
|
|
10100
10214
|
}) })
|
|
10101
10215
|
] }) }),
|
|
10102
|
-
/* @__PURE__ */ (0,
|
|
10103
|
-
/* @__PURE__ */ (0,
|
|
10104
|
-
/* @__PURE__ */ (0,
|
|
10105
|
-
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)(
|
|
10106
10220
|
Hyperlink,
|
|
10107
10221
|
{
|
|
10108
10222
|
className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -10110,9 +10224,9 @@ var DataList = (props) => {
|
|
|
10110
10224
|
children: "Prev"
|
|
10111
10225
|
}
|
|
10112
10226
|
),
|
|
10113
|
-
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" }),
|
|
10114
10228
|
renderPageNumbers(),
|
|
10115
|
-
activePageNumber < pages && /* @__PURE__ */ (0,
|
|
10229
|
+
activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10116
10230
|
Hyperlink,
|
|
10117
10231
|
{
|
|
10118
10232
|
className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -10120,19 +10234,19 @@ var DataList = (props) => {
|
|
|
10120
10234
|
children: "Next"
|
|
10121
10235
|
}
|
|
10122
10236
|
),
|
|
10123
|
-
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" })
|
|
10124
10238
|
] })
|
|
10125
10239
|
] }) })
|
|
10126
10240
|
] }),
|
|
10127
|
-
/* @__PURE__ */ (0,
|
|
10128
|
-
(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)(
|
|
10129
10243
|
"div",
|
|
10130
10244
|
{
|
|
10131
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`,
|
|
10132
10246
|
children: [
|
|
10133
|
-
props.title ? /* @__PURE__ */ (0,
|
|
10134
|
-
/* @__PURE__ */ (0,
|
|
10135
|
-
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)(
|
|
10136
10250
|
InputControl_default,
|
|
10137
10251
|
{
|
|
10138
10252
|
name: "Search_input",
|
|
@@ -10145,7 +10259,7 @@ var DataList = (props) => {
|
|
|
10145
10259
|
}
|
|
10146
10260
|
}
|
|
10147
10261
|
),
|
|
10148
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0,
|
|
10262
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10149
10263
|
InputControl_default,
|
|
10150
10264
|
{
|
|
10151
10265
|
name: filter.name,
|
|
@@ -10160,15 +10274,15 @@ var DataList = (props) => {
|
|
|
10160
10274
|
},
|
|
10161
10275
|
filter.name
|
|
10162
10276
|
)),
|
|
10163
|
-
props.addLinkHref && /* @__PURE__ */ (0,
|
|
10277
|
+
props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
10164
10278
|
Hyperlink,
|
|
10165
10279
|
{
|
|
10166
10280
|
className: "gap-1",
|
|
10167
10281
|
linkType: "Primary" /* Solid */,
|
|
10168
10282
|
href: props.addLinkHref,
|
|
10169
10283
|
children: [
|
|
10170
|
-
/* @__PURE__ */ (0,
|
|
10171
|
-
/* @__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" })
|
|
10172
10286
|
]
|
|
10173
10287
|
}
|
|
10174
10288
|
)
|
|
@@ -10176,8 +10290,8 @@ var DataList = (props) => {
|
|
|
10176
10290
|
]
|
|
10177
10291
|
}
|
|
10178
10292
|
),
|
|
10179
|
-
/* @__PURE__ */ (0,
|
|
10180
|
-
/* @__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) => {
|
|
10181
10295
|
let url = builder.getNewOrderByUrl(column.name);
|
|
10182
10296
|
let icon = "chevronUpDown";
|
|
10183
10297
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -10187,18 +10301,18 @@ var DataList = (props) => {
|
|
|
10187
10301
|
icon = "chevronUp";
|
|
10188
10302
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
10189
10303
|
}
|
|
10190
|
-
return /* @__PURE__ */ (0,
|
|
10304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10191
10305
|
"th",
|
|
10192
10306
|
{
|
|
10193
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" : ""),
|
|
10194
|
-
children: /* @__PURE__ */ (0,
|
|
10308
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10195
10309
|
Hyperlink,
|
|
10196
10310
|
{
|
|
10197
10311
|
href: column.enableSorting ? url : void 0,
|
|
10198
10312
|
className: "text-body-950",
|
|
10199
|
-
children: /* @__PURE__ */ (0,
|
|
10200
|
-
/* @__PURE__ */ (0,
|
|
10201
|
-
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 })
|
|
10202
10316
|
] })
|
|
10203
10317
|
}
|
|
10204
10318
|
)
|
|
@@ -10206,7 +10320,7 @@ var DataList = (props) => {
|
|
|
10206
10320
|
column.name
|
|
10207
10321
|
);
|
|
10208
10322
|
}) }) }) }) }),
|
|
10209
|
-
/* @__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." })
|
|
10210
10324
|
] })
|
|
10211
10325
|
] })
|
|
10212
10326
|
] });
|
|
@@ -10219,7 +10333,7 @@ init_ServiceClient();
|
|
|
10219
10333
|
init_OdataBuilder();
|
|
10220
10334
|
init_SelectWithSearchInput();
|
|
10221
10335
|
var import_navigation4 = require("next/navigation");
|
|
10222
|
-
var
|
|
10336
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
10223
10337
|
var viewControlMap = {
|
|
10224
10338
|
number: ViewControlTypes.number,
|
|
10225
10339
|
lineText: ViewControlTypes.lineText,
|
|
@@ -10314,13 +10428,13 @@ var DataListRenderer = ({
|
|
|
10314
10428
|
isActive: landingPageUrl === pathname
|
|
10315
10429
|
};
|
|
10316
10430
|
});
|
|
10317
|
-
return /* @__PURE__ */ (0,
|
|
10431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_react68.default.Fragment, { children: [
|
|
10318
10432
|
resolvedTabs.length > 0 && // <NavigationTabsV2
|
|
10319
10433
|
// tabs={resolvedTabs}
|
|
10320
10434
|
// params={(widgetProps?.params ?? params) as Record<string, any>}
|
|
10321
10435
|
// />
|
|
10322
|
-
/* @__PURE__ */ (0,
|
|
10323
|
-
/* @__PURE__ */ (0,
|
|
10436
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
10437
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
10324
10438
|
DataList_default,
|
|
10325
10439
|
{
|
|
10326
10440
|
addLinkHref,
|
|
@@ -10377,7 +10491,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
10377
10491
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
10378
10492
|
|
|
10379
10493
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
10380
|
-
var
|
|
10494
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
10381
10495
|
var DataFormChildSection = (props) => {
|
|
10382
10496
|
const { section } = props;
|
|
10383
10497
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -10445,14 +10559,14 @@ var DataFormChildSection = (props) => {
|
|
|
10445
10559
|
childItemsToRender,
|
|
10446
10560
|
allChildItems: childItems
|
|
10447
10561
|
});
|
|
10448
|
-
return /* @__PURE__ */ (0,
|
|
10449
|
-
section.sectionTitle && /* @__PURE__ */ (0,
|
|
10450
|
-
/* @__PURE__ */ (0,
|
|
10451
|
-
/* @__PURE__ */ (0,
|
|
10452
|
-
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0,
|
|
10453
|
-
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: [
|
|
10454
10568
|
sectionRow.elements.map((field, index) => {
|
|
10455
|
-
return /* @__PURE__ */ (0,
|
|
10569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10456
10570
|
"th",
|
|
10457
10571
|
{
|
|
10458
10572
|
className: "py-3 font-normal text-left",
|
|
@@ -10461,21 +10575,21 @@ var DataFormChildSection = (props) => {
|
|
|
10461
10575
|
field.name
|
|
10462
10576
|
);
|
|
10463
10577
|
}),
|
|
10464
|
-
!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" })
|
|
10465
10579
|
] }, sectionRowIndex);
|
|
10466
10580
|
}) }),
|
|
10467
|
-
/* @__PURE__ */ (0,
|
|
10581
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
|
|
10468
10582
|
const { item, originalIndex } = visibleItem;
|
|
10469
10583
|
const rowKey = originalIndex;
|
|
10470
|
-
return /* @__PURE__ */ (0,
|
|
10584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react69.default.Fragment, { children: section.sectionRows.map(
|
|
10471
10585
|
(sectionRow, sectionRowIndex) => {
|
|
10472
|
-
return /* @__PURE__ */ (0,
|
|
10586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
10473
10587
|
"tr",
|
|
10474
10588
|
{
|
|
10475
10589
|
className: "",
|
|
10476
10590
|
children: [
|
|
10477
10591
|
sectionRow.elements.map((field, index) => {
|
|
10478
|
-
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)(
|
|
10479
10593
|
InputControl_default,
|
|
10480
10594
|
{
|
|
10481
10595
|
index: filteredIndex,
|
|
@@ -10495,7 +10609,7 @@ var DataFormChildSection = (props) => {
|
|
|
10495
10609
|
}
|
|
10496
10610
|
) }) }) }, field.name);
|
|
10497
10611
|
}),
|
|
10498
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
10612
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10499
10613
|
ClientButton_default,
|
|
10500
10614
|
{
|
|
10501
10615
|
ButtonType: StyleTypes2.Hollow,
|
|
@@ -10504,7 +10618,7 @@ var DataFormChildSection = (props) => {
|
|
|
10504
10618
|
},
|
|
10505
10619
|
dataRole: "delete",
|
|
10506
10620
|
tabIndex: -1,
|
|
10507
|
-
children: /* @__PURE__ */ (0,
|
|
10621
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10508
10622
|
Icon_default,
|
|
10509
10623
|
{
|
|
10510
10624
|
className: "w-4 h-4",
|
|
@@ -10521,7 +10635,7 @@ var DataFormChildSection = (props) => {
|
|
|
10521
10635
|
) }, rowKey);
|
|
10522
10636
|
}) })
|
|
10523
10637
|
] }) }),
|
|
10524
|
-
!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)(
|
|
10525
10639
|
ClientButton_default,
|
|
10526
10640
|
{
|
|
10527
10641
|
ButtonType: "Link" /* Link */,
|
|
@@ -10536,7 +10650,7 @@ var DataFormChildSection = (props) => {
|
|
|
10536
10650
|
var DataFormChildSection_default = DataFormChildSection;
|
|
10537
10651
|
|
|
10538
10652
|
// src/components/dataForm/DataForm.tsx
|
|
10539
|
-
var
|
|
10653
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
10540
10654
|
var DataForm = (props) => {
|
|
10541
10655
|
const formRef = (0, import_react70.useRef)(null);
|
|
10542
10656
|
console.log(props.dataItem, "dssads");
|
|
@@ -10756,19 +10870,19 @@ var DataForm = (props) => {
|
|
|
10756
10870
|
return false;
|
|
10757
10871
|
}
|
|
10758
10872
|
}
|
|
10759
|
-
return /* @__PURE__ */ (0,
|
|
10760
|
-
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)(
|
|
10761
10875
|
"div",
|
|
10762
10876
|
{
|
|
10763
10877
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
10764
10878
|
onClick: () => window.history.back(),
|
|
10765
10879
|
children: [
|
|
10766
|
-
/* @__PURE__ */ (0,
|
|
10767
|
-
/* @__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 })
|
|
10768
10882
|
]
|
|
10769
10883
|
}
|
|
10770
10884
|
) }),
|
|
10771
|
-
/* @__PURE__ */ (0,
|
|
10885
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10772
10886
|
"form",
|
|
10773
10887
|
{
|
|
10774
10888
|
className: "group space-y-6 pb-6 overflow-y-auto",
|
|
@@ -10789,8 +10903,8 @@ var DataForm = (props) => {
|
|
|
10789
10903
|
}
|
|
10790
10904
|
}
|
|
10791
10905
|
},
|
|
10792
|
-
children: /* @__PURE__ */ (0,
|
|
10793
|
-
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: [
|
|
10794
10908
|
section.sectionRows?.map(
|
|
10795
10909
|
(sectionRow, sectionRowIndex) => {
|
|
10796
10910
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -10801,14 +10915,14 @@ var DataForm = (props) => {
|
|
|
10801
10915
|
sectionRow.visible
|
|
10802
10916
|
);
|
|
10803
10917
|
}
|
|
10804
|
-
return /* @__PURE__ */ (0,
|
|
10805
|
-
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)(
|
|
10806
10920
|
"div",
|
|
10807
10921
|
{
|
|
10808
10922
|
className: sectionRow.grow ? "grow" : "",
|
|
10809
10923
|
children: [
|
|
10810
|
-
/* @__PURE__ */ (0,
|
|
10811
|
-
/* @__PURE__ */ (0,
|
|
10924
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: field.controlType }),
|
|
10925
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10812
10926
|
InputControl_default,
|
|
10813
10927
|
{
|
|
10814
10928
|
name: field.name,
|
|
@@ -10838,12 +10952,12 @@ var DataForm = (props) => {
|
|
|
10838
10952
|
}) }) }, sectionRowIndex);
|
|
10839
10953
|
}
|
|
10840
10954
|
),
|
|
10841
|
-
/* @__PURE__ */ (0,
|
|
10955
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: section.childSections?.map(
|
|
10842
10956
|
(childSection, childSectionIndex) => {
|
|
10843
|
-
return /* @__PURE__ */ (0,
|
|
10957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: childSection.name && evalutateCondition(
|
|
10844
10958
|
formState.inputValues,
|
|
10845
10959
|
childSection.visible
|
|
10846
|
-
) && /* @__PURE__ */ (0,
|
|
10960
|
+
) && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10847
10961
|
DataFormChildSection_default,
|
|
10848
10962
|
{
|
|
10849
10963
|
section: childSection,
|
|
@@ -10858,8 +10972,8 @@ var DataForm = (props) => {
|
|
|
10858
10972
|
}) })
|
|
10859
10973
|
}
|
|
10860
10974
|
),
|
|
10861
|
-
/* @__PURE__ */ (0,
|
|
10862
|
-
/* @__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)(
|
|
10863
10977
|
Button_default,
|
|
10864
10978
|
{
|
|
10865
10979
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -10867,7 +10981,7 @@ var DataForm = (props) => {
|
|
|
10867
10981
|
children: props.additionalActions.title
|
|
10868
10982
|
}
|
|
10869
10983
|
) }),
|
|
10870
|
-
/* @__PURE__ */ (0,
|
|
10984
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10871
10985
|
Button_default,
|
|
10872
10986
|
{
|
|
10873
10987
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -10878,7 +10992,7 @@ var DataForm = (props) => {
|
|
|
10878
10992
|
children: "Delete"
|
|
10879
10993
|
}
|
|
10880
10994
|
) }),
|
|
10881
|
-
/* @__PURE__ */ (0,
|
|
10995
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10882
10996
|
Button_default,
|
|
10883
10997
|
{
|
|
10884
10998
|
onValidate,
|
|
@@ -10896,7 +11010,7 @@ var DataForm_default = DataForm;
|
|
|
10896
11010
|
|
|
10897
11011
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
10898
11012
|
init_ServiceClient();
|
|
10899
|
-
var
|
|
11013
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
10900
11014
|
function getAction(actions, code) {
|
|
10901
11015
|
return actions?.find((a) => a.actionCode === code);
|
|
10902
11016
|
}
|
|
@@ -10922,9 +11036,9 @@ var DataFormRenderer = ({
|
|
|
10922
11036
|
"Delete"
|
|
10923
11037
|
);
|
|
10924
11038
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
10925
|
-
return /* @__PURE__ */ (0,
|
|
10926
|
-
widgetProps && /* @__PURE__ */ (0,
|
|
10927
|
-
/* @__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)(
|
|
10928
11042
|
DataForm_default,
|
|
10929
11043
|
{
|
|
10930
11044
|
title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",
|