@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260707132556 → 0.8.1-dev.20260707162731
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +820 -786
- package/dist/index.mjs +352 -314
- package/dist/server.d.mts +6 -0
- package/dist/server.d.ts +6 -0
- package/dist/server.js +331 -295
- package/dist/server.mjs +188 -152
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -35,27 +35,33 @@ import {
|
|
|
35
35
|
import "./chunk-56HSDML5.mjs";
|
|
36
36
|
|
|
37
37
|
// src/components/controls/view/ViewControl.tsx
|
|
38
|
-
import
|
|
38
|
+
import React13 from "react";
|
|
39
39
|
|
|
40
40
|
// src/components/controls/view/ViewControlTypes.tsx
|
|
41
41
|
var ViewControlTypes = {
|
|
42
42
|
lineText: "lineText",
|
|
43
|
+
emailText: "email",
|
|
43
44
|
asset: "asset",
|
|
44
45
|
multilineTextBullets: "multilineTextBullets",
|
|
45
46
|
boolean: "boolean",
|
|
47
|
+
checkboxInput: "boolean",
|
|
46
48
|
money: "money",
|
|
47
49
|
date: "date",
|
|
48
50
|
time: "time",
|
|
49
51
|
datetime: "datetime",
|
|
50
52
|
number: "number",
|
|
51
53
|
multilineText: "multilineText",
|
|
54
|
+
multilinetext: "multilinetext",
|
|
52
55
|
moneyText: "moneyText",
|
|
53
56
|
percentage: "percentage",
|
|
57
|
+
status: "status",
|
|
54
58
|
statusBg: "statusBg",
|
|
55
59
|
progressIndicator: "progressIndicator",
|
|
56
60
|
timeUntilStarts: "timeUntilStarts",
|
|
57
61
|
timeUntilStartsStyled: "timeUntilStartsStyled",
|
|
58
|
-
aiGeneratedSummary: "aiGeneratedSummary"
|
|
62
|
+
aiGeneratedSummary: "aiGeneratedSummary",
|
|
63
|
+
booleanView: "booleanView",
|
|
64
|
+
text: "text"
|
|
59
65
|
};
|
|
60
66
|
var ViewControlTypes_default = ViewControlTypes;
|
|
61
67
|
|
|
@@ -236,8 +242,32 @@ var LineText = (props) => {
|
|
|
236
242
|
};
|
|
237
243
|
var LineTextView_default = LineText;
|
|
238
244
|
|
|
239
|
-
// src/components/controls/view/
|
|
245
|
+
// src/components/controls/view/EmailTextView.tsx
|
|
240
246
|
import React5 from "react";
|
|
247
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
248
|
+
var EmailText = (props) => {
|
|
249
|
+
return /* @__PURE__ */ jsx6(React5.Fragment, { children: props.value });
|
|
250
|
+
};
|
|
251
|
+
var EmailTextView_default = EmailText;
|
|
252
|
+
|
|
253
|
+
// src/components/controls/view/StatusBgView.tsx
|
|
254
|
+
import React6 from "react";
|
|
255
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
256
|
+
var StatusBg = (props) => {
|
|
257
|
+
return /* @__PURE__ */ jsx7(React6.Fragment, { children: props.value && props.value != "" && /* @__PURE__ */ jsx7("span", { className: "py-0.5 px-1.5 text-xs capitalize text-white font-semibold rounded bg-status bg-status-" + props.value, children: props.value }) });
|
|
258
|
+
};
|
|
259
|
+
var StatusBgView_default = StatusBg;
|
|
260
|
+
|
|
261
|
+
// src/components/controls/view/StatusView.tsx
|
|
262
|
+
import React7 from "react";
|
|
263
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
264
|
+
var Status = (props) => {
|
|
265
|
+
return /* @__PURE__ */ jsx8(React7.Fragment, { children: /* @__PURE__ */ jsx8("span", { className: "capitalize font-semibold rounded text-status text-status-" + props.value, children: props.value }) });
|
|
266
|
+
};
|
|
267
|
+
var StatusView_default = Status;
|
|
268
|
+
|
|
269
|
+
// src/components/controls/view/MoneyView.tsx
|
|
270
|
+
import React8 from "react";
|
|
241
271
|
|
|
242
272
|
// src/components/utilities/CurrencyUtility.tsx
|
|
243
273
|
var CurrencyUtility = class {
|
|
@@ -258,40 +288,40 @@ var CurrencyUtility = class {
|
|
|
258
288
|
var CurrencyUtility_default = CurrencyUtility;
|
|
259
289
|
|
|
260
290
|
// src/components/controls/view/MoneyView.tsx
|
|
261
|
-
import { jsx as
|
|
291
|
+
import { jsx as jsx9, jsxs } from "react/jsx-runtime";
|
|
262
292
|
var Money = (props) => {
|
|
263
293
|
const parsedNumber = parseFloat(props.value);
|
|
264
|
-
return /* @__PURE__ */
|
|
265
|
-
/* @__PURE__ */
|
|
294
|
+
return /* @__PURE__ */ jsx9(React8.Fragment, { children: !Number.isNaN(parsedNumber) && /* @__PURE__ */ jsxs(React8.Fragment, { children: [
|
|
295
|
+
/* @__PURE__ */ jsx9("span", { className: "mr-0.5", children: CurrencyUtility_default.getCurrencySymbol(props.unit) }),
|
|
266
296
|
parsedNumber.toLocaleString()
|
|
267
297
|
] }) });
|
|
268
298
|
};
|
|
269
299
|
var MoneyView_default = Money;
|
|
270
300
|
|
|
271
301
|
// src/components/controls/view/MultilineTextBulletsView.tsx
|
|
272
|
-
import
|
|
273
|
-
import { jsx as
|
|
302
|
+
import React9 from "react";
|
|
303
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
274
304
|
var MultilineTextBullets = (props) => {
|
|
275
305
|
const lines = props.value?.split("\\n");
|
|
276
|
-
return /* @__PURE__ */
|
|
277
|
-
return /* @__PURE__ */
|
|
306
|
+
return /* @__PURE__ */ jsx10(React9.Fragment, { children: /* @__PURE__ */ jsx10("ul", { className: "list-disc", children: lines && lines.map((line, index) => {
|
|
307
|
+
return /* @__PURE__ */ jsx10("li", { children: line }, index);
|
|
278
308
|
}) }) });
|
|
279
309
|
};
|
|
280
310
|
var MultilineTextBulletsView_default = MultilineTextBullets;
|
|
281
311
|
|
|
282
312
|
// src/components/controls/view/MultilineTextView.tsx
|
|
283
|
-
import
|
|
284
|
-
import { jsx as
|
|
313
|
+
import React10 from "react";
|
|
314
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
285
315
|
var MultilineText = (props) => {
|
|
286
|
-
return /* @__PURE__ */
|
|
316
|
+
return /* @__PURE__ */ jsx11(React10.Fragment, { children: /* @__PURE__ */ jsx11("span", { className: "whitespace-pre-line", children: props.value }) });
|
|
287
317
|
};
|
|
288
318
|
var MultilineTextView_default = MultilineText;
|
|
289
319
|
|
|
290
320
|
// src/components/controls/view/PercentageView.tsx
|
|
291
|
-
import
|
|
321
|
+
import React11 from "react";
|
|
292
322
|
import { jsxs as jsxs2 } from "react/jsx-runtime";
|
|
293
323
|
var PercentageView = (props) => {
|
|
294
|
-
return /* @__PURE__ */ jsxs2(
|
|
324
|
+
return /* @__PURE__ */ jsxs2(React11.Fragment, { children: [
|
|
295
325
|
props.value,
|
|
296
326
|
"%"
|
|
297
327
|
] });
|
|
@@ -299,16 +329,16 @@ var PercentageView = (props) => {
|
|
|
299
329
|
var PercentageView_default = PercentageView;
|
|
300
330
|
|
|
301
331
|
// src/components/controls/view/ProgressIndicator.tsx
|
|
302
|
-
import
|
|
303
|
-
import { jsx as
|
|
332
|
+
import React12 from "react";
|
|
333
|
+
import { jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
304
334
|
var ProgressIndicator = (props) => {
|
|
305
335
|
const percentage = 100;
|
|
306
336
|
const circumference = Math.PI * 56;
|
|
307
337
|
const offset = circumference * (1 - percentage / 100);
|
|
308
|
-
return /* @__PURE__ */
|
|
309
|
-
/* @__PURE__ */
|
|
310
|
-
/* @__PURE__ */
|
|
311
|
-
/* @__PURE__ */
|
|
338
|
+
return /* @__PURE__ */ jsx12(React12.Fragment, { children: /* @__PURE__ */ jsxs3("div", { className: "relative w-48 h-48", children: [
|
|
339
|
+
/* @__PURE__ */ jsx12("div", { className: "absolute top-0 left-0 w-full h-full rounded-full border border-gray-200" }),
|
|
340
|
+
/* @__PURE__ */ jsx12("div", { className: "absolute top-0 left-0 w-full h-full rounded-full overflow-hidden", children: /* @__PURE__ */ jsx12("div", { className: "w-full h-full rounded-full border-t-8 border-green-500", style: { transform: `rotate(-90deg)`, clipPath: `inset(0px ${offset}px 0px 0px)` } }) }),
|
|
341
|
+
/* @__PURE__ */ jsx12("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center text-lg font-bold text-gray-800", children: /* @__PURE__ */ jsxs3("span", { children: [
|
|
312
342
|
percentage,
|
|
313
343
|
"%"
|
|
314
344
|
] }) })
|
|
@@ -317,18 +347,18 @@ var ProgressIndicator = (props) => {
|
|
|
317
347
|
var ProgressIndicator_default = ProgressIndicator;
|
|
318
348
|
|
|
319
349
|
// src/components/controls/view/AiGeneratedSummary.tsx
|
|
320
|
-
import { jsx as
|
|
350
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
321
351
|
var AiGeneratedSummary = (props) => {
|
|
322
352
|
const lines = props.value?.split("\n").filter((line) => line.trim() !== "") || [];
|
|
323
353
|
return /* @__PURE__ */ jsxs4("details", { className: "group rounded-xl border-2 bg-white shadow-sm border-p overflow-hidden", children: [
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ jsx13("summary", { className: "flex items-start justify-between cursor-pointer list-none", children: /* @__PURE__ */ jsxs4("div", { className: "flex items-start gap-3 ", children: [
|
|
355
|
+
/* @__PURE__ */ jsx13("div", { className: "bg-primary-base bg-transparent rounded mt-1 p-1", children: /* @__PURE__ */ jsx13("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-5", children: /* @__PURE__ */ jsx13("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z" }) }) }),
|
|
326
356
|
/* @__PURE__ */ jsxs4("div", { children: [
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ jsx13("h3", { className: "text-lg font-semibold ", children: "Quick Read" }),
|
|
358
|
+
/* @__PURE__ */ jsx13("p", { className: "text-sm text-gray-500 mb-0", children: "Summary is AI-generated, author-reviewed" })
|
|
329
359
|
] })
|
|
330
360
|
] }) }),
|
|
331
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ jsx13("div", { children: /* @__PURE__ */ jsx13("ul", { className: "list-disc pl-6 space-y-3 text-gray-700 ps-4 pl-4", children: lines.map((line, index) => /* @__PURE__ */ jsx13("li", { className: "m-0", children: line }, index)) }) })
|
|
332
362
|
] });
|
|
333
363
|
};
|
|
334
364
|
var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
@@ -341,13 +371,15 @@ var DateTimeView = dynamic3(() => import("./DateTimeViewClient-22GW4AD7.mjs"), {
|
|
|
341
371
|
var DateTimeVew_default = DateTimeView;
|
|
342
372
|
|
|
343
373
|
// src/components/controls/view/ViewControl.tsx
|
|
344
|
-
import { jsx as
|
|
374
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
345
375
|
var ViewControl = (props) => {
|
|
346
376
|
const ControlComponents = {
|
|
347
377
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
378
|
+
[ViewControlTypes_default.emailText]: EmailTextView_default,
|
|
348
379
|
[ViewControlTypes_default.asset]: Asset_default,
|
|
349
380
|
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
350
381
|
[ViewControlTypes_default.boolean]: BooleanView_default,
|
|
382
|
+
[ViewControlTypes_default.checkboxInput]: BooleanView_default,
|
|
351
383
|
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
352
384
|
[ViewControlTypes_default.money]: MoneyView_default,
|
|
353
385
|
[ViewControlTypes_default.date]: DateView_default,
|
|
@@ -355,16 +387,20 @@ var ViewControl = (props) => {
|
|
|
355
387
|
[ViewControlTypes_default.datetime]: DateTimeVew_default,
|
|
356
388
|
[ViewControlTypes_default.number]: NumberView_default,
|
|
357
389
|
[ViewControlTypes_default.multilineText]: MultilineTextView_default,
|
|
390
|
+
[ViewControlTypes_default.multilinetext]: MultilineTextView_default,
|
|
358
391
|
[ViewControlTypes_default.moneyText]: MoneyView_default,
|
|
359
392
|
[ViewControlTypes_default.percentage]: PercentageView_default,
|
|
360
|
-
|
|
393
|
+
[ViewControlTypes_default.status]: StatusView_default,
|
|
394
|
+
[ViewControlTypes_default.statusBg]: StatusBgView_default,
|
|
361
395
|
[ViewControlTypes_default.progressIndicator]: ProgressIndicator_default,
|
|
362
396
|
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
363
397
|
// [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
|
|
364
|
-
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default
|
|
398
|
+
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
399
|
+
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
400
|
+
[ViewControlTypes_default.text]: LineTextView_default
|
|
365
401
|
};
|
|
366
402
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
367
|
-
return /* @__PURE__ */
|
|
403
|
+
return /* @__PURE__ */ jsx14(React13.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx14(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
368
404
|
};
|
|
369
405
|
var ViewControl_default = ViewControl;
|
|
370
406
|
|
|
@@ -376,13 +412,13 @@ var InputControl = dynamic4(() => import("./InputControlClient-TW664WIJ.mjs"), {
|
|
|
376
412
|
var InputControl_default = InputControl;
|
|
377
413
|
|
|
378
414
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
379
|
-
import
|
|
415
|
+
import React23 from "react";
|
|
380
416
|
|
|
381
417
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
382
|
-
import
|
|
418
|
+
import React15 from "react";
|
|
383
419
|
|
|
384
420
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
385
|
-
import { jsx as
|
|
421
|
+
import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
386
422
|
var TextNode = (props) => {
|
|
387
423
|
function cssStringToJson(cssString) {
|
|
388
424
|
const styleObject = {};
|
|
@@ -439,33 +475,33 @@ var TextNode = (props) => {
|
|
|
439
475
|
function renderWithLineBreaks(text) {
|
|
440
476
|
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ jsxs5("span", { children: [
|
|
441
477
|
line,
|
|
442
|
-
index < arr.length - 1 && /* @__PURE__ */
|
|
478
|
+
index < arr.length - 1 && /* @__PURE__ */ jsx15("br", {})
|
|
443
479
|
] }, index));
|
|
444
480
|
}
|
|
445
481
|
const displayText = props.linkText ? props.linkText : props.node.text;
|
|
446
482
|
const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
|
|
447
483
|
const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
|
|
448
|
-
const formattedContent = props.node.format & 64 ? /* @__PURE__ */
|
|
484
|
+
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ jsx15("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ jsx15("sub", { children: content }) : content;
|
|
449
485
|
return (
|
|
450
486
|
// @ts-expect-error custom code
|
|
451
|
-
/* @__PURE__ */
|
|
487
|
+
/* @__PURE__ */ jsx15("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
|
|
452
488
|
);
|
|
453
489
|
};
|
|
454
490
|
var TextNode_default = TextNode;
|
|
455
491
|
|
|
456
492
|
// src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
|
|
457
|
-
import { jsx as
|
|
493
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
458
494
|
var LineBreakNode = () => {
|
|
459
|
-
return /* @__PURE__ */
|
|
495
|
+
return /* @__PURE__ */ jsx16("div", { className: "py-0.5 lg:py-1.5" });
|
|
460
496
|
};
|
|
461
497
|
var LineBreakNode_default = LineBreakNode;
|
|
462
498
|
|
|
463
499
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
464
|
-
import
|
|
500
|
+
import React14 from "react";
|
|
465
501
|
|
|
466
502
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
467
503
|
import dynamic5 from "next/dynamic";
|
|
468
|
-
import { jsx as
|
|
504
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
469
505
|
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
|
|
470
506
|
var getNestedValue = (obj, path) => {
|
|
471
507
|
if (!obj || !path) return void 0;
|
|
@@ -498,7 +534,7 @@ var ImageNode = (props) => {
|
|
|
498
534
|
assets = [image];
|
|
499
535
|
}
|
|
500
536
|
if (assets && assets.length > 0) {
|
|
501
|
-
return /* @__PURE__ */
|
|
537
|
+
return /* @__PURE__ */ jsx17(
|
|
502
538
|
DeviceAssetSelector_default,
|
|
503
539
|
{
|
|
504
540
|
device: props.device,
|
|
@@ -539,7 +575,7 @@ var ImageNode = (props) => {
|
|
|
539
575
|
right: "justify-end"
|
|
540
576
|
};
|
|
541
577
|
const isHls = imageUrl.endsWith(".m3u8");
|
|
542
|
-
const renderMedia = () => isHls ? /* @__PURE__ */
|
|
578
|
+
const renderMedia = () => isHls ? /* @__PURE__ */ jsx17(
|
|
543
579
|
HlsPlayer2,
|
|
544
580
|
{
|
|
545
581
|
assetUrl: imageUrl,
|
|
@@ -552,7 +588,7 @@ var ImageNode = (props) => {
|
|
|
552
588
|
apiBaseUrl: props.apiBaseUrl,
|
|
553
589
|
session: props.session
|
|
554
590
|
}
|
|
555
|
-
) : /* @__PURE__ */
|
|
591
|
+
) : /* @__PURE__ */ jsx17(
|
|
556
592
|
"img",
|
|
557
593
|
{
|
|
558
594
|
style: styles,
|
|
@@ -565,7 +601,7 @@ var ImageNode = (props) => {
|
|
|
565
601
|
}
|
|
566
602
|
);
|
|
567
603
|
if (props.node.width) {
|
|
568
|
-
return /* @__PURE__ */
|
|
604
|
+
return /* @__PURE__ */ jsx17("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
|
|
569
605
|
}
|
|
570
606
|
return renderMedia();
|
|
571
607
|
};
|
|
@@ -573,7 +609,7 @@ var ImageNode_default = ImageNode;
|
|
|
573
609
|
|
|
574
610
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
575
611
|
import dynamic6 from "next/dynamic";
|
|
576
|
-
import { Fragment, jsx as
|
|
612
|
+
import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
577
613
|
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-FUL3J5HR.mjs"), {
|
|
578
614
|
ssr: false
|
|
579
615
|
});
|
|
@@ -626,13 +662,13 @@ var LinkNode = (props) => {
|
|
|
626
662
|
const isButton = node.isButton === true;
|
|
627
663
|
const renderChildren = () => {
|
|
628
664
|
if (!node.children || node.children.length === 0) return null;
|
|
629
|
-
return /* @__PURE__ */
|
|
665
|
+
return /* @__PURE__ */ jsx18(Fragment, { children: node.children.map((childNode, index) => {
|
|
630
666
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
631
667
|
if (!SelectedNode) {
|
|
632
668
|
console.warn("Unknown node type:", childNode.type);
|
|
633
669
|
return null;
|
|
634
670
|
}
|
|
635
|
-
return /* @__PURE__ */
|
|
671
|
+
return /* @__PURE__ */ jsx18(React14.Fragment, { children: /* @__PURE__ */ jsx18(
|
|
636
672
|
SelectedNode,
|
|
637
673
|
{
|
|
638
674
|
node: childNode,
|
|
@@ -645,10 +681,10 @@ var LinkNode = (props) => {
|
|
|
645
681
|
};
|
|
646
682
|
const renderFallback = () => {
|
|
647
683
|
if ((!node.children || node.children.length === 0) && linkText) {
|
|
648
|
-
return /* @__PURE__ */
|
|
684
|
+
return /* @__PURE__ */ jsx18("span", { children: linkText });
|
|
649
685
|
}
|
|
650
686
|
if ((!node.children || node.children.length === 0) && !linkText) {
|
|
651
|
-
return /* @__PURE__ */
|
|
687
|
+
return /* @__PURE__ */ jsx18("br", {});
|
|
652
688
|
}
|
|
653
689
|
return null;
|
|
654
690
|
};
|
|
@@ -687,10 +723,10 @@ var LinkNode = (props) => {
|
|
|
687
723
|
var LinkNode_default = LinkNode;
|
|
688
724
|
|
|
689
725
|
// src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
|
|
690
|
-
import { jsx as
|
|
726
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
691
727
|
var SVGIconNode = ({ node }) => {
|
|
692
728
|
if (!node?.svgCode) return null;
|
|
693
|
-
return /* @__PURE__ */
|
|
729
|
+
return /* @__PURE__ */ jsx19(
|
|
694
730
|
"span",
|
|
695
731
|
{
|
|
696
732
|
style: {
|
|
@@ -707,7 +743,7 @@ var SVGIconNode_default = SVGIconNode;
|
|
|
707
743
|
|
|
708
744
|
// src/components/pageRenderingEngine/nodes/EquationNode.tsx
|
|
709
745
|
import katex from "katex";
|
|
710
|
-
import { jsx as
|
|
746
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
711
747
|
var EquationNode = ({ node }) => {
|
|
712
748
|
const { equation, inline } = node;
|
|
713
749
|
let html = "";
|
|
@@ -722,7 +758,7 @@ var EquationNode = ({ node }) => {
|
|
|
722
758
|
});
|
|
723
759
|
}
|
|
724
760
|
if (inline) {
|
|
725
|
-
return /* @__PURE__ */
|
|
761
|
+
return /* @__PURE__ */ jsx20(
|
|
726
762
|
"span",
|
|
727
763
|
{
|
|
728
764
|
className: "katex-inline",
|
|
@@ -730,7 +766,7 @@ var EquationNode = ({ node }) => {
|
|
|
730
766
|
}
|
|
731
767
|
);
|
|
732
768
|
}
|
|
733
|
-
return /* @__PURE__ */
|
|
769
|
+
return /* @__PURE__ */ jsx20(
|
|
734
770
|
"div",
|
|
735
771
|
{
|
|
736
772
|
className: "katex-block my-3 text-center",
|
|
@@ -741,7 +777,7 @@ var EquationNode = ({ node }) => {
|
|
|
741
777
|
var EquationNode_default = EquationNode;
|
|
742
778
|
|
|
743
779
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
744
|
-
import { jsx as
|
|
780
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
745
781
|
function getNestedProperty(obj, path) {
|
|
746
782
|
if (!obj || !path) return null;
|
|
747
783
|
if (path.includes(".")) {
|
|
@@ -754,7 +790,7 @@ function getNestedProperty(obj, path) {
|
|
|
754
790
|
}
|
|
755
791
|
const value = obj[path];
|
|
756
792
|
if (Array.isArray(value)) {
|
|
757
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
793
|
+
return value.map((item, index) => /* @__PURE__ */ jsx21("div", { children: String(item) }, index));
|
|
758
794
|
}
|
|
759
795
|
return value;
|
|
760
796
|
}
|
|
@@ -815,7 +851,7 @@ var DatafieldNode = (props) => {
|
|
|
815
851
|
const dataType = props.node.dataType;
|
|
816
852
|
if (isEmptyValue) return null;
|
|
817
853
|
if (dataType === "rawContent") {
|
|
818
|
-
return /* @__PURE__ */
|
|
854
|
+
return /* @__PURE__ */ jsx21(
|
|
819
855
|
PageBodyRenderer_default,
|
|
820
856
|
{
|
|
821
857
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -831,12 +867,12 @@ var DatafieldNode = (props) => {
|
|
|
831
867
|
}
|
|
832
868
|
);
|
|
833
869
|
}
|
|
834
|
-
return /* @__PURE__ */
|
|
870
|
+
return /* @__PURE__ */ jsx21(
|
|
835
871
|
"span",
|
|
836
872
|
{
|
|
837
873
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
838
874
|
style: styles,
|
|
839
|
-
children: /* @__PURE__ */
|
|
875
|
+
children: /* @__PURE__ */ jsx21(
|
|
840
876
|
ViewControl_default,
|
|
841
877
|
{
|
|
842
878
|
controlType: dataType,
|
|
@@ -849,7 +885,7 @@ var DatafieldNode = (props) => {
|
|
|
849
885
|
var DatafieldNode_default = DatafieldNode;
|
|
850
886
|
|
|
851
887
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
852
|
-
import { Fragment as Fragment2, jsx as
|
|
888
|
+
import { Fragment as Fragment2, jsx as jsx22, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
853
889
|
var ParagraphNode = (props) => {
|
|
854
890
|
const NodeTypes2 = {
|
|
855
891
|
["text"]: TextNode_default,
|
|
@@ -869,9 +905,9 @@ var ParagraphNode = (props) => {
|
|
|
869
905
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
870
906
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
871
907
|
if (isInlineOnlyParent) {
|
|
872
|
-
return /* @__PURE__ */
|
|
908
|
+
return /* @__PURE__ */ jsx22(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
873
909
|
const SelectedNode = NodeTypes2[node.type];
|
|
874
|
-
return /* @__PURE__ */
|
|
910
|
+
return /* @__PURE__ */ jsx22(React15.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx22(
|
|
875
911
|
SelectedNode,
|
|
876
912
|
{
|
|
877
913
|
node,
|
|
@@ -886,7 +922,7 @@ var ParagraphNode = (props) => {
|
|
|
886
922
|
return /* @__PURE__ */ jsxs7("div", { className: " " + formatClasses, children: [
|
|
887
923
|
hasChildren && props.node.children.map((node, index) => {
|
|
888
924
|
const SelectedNode = NodeTypes2[node.type];
|
|
889
|
-
return /* @__PURE__ */
|
|
925
|
+
return /* @__PURE__ */ jsx22(React15.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx22(
|
|
890
926
|
SelectedNode,
|
|
891
927
|
{
|
|
892
928
|
node,
|
|
@@ -897,14 +933,14 @@ var ParagraphNode = (props) => {
|
|
|
897
933
|
}
|
|
898
934
|
) }, index);
|
|
899
935
|
}),
|
|
900
|
-
!hasChildren && /* @__PURE__ */
|
|
936
|
+
!hasChildren && /* @__PURE__ */ jsx22("div", { className: "py-1.5 lg:py-2" })
|
|
901
937
|
] });
|
|
902
938
|
};
|
|
903
939
|
var ParagraphNode_default = ParagraphNode;
|
|
904
940
|
|
|
905
941
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
906
|
-
import
|
|
907
|
-
import { Fragment as Fragment3, jsx as
|
|
942
|
+
import React16 from "react";
|
|
943
|
+
import { Fragment as Fragment3, jsx as jsx23 } from "react/jsx-runtime";
|
|
908
944
|
var HeadingNode = (props) => {
|
|
909
945
|
const NodeTypes2 = {
|
|
910
946
|
["text"]: TextNode_default,
|
|
@@ -920,23 +956,23 @@ var HeadingNode = (props) => {
|
|
|
920
956
|
{
|
|
921
957
|
}
|
|
922
958
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
923
|
-
return /* @__PURE__ */
|
|
959
|
+
return /* @__PURE__ */ jsx23(Fragment3, { children: React16.createElement(
|
|
924
960
|
HeadingTag,
|
|
925
961
|
{ className: formatClasses },
|
|
926
962
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
927
963
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
928
|
-
return /* @__PURE__ */
|
|
964
|
+
return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
929
965
|
})
|
|
930
966
|
) });
|
|
931
967
|
};
|
|
932
968
|
var HeadingNode_default = HeadingNode;
|
|
933
969
|
|
|
934
970
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
935
|
-
import
|
|
971
|
+
import React18 from "react";
|
|
936
972
|
|
|
937
973
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
938
|
-
import
|
|
939
|
-
import { jsx as
|
|
974
|
+
import React17 from "react";
|
|
975
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
940
976
|
var ListItemNode = (props) => {
|
|
941
977
|
const NodeTypes2 = {
|
|
942
978
|
text: TextNode_default,
|
|
@@ -953,66 +989,66 @@ var ListItemNode = (props) => {
|
|
|
953
989
|
liStyle.fontSize = match[1].trim();
|
|
954
990
|
}
|
|
955
991
|
}
|
|
956
|
-
return /* @__PURE__ */
|
|
992
|
+
return /* @__PURE__ */ jsx24("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
957
993
|
const SelectedNode = NodeTypes2[node.type];
|
|
958
994
|
if (node.type === "linebreak") {
|
|
959
995
|
if (!foundFirstBreak) {
|
|
960
996
|
foundFirstBreak = true;
|
|
961
|
-
return /* @__PURE__ */
|
|
997
|
+
return /* @__PURE__ */ jsx24("div", {}, index);
|
|
962
998
|
} else {
|
|
963
|
-
return /* @__PURE__ */
|
|
999
|
+
return /* @__PURE__ */ jsx24("div", { className: "py-1 lg:py-2" }, index);
|
|
964
1000
|
}
|
|
965
1001
|
} else {
|
|
966
1002
|
foundFirstBreak = false;
|
|
967
|
-
return /* @__PURE__ */
|
|
1003
|
+
return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
968
1004
|
}
|
|
969
1005
|
}) });
|
|
970
1006
|
};
|
|
971
1007
|
var ListItemNode_default = ListItemNode;
|
|
972
1008
|
|
|
973
1009
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
974
|
-
import { jsx as
|
|
1010
|
+
import { jsx as jsx25, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
975
1011
|
var ListNode = (props) => {
|
|
976
1012
|
const NodeTypes2 = {
|
|
977
1013
|
listitem: ListItemNode_default
|
|
978
1014
|
};
|
|
979
|
-
return /* @__PURE__ */ jsxs8(
|
|
980
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1015
|
+
return /* @__PURE__ */ jsxs8(React18.Fragment, { children: [
|
|
1016
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx25("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
981
1017
|
const SelectedNode = NodeTypes2[node.type];
|
|
982
|
-
return /* @__PURE__ */
|
|
1018
|
+
return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
983
1019
|
}) }),
|
|
984
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1020
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx25("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
985
1021
|
const SelectedNode = NodeTypes2[node.type];
|
|
986
|
-
return /* @__PURE__ */
|
|
1022
|
+
return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
987
1023
|
}) })
|
|
988
1024
|
] });
|
|
989
1025
|
};
|
|
990
1026
|
var ListNode_default = ListNode;
|
|
991
1027
|
|
|
992
1028
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
993
|
-
import
|
|
994
|
-
import { jsx as
|
|
1029
|
+
import React19 from "react";
|
|
1030
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
995
1031
|
var QuoteNode = (props) => {
|
|
996
1032
|
const NodeTypes2 = {
|
|
997
1033
|
["text"]: TextNode_default,
|
|
998
1034
|
["linebreak"]: LineBreakNode_default,
|
|
999
1035
|
["link"]: LinkNode_default
|
|
1000
1036
|
};
|
|
1001
|
-
return /* @__PURE__ */
|
|
1037
|
+
return /* @__PURE__ */ jsx26("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1002
1038
|
const SelectedNode = NodeTypes2[node.type];
|
|
1003
|
-
return /* @__PURE__ */
|
|
1039
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1004
1040
|
}) });
|
|
1005
1041
|
};
|
|
1006
1042
|
var QuoteNode_default = QuoteNode;
|
|
1007
1043
|
|
|
1008
1044
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1009
|
-
import
|
|
1045
|
+
import React20 from "react";
|
|
1010
1046
|
import dynamic7 from "next/dynamic";
|
|
1011
|
-
import { jsx as
|
|
1047
|
+
import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1012
1048
|
var CopyButton = dynamic7(() => import("./CopyButton-XONTQQW7.mjs"), {
|
|
1013
1049
|
ssr: false,
|
|
1014
1050
|
// optional: fallback UI while loading
|
|
1015
|
-
loading: () => /* @__PURE__ */
|
|
1051
|
+
loading: () => /* @__PURE__ */ jsx27("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1016
1052
|
});
|
|
1017
1053
|
var CodeNode = (props) => {
|
|
1018
1054
|
const NodeTypes2 = {
|
|
@@ -1028,12 +1064,12 @@ var CodeNode = (props) => {
|
|
|
1028
1064
|
}).join("") ?? "";
|
|
1029
1065
|
return /* @__PURE__ */ jsxs9("div", { children: [
|
|
1030
1066
|
/* @__PURE__ */ jsxs9("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
1031
|
-
/* @__PURE__ */
|
|
1032
|
-
/* @__PURE__ */
|
|
1067
|
+
/* @__PURE__ */ jsx27("span", { children: "Code Snippet" }),
|
|
1068
|
+
/* @__PURE__ */ jsx27(CopyButton, { text: textContent })
|
|
1033
1069
|
] }),
|
|
1034
|
-
/* @__PURE__ */
|
|
1070
|
+
/* @__PURE__ */ jsx27("code", { className: "bg-neutral-soft p-4 text-sm whitespace-pre-wrap border border-2 block", children: props.node.children && props.node.children.map((node, index) => {
|
|
1035
1071
|
const SelectedNode = NodeTypes2[node.type];
|
|
1036
|
-
return /* @__PURE__ */
|
|
1072
|
+
return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(
|
|
1037
1073
|
SelectedNode,
|
|
1038
1074
|
{
|
|
1039
1075
|
node,
|
|
@@ -1048,15 +1084,15 @@ var CodeNode = (props) => {
|
|
|
1048
1084
|
var CodeNode_default = CodeNode;
|
|
1049
1085
|
|
|
1050
1086
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1051
|
-
import { jsx as
|
|
1087
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1052
1088
|
var HorizontalRuleNode = () => {
|
|
1053
|
-
return /* @__PURE__ */
|
|
1089
|
+
return /* @__PURE__ */ jsx28("hr", {});
|
|
1054
1090
|
};
|
|
1055
1091
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1056
1092
|
|
|
1057
1093
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1058
|
-
import
|
|
1059
|
-
import { Fragment as Fragment4, jsx as
|
|
1094
|
+
import React21 from "react";
|
|
1095
|
+
import { Fragment as Fragment4, jsx as jsx29 } from "react/jsx-runtime";
|
|
1060
1096
|
var WidgetNode = (props) => {
|
|
1061
1097
|
const getWidgetParameters = () => {
|
|
1062
1098
|
const widgetInputParameters = {
|
|
@@ -1120,7 +1156,7 @@ var WidgetNode = (props) => {
|
|
|
1120
1156
|
};
|
|
1121
1157
|
const widgetCode = props.node?.widgetCode;
|
|
1122
1158
|
if (!widgetCode) {
|
|
1123
|
-
return /* @__PURE__ */
|
|
1159
|
+
return /* @__PURE__ */ jsx29(Fragment4, { children: "Invalid widget" });
|
|
1124
1160
|
}
|
|
1125
1161
|
const widgetParams = getWidgetParameters();
|
|
1126
1162
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1129,7 +1165,7 @@ var WidgetNode = (props) => {
|
|
|
1129
1165
|
}
|
|
1130
1166
|
return (
|
|
1131
1167
|
// eslint-disable-next-line react-hooks/static-components
|
|
1132
|
-
/* @__PURE__ */
|
|
1168
|
+
/* @__PURE__ */ jsx29(React21.Fragment, { children: /* @__PURE__ */ jsx29(
|
|
1133
1169
|
WidgetRenderer,
|
|
1134
1170
|
{
|
|
1135
1171
|
params: widgetParams,
|
|
@@ -1146,11 +1182,11 @@ var WidgetNode = (props) => {
|
|
|
1146
1182
|
var WidgetNode_default = WidgetNode;
|
|
1147
1183
|
|
|
1148
1184
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
1149
|
-
import
|
|
1185
|
+
import React22 from "react";
|
|
1150
1186
|
|
|
1151
1187
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1152
1188
|
import dynamic8 from "next/dynamic";
|
|
1153
|
-
import { jsx as
|
|
1189
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1154
1190
|
var IframeClient = dynamic8(() => import("./IframeClient-J22NMEVY.mjs"), {
|
|
1155
1191
|
ssr: false
|
|
1156
1192
|
});
|
|
@@ -1163,7 +1199,7 @@ var EmbedNode = (props) => {
|
|
|
1163
1199
|
} else {
|
|
1164
1200
|
src = props.node.embedSrc;
|
|
1165
1201
|
}
|
|
1166
|
-
return /* @__PURE__ */
|
|
1202
|
+
return /* @__PURE__ */ jsx30("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx30(IframeClient, { src }) });
|
|
1167
1203
|
};
|
|
1168
1204
|
var EmbedNode_default = EmbedNode;
|
|
1169
1205
|
|
|
@@ -1335,10 +1371,10 @@ var PathUtility = class {
|
|
|
1335
1371
|
var PathUtility_default = new PathUtility();
|
|
1336
1372
|
|
|
1337
1373
|
// src/components/NoDataFound.tsx
|
|
1338
|
-
import { jsx as
|
|
1374
|
+
import { jsx as jsx31, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1339
1375
|
var NoDataFound = () => {
|
|
1340
1376
|
return /* @__PURE__ */ jsxs10("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
1341
|
-
/* @__PURE__ */
|
|
1377
|
+
/* @__PURE__ */ jsx31("div", { className: "mb-5", children: /* @__PURE__ */ jsx31("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx31(
|
|
1342
1378
|
"svg",
|
|
1343
1379
|
{
|
|
1344
1380
|
className: "w-10 h-10",
|
|
@@ -1346,7 +1382,7 @@ var NoDataFound = () => {
|
|
|
1346
1382
|
stroke: "currentColor",
|
|
1347
1383
|
viewBox: "0 0 24 24",
|
|
1348
1384
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1349
|
-
children: /* @__PURE__ */
|
|
1385
|
+
children: /* @__PURE__ */ jsx31(
|
|
1350
1386
|
"path",
|
|
1351
1387
|
{
|
|
1352
1388
|
strokeLinecap: "round",
|
|
@@ -1357,8 +1393,8 @@ var NoDataFound = () => {
|
|
|
1357
1393
|
)
|
|
1358
1394
|
}
|
|
1359
1395
|
) }) }),
|
|
1360
|
-
/* @__PURE__ */
|
|
1361
|
-
/* @__PURE__ */
|
|
1396
|
+
/* @__PURE__ */ jsx31("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
1397
|
+
/* @__PURE__ */ jsx31("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
1362
1398
|
] });
|
|
1363
1399
|
};
|
|
1364
1400
|
var NoDataFound_default = NoDataFound;
|
|
@@ -1368,7 +1404,7 @@ import dynamic10 from "next/dynamic";
|
|
|
1368
1404
|
|
|
1369
1405
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1370
1406
|
import dynamic9 from "next/dynamic";
|
|
1371
|
-
import { Fragment as Fragment5, jsx as
|
|
1407
|
+
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1372
1408
|
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
|
|
1373
1409
|
var deviceToMediaQuery = (device) => {
|
|
1374
1410
|
switch (device) {
|
|
@@ -1498,7 +1534,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1498
1534
|
};
|
|
1499
1535
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1500
1536
|
return /* @__PURE__ */ jsxs11(Fragment5, { children: [
|
|
1501
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
1537
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx32(Fragment5, { children: /* @__PURE__ */ jsx32(
|
|
1502
1538
|
HlsPlayer3,
|
|
1503
1539
|
{
|
|
1504
1540
|
sources: hlsSources,
|
|
@@ -1513,7 +1549,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1513
1549
|
styles: hlsStyles
|
|
1514
1550
|
}
|
|
1515
1551
|
) }),
|
|
1516
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
1552
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx32(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs11("picture", { children: [
|
|
1517
1553
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1518
1554
|
const match = staticSources.find(
|
|
1519
1555
|
(img) => img.device === deviceKey
|
|
@@ -1525,7 +1561,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1525
1561
|
if (!srcUrl) {
|
|
1526
1562
|
return null;
|
|
1527
1563
|
}
|
|
1528
|
-
return /* @__PURE__ */
|
|
1564
|
+
return /* @__PURE__ */ jsx32(
|
|
1529
1565
|
"source",
|
|
1530
1566
|
{
|
|
1531
1567
|
media: deviceToMediaQuery(match.device),
|
|
@@ -1549,7 +1585,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1549
1585
|
if (img.borderRadius) {
|
|
1550
1586
|
styles.borderRadius = img.borderRadius;
|
|
1551
1587
|
}
|
|
1552
|
-
return /* @__PURE__ */
|
|
1588
|
+
return /* @__PURE__ */ jsx32(
|
|
1553
1589
|
"img",
|
|
1554
1590
|
{
|
|
1555
1591
|
loading: "lazy",
|
|
@@ -1564,7 +1600,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1564
1600
|
})()
|
|
1565
1601
|
] }) : (
|
|
1566
1602
|
/* Case 2: Only device-specific images exist */
|
|
1567
|
-
/* @__PURE__ */
|
|
1603
|
+
/* @__PURE__ */ jsx32(Fragment5, { children: staticSources.map((img, index) => {
|
|
1568
1604
|
const imageUrl = resolveImageUrl(img);
|
|
1569
1605
|
if (!imageUrl) {
|
|
1570
1606
|
return null;
|
|
@@ -1590,7 +1626,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1590
1626
|
default:
|
|
1591
1627
|
display = "block";
|
|
1592
1628
|
}
|
|
1593
|
-
return /* @__PURE__ */
|
|
1629
|
+
return /* @__PURE__ */ jsx32(
|
|
1594
1630
|
"img",
|
|
1595
1631
|
{
|
|
1596
1632
|
loading: "lazy",
|
|
@@ -1730,7 +1766,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
1730
1766
|
};
|
|
1731
1767
|
|
|
1732
1768
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
1733
|
-
import { Fragment as Fragment6, jsx as
|
|
1769
|
+
import { Fragment as Fragment6, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1734
1770
|
var getNestedValue5 = (obj, path) => {
|
|
1735
1771
|
if (!obj || !path) return void 0;
|
|
1736
1772
|
return path.split(".").reduce((current, key) => {
|
|
@@ -1744,14 +1780,14 @@ var PdfIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1744
1780
|
viewBox: "0 0 48 48",
|
|
1745
1781
|
className: "w-10 h-10",
|
|
1746
1782
|
children: [
|
|
1747
|
-
/* @__PURE__ */
|
|
1783
|
+
/* @__PURE__ */ jsx33(
|
|
1748
1784
|
"path",
|
|
1749
1785
|
{
|
|
1750
1786
|
fill: "#e53935",
|
|
1751
1787
|
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"
|
|
1752
1788
|
}
|
|
1753
1789
|
),
|
|
1754
|
-
/* @__PURE__ */
|
|
1790
|
+
/* @__PURE__ */ jsx33(
|
|
1755
1791
|
"path",
|
|
1756
1792
|
{
|
|
1757
1793
|
fill: "#fff",
|
|
@@ -1768,48 +1804,48 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1768
1804
|
viewBox: "0 0 48 48",
|
|
1769
1805
|
className: "w-10 h-10",
|
|
1770
1806
|
children: [
|
|
1771
|
-
/* @__PURE__ */
|
|
1807
|
+
/* @__PURE__ */ jsx33(
|
|
1772
1808
|
"path",
|
|
1773
1809
|
{
|
|
1774
1810
|
fill: "#169154",
|
|
1775
1811
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
1776
1812
|
}
|
|
1777
1813
|
),
|
|
1778
|
-
/* @__PURE__ */
|
|
1814
|
+
/* @__PURE__ */ jsx33(
|
|
1779
1815
|
"path",
|
|
1780
1816
|
{
|
|
1781
1817
|
fill: "#18482a",
|
|
1782
1818
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
1783
1819
|
}
|
|
1784
1820
|
),
|
|
1785
|
-
/* @__PURE__ */
|
|
1786
|
-
/* @__PURE__ */
|
|
1821
|
+
/* @__PURE__ */ jsx33("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
1822
|
+
/* @__PURE__ */ jsx33("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
1787
1823
|
/* @__PURE__ */ jsxs12("g", { children: [
|
|
1788
|
-
/* @__PURE__ */
|
|
1824
|
+
/* @__PURE__ */ jsx33(
|
|
1789
1825
|
"path",
|
|
1790
1826
|
{
|
|
1791
1827
|
fill: "#29c27f",
|
|
1792
1828
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
1793
1829
|
}
|
|
1794
1830
|
),
|
|
1795
|
-
/* @__PURE__ */
|
|
1831
|
+
/* @__PURE__ */ jsx33(
|
|
1796
1832
|
"path",
|
|
1797
1833
|
{
|
|
1798
1834
|
fill: "#27663f",
|
|
1799
1835
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
1800
1836
|
}
|
|
1801
1837
|
),
|
|
1802
|
-
/* @__PURE__ */
|
|
1803
|
-
/* @__PURE__ */
|
|
1838
|
+
/* @__PURE__ */ jsx33("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
1839
|
+
/* @__PURE__ */ jsx33("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
1804
1840
|
] }),
|
|
1805
|
-
/* @__PURE__ */
|
|
1841
|
+
/* @__PURE__ */ jsx33(
|
|
1806
1842
|
"path",
|
|
1807
1843
|
{
|
|
1808
1844
|
fill: "#0c7238",
|
|
1809
1845
|
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"
|
|
1810
1846
|
}
|
|
1811
1847
|
),
|
|
1812
|
-
/* @__PURE__ */
|
|
1848
|
+
/* @__PURE__ */ jsx33(
|
|
1813
1849
|
"path",
|
|
1814
1850
|
{
|
|
1815
1851
|
fill: "#fff",
|
|
@@ -1827,7 +1863,7 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1827
1863
|
className: "w-10 h-10",
|
|
1828
1864
|
baseProfile: "basic",
|
|
1829
1865
|
children: [
|
|
1830
|
-
/* @__PURE__ */
|
|
1866
|
+
/* @__PURE__ */ jsx33(
|
|
1831
1867
|
"path",
|
|
1832
1868
|
{
|
|
1833
1869
|
fill: "#283593",
|
|
@@ -1845,19 +1881,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1845
1881
|
gradientTransform: "translate(0 -339.89)",
|
|
1846
1882
|
gradientUnits: "userSpaceOnUse",
|
|
1847
1883
|
children: [
|
|
1848
|
-
/* @__PURE__ */
|
|
1849
|
-
/* @__PURE__ */
|
|
1884
|
+
/* @__PURE__ */ jsx33("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
1885
|
+
/* @__PURE__ */ jsx33("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
1850
1886
|
]
|
|
1851
1887
|
}
|
|
1852
1888
|
),
|
|
1853
|
-
/* @__PURE__ */
|
|
1889
|
+
/* @__PURE__ */ jsx33(
|
|
1854
1890
|
"path",
|
|
1855
1891
|
{
|
|
1856
1892
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
1857
1893
|
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"
|
|
1858
1894
|
}
|
|
1859
1895
|
),
|
|
1860
|
-
/* @__PURE__ */
|
|
1896
|
+
/* @__PURE__ */ jsx33(
|
|
1861
1897
|
"path",
|
|
1862
1898
|
{
|
|
1863
1899
|
fill: "#1e88e5",
|
|
@@ -1865,21 +1901,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1865
1901
|
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"
|
|
1866
1902
|
}
|
|
1867
1903
|
),
|
|
1868
|
-
/* @__PURE__ */
|
|
1904
|
+
/* @__PURE__ */ jsx33(
|
|
1869
1905
|
"path",
|
|
1870
1906
|
{
|
|
1871
1907
|
fill: "#00e5ff",
|
|
1872
1908
|
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"
|
|
1873
1909
|
}
|
|
1874
1910
|
),
|
|
1875
|
-
/* @__PURE__ */
|
|
1911
|
+
/* @__PURE__ */ jsx33(
|
|
1876
1912
|
"path",
|
|
1877
1913
|
{
|
|
1878
1914
|
fill: "#1565c0",
|
|
1879
1915
|
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"
|
|
1880
1916
|
}
|
|
1881
1917
|
),
|
|
1882
|
-
/* @__PURE__ */
|
|
1918
|
+
/* @__PURE__ */ jsx33(
|
|
1883
1919
|
"path",
|
|
1884
1920
|
{
|
|
1885
1921
|
fill: "#fff",
|
|
@@ -1896,8 +1932,8 @@ var StandardIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1896
1932
|
viewBox: "0 0 48 48",
|
|
1897
1933
|
className: "w-10 h-10",
|
|
1898
1934
|
children: [
|
|
1899
|
-
/* @__PURE__ */
|
|
1900
|
-
/* @__PURE__ */
|
|
1935
|
+
/* @__PURE__ */ jsx33("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
1936
|
+
/* @__PURE__ */ jsx33("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
1901
1937
|
]
|
|
1902
1938
|
}
|
|
1903
1939
|
);
|
|
@@ -1908,23 +1944,23 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1908
1944
|
viewBox: "0 0 48 48",
|
|
1909
1945
|
className: "w-10 h-10",
|
|
1910
1946
|
children: [
|
|
1911
|
-
/* @__PURE__ */
|
|
1947
|
+
/* @__PURE__ */ jsx33(
|
|
1912
1948
|
"path",
|
|
1913
1949
|
{
|
|
1914
1950
|
fill: "#dc4c2c",
|
|
1915
1951
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
1916
1952
|
}
|
|
1917
1953
|
),
|
|
1918
|
-
/* @__PURE__ */
|
|
1919
|
-
/* @__PURE__ */
|
|
1920
|
-
/* @__PURE__ */
|
|
1954
|
+
/* @__PURE__ */ jsx33("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
1955
|
+
/* @__PURE__ */ jsx33("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
1956
|
+
/* @__PURE__ */ jsx33(
|
|
1921
1957
|
"path",
|
|
1922
1958
|
{
|
|
1923
1959
|
fill: "#9b341f",
|
|
1924
1960
|
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"
|
|
1925
1961
|
}
|
|
1926
1962
|
),
|
|
1927
|
-
/* @__PURE__ */
|
|
1963
|
+
/* @__PURE__ */ jsx33(
|
|
1928
1964
|
"path",
|
|
1929
1965
|
{
|
|
1930
1966
|
fill: "#fff",
|
|
@@ -1941,9 +1977,9 @@ var TextIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1941
1977
|
viewBox: "0 0 48 48",
|
|
1942
1978
|
className: "w-10 h-10",
|
|
1943
1979
|
children: [
|
|
1944
|
-
/* @__PURE__ */
|
|
1945
|
-
/* @__PURE__ */
|
|
1946
|
-
/* @__PURE__ */
|
|
1980
|
+
/* @__PURE__ */ jsx33("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
1981
|
+
/* @__PURE__ */ jsx33("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
1982
|
+
/* @__PURE__ */ jsx33(
|
|
1947
1983
|
"path",
|
|
1948
1984
|
{
|
|
1949
1985
|
fill: "#1976D2",
|
|
@@ -1963,14 +1999,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1963
1999
|
version: "1.0",
|
|
1964
2000
|
className: "w-10 h-10",
|
|
1965
2001
|
children: [
|
|
1966
|
-
/* @__PURE__ */
|
|
2002
|
+
/* @__PURE__ */ jsx33("defs", { children: /* @__PURE__ */ jsx33("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx33(
|
|
1967
2003
|
"path",
|
|
1968
2004
|
{
|
|
1969
2005
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
1970
2006
|
"clip-rule": "nonzero"
|
|
1971
2007
|
}
|
|
1972
2008
|
) }) }),
|
|
1973
|
-
/* @__PURE__ */
|
|
2009
|
+
/* @__PURE__ */ jsx33("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx33(
|
|
1974
2010
|
"path",
|
|
1975
2011
|
{
|
|
1976
2012
|
fill: "#ff9100",
|
|
@@ -1979,7 +2015,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1979
2015
|
"fill-rule": "nonzero"
|
|
1980
2016
|
}
|
|
1981
2017
|
) }),
|
|
1982
|
-
/* @__PURE__ */
|
|
2018
|
+
/* @__PURE__ */ jsx33(
|
|
1983
2019
|
"path",
|
|
1984
2020
|
{
|
|
1985
2021
|
fill: "#fbe9e7",
|
|
@@ -1988,7 +2024,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1988
2024
|
"fill-rule": "nonzero"
|
|
1989
2025
|
}
|
|
1990
2026
|
),
|
|
1991
|
-
/* @__PURE__ */
|
|
2027
|
+
/* @__PURE__ */ jsx33(
|
|
1992
2028
|
"path",
|
|
1993
2029
|
{
|
|
1994
2030
|
fill: "#ffe0b2",
|
|
@@ -1997,7 +2033,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1997
2033
|
"fill-rule": "nonzero"
|
|
1998
2034
|
}
|
|
1999
2035
|
),
|
|
2000
|
-
/* @__PURE__ */
|
|
2036
|
+
/* @__PURE__ */ jsx33(
|
|
2001
2037
|
"path",
|
|
2002
2038
|
{
|
|
2003
2039
|
fill: "#ffe0b2",
|
|
@@ -2006,7 +2042,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2006
2042
|
"fill-rule": "nonzero"
|
|
2007
2043
|
}
|
|
2008
2044
|
),
|
|
2009
|
-
/* @__PURE__ */
|
|
2045
|
+
/* @__PURE__ */ jsx33(
|
|
2010
2046
|
"path",
|
|
2011
2047
|
{
|
|
2012
2048
|
fill: "#ffe0b2",
|
|
@@ -2082,8 +2118,8 @@ var DocumentNode = (props) => {
|
|
|
2082
2118
|
}
|
|
2083
2119
|
}
|
|
2084
2120
|
if (documents.length === 0) {
|
|
2085
|
-
return /* @__PURE__ */
|
|
2086
|
-
/* @__PURE__ */
|
|
2121
|
+
return /* @__PURE__ */ jsx33(Fragment6, { children: /* @__PURE__ */ jsxs12("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2122
|
+
/* @__PURE__ */ jsx33("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx33(
|
|
2087
2123
|
"svg",
|
|
2088
2124
|
{
|
|
2089
2125
|
className: "w-5 h-5",
|
|
@@ -2091,7 +2127,7 @@ var DocumentNode = (props) => {
|
|
|
2091
2127
|
stroke: "currentColor",
|
|
2092
2128
|
viewBox: "0 0 24 24",
|
|
2093
2129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2094
|
-
children: /* @__PURE__ */
|
|
2130
|
+
children: /* @__PURE__ */ jsx33(
|
|
2095
2131
|
"path",
|
|
2096
2132
|
{
|
|
2097
2133
|
strokeLinecap: "round",
|
|
@@ -2102,11 +2138,11 @@ var DocumentNode = (props) => {
|
|
|
2102
2138
|
)
|
|
2103
2139
|
}
|
|
2104
2140
|
) }),
|
|
2105
|
-
/* @__PURE__ */
|
|
2106
|
-
/* @__PURE__ */
|
|
2141
|
+
/* @__PURE__ */ jsx33("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
2142
|
+
/* @__PURE__ */ jsx33("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
2107
2143
|
] }) });
|
|
2108
2144
|
}
|
|
2109
|
-
return /* @__PURE__ */
|
|
2145
|
+
return /* @__PURE__ */ jsx33("div", { className: "", children: documents.map((doc, index) => {
|
|
2110
2146
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2111
2147
|
props.assetBaseUrl,
|
|
2112
2148
|
doc.assetUrl
|
|
@@ -2130,8 +2166,8 @@ var DocumentNode = (props) => {
|
|
|
2130
2166
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2131
2167
|
children: [
|
|
2132
2168
|
/* @__PURE__ */ jsxs12("div", { className: "flex items-center space-x-4", children: [
|
|
2133
|
-
/* @__PURE__ */
|
|
2134
|
-
/* @__PURE__ */
|
|
2169
|
+
/* @__PURE__ */ jsx33("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx33(Icon, {}) }),
|
|
2170
|
+
/* @__PURE__ */ jsx33("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx33("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
2135
2171
|
] }),
|
|
2136
2172
|
/* @__PURE__ */ jsxs12(
|
|
2137
2173
|
"a",
|
|
@@ -2149,7 +2185,7 @@ var DocumentNode = (props) => {
|
|
|
2149
2185
|
stroke: "currentColor",
|
|
2150
2186
|
viewBox: "0 0 24 24",
|
|
2151
2187
|
children: [
|
|
2152
|
-
/* @__PURE__ */
|
|
2188
|
+
/* @__PURE__ */ jsx33(
|
|
2153
2189
|
"path",
|
|
2154
2190
|
{
|
|
2155
2191
|
strokeLinecap: "round",
|
|
@@ -2158,7 +2194,7 @@ var DocumentNode = (props) => {
|
|
|
2158
2194
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2159
2195
|
}
|
|
2160
2196
|
),
|
|
2161
|
-
/* @__PURE__ */
|
|
2197
|
+
/* @__PURE__ */ jsx33(
|
|
2162
2198
|
"path",
|
|
2163
2199
|
{
|
|
2164
2200
|
strokeLinecap: "round",
|
|
@@ -2183,7 +2219,7 @@ var DocumentNode = (props) => {
|
|
|
2183
2219
|
var DocumentNode_default = DocumentNode;
|
|
2184
2220
|
|
|
2185
2221
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2186
|
-
import { jsx as
|
|
2222
|
+
import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2187
2223
|
var Pagination = dynamic10(() => import("./Pagination-FSYLYKUA.mjs"), { ssr: true });
|
|
2188
2224
|
var Slider = dynamic10(() => import("./Slider-PEIVH6A5.mjs"), {
|
|
2189
2225
|
ssr: false
|
|
@@ -2437,7 +2473,7 @@ var DivContainer = async (props) => {
|
|
|
2437
2473
|
response = await serviceClient.get(endpoint);
|
|
2438
2474
|
result = response?.result;
|
|
2439
2475
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
2440
|
-
return /* @__PURE__ */
|
|
2476
|
+
return /* @__PURE__ */ jsx34(NoDataFound_default, {});
|
|
2441
2477
|
}
|
|
2442
2478
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
2443
2479
|
childCollectionData = getNestedValue6(
|
|
@@ -2457,7 +2493,7 @@ var DivContainer = async (props) => {
|
|
|
2457
2493
|
}
|
|
2458
2494
|
const SelectedNode = NodeTypes2[node.type];
|
|
2459
2495
|
if (!SelectedNode) return null;
|
|
2460
|
-
return /* @__PURE__ */
|
|
2496
|
+
return /* @__PURE__ */ jsx34(React22.Fragment, { children: /* @__PURE__ */ jsx34(
|
|
2461
2497
|
SelectedNode,
|
|
2462
2498
|
{
|
|
2463
2499
|
node,
|
|
@@ -2561,7 +2597,7 @@ var DivContainer = async (props) => {
|
|
|
2561
2597
|
noLinkColor = true;
|
|
2562
2598
|
wrapperProps = {
|
|
2563
2599
|
href,
|
|
2564
|
-
"data-
|
|
2600
|
+
"data-isselected": isSelected,
|
|
2565
2601
|
"data-path": currentPath,
|
|
2566
2602
|
"data-href": resolvedHref
|
|
2567
2603
|
};
|
|
@@ -2589,14 +2625,14 @@ var DivContainer = async (props) => {
|
|
|
2589
2625
|
props.node.bgClass,
|
|
2590
2626
|
noLinkColor && "no-link-color"
|
|
2591
2627
|
].filter(Boolean).join(" ");
|
|
2592
|
-
return /* @__PURE__ */ jsxs13(
|
|
2593
|
-
/* @__PURE__ */
|
|
2628
|
+
return /* @__PURE__ */ jsxs13(React22.Fragment, { children: [
|
|
2629
|
+
/* @__PURE__ */ jsx34(
|
|
2594
2630
|
"style",
|
|
2595
2631
|
{
|
|
2596
2632
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2597
2633
|
}
|
|
2598
2634
|
),
|
|
2599
|
-
/* @__PURE__ */
|
|
2635
|
+
/* @__PURE__ */ jsx34(React22.Fragment, { children: /* @__PURE__ */ jsx34(
|
|
2600
2636
|
Wrapper,
|
|
2601
2637
|
{
|
|
2602
2638
|
id: guid,
|
|
@@ -2610,11 +2646,11 @@ var DivContainer = async (props) => {
|
|
|
2610
2646
|
item,
|
|
2611
2647
|
idx,
|
|
2612
2648
|
props.href ? void 0 : item?.links?.view
|
|
2613
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2649
|
+
)?.map((child, i) => /* @__PURE__ */ jsx34(React22.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
2614
2650
|
)
|
|
2615
2651
|
}
|
|
2616
2652
|
) }),
|
|
2617
|
-
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */
|
|
2653
|
+
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx34("div", { children: /* @__PURE__ */ jsx34(
|
|
2618
2654
|
Pagination,
|
|
2619
2655
|
{
|
|
2620
2656
|
path: props.path,
|
|
@@ -2627,7 +2663,7 @@ var DivContainer = async (props) => {
|
|
|
2627
2663
|
var DivContainer_default = DivContainer;
|
|
2628
2664
|
|
|
2629
2665
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2630
|
-
import { jsx as
|
|
2666
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2631
2667
|
var NodeTypes = {
|
|
2632
2668
|
["paragraph"]: ParagraphNode_default,
|
|
2633
2669
|
["heading"]: HeadingNode_default,
|
|
@@ -2664,14 +2700,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2664
2700
|
}
|
|
2665
2701
|
return true;
|
|
2666
2702
|
};
|
|
2667
|
-
return /* @__PURE__ */
|
|
2703
|
+
return /* @__PURE__ */ jsx35(React23.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2668
2704
|
{
|
|
2669
2705
|
}
|
|
2670
2706
|
const SelectedNode = NodeTypes[node.type];
|
|
2671
2707
|
if (!shouldRenderNode(node)) {
|
|
2672
2708
|
return null;
|
|
2673
2709
|
}
|
|
2674
|
-
return /* @__PURE__ */
|
|
2710
|
+
return /* @__PURE__ */ jsx35(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx35(React23.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2675
2711
|
SelectedNode,
|
|
2676
2712
|
{
|
|
2677
2713
|
node,
|
|
@@ -2687,7 +2723,7 @@ var PageBodyRenderer = (props) => {
|
|
|
2687
2723
|
device: props.device,
|
|
2688
2724
|
widgetRenderer: props.widgetRenderer
|
|
2689
2725
|
}
|
|
2690
|
-
) }) : /* @__PURE__ */
|
|
2726
|
+
) }) : /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2691
2727
|
SelectedNode,
|
|
2692
2728
|
{
|
|
2693
2729
|
node,
|
|
@@ -2709,7 +2745,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
|
|
|
2709
2745
|
|
|
2710
2746
|
// src/components/Toast.tsx
|
|
2711
2747
|
import { useState } from "react";
|
|
2712
|
-
import { Fragment as Fragment7, jsx as
|
|
2748
|
+
import { Fragment as Fragment7, jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2713
2749
|
var Toast = () => {
|
|
2714
2750
|
const [showToast, setShowToast] = useState(false);
|
|
2715
2751
|
const [message, setMessage] = useState("");
|
|
@@ -2752,8 +2788,8 @@ var Toast = () => {
|
|
|
2752
2788
|
const closeToast = () => {
|
|
2753
2789
|
setShowToast(false);
|
|
2754
2790
|
};
|
|
2755
|
-
return /* @__PURE__ */
|
|
2756
|
-
/* @__PURE__ */
|
|
2791
|
+
return /* @__PURE__ */ jsx36(Fragment7, { children: showToast && /* @__PURE__ */ jsx36("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__ */ jsxs14("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
|
|
2792
|
+
/* @__PURE__ */ jsx36(
|
|
2757
2793
|
"span",
|
|
2758
2794
|
{
|
|
2759
2795
|
className: "font-medium text-inherit text-sm",
|
|
@@ -2761,7 +2797,7 @@ var Toast = () => {
|
|
|
2761
2797
|
children: message
|
|
2762
2798
|
}
|
|
2763
2799
|
),
|
|
2764
|
-
/* @__PURE__ */
|
|
2800
|
+
/* @__PURE__ */ jsx36("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx36(
|
|
2765
2801
|
"svg",
|
|
2766
2802
|
{
|
|
2767
2803
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2769,7 +2805,7 @@ var Toast = () => {
|
|
|
2769
2805
|
fill: "none",
|
|
2770
2806
|
viewBox: "0 0 24 24",
|
|
2771
2807
|
stroke: "currentColor",
|
|
2772
|
-
children: /* @__PURE__ */
|
|
2808
|
+
children: /* @__PURE__ */ jsx36("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
|
|
2773
2809
|
}
|
|
2774
2810
|
) })
|
|
2775
2811
|
] }) }) });
|
|
@@ -2779,7 +2815,7 @@ var Toast_default = Toast;
|
|
|
2779
2815
|
// src/components/NavigationTabsV2.tsx
|
|
2780
2816
|
import Link2 from "next/link";
|
|
2781
2817
|
import { usePathname } from "next/navigation";
|
|
2782
|
-
import { jsx as
|
|
2818
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2783
2819
|
function resolveRoutePlaceholders(route, params) {
|
|
2784
2820
|
return route.replace(/\{([^}]+)\}/g, (match, key) => {
|
|
2785
2821
|
const value = params[key];
|
|
@@ -2804,8 +2840,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
2804
2840
|
isActive: tab.isActive
|
|
2805
2841
|
})) || [];
|
|
2806
2842
|
if (mappedTabs.length === 0) return null;
|
|
2807
|
-
return /* @__PURE__ */
|
|
2808
|
-
return /* @__PURE__ */
|
|
2843
|
+
return /* @__PURE__ */ jsx37("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
|
|
2844
|
+
return /* @__PURE__ */ jsx37(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx37(
|
|
2809
2845
|
"div",
|
|
2810
2846
|
{
|
|
2811
2847
|
className: `text-sm font-medium border-b-2 px-6 py-2 transition
|
|
@@ -2818,51 +2854,51 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
2818
2854
|
var NavigationTabsV2_default = NavigationTabsV2;
|
|
2819
2855
|
|
|
2820
2856
|
// src/components/dataForm/DataList.tsx
|
|
2821
|
-
import
|
|
2857
|
+
import React27, { useEffect, useState as useState2, useCallback, useReducer } from "react";
|
|
2822
2858
|
import { useRouter } from "next/navigation";
|
|
2823
2859
|
|
|
2824
2860
|
// src/components/dataForm/NoContentView.tsx
|
|
2825
|
-
import
|
|
2826
|
-
import { jsx as
|
|
2861
|
+
import React25 from "react";
|
|
2862
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2827
2863
|
var NoContentView = (props) => {
|
|
2828
|
-
return /* @__PURE__ */
|
|
2864
|
+
return /* @__PURE__ */ jsx38(React25.Fragment, { children: props.isDataFound === false && props.children });
|
|
2829
2865
|
};
|
|
2830
2866
|
var NoContentView_default = NoContentView;
|
|
2831
2867
|
|
|
2832
2868
|
// src/components/dataForm/ContentView.tsx
|
|
2833
|
-
import
|
|
2834
|
-
import { jsx as
|
|
2869
|
+
import React26 from "react";
|
|
2870
|
+
import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2835
2871
|
var ContentView = (props) => {
|
|
2836
|
-
return /* @__PURE__ */ jsxs15(
|
|
2837
|
-
props.isDataFound == null && /* @__PURE__ */
|
|
2872
|
+
return /* @__PURE__ */ jsxs15(React26.Fragment, { children: [
|
|
2873
|
+
props.isDataFound == null && /* @__PURE__ */ jsx39("div", { className: "", children: /* @__PURE__ */ jsxs15("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
2838
2874
|
/* @__PURE__ */ jsxs15("div", { className: "flex items-center mb-4", children: [
|
|
2839
|
-
/* @__PURE__ */
|
|
2875
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
2840
2876
|
/* @__PURE__ */ jsxs15("div", { className: "ml-2", children: [
|
|
2841
|
-
/* @__PURE__ */
|
|
2842
|
-
/* @__PURE__ */
|
|
2877
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
2878
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
2843
2879
|
] })
|
|
2844
2880
|
] }),
|
|
2845
2881
|
/* @__PURE__ */ jsxs15("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
2846
2882
|
/* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
|
|
2847
|
-
/* @__PURE__ */
|
|
2848
|
-
/* @__PURE__ */
|
|
2849
|
-
/* @__PURE__ */
|
|
2850
|
-
/* @__PURE__ */
|
|
2851
|
-
/* @__PURE__ */
|
|
2883
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2884
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2885
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
2886
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
2887
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
2852
2888
|
] }),
|
|
2853
2889
|
/* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
|
|
2854
|
-
/* @__PURE__ */
|
|
2855
|
-
/* @__PURE__ */
|
|
2856
|
-
/* @__PURE__ */
|
|
2857
|
-
/* @__PURE__ */
|
|
2858
|
-
/* @__PURE__ */
|
|
2890
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2891
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2892
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
2893
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
2894
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
2859
2895
|
] }),
|
|
2860
2896
|
/* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
|
|
2861
|
-
/* @__PURE__ */
|
|
2862
|
-
/* @__PURE__ */
|
|
2863
|
-
/* @__PURE__ */
|
|
2864
|
-
/* @__PURE__ */
|
|
2865
|
-
/* @__PURE__ */
|
|
2897
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2898
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2899
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
2900
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
2901
|
+
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
2866
2902
|
] })
|
|
2867
2903
|
] })
|
|
2868
2904
|
] }) }),
|
|
@@ -2916,7 +2952,7 @@ function FormReducer(state, action) {
|
|
|
2916
2952
|
var FormReducer_default = FormReducer;
|
|
2917
2953
|
|
|
2918
2954
|
// src/components/dataForm/DataList.tsx
|
|
2919
|
-
import { Fragment as Fragment8, jsx as
|
|
2955
|
+
import { Fragment as Fragment8, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2920
2956
|
var DataList = (props) => {
|
|
2921
2957
|
const router = useRouter();
|
|
2922
2958
|
let builder = new OdataBuilder(props.path);
|
|
@@ -2954,7 +2990,7 @@ var DataList = (props) => {
|
|
|
2954
2990
|
if (path.includes(".")) {
|
|
2955
2991
|
return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
|
|
2956
2992
|
} else if (Array.isArray(obj[path])) {
|
|
2957
|
-
return obj[path].map((item, index) => /* @__PURE__ */
|
|
2993
|
+
return obj[path].map((item, index) => /* @__PURE__ */ jsx40("div", { children: item }, index));
|
|
2958
2994
|
} else {
|
|
2959
2995
|
return obj[path];
|
|
2960
2996
|
}
|
|
@@ -3033,30 +3069,30 @@ var DataList = (props) => {
|
|
|
3033
3069
|
const renderPageNumbers = () => {
|
|
3034
3070
|
if (pages <= 10) {
|
|
3035
3071
|
return Array.from({ length: pages }, (_, index) => index + 1).map(
|
|
3036
|
-
(page) => /* @__PURE__ */
|
|
3072
|
+
(page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
|
|
3037
3073
|
Hyperlink,
|
|
3038
3074
|
{
|
|
3039
3075
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3040
3076
|
href: builder.getNewPageUrl(page),
|
|
3041
3077
|
children: page
|
|
3042
3078
|
}
|
|
3043
|
-
) : /* @__PURE__ */
|
|
3079
|
+
) : /* @__PURE__ */ jsx40("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
3044
3080
|
);
|
|
3045
3081
|
} else {
|
|
3046
3082
|
const showFirstPages = activePageNumber <= 5;
|
|
3047
3083
|
const showLastPages = activePageNumber > pages - 5;
|
|
3048
3084
|
if (showFirstPages) {
|
|
3049
3085
|
return /* @__PURE__ */ jsxs16(Fragment8, { children: [
|
|
3050
|
-
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */
|
|
3086
|
+
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
|
|
3051
3087
|
Hyperlink,
|
|
3052
3088
|
{
|
|
3053
3089
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3054
3090
|
href: builder.getNewPageUrl(page),
|
|
3055
3091
|
children: page
|
|
3056
3092
|
}
|
|
3057
|
-
) : /* @__PURE__ */
|
|
3058
|
-
/* @__PURE__ */
|
|
3059
|
-
/* @__PURE__ */
|
|
3093
|
+
) : /* @__PURE__ */ jsx40("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
3094
|
+
/* @__PURE__ */ jsx40("span", { className: "px-2 py-1", children: "..." }),
|
|
3095
|
+
/* @__PURE__ */ jsx40(
|
|
3060
3096
|
Hyperlink,
|
|
3061
3097
|
{
|
|
3062
3098
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3064,7 +3100,7 @@ var DataList = (props) => {
|
|
|
3064
3100
|
children: pages - 1
|
|
3065
3101
|
}
|
|
3066
3102
|
),
|
|
3067
|
-
/* @__PURE__ */
|
|
3103
|
+
/* @__PURE__ */ jsx40(
|
|
3068
3104
|
Hyperlink,
|
|
3069
3105
|
{
|
|
3070
3106
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3072,7 +3108,7 @@ var DataList = (props) => {
|
|
|
3072
3108
|
children: pages
|
|
3073
3109
|
}
|
|
3074
3110
|
),
|
|
3075
|
-
/* @__PURE__ */
|
|
3111
|
+
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
|
|
3076
3112
|
"select",
|
|
3077
3113
|
{
|
|
3078
3114
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3084,18 +3120,18 @@ var DataList = (props) => {
|
|
|
3084
3120
|
}
|
|
3085
3121
|
},
|
|
3086
3122
|
children: [
|
|
3087
|
-
/* @__PURE__ */
|
|
3123
|
+
/* @__PURE__ */ jsx40("option", { className: "", value: "", children: "Jump to" }),
|
|
3088
3124
|
Array.from(
|
|
3089
3125
|
{ length: Math.max(0, pages - 10) },
|
|
3090
3126
|
(_, index) => index + 9
|
|
3091
|
-
).map((page) => /* @__PURE__ */
|
|
3127
|
+
).map((page) => /* @__PURE__ */ jsx40("option", { value: page, children: page }, page))
|
|
3092
3128
|
]
|
|
3093
3129
|
}
|
|
3094
3130
|
) })
|
|
3095
3131
|
] });
|
|
3096
3132
|
} else if (showLastPages) {
|
|
3097
3133
|
return /* @__PURE__ */ jsxs16(Fragment8, { children: [
|
|
3098
|
-
/* @__PURE__ */
|
|
3134
|
+
/* @__PURE__ */ jsx40(
|
|
3099
3135
|
Hyperlink,
|
|
3100
3136
|
{
|
|
3101
3137
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3103,7 +3139,7 @@ var DataList = (props) => {
|
|
|
3103
3139
|
children: "1"
|
|
3104
3140
|
}
|
|
3105
3141
|
),
|
|
3106
|
-
/* @__PURE__ */
|
|
3142
|
+
/* @__PURE__ */ jsx40(
|
|
3107
3143
|
Hyperlink,
|
|
3108
3144
|
{
|
|
3109
3145
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3111,21 +3147,21 @@ var DataList = (props) => {
|
|
|
3111
3147
|
children: "2"
|
|
3112
3148
|
}
|
|
3113
3149
|
),
|
|
3114
|
-
/* @__PURE__ */
|
|
3150
|
+
/* @__PURE__ */ jsx40("span", { className: "px-2 py-1", children: "..." }),
|
|
3115
3151
|
Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
|
|
3116
|
-
(page) => /* @__PURE__ */
|
|
3152
|
+
(page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
|
|
3117
3153
|
Hyperlink,
|
|
3118
3154
|
{
|
|
3119
3155
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3120
3156
|
href: builder.getNewPageUrl(page),
|
|
3121
3157
|
children: page
|
|
3122
3158
|
}
|
|
3123
|
-
) : /* @__PURE__ */
|
|
3159
|
+
) : /* @__PURE__ */ jsx40("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
3124
3160
|
)
|
|
3125
3161
|
] });
|
|
3126
3162
|
} else {
|
|
3127
3163
|
return /* @__PURE__ */ jsxs16(Fragment8, { children: [
|
|
3128
|
-
/* @__PURE__ */
|
|
3164
|
+
/* @__PURE__ */ jsx40(
|
|
3129
3165
|
Hyperlink,
|
|
3130
3166
|
{
|
|
3131
3167
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3133,7 +3169,7 @@ var DataList = (props) => {
|
|
|
3133
3169
|
children: "1"
|
|
3134
3170
|
}
|
|
3135
3171
|
),
|
|
3136
|
-
/* @__PURE__ */
|
|
3172
|
+
/* @__PURE__ */ jsx40(
|
|
3137
3173
|
Hyperlink,
|
|
3138
3174
|
{
|
|
3139
3175
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3141,20 +3177,20 @@ var DataList = (props) => {
|
|
|
3141
3177
|
children: "2"
|
|
3142
3178
|
}
|
|
3143
3179
|
),
|
|
3144
|
-
/* @__PURE__ */
|
|
3180
|
+
/* @__PURE__ */ jsx40("span", { className: "px-2 py-1", children: "..." }),
|
|
3145
3181
|
Array.from(
|
|
3146
3182
|
{ length: 5 },
|
|
3147
3183
|
(_, index) => activePageNumber - 2 + index
|
|
3148
|
-
).map((page) => /* @__PURE__ */
|
|
3184
|
+
).map((page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
|
|
3149
3185
|
Hyperlink,
|
|
3150
3186
|
{
|
|
3151
3187
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3152
3188
|
href: builder.getNewPageUrl(page),
|
|
3153
3189
|
children: page
|
|
3154
3190
|
}
|
|
3155
|
-
) : /* @__PURE__ */
|
|
3156
|
-
/* @__PURE__ */
|
|
3157
|
-
/* @__PURE__ */
|
|
3191
|
+
) : /* @__PURE__ */ jsx40("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
3192
|
+
/* @__PURE__ */ jsx40("span", { className: "px-2 py-1", children: "..." }),
|
|
3193
|
+
/* @__PURE__ */ jsx40(
|
|
3158
3194
|
Hyperlink,
|
|
3159
3195
|
{
|
|
3160
3196
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3162,7 +3198,7 @@ var DataList = (props) => {
|
|
|
3162
3198
|
children: pages - 1
|
|
3163
3199
|
}
|
|
3164
3200
|
),
|
|
3165
|
-
/* @__PURE__ */
|
|
3201
|
+
/* @__PURE__ */ jsx40(
|
|
3166
3202
|
Hyperlink,
|
|
3167
3203
|
{
|
|
3168
3204
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3170,7 +3206,7 @@ var DataList = (props) => {
|
|
|
3170
3206
|
children: pages
|
|
3171
3207
|
}
|
|
3172
3208
|
),
|
|
3173
|
-
/* @__PURE__ */
|
|
3209
|
+
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
|
|
3174
3210
|
"select",
|
|
3175
3211
|
{
|
|
3176
3212
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3182,8 +3218,8 @@ var DataList = (props) => {
|
|
|
3182
3218
|
}
|
|
3183
3219
|
},
|
|
3184
3220
|
children: [
|
|
3185
|
-
/* @__PURE__ */
|
|
3186
|
-
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */
|
|
3221
|
+
/* @__PURE__ */ jsx40("option", { value: "", children: "Jump to" }),
|
|
3222
|
+
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx40("option", { value: page, children: page }, page))
|
|
3187
3223
|
]
|
|
3188
3224
|
}
|
|
3189
3225
|
) })
|
|
@@ -3191,16 +3227,16 @@ var DataList = (props) => {
|
|
|
3191
3227
|
}
|
|
3192
3228
|
}
|
|
3193
3229
|
};
|
|
3194
|
-
return /* @__PURE__ */ jsxs16(
|
|
3230
|
+
return /* @__PURE__ */ jsxs16(React27.Fragment, { children: [
|
|
3195
3231
|
/* @__PURE__ */ jsxs16(ContentView_default, { isDataFound, children: [
|
|
3196
3232
|
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs16(
|
|
3197
3233
|
"div",
|
|
3198
3234
|
{
|
|
3199
3235
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
3200
3236
|
children: [
|
|
3201
|
-
props.title ? /* @__PURE__ */
|
|
3237
|
+
props.title ? /* @__PURE__ */ jsx40("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx40("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx40("div", {}),
|
|
3202
3238
|
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-3", children: [
|
|
3203
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */
|
|
3239
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
|
|
3204
3240
|
InputControl_default,
|
|
3205
3241
|
{
|
|
3206
3242
|
name: "Search_input",
|
|
@@ -3212,7 +3248,7 @@ var DataList = (props) => {
|
|
|
3212
3248
|
}
|
|
3213
3249
|
}
|
|
3214
3250
|
),
|
|
3215
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */
|
|
3251
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx40(
|
|
3216
3252
|
InputControl_default,
|
|
3217
3253
|
{
|
|
3218
3254
|
name: filter.name,
|
|
@@ -3234,8 +3270,8 @@ var DataList = (props) => {
|
|
|
3234
3270
|
linkType: "Primary" /* Solid */,
|
|
3235
3271
|
href: props.addLinkHref,
|
|
3236
3272
|
children: [
|
|
3237
|
-
/* @__PURE__ */
|
|
3238
|
-
/* @__PURE__ */
|
|
3273
|
+
/* @__PURE__ */ jsx40(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
3274
|
+
/* @__PURE__ */ jsx40("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
3239
3275
|
]
|
|
3240
3276
|
}
|
|
3241
3277
|
)
|
|
@@ -3243,8 +3279,8 @@ var DataList = (props) => {
|
|
|
3243
3279
|
]
|
|
3244
3280
|
}
|
|
3245
3281
|
),
|
|
3246
|
-
/* @__PURE__ */
|
|
3247
|
-
/* @__PURE__ */
|
|
3282
|
+
/* @__PURE__ */ jsx40("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs16("table", { className: "w-full divide-y divide-gray-200", children: [
|
|
3283
|
+
/* @__PURE__ */ jsx40("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx40("tr", { children: props?.columns?.map((column) => {
|
|
3248
3284
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3249
3285
|
let icon = "chevronUpDown";
|
|
3250
3286
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -3254,18 +3290,18 @@ var DataList = (props) => {
|
|
|
3254
3290
|
icon = "chevronUp";
|
|
3255
3291
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
3256
3292
|
}
|
|
3257
|
-
return /* @__PURE__ */
|
|
3293
|
+
return /* @__PURE__ */ jsx40(
|
|
3258
3294
|
"th",
|
|
3259
3295
|
{
|
|
3260
3296
|
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" : ""),
|
|
3261
|
-
children: /* @__PURE__ */
|
|
3297
|
+
children: /* @__PURE__ */ jsx40(
|
|
3262
3298
|
Hyperlink,
|
|
3263
3299
|
{
|
|
3264
3300
|
href: column.enableSorting ? url : void 0,
|
|
3265
3301
|
className: "!text-neutral-contrast ",
|
|
3266
3302
|
children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center space-x-1", children: [
|
|
3267
|
-
/* @__PURE__ */
|
|
3268
|
-
column.enableSorting && /* @__PURE__ */
|
|
3303
|
+
/* @__PURE__ */ jsx40("span", { className: "text-black", children: column.label }),
|
|
3304
|
+
column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3269
3305
|
] })
|
|
3270
3306
|
}
|
|
3271
3307
|
)
|
|
@@ -3273,24 +3309,24 @@ var DataList = (props) => {
|
|
|
3273
3309
|
column.name
|
|
3274
3310
|
);
|
|
3275
3311
|
}) }) }),
|
|
3276
|
-
/* @__PURE__ */
|
|
3312
|
+
/* @__PURE__ */ jsx40("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
3277
3313
|
let validityClass = "";
|
|
3278
3314
|
console.log("dataitem", dataitem);
|
|
3279
3315
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
3280
3316
|
validityClass = "bg-alert-200";
|
|
3281
3317
|
}
|
|
3282
|
-
return /* @__PURE__ */
|
|
3318
|
+
return /* @__PURE__ */ jsx40("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
|
|
3283
3319
|
console.log("column", column);
|
|
3284
|
-
return /* @__PURE__ */
|
|
3320
|
+
return /* @__PURE__ */ jsx40(React27.Fragment, { children: /* @__PURE__ */ jsx40(
|
|
3285
3321
|
"td",
|
|
3286
3322
|
{
|
|
3287
3323
|
className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
|
|
3288
|
-
children: column.addhref === true ? /* @__PURE__ */
|
|
3324
|
+
children: column.addhref === true ? /* @__PURE__ */ jsx40(
|
|
3289
3325
|
Hyperlink,
|
|
3290
3326
|
{
|
|
3291
3327
|
className: "",
|
|
3292
3328
|
href: `https://${dataitem[column.name]}`,
|
|
3293
|
-
children: /* @__PURE__ */
|
|
3329
|
+
children: /* @__PURE__ */ jsx40(
|
|
3294
3330
|
ViewControl_default,
|
|
3295
3331
|
{
|
|
3296
3332
|
controlType: column.controlType,
|
|
@@ -3303,11 +3339,11 @@ var DataList = (props) => {
|
|
|
3303
3339
|
}
|
|
3304
3340
|
)
|
|
3305
3341
|
}
|
|
3306
|
-
) : column.showAsLink ? /* @__PURE__ */
|
|
3342
|
+
) : column.showAsLink ? /* @__PURE__ */ jsx40(
|
|
3307
3343
|
Hyperlink,
|
|
3308
3344
|
{
|
|
3309
3345
|
href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
|
|
3310
|
-
children: /* @__PURE__ */
|
|
3346
|
+
children: /* @__PURE__ */ jsx40(
|
|
3311
3347
|
ViewControl_default,
|
|
3312
3348
|
{
|
|
3313
3349
|
controlType: column.controlType,
|
|
@@ -3317,7 +3353,7 @@ var DataList = (props) => {
|
|
|
3317
3353
|
}
|
|
3318
3354
|
)
|
|
3319
3355
|
}
|
|
3320
|
-
) : /* @__PURE__ */
|
|
3356
|
+
) : /* @__PURE__ */ jsx40(
|
|
3321
3357
|
ViewControl_default,
|
|
3322
3358
|
{
|
|
3323
3359
|
controlType: column.controlType,
|
|
@@ -3331,10 +3367,10 @@ var DataList = (props) => {
|
|
|
3331
3367
|
}) }, index);
|
|
3332
3368
|
}) })
|
|
3333
3369
|
] }) }),
|
|
3334
|
-
/* @__PURE__ */
|
|
3335
|
-
/* @__PURE__ */
|
|
3370
|
+
/* @__PURE__ */ jsx40("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs16("div", { className: "flex items-center justify-between", children: [
|
|
3371
|
+
/* @__PURE__ */ jsx40("div", { className: "text-gray-700", children: label }),
|
|
3336
3372
|
/* @__PURE__ */ jsxs16("div", { className: "flex space-x-2 items-center", children: [
|
|
3337
|
-
activePageNumber > 1 && /* @__PURE__ */
|
|
3373
|
+
activePageNumber > 1 && /* @__PURE__ */ jsx40(
|
|
3338
3374
|
Hyperlink,
|
|
3339
3375
|
{
|
|
3340
3376
|
className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -3342,9 +3378,9 @@ var DataList = (props) => {
|
|
|
3342
3378
|
children: "Prev"
|
|
3343
3379
|
}
|
|
3344
3380
|
),
|
|
3345
|
-
activePageNumber <= 1 && /* @__PURE__ */
|
|
3381
|
+
activePageNumber <= 1 && /* @__PURE__ */ jsx40("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" }),
|
|
3346
3382
|
renderPageNumbers(),
|
|
3347
|
-
activePageNumber < pages && /* @__PURE__ */
|
|
3383
|
+
activePageNumber < pages && /* @__PURE__ */ jsx40(
|
|
3348
3384
|
Hyperlink,
|
|
3349
3385
|
{
|
|
3350
3386
|
className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -3352,7 +3388,7 @@ var DataList = (props) => {
|
|
|
3352
3388
|
children: "Next"
|
|
3353
3389
|
}
|
|
3354
3390
|
),
|
|
3355
|
-
activePageNumber >= pages && /* @__PURE__ */
|
|
3391
|
+
activePageNumber >= pages && /* @__PURE__ */ jsx40("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
|
|
3356
3392
|
] })
|
|
3357
3393
|
] }) })
|
|
3358
3394
|
] }),
|
|
@@ -3362,9 +3398,9 @@ var DataList = (props) => {
|
|
|
3362
3398
|
{
|
|
3363
3399
|
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`,
|
|
3364
3400
|
children: [
|
|
3365
|
-
props.title ? /* @__PURE__ */
|
|
3401
|
+
props.title ? /* @__PURE__ */ jsx40("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx40("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx40("div", {}),
|
|
3366
3402
|
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-3", children: [
|
|
3367
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */
|
|
3403
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
|
|
3368
3404
|
InputControl_default,
|
|
3369
3405
|
{
|
|
3370
3406
|
name: "Search_input",
|
|
@@ -3376,7 +3412,7 @@ var DataList = (props) => {
|
|
|
3376
3412
|
}
|
|
3377
3413
|
}
|
|
3378
3414
|
),
|
|
3379
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */
|
|
3415
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx40(
|
|
3380
3416
|
InputControl_default,
|
|
3381
3417
|
{
|
|
3382
3418
|
name: filter.name,
|
|
@@ -3398,8 +3434,8 @@ var DataList = (props) => {
|
|
|
3398
3434
|
linkType: "Primary" /* Solid */,
|
|
3399
3435
|
href: props.addLinkHref,
|
|
3400
3436
|
children: [
|
|
3401
|
-
/* @__PURE__ */
|
|
3402
|
-
/* @__PURE__ */
|
|
3437
|
+
/* @__PURE__ */ jsx40(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
3438
|
+
/* @__PURE__ */ jsx40("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
3403
3439
|
]
|
|
3404
3440
|
}
|
|
3405
3441
|
)
|
|
@@ -3408,7 +3444,7 @@ var DataList = (props) => {
|
|
|
3408
3444
|
}
|
|
3409
3445
|
),
|
|
3410
3446
|
/* @__PURE__ */ jsxs16("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
3411
|
-
/* @__PURE__ */
|
|
3447
|
+
/* @__PURE__ */ jsx40("div", { children: /* @__PURE__ */ jsx40("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx40("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx40("tr", { children: props?.columns?.map((column) => {
|
|
3412
3448
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3413
3449
|
let icon = "chevronUpDown";
|
|
3414
3450
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -3418,18 +3454,18 @@ var DataList = (props) => {
|
|
|
3418
3454
|
icon = "chevronUp";
|
|
3419
3455
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
3420
3456
|
}
|
|
3421
|
-
return /* @__PURE__ */
|
|
3457
|
+
return /* @__PURE__ */ jsx40(
|
|
3422
3458
|
"th",
|
|
3423
3459
|
{
|
|
3424
3460
|
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" : ""),
|
|
3425
|
-
children: /* @__PURE__ */
|
|
3461
|
+
children: /* @__PURE__ */ jsx40(
|
|
3426
3462
|
Hyperlink,
|
|
3427
3463
|
{
|
|
3428
3464
|
href: column.enableSorting ? url : void 0,
|
|
3429
3465
|
className: "text-body-950",
|
|
3430
3466
|
children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center space-x-1", children: [
|
|
3431
|
-
/* @__PURE__ */
|
|
3432
|
-
column.enableSorting && /* @__PURE__ */
|
|
3467
|
+
/* @__PURE__ */ jsx40("span", { children: column.label }),
|
|
3468
|
+
column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3433
3469
|
] })
|
|
3434
3470
|
}
|
|
3435
3471
|
)
|
|
@@ -3437,7 +3473,7 @@ var DataList = (props) => {
|
|
|
3437
3473
|
column.name
|
|
3438
3474
|
);
|
|
3439
3475
|
}) }) }) }) }),
|
|
3440
|
-
/* @__PURE__ */
|
|
3476
|
+
/* @__PURE__ */ jsx40("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
|
|
3441
3477
|
] })
|
|
3442
3478
|
] })
|
|
3443
3479
|
] });
|
|
@@ -3445,9 +3481,9 @@ var DataList = (props) => {
|
|
|
3445
3481
|
var DataList_default = DataList;
|
|
3446
3482
|
|
|
3447
3483
|
// src/components/dataForm/DataListRenderer.tsx
|
|
3448
|
-
import
|
|
3484
|
+
import React28, { useState as useState3, useEffect as useEffect2 } from "react";
|
|
3449
3485
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
3450
|
-
import { jsx as
|
|
3486
|
+
import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3451
3487
|
var viewControlMap = {
|
|
3452
3488
|
number: ViewControlTypes.number,
|
|
3453
3489
|
lineText: ViewControlTypes.lineText,
|
|
@@ -3542,15 +3578,15 @@ var DataListRenderer = ({
|
|
|
3542
3578
|
isActive: landingPageUrl === pathname
|
|
3543
3579
|
};
|
|
3544
3580
|
});
|
|
3545
|
-
return /* @__PURE__ */ jsxs17(
|
|
3546
|
-
resolvedTabs.length > 0 && /* @__PURE__ */
|
|
3581
|
+
return /* @__PURE__ */ jsxs17(React28.Fragment, { children: [
|
|
3582
|
+
resolvedTabs.length > 0 && /* @__PURE__ */ jsx41(
|
|
3547
3583
|
NavigationTabsV2_default,
|
|
3548
3584
|
{
|
|
3549
3585
|
tabs: resolvedTabs,
|
|
3550
3586
|
params: widgetProps?.params ?? params
|
|
3551
3587
|
}
|
|
3552
3588
|
),
|
|
3553
|
-
/* @__PURE__ */
|
|
3589
|
+
/* @__PURE__ */ jsx41(
|
|
3554
3590
|
DataList_default,
|
|
3555
3591
|
{
|
|
3556
3592
|
addLinkHref,
|
|
@@ -3569,10 +3605,10 @@ var DataListRenderer = ({
|
|
|
3569
3605
|
var DataListRenderer_default = DataListRenderer;
|
|
3570
3606
|
|
|
3571
3607
|
// src/components/dataForm/DataForm.tsx
|
|
3572
|
-
import
|
|
3608
|
+
import React30, { useCallback as useCallback3, useEffect as useEffect3, useReducer as useReducer2, useRef } from "react";
|
|
3573
3609
|
|
|
3574
3610
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
3575
|
-
import
|
|
3611
|
+
import React29, { useCallback as useCallback2 } from "react";
|
|
3576
3612
|
|
|
3577
3613
|
// src/components/dataForm/StyleTypes.tsx
|
|
3578
3614
|
var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
|
|
@@ -3595,7 +3631,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
3595
3631
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
3596
3632
|
|
|
3597
3633
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
3598
|
-
import { jsx as
|
|
3634
|
+
import { jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3599
3635
|
var DataFormChildSection = (props) => {
|
|
3600
3636
|
const { section } = props;
|
|
3601
3637
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -3663,14 +3699,14 @@ var DataFormChildSection = (props) => {
|
|
|
3663
3699
|
childItemsToRender,
|
|
3664
3700
|
allChildItems: childItems
|
|
3665
3701
|
});
|
|
3666
|
-
return /* @__PURE__ */
|
|
3667
|
-
section.sectionTitle && /* @__PURE__ */
|
|
3668
|
-
/* @__PURE__ */
|
|
3669
|
-
/* @__PURE__ */
|
|
3670
|
-
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */
|
|
3702
|
+
return /* @__PURE__ */ jsx42(React29.Fragment, { children: /* @__PURE__ */ jsxs18("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
|
|
3703
|
+
section.sectionTitle && /* @__PURE__ */ jsx42("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
|
|
3704
|
+
/* @__PURE__ */ jsx42("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col justify-between gap-2", children: [
|
|
3705
|
+
/* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsxs18("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
|
|
3706
|
+
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx42("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
3671
3707
|
return /* @__PURE__ */ jsxs18("tr", { className: "", children: [
|
|
3672
3708
|
sectionRow.elements.map((field, index) => {
|
|
3673
|
-
return /* @__PURE__ */
|
|
3709
|
+
return /* @__PURE__ */ jsx42(
|
|
3674
3710
|
"th",
|
|
3675
3711
|
{
|
|
3676
3712
|
className: "py-3 font-normal text-left",
|
|
@@ -3679,13 +3715,13 @@ var DataFormChildSection = (props) => {
|
|
|
3679
3715
|
field.name
|
|
3680
3716
|
);
|
|
3681
3717
|
}),
|
|
3682
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
3718
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx42("th", { className: "py-3 font-normal text-left", children: "Actions" })
|
|
3683
3719
|
] }, sectionRowIndex);
|
|
3684
3720
|
}) }),
|
|
3685
|
-
/* @__PURE__ */
|
|
3721
|
+
/* @__PURE__ */ jsx42("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
|
|
3686
3722
|
const { item, originalIndex } = visibleItem;
|
|
3687
3723
|
const rowKey = originalIndex;
|
|
3688
|
-
return /* @__PURE__ */
|
|
3724
|
+
return /* @__PURE__ */ jsx42(React29.Fragment, { children: section.sectionRows.map(
|
|
3689
3725
|
(sectionRow, sectionRowIndex) => {
|
|
3690
3726
|
return /* @__PURE__ */ jsxs18(
|
|
3691
3727
|
"tr",
|
|
@@ -3693,7 +3729,7 @@ var DataFormChildSection = (props) => {
|
|
|
3693
3729
|
className: "",
|
|
3694
3730
|
children: [
|
|
3695
3731
|
sectionRow.elements.map((field, index) => {
|
|
3696
|
-
return /* @__PURE__ */
|
|
3732
|
+
return /* @__PURE__ */ jsx42("td", { children: /* @__PURE__ */ jsx42("div", { className: "flex-1", children: /* @__PURE__ */ jsx42("div", { className: "w-11/12", children: /* @__PURE__ */ jsx42(
|
|
3697
3733
|
InputControl_default,
|
|
3698
3734
|
{
|
|
3699
3735
|
index: filteredIndex,
|
|
@@ -3713,7 +3749,7 @@ var DataFormChildSection = (props) => {
|
|
|
3713
3749
|
}
|
|
3714
3750
|
) }) }) }, field.name);
|
|
3715
3751
|
}),
|
|
3716
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
3752
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx42("td", { children: /* @__PURE__ */ jsx42(
|
|
3717
3753
|
ClientButton_default,
|
|
3718
3754
|
{
|
|
3719
3755
|
ButtonType: StyleTypes2.Hollow,
|
|
@@ -3722,7 +3758,7 @@ var DataFormChildSection = (props) => {
|
|
|
3722
3758
|
},
|
|
3723
3759
|
dataRole: "delete",
|
|
3724
3760
|
tabIndex: -1,
|
|
3725
|
-
children: /* @__PURE__ */
|
|
3761
|
+
children: /* @__PURE__ */ jsx42(
|
|
3726
3762
|
Icon_default,
|
|
3727
3763
|
{
|
|
3728
3764
|
className: "w-4 h-4",
|
|
@@ -3739,7 +3775,7 @@ var DataFormChildSection = (props) => {
|
|
|
3739
3775
|
) }, rowKey);
|
|
3740
3776
|
}) })
|
|
3741
3777
|
] }) }),
|
|
3742
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
3778
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx42("div", { className: "ml-1", children: /* @__PURE__ */ jsx42(
|
|
3743
3779
|
ClientButton_default,
|
|
3744
3780
|
{
|
|
3745
3781
|
ButtonType: "Link" /* Link */,
|
|
@@ -3754,7 +3790,7 @@ var DataFormChildSection = (props) => {
|
|
|
3754
3790
|
var DataFormChildSection_default = DataFormChildSection;
|
|
3755
3791
|
|
|
3756
3792
|
// src/components/dataForm/DataForm.tsx
|
|
3757
|
-
import { jsx as
|
|
3793
|
+
import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3758
3794
|
var DataForm = (props) => {
|
|
3759
3795
|
const formRef = useRef(null);
|
|
3760
3796
|
console.log(props.dataItem, "dssads");
|
|
@@ -3974,19 +4010,19 @@ var DataForm = (props) => {
|
|
|
3974
4010
|
return false;
|
|
3975
4011
|
}
|
|
3976
4012
|
}
|
|
3977
|
-
return /* @__PURE__ */
|
|
3978
|
-
props.title && /* @__PURE__ */
|
|
4013
|
+
return /* @__PURE__ */ jsx43(React30.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "flex-grow flex flex-col", children: [
|
|
4014
|
+
props.title && /* @__PURE__ */ jsx43("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__ */ jsxs19(
|
|
3979
4015
|
"div",
|
|
3980
4016
|
{
|
|
3981
4017
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
3982
4018
|
onClick: () => window.history.back(),
|
|
3983
4019
|
children: [
|
|
3984
|
-
/* @__PURE__ */
|
|
3985
|
-
/* @__PURE__ */
|
|
4020
|
+
/* @__PURE__ */ jsx43(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
|
|
4021
|
+
/* @__PURE__ */ jsx43("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
|
|
3986
4022
|
]
|
|
3987
4023
|
}
|
|
3988
4024
|
) }),
|
|
3989
|
-
/* @__PURE__ */
|
|
4025
|
+
/* @__PURE__ */ jsx43(
|
|
3990
4026
|
"form",
|
|
3991
4027
|
{
|
|
3992
4028
|
className: "group space-y-6 pb-6 overflow-y-auto",
|
|
@@ -4007,8 +4043,8 @@ var DataForm = (props) => {
|
|
|
4007
4043
|
}
|
|
4008
4044
|
}
|
|
4009
4045
|
},
|
|
4010
|
-
children: /* @__PURE__ */
|
|
4011
|
-
return /* @__PURE__ */
|
|
4046
|
+
children: /* @__PURE__ */ jsx43("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
|
|
4047
|
+
return /* @__PURE__ */ jsx43(React30.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs19("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
|
|
4012
4048
|
section.sectionRows?.map(
|
|
4013
4049
|
(sectionRow, sectionRowIndex) => {
|
|
4014
4050
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -4019,14 +4055,14 @@ var DataForm = (props) => {
|
|
|
4019
4055
|
sectionRow.visible
|
|
4020
4056
|
);
|
|
4021
4057
|
}
|
|
4022
|
-
return /* @__PURE__ */
|
|
4058
|
+
return /* @__PURE__ */ jsx43(React30.Fragment, { children: isVisible && /* @__PURE__ */ jsx43("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
|
|
4023
4059
|
return /* @__PURE__ */ jsxs19(
|
|
4024
4060
|
"div",
|
|
4025
4061
|
{
|
|
4026
4062
|
className: sectionRow.grow ? "grow" : "",
|
|
4027
4063
|
children: [
|
|
4028
|
-
/* @__PURE__ */
|
|
4029
|
-
/* @__PURE__ */
|
|
4064
|
+
/* @__PURE__ */ jsx43("div", { children: field.controlType }),
|
|
4065
|
+
/* @__PURE__ */ jsx43(
|
|
4030
4066
|
InputControl_default,
|
|
4031
4067
|
{
|
|
4032
4068
|
name: field.name,
|
|
@@ -4056,12 +4092,12 @@ var DataForm = (props) => {
|
|
|
4056
4092
|
}) }) }, sectionRowIndex);
|
|
4057
4093
|
}
|
|
4058
4094
|
),
|
|
4059
|
-
/* @__PURE__ */
|
|
4095
|
+
/* @__PURE__ */ jsx43("div", { children: section.childSections?.map(
|
|
4060
4096
|
(childSection, childSectionIndex) => {
|
|
4061
|
-
return /* @__PURE__ */
|
|
4097
|
+
return /* @__PURE__ */ jsx43("div", { children: childSection.name && evalutateCondition(
|
|
4062
4098
|
formState.inputValues,
|
|
4063
4099
|
childSection.visible
|
|
4064
|
-
) && /* @__PURE__ */
|
|
4100
|
+
) && /* @__PURE__ */ jsx43(
|
|
4065
4101
|
DataFormChildSection_default,
|
|
4066
4102
|
{
|
|
4067
4103
|
section: childSection,
|
|
@@ -4077,7 +4113,7 @@ var DataForm = (props) => {
|
|
|
4077
4113
|
}
|
|
4078
4114
|
),
|
|
4079
4115
|
/* @__PURE__ */ jsxs19("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
4080
|
-
/* @__PURE__ */
|
|
4116
|
+
/* @__PURE__ */ jsx43("div", { children: props.additionalActions && /* @__PURE__ */ jsx43(
|
|
4081
4117
|
Button_default,
|
|
4082
4118
|
{
|
|
4083
4119
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -4085,7 +4121,7 @@ var DataForm = (props) => {
|
|
|
4085
4121
|
children: props.additionalActions.title
|
|
4086
4122
|
}
|
|
4087
4123
|
) }),
|
|
4088
|
-
/* @__PURE__ */
|
|
4124
|
+
/* @__PURE__ */ jsx43("div", { children: props.onDelete && /* @__PURE__ */ jsx43(
|
|
4089
4125
|
Button_default,
|
|
4090
4126
|
{
|
|
4091
4127
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -4096,7 +4132,7 @@ var DataForm = (props) => {
|
|
|
4096
4132
|
children: "Delete"
|
|
4097
4133
|
}
|
|
4098
4134
|
) }),
|
|
4099
|
-
/* @__PURE__ */
|
|
4135
|
+
/* @__PURE__ */ jsx43("div", { children: props.onClick && /* @__PURE__ */ jsx43(
|
|
4100
4136
|
Button_default,
|
|
4101
4137
|
{
|
|
4102
4138
|
onValidate,
|
|
@@ -4113,7 +4149,7 @@ var DataForm = (props) => {
|
|
|
4113
4149
|
var DataForm_default = DataForm;
|
|
4114
4150
|
|
|
4115
4151
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
4116
|
-
import { jsx as
|
|
4152
|
+
import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4117
4153
|
function getAction(actions, code) {
|
|
4118
4154
|
return actions?.find((a) => a.actionCode === code);
|
|
4119
4155
|
}
|
|
@@ -4140,8 +4176,8 @@ var DataFormRenderer = ({
|
|
|
4140
4176
|
);
|
|
4141
4177
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
4142
4178
|
return /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
|
|
4143
|
-
widgetProps && /* @__PURE__ */
|
|
4144
|
-
/* @__PURE__ */
|
|
4179
|
+
widgetProps && /* @__PURE__ */ jsx44(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
4180
|
+
/* @__PURE__ */ jsx44(
|
|
4145
4181
|
DataForm_default,
|
|
4146
4182
|
{
|
|
4147
4183
|
title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",
|
|
@@ -4187,3 +4223,5 @@ export {
|
|
|
4187
4223
|
ViewControl_default as ViewControl,
|
|
4188
4224
|
ViewControlTypes_default as ViewControlTypes
|
|
4189
4225
|
};
|
|
4226
|
+
ontrolTypes
|
|
4227
|
+
};
|