@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260326055821 → 0.8.1-dev.20260326061134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/dist/index.mjs +120 -117
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -531,7 +531,10 @@ var ViewControl = import_react9.default.forwardRef(
|
|
|
531
531
|
// [ViewControlTypes.aiGeneratedSummary]: AiGeneratedSummary,
|
|
532
532
|
};
|
|
533
533
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
534
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.
|
|
534
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_react9.default.Fragment, { children: [
|
|
535
|
+
props.controlType,
|
|
536
|
+
SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType
|
|
537
|
+
] });
|
|
535
538
|
}
|
|
536
539
|
);
|
|
537
540
|
ViewControl.displayName = "ViewControl";
|
package/dist/index.mjs
CHANGED
|
@@ -158,7 +158,7 @@ var ProgressIndicator = (props) => {
|
|
|
158
158
|
var ProgressIndicator_default = ProgressIndicator;
|
|
159
159
|
|
|
160
160
|
// src/components/controls/view/ViewControl.tsx
|
|
161
|
-
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
161
|
+
import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
162
162
|
var ViewControl = React9.forwardRef(
|
|
163
163
|
(props, ref) => {
|
|
164
164
|
const ControlComponents = {
|
|
@@ -180,7 +180,10 @@ var ViewControl = React9.forwardRef(
|
|
|
180
180
|
// [ViewControlTypes.aiGeneratedSummary]: AiGeneratedSummary,
|
|
181
181
|
};
|
|
182
182
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
183
|
-
return /* @__PURE__ */
|
|
183
|
+
return /* @__PURE__ */ jsxs4(React9.Fragment, { children: [
|
|
184
|
+
props.controlType,
|
|
185
|
+
SelectedControlComponent ? /* @__PURE__ */ jsx8(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType
|
|
186
|
+
] });
|
|
184
187
|
}
|
|
185
188
|
);
|
|
186
189
|
ViewControl.displayName = "ViewControl";
|
|
@@ -191,7 +194,7 @@ import React29 from "react";
|
|
|
191
194
|
|
|
192
195
|
// src/components/controls/edit/MultilineTextInput.tsx
|
|
193
196
|
import React10 from "react";
|
|
194
|
-
import { jsx as jsx9, jsxs as
|
|
197
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
195
198
|
var MultilineTextInput = (props) => {
|
|
196
199
|
const textChangeHandler = (event) => {
|
|
197
200
|
const text = event.target.value;
|
|
@@ -210,7 +213,7 @@ var MultilineTextInput = (props) => {
|
|
|
210
213
|
if (props.value !== void 0 && props.value !== null) {
|
|
211
214
|
value = props.value;
|
|
212
215
|
}
|
|
213
|
-
return /* @__PURE__ */ jsx9(React10.Fragment, { children: /* @__PURE__ */
|
|
216
|
+
return /* @__PURE__ */ jsx9(React10.Fragment, { children: /* @__PURE__ */ jsxs5("label", { className: "block mb-1", children: [
|
|
214
217
|
/* @__PURE__ */ jsx9("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
215
218
|
" ",
|
|
216
219
|
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx9("span", { className: "text-alert", children: "*" }),
|
|
@@ -238,7 +241,7 @@ var MultilineTextInput_default = MultilineTextInput;
|
|
|
238
241
|
|
|
239
242
|
// src/components/controls/edit/LineTextInput.tsx
|
|
240
243
|
import React11 from "react";
|
|
241
|
-
import { jsx as jsx10, jsxs as
|
|
244
|
+
import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
242
245
|
var LineTextInput = (props) => {
|
|
243
246
|
const textChangeHandler = (event) => {
|
|
244
247
|
const text = event.target.value;
|
|
@@ -257,7 +260,7 @@ var LineTextInput = (props) => {
|
|
|
257
260
|
if (props.value !== void 0 && props.value !== null) {
|
|
258
261
|
value = props.value;
|
|
259
262
|
}
|
|
260
|
-
return /* @__PURE__ */ jsx10(React11.Fragment, { children: /* @__PURE__ */
|
|
263
|
+
return /* @__PURE__ */ jsx10(React11.Fragment, { children: /* @__PURE__ */ jsxs6("label", { className: "block", children: [
|
|
261
264
|
props?.attributes?.label && /* @__PURE__ */ jsx10("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
|
|
262
265
|
" ",
|
|
263
266
|
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx10("span", { className: "text-alert", children: "*" }),
|
|
@@ -290,7 +293,7 @@ var LineTextInput_default = LineTextInput;
|
|
|
290
293
|
|
|
291
294
|
// src/components/controls/edit/MoneyInput.tsx
|
|
292
295
|
import React12 from "react";
|
|
293
|
-
import { jsx as jsx11, jsxs as
|
|
296
|
+
import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
294
297
|
var MoneyInput = (props) => {
|
|
295
298
|
const textChangeHandler = (event) => {
|
|
296
299
|
const rawValue = event.target.value;
|
|
@@ -319,7 +322,7 @@ var MoneyInput = (props) => {
|
|
|
319
322
|
e.preventDefault();
|
|
320
323
|
}
|
|
321
324
|
};
|
|
322
|
-
return /* @__PURE__ */ jsx11(React12.Fragment, { children: /* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ jsx11(React12.Fragment, { children: /* @__PURE__ */ jsxs7("label", { className: "block mb-1", children: [
|
|
323
326
|
/* @__PURE__ */ jsx11("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
324
327
|
" ",
|
|
325
328
|
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx11("span", { className: "text-alert", children: "*" }),
|
|
@@ -374,7 +377,7 @@ var InputControlType_default = InputControlType;
|
|
|
374
377
|
|
|
375
378
|
// src/components/controls/edit/Select.tsx
|
|
376
379
|
import { useState, useEffect } from "react";
|
|
377
|
-
import { jsx as jsx12, jsxs as
|
|
380
|
+
import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
378
381
|
var Select = (props) => {
|
|
379
382
|
const [list, setList] = useState([]);
|
|
380
383
|
const getSafeValue = (val) => {
|
|
@@ -432,10 +435,10 @@ var Select = (props) => {
|
|
|
432
435
|
props.dataSourceDependsOn
|
|
433
436
|
]);
|
|
434
437
|
const value = getSafeValue(props.value);
|
|
435
|
-
return /* @__PURE__ */
|
|
438
|
+
return /* @__PURE__ */ jsxs8("label", { className: "block", children: [
|
|
436
439
|
props.attributes?.label && /* @__PURE__ */ jsx12("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
|
|
437
440
|
props.attributes?.label && props.attributes?.required && /* @__PURE__ */ jsx12("span", { className: "text-alert", children: "*" }),
|
|
438
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ jsxs8(
|
|
439
442
|
"select",
|
|
440
443
|
{
|
|
441
444
|
name: props.name,
|
|
@@ -462,7 +465,7 @@ var Select_default = Select;
|
|
|
462
465
|
|
|
463
466
|
// src/components/controls/edit/PercentageInput.tsx
|
|
464
467
|
import React14 from "react";
|
|
465
|
-
import { jsx as jsx13, jsxs as
|
|
468
|
+
import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
466
469
|
var PercentageInput = (props) => {
|
|
467
470
|
const textChangeHandler = (event) => {
|
|
468
471
|
const rawValue = event.target.value;
|
|
@@ -491,7 +494,7 @@ var PercentageInput = (props) => {
|
|
|
491
494
|
e.preventDefault();
|
|
492
495
|
}
|
|
493
496
|
};
|
|
494
|
-
return /* @__PURE__ */ jsx13(React14.Fragment, { children: /* @__PURE__ */
|
|
497
|
+
return /* @__PURE__ */ jsx13(React14.Fragment, { children: /* @__PURE__ */ jsxs9("label", { className: "block mb-1", children: [
|
|
495
498
|
/* @__PURE__ */ jsx13("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
|
|
496
499
|
" ",
|
|
497
500
|
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx13("span", { className: "text-alert", children: "*" }),
|
|
@@ -521,7 +524,7 @@ var PercentageInput_default = PercentageInput;
|
|
|
521
524
|
|
|
522
525
|
// src/components/controls/edit/PhoneInput.tsx
|
|
523
526
|
import React15 from "react";
|
|
524
|
-
import { jsx as jsx14, jsxs as
|
|
527
|
+
import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
525
528
|
var PhoneInput = (props) => {
|
|
526
529
|
const textChangeHandler = (event) => {
|
|
527
530
|
const text = event.target.value;
|
|
@@ -540,9 +543,9 @@ var PhoneInput = (props) => {
|
|
|
540
543
|
if (props.value !== void 0 && props.value !== null) {
|
|
541
544
|
value = props.value;
|
|
542
545
|
}
|
|
543
|
-
return /* @__PURE__ */ jsx14(React15.Fragment, { children: /* @__PURE__ */
|
|
546
|
+
return /* @__PURE__ */ jsx14(React15.Fragment, { children: /* @__PURE__ */ jsxs10("label", { className: "block mb-1", children: [
|
|
544
547
|
/* @__PURE__ */ jsx14("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
545
|
-
/* @__PURE__ */
|
|
548
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center bg-gray-100 rounded border border-gray-300 \n focus-within:border-indigo-300 focus-within:ring focus-within:ring-indigo-200 focus-within:ring-opacity-50", children: [
|
|
546
549
|
/* @__PURE__ */ jsx14("span", { className: "px-3 text-gray-700", children: props.prefix }),
|
|
547
550
|
/* @__PURE__ */ jsx14(
|
|
548
551
|
"input",
|
|
@@ -569,7 +572,7 @@ var PhoneInput_default = PhoneInput;
|
|
|
569
572
|
|
|
570
573
|
// src/components/controls/edit/NumberInput.tsx
|
|
571
574
|
import React16 from "react";
|
|
572
|
-
import { jsx as jsx15, jsxs as
|
|
575
|
+
import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
573
576
|
var NumberInput = (props) => {
|
|
574
577
|
const textChangeHandler = (event) => {
|
|
575
578
|
const text = event.target.value;
|
|
@@ -592,7 +595,7 @@ var NumberInput = (props) => {
|
|
|
592
595
|
if (props.value !== void 0 && props.value !== null) {
|
|
593
596
|
value = props.value;
|
|
594
597
|
}
|
|
595
|
-
return /* @__PURE__ */ jsx15(React16.Fragment, { children: /* @__PURE__ */
|
|
598
|
+
return /* @__PURE__ */ jsx15(React16.Fragment, { children: /* @__PURE__ */ jsxs11("label", { className: "block", children: [
|
|
596
599
|
props?.attributes?.label && /* @__PURE__ */ jsx15("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
|
|
597
600
|
" ",
|
|
598
601
|
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx15("span", { className: "text-alert", children: "*" }),
|
|
@@ -622,7 +625,7 @@ var NumberInput_default = NumberInput;
|
|
|
622
625
|
|
|
623
626
|
// src/components/controls/edit/CheckboxInput.tsx
|
|
624
627
|
import React17 from "react";
|
|
625
|
-
import { jsx as jsx16, jsxs as
|
|
628
|
+
import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
626
629
|
var CheckboxInput = (props) => {
|
|
627
630
|
const textChangeHandler = (event) => {
|
|
628
631
|
let text = event.target.checked;
|
|
@@ -641,7 +644,7 @@ var CheckboxInput = (props) => {
|
|
|
641
644
|
if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
|
|
642
645
|
value = true;
|
|
643
646
|
}
|
|
644
|
-
return /* @__PURE__ */ jsx16(React17.Fragment, { children: /* @__PURE__ */
|
|
647
|
+
return /* @__PURE__ */ jsx16(React17.Fragment, { children: /* @__PURE__ */ jsxs12("label", { className: "block mb-1", children: [
|
|
645
648
|
/* @__PURE__ */ jsx16("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
646
649
|
" ",
|
|
647
650
|
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx16("span", { className: "text-alert", children: "*" }),
|
|
@@ -669,7 +672,7 @@ var CheckboxInput_default = CheckboxInput;
|
|
|
669
672
|
|
|
670
673
|
// src/components/controls/edit/OtpInput.tsx
|
|
671
674
|
import React18 from "react";
|
|
672
|
-
import { jsx as jsx17, jsxs as
|
|
675
|
+
import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
673
676
|
var OtpInput = (props) => {
|
|
674
677
|
const textChangeHandler = (event) => {
|
|
675
678
|
const text = event.target.value;
|
|
@@ -691,7 +694,7 @@ var OtpInput = (props) => {
|
|
|
691
694
|
if (props.value !== void 0 && props.value !== null) {
|
|
692
695
|
value = props.value;
|
|
693
696
|
}
|
|
694
|
-
return /* @__PURE__ */ jsx17(React18.Fragment, { children: /* @__PURE__ */
|
|
697
|
+
return /* @__PURE__ */ jsx17(React18.Fragment, { children: /* @__PURE__ */ jsxs13("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
|
|
695
698
|
/* @__PURE__ */ jsx17("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
696
699
|
/* @__PURE__ */ jsx17(
|
|
697
700
|
"input",
|
|
@@ -796,7 +799,7 @@ var DateTimeUtility_default = DateTimeUtility;
|
|
|
796
799
|
|
|
797
800
|
// src/components/controls/edit/DateTimeInput.tsx
|
|
798
801
|
import React19 from "react";
|
|
799
|
-
import { jsx as jsx18, jsxs as
|
|
802
|
+
import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
800
803
|
var DateTimeInput = (props) => {
|
|
801
804
|
const textChangeHandler = (event) => {
|
|
802
805
|
const localDate = new Date(event.target.value);
|
|
@@ -831,11 +834,11 @@ var DateTimeInput = (props) => {
|
|
|
831
834
|
timeZoneAbbr = now2.toLocaleTimeString("en", { timeZoneName: "short" }).split(" ")[2];
|
|
832
835
|
localvalue = localDate?.toISOString()?.slice(0, 16);
|
|
833
836
|
}
|
|
834
|
-
return /* @__PURE__ */ jsx18(React19.Fragment, { children: /* @__PURE__ */
|
|
837
|
+
return /* @__PURE__ */ jsx18(React19.Fragment, { children: /* @__PURE__ */ jsxs14("label", { className: "block mb-1", children: [
|
|
835
838
|
/* @__PURE__ */ jsx18("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
836
839
|
" ",
|
|
837
840
|
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx18("span", { className: "text-alert", children: "*" }),
|
|
838
|
-
/* @__PURE__ */
|
|
841
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-2", children: [
|
|
839
842
|
/* @__PURE__ */ jsx18(
|
|
840
843
|
"input",
|
|
841
844
|
{
|
|
@@ -862,7 +865,7 @@ var DateTimeInput_default = DateTimeInput;
|
|
|
862
865
|
|
|
863
866
|
// src/components/controls/edit/ColorInput.tsx
|
|
864
867
|
import React20, { useEffect as useEffect2 } from "react";
|
|
865
|
-
import { jsx as jsx19, jsxs as
|
|
868
|
+
import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
866
869
|
var ColorInput = (props) => {
|
|
867
870
|
const [color, setColor] = React20.useState("#3b82f6");
|
|
868
871
|
useEffect2(() => {
|
|
@@ -884,7 +887,7 @@ var ColorInput = (props) => {
|
|
|
884
887
|
});
|
|
885
888
|
}
|
|
886
889
|
};
|
|
887
|
-
return /* @__PURE__ */
|
|
890
|
+
return /* @__PURE__ */ jsxs15("label", { className: "block mb-1", children: [
|
|
888
891
|
/* @__PURE__ */ jsx19("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
889
892
|
" ",
|
|
890
893
|
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx19("span", { className: "text-alert", children: "*" }),
|
|
@@ -908,7 +911,7 @@ var ColorInput_default = ColorInput;
|
|
|
908
911
|
|
|
909
912
|
// src/components/controls/edit/SelectWithSearchInput.tsx
|
|
910
913
|
import { useEffect as useEffect3, useRef, useState as useState2 } from "react";
|
|
911
|
-
import { jsx as jsx20, jsxs as
|
|
914
|
+
import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
912
915
|
var SelectWithSearchInput = (props) => {
|
|
913
916
|
const [isOpen, setIsOpen] = useState2(false);
|
|
914
917
|
const [searchTerm, setSearchTerm] = useState2("");
|
|
@@ -979,11 +982,11 @@ var SelectWithSearchInput = (props) => {
|
|
|
979
982
|
});
|
|
980
983
|
}
|
|
981
984
|
}, [highlightedIndex]);
|
|
982
|
-
return /* @__PURE__ */
|
|
985
|
+
return /* @__PURE__ */ jsxs16("div", { className: "relative", children: [
|
|
983
986
|
/* @__PURE__ */ jsx20("label", { children: props.attributes?.label }),
|
|
984
987
|
" ",
|
|
985
988
|
props?.attributes?.required && /* @__PURE__ */ jsx20("span", { className: "text-alert", children: "*" }),
|
|
986
|
-
/* @__PURE__ */
|
|
989
|
+
/* @__PURE__ */ jsxs16("div", { className: "relative", children: [
|
|
987
990
|
/* @__PURE__ */ jsx20(
|
|
988
991
|
"input",
|
|
989
992
|
{
|
|
@@ -1133,7 +1136,7 @@ var ClientButton = (props) => {
|
|
|
1133
1136
|
var ClientButton_default = ClientButton;
|
|
1134
1137
|
|
|
1135
1138
|
// src/components/Confirm.tsx
|
|
1136
|
-
import { Fragment, jsx as jsx22, jsxs as
|
|
1139
|
+
import { Fragment, jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1137
1140
|
var Confirm = ({ message, onConfirm, onCancel }) => {
|
|
1138
1141
|
const [showModal, setShowModal] = useState3(true);
|
|
1139
1142
|
const handleConfirmAction = () => {
|
|
@@ -1148,12 +1151,12 @@ var Confirm = ({ message, onConfirm, onCancel }) => {
|
|
|
1148
1151
|
onCancel();
|
|
1149
1152
|
}
|
|
1150
1153
|
};
|
|
1151
|
-
return /* @__PURE__ */ jsx22(Fragment, { children: showModal && /* @__PURE__ */
|
|
1154
|
+
return /* @__PURE__ */ jsx22(Fragment, { children: showModal && /* @__PURE__ */ jsxs17("div", { className: "fixed inset-0 flex items-center justify-center z-50", children: [
|
|
1152
1155
|
/* @__PURE__ */ jsx22("div", { className: "absolute inset-0 bg-black opacity-70" }),
|
|
1153
|
-
/* @__PURE__ */
|
|
1156
|
+
/* @__PURE__ */ jsxs17("div", { className: "bg-white rounded-md p-6 w-2/6 shadow border z-50", children: [
|
|
1154
1157
|
/* @__PURE__ */ jsx22("p", { className: "text-xl font-medium mb-4", children: "Confirmation" }),
|
|
1155
1158
|
/* @__PURE__ */ jsx22("p", { className: "mb-4", children: message }),
|
|
1156
|
-
/* @__PURE__ */
|
|
1159
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex justify-end gap-8", children: [
|
|
1157
1160
|
/* @__PURE__ */ jsx22(
|
|
1158
1161
|
ClientButton_default,
|
|
1159
1162
|
{
|
|
@@ -1178,7 +1181,7 @@ var Confirm_default = Confirm;
|
|
|
1178
1181
|
}
|
|
1179
1182
|
|
|
1180
1183
|
// src/components/Button.tsx
|
|
1181
|
-
import { jsx as jsx23, jsxs as
|
|
1184
|
+
import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1182
1185
|
var Button = (props) => {
|
|
1183
1186
|
const [inProgress, setInProgress] = useState4(false);
|
|
1184
1187
|
const [isActionPerformed, setIsActionPerformed] = useState4(false);
|
|
@@ -1233,8 +1236,8 @@ var Button = (props) => {
|
|
|
1233
1236
|
let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
|
|
1234
1237
|
let progressClass = props.ButtonType ? progressClasses.get(props.ButtonType) : progressClasses.get("Primary" /* Solid */);
|
|
1235
1238
|
const isDisabled = inProgress || isActionPerformed && props.oneTimeAction;
|
|
1236
|
-
return /* @__PURE__ */
|
|
1237
|
-
/* @__PURE__ */
|
|
1239
|
+
return /* @__PURE__ */ jsxs18(React24.Fragment, { children: [
|
|
1240
|
+
/* @__PURE__ */ jsxs18(
|
|
1238
1241
|
"button",
|
|
1239
1242
|
{
|
|
1240
1243
|
type: "submit",
|
|
@@ -1244,7 +1247,7 @@ var Button = (props) => {
|
|
|
1244
1247
|
className: buttonClass + " relative " + props.className,
|
|
1245
1248
|
children: [
|
|
1246
1249
|
isActionPerformed && props.oneTimeAction && responseMessage ? responseMessage : props.children,
|
|
1247
|
-
inProgress && /* @__PURE__ */ jsx23(React24.Fragment, { children: props.hideProgressIndicator === true ? /* @__PURE__ */ jsx23("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */
|
|
1250
|
+
inProgress && /* @__PURE__ */ jsx23(React24.Fragment, { children: props.hideProgressIndicator === true ? /* @__PURE__ */ jsx23("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */ jsxs18("svg", { className: "animate-spin ml-2 mr-3 h-5 w-5 " + progressClass, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [
|
|
1248
1251
|
/* @__PURE__ */ jsx23("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
|
|
1249
1252
|
/* @__PURE__ */ jsx23("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })
|
|
1250
1253
|
] }) })
|
|
@@ -1263,7 +1266,7 @@ import React25, {
|
|
|
1263
1266
|
useState as useState5,
|
|
1264
1267
|
useCallback
|
|
1265
1268
|
} from "react";
|
|
1266
|
-
import { jsx as jsx24, jsxs as
|
|
1269
|
+
import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1267
1270
|
var SelectWithSearchPanel = (props) => {
|
|
1268
1271
|
const [isOpen, setIsOpen] = useState5(false);
|
|
1269
1272
|
const [searchTerm, setSearchTerm] = useState5("");
|
|
@@ -1399,7 +1402,7 @@ var SelectWithSearchPanel = (props) => {
|
|
|
1399
1402
|
console.log("Form Data:", formData);
|
|
1400
1403
|
return formData;
|
|
1401
1404
|
}, []);
|
|
1402
|
-
return /* @__PURE__ */
|
|
1405
|
+
return /* @__PURE__ */ jsxs19("div", { className: "relative", children: [
|
|
1403
1406
|
/* @__PURE__ */ jsx24("label", { className: "text-sm mb-1 font-medium", children: props.attributes?.label }),
|
|
1404
1407
|
/* @__PURE__ */ jsx24("div", { children: /* @__PURE__ */ jsx24(
|
|
1405
1408
|
"input",
|
|
@@ -1415,9 +1418,9 @@ var SelectWithSearchPanel = (props) => {
|
|
|
1415
1418
|
disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
|
|
1416
1419
|
}
|
|
1417
1420
|
) }),
|
|
1418
|
-
/* @__PURE__ */ jsx24("div", { ref: containerRef, children: isOpen && /* @__PURE__ */
|
|
1419
|
-
/* @__PURE__ */
|
|
1420
|
-
/* @__PURE__ */ jsx24("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */
|
|
1421
|
+
/* @__PURE__ */ jsx24("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ jsxs19(React25.Fragment, { children: [
|
|
1422
|
+
/* @__PURE__ */ jsxs19("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
|
|
1423
|
+
/* @__PURE__ */ jsx24("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ jsxs19("h5", { className: "text-md text-white font-medium", children: [
|
|
1421
1424
|
"Select a",
|
|
1422
1425
|
" ",
|
|
1423
1426
|
props.attributes?.label || props.attributes?.heading
|
|
@@ -1435,8 +1438,8 @@ var SelectWithSearchPanel = (props) => {
|
|
|
1435
1438
|
}
|
|
1436
1439
|
) })
|
|
1437
1440
|
] }),
|
|
1438
|
-
isCreateOpen && /* @__PURE__ */
|
|
1439
|
-
/* @__PURE__ */ jsx24("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */
|
|
1441
|
+
isCreateOpen && /* @__PURE__ */ jsxs19("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
|
|
1442
|
+
/* @__PURE__ */ jsx24("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ jsxs19("h5", { className: "text-md font-medium text-white", children: [
|
|
1440
1443
|
"Create New ",
|
|
1441
1444
|
props.attributes?.label
|
|
1442
1445
|
] }) }),
|
|
@@ -1449,8 +1452,8 @@ var SelectWithSearchPanel = (props) => {
|
|
|
1449
1452
|
children: "Close"
|
|
1450
1453
|
}
|
|
1451
1454
|
) }),
|
|
1452
|
-
/* @__PURE__ */
|
|
1453
|
-
props.createFields?.map((field) => /* @__PURE__ */
|
|
1455
|
+
/* @__PURE__ */ jsxs19("div", { className: "p-4", children: [
|
|
1456
|
+
props.createFields?.map((field) => /* @__PURE__ */ jsxs19("div", { className: "mb-4", children: [
|
|
1454
1457
|
/* @__PURE__ */ jsx24("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
|
|
1455
1458
|
/* @__PURE__ */ jsx24(
|
|
1456
1459
|
"input",
|
|
@@ -1468,7 +1471,7 @@ var SelectWithSearchPanel = (props) => {
|
|
|
1468
1471
|
}
|
|
1469
1472
|
)
|
|
1470
1473
|
] }, field.name)),
|
|
1471
|
-
/* @__PURE__ */
|
|
1474
|
+
/* @__PURE__ */ jsxs19(Button_default, { onClick: async () => {
|
|
1472
1475
|
handleSaveModal();
|
|
1473
1476
|
return { isSuccessful: true };
|
|
1474
1477
|
}, className: "w-full", children: [
|
|
@@ -1508,7 +1511,7 @@ import React26, {
|
|
|
1508
1511
|
useState as useState6,
|
|
1509
1512
|
useEffect as useEffect5
|
|
1510
1513
|
} from "react";
|
|
1511
|
-
import { jsx as jsx25, jsxs as
|
|
1514
|
+
import { jsx as jsx25, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1512
1515
|
var BooleanSelect = (props) => {
|
|
1513
1516
|
const [list, setList] = useState6();
|
|
1514
1517
|
const textChangeHandler = (event) => {
|
|
@@ -1557,11 +1560,11 @@ var BooleanSelect = (props) => {
|
|
|
1557
1560
|
if (props.value !== void 0 && props.value !== null) {
|
|
1558
1561
|
value = props.value;
|
|
1559
1562
|
}
|
|
1560
|
-
return /* @__PURE__ */ jsx25(React26.Fragment, { children: /* @__PURE__ */
|
|
1563
|
+
return /* @__PURE__ */ jsx25(React26.Fragment, { children: /* @__PURE__ */ jsxs20("label", { className: "block", children: [
|
|
1561
1564
|
/* @__PURE__ */ jsx25("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1562
1565
|
" ",
|
|
1563
1566
|
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx25("span", { className: "text-alert", children: "*" }),
|
|
1564
|
-
/* @__PURE__ */
|
|
1567
|
+
/* @__PURE__ */ jsxs20(
|
|
1565
1568
|
"select",
|
|
1566
1569
|
{
|
|
1567
1570
|
name: props.name,
|
|
@@ -1595,7 +1598,7 @@ var BooleanSelect_default = BooleanSelect;
|
|
|
1595
1598
|
|
|
1596
1599
|
// src/components/controls/edit/EmailInput.tsx
|
|
1597
1600
|
import React27 from "react";
|
|
1598
|
-
import { jsx as jsx26, jsxs as
|
|
1601
|
+
import { jsx as jsx26, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1599
1602
|
var EmailInput = (props) => {
|
|
1600
1603
|
const textChangeHandler = (event) => {
|
|
1601
1604
|
const text = event.target.value;
|
|
@@ -1620,7 +1623,7 @@ var EmailInput = (props) => {
|
|
|
1620
1623
|
if (props.value !== void 0 && props.value !== null) {
|
|
1621
1624
|
value = props.value;
|
|
1622
1625
|
}
|
|
1623
|
-
return /* @__PURE__ */ jsx26(React27.Fragment, { children: /* @__PURE__ */
|
|
1626
|
+
return /* @__PURE__ */ jsx26(React27.Fragment, { children: /* @__PURE__ */ jsxs21("label", { className: "block mb-1", children: [
|
|
1624
1627
|
/* @__PURE__ */ jsx26("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
|
|
1625
1628
|
" ",
|
|
1626
1629
|
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx26("span", { className: "text-alert", children: "*" }),
|
|
@@ -1647,7 +1650,7 @@ var EmailInput_default = EmailInput;
|
|
|
1647
1650
|
|
|
1648
1651
|
// src/components/controls/edit/TimeInput.tsx
|
|
1649
1652
|
import React28 from "react";
|
|
1650
|
-
import { jsx as jsx27, jsxs as
|
|
1653
|
+
import { jsx as jsx27, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1651
1654
|
var TimeInput = (props) => {
|
|
1652
1655
|
const timeChangeHandler = (event) => {
|
|
1653
1656
|
const timeValue = event.target.value;
|
|
@@ -1660,7 +1663,7 @@ var TimeInput = (props) => {
|
|
|
1660
1663
|
});
|
|
1661
1664
|
}
|
|
1662
1665
|
};
|
|
1663
|
-
return /* @__PURE__ */ jsx27(React28.Fragment, { children: /* @__PURE__ */
|
|
1666
|
+
return /* @__PURE__ */ jsx27(React28.Fragment, { children: /* @__PURE__ */ jsxs22("label", { className: "block mb-1", children: [
|
|
1664
1667
|
/* @__PURE__ */ jsx27("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
1665
1668
|
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx27("span", { className: "text-alert", children: "*" }),
|
|
1666
1669
|
/* @__PURE__ */ jsx27("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx27(
|
|
@@ -1724,33 +1727,33 @@ var NoContentView_default = NoContentView;
|
|
|
1724
1727
|
|
|
1725
1728
|
// src/components/dataForm/ContentView.tsx
|
|
1726
1729
|
import React31 from "react";
|
|
1727
|
-
import { jsx as jsx30, jsxs as
|
|
1730
|
+
import { jsx as jsx30, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1728
1731
|
var ContentView = (props) => {
|
|
1729
|
-
return /* @__PURE__ */
|
|
1730
|
-
props.isDataFound == null && /* @__PURE__ */ jsx30("div", { className: "", children: /* @__PURE__ */
|
|
1731
|
-
/* @__PURE__ */
|
|
1732
|
+
return /* @__PURE__ */ jsxs23(React31.Fragment, { children: [
|
|
1733
|
+
props.isDataFound == null && /* @__PURE__ */ jsx30("div", { className: "", children: /* @__PURE__ */ jsxs23("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
1734
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-center mb-4", children: [
|
|
1732
1735
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
1733
|
-
/* @__PURE__ */
|
|
1736
|
+
/* @__PURE__ */ jsxs23("div", { className: "ml-2", children: [
|
|
1734
1737
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
1735
1738
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
1736
1739
|
] })
|
|
1737
1740
|
] }),
|
|
1738
|
-
/* @__PURE__ */
|
|
1739
|
-
/* @__PURE__ */
|
|
1741
|
+
/* @__PURE__ */ jsxs23("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
1742
|
+
/* @__PURE__ */ jsxs23("div", { className: "animate-pulse", children: [
|
|
1740
1743
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
1741
1744
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
1742
1745
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
1743
1746
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
1744
1747
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
1745
1748
|
] }),
|
|
1746
|
-
/* @__PURE__ */
|
|
1749
|
+
/* @__PURE__ */ jsxs23("div", { className: "animate-pulse", children: [
|
|
1747
1750
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
1748
1751
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
1749
1752
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
1750
1753
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
1751
1754
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
1752
1755
|
] }),
|
|
1753
|
-
/* @__PURE__ */
|
|
1756
|
+
/* @__PURE__ */ jsxs23("div", { className: "animate-pulse", children: [
|
|
1754
1757
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
1755
1758
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
1756
1759
|
/* @__PURE__ */ jsx30("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
@@ -2035,7 +2038,7 @@ function FormReducer(state, action) {
|
|
|
2035
2038
|
var FormReducer_default = FormReducer;
|
|
2036
2039
|
|
|
2037
2040
|
// src/components/dataForm/DataList.tsx
|
|
2038
|
-
import { Fragment as Fragment3, jsx as jsx37, jsxs as
|
|
2041
|
+
import { Fragment as Fragment3, jsx as jsx37, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2039
2042
|
var DataList = (props) => {
|
|
2040
2043
|
console.log(props.dataset, "datasetssssss");
|
|
2041
2044
|
const router = useRouter();
|
|
@@ -2127,7 +2130,7 @@ var DataList = (props) => {
|
|
|
2127
2130
|
const showFirstPages = activePageNumber <= 5;
|
|
2128
2131
|
const showLastPages = activePageNumber > pages - 5;
|
|
2129
2132
|
if (showFirstPages) {
|
|
2130
|
-
return /* @__PURE__ */
|
|
2133
|
+
return /* @__PURE__ */ jsxs24(Fragment3, { children: [
|
|
2131
2134
|
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx37(React32.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx37(
|
|
2132
2135
|
Hyperlink,
|
|
2133
2136
|
{
|
|
@@ -2153,7 +2156,7 @@ var DataList = (props) => {
|
|
|
2153
2156
|
children: pages
|
|
2154
2157
|
}
|
|
2155
2158
|
),
|
|
2156
|
-
/* @__PURE__ */ jsx37("div", { className: "relative inline-block", children: /* @__PURE__ */
|
|
2159
|
+
/* @__PURE__ */ jsx37("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs24(
|
|
2157
2160
|
"select",
|
|
2158
2161
|
{
|
|
2159
2162
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -2175,7 +2178,7 @@ var DataList = (props) => {
|
|
|
2175
2178
|
) })
|
|
2176
2179
|
] });
|
|
2177
2180
|
} else if (showLastPages) {
|
|
2178
|
-
return /* @__PURE__ */
|
|
2181
|
+
return /* @__PURE__ */ jsxs24(Fragment3, { children: [
|
|
2179
2182
|
/* @__PURE__ */ jsx37(
|
|
2180
2183
|
Hyperlink,
|
|
2181
2184
|
{
|
|
@@ -2205,7 +2208,7 @@ var DataList = (props) => {
|
|
|
2205
2208
|
)
|
|
2206
2209
|
] });
|
|
2207
2210
|
} else {
|
|
2208
|
-
return /* @__PURE__ */
|
|
2211
|
+
return /* @__PURE__ */ jsxs24(Fragment3, { children: [
|
|
2209
2212
|
/* @__PURE__ */ jsx37(
|
|
2210
2213
|
Hyperlink,
|
|
2211
2214
|
{
|
|
@@ -2251,7 +2254,7 @@ var DataList = (props) => {
|
|
|
2251
2254
|
children: pages
|
|
2252
2255
|
}
|
|
2253
2256
|
),
|
|
2254
|
-
/* @__PURE__ */ jsx37("div", { className: "relative inline-block", children: /* @__PURE__ */
|
|
2257
|
+
/* @__PURE__ */ jsx37("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs24(
|
|
2255
2258
|
"select",
|
|
2256
2259
|
{
|
|
2257
2260
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -2272,15 +2275,15 @@ var DataList = (props) => {
|
|
|
2272
2275
|
}
|
|
2273
2276
|
}
|
|
2274
2277
|
};
|
|
2275
|
-
return /* @__PURE__ */
|
|
2276
|
-
/* @__PURE__ */
|
|
2277
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */
|
|
2278
|
+
return /* @__PURE__ */ jsxs24(React32.Fragment, { children: [
|
|
2279
|
+
/* @__PURE__ */ jsxs24(ContentView_default, { isDataFound, children: [
|
|
2280
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs24(
|
|
2278
2281
|
"div",
|
|
2279
2282
|
{
|
|
2280
2283
|
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 sticky top-0`,
|
|
2281
2284
|
children: [
|
|
2282
2285
|
props.title ? /* @__PURE__ */ jsx37("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx37("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx37("div", {}),
|
|
2283
|
-
/* @__PURE__ */
|
|
2286
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-3", children: [
|
|
2284
2287
|
props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx37(
|
|
2285
2288
|
InputControl_default,
|
|
2286
2289
|
{
|
|
@@ -2296,7 +2299,7 @@ var DataList = (props) => {
|
|
|
2296
2299
|
},
|
|
2297
2300
|
filter.name
|
|
2298
2301
|
)),
|
|
2299
|
-
props.addLinkHref && /* @__PURE__ */
|
|
2302
|
+
props.addLinkHref && /* @__PURE__ */ jsxs24(
|
|
2300
2303
|
Hyperlink,
|
|
2301
2304
|
{
|
|
2302
2305
|
className: "gap-1",
|
|
@@ -2312,7 +2315,7 @@ var DataList = (props) => {
|
|
|
2312
2315
|
]
|
|
2313
2316
|
}
|
|
2314
2317
|
),
|
|
2315
|
-
/* @__PURE__ */ jsx37("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */
|
|
2318
|
+
/* @__PURE__ */ jsx37("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs24("table", { className: "w-full divide-y divide-gray-200", children: [
|
|
2316
2319
|
/* @__PURE__ */ jsx37("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx37("tr", { children: props?.columns?.map((column) => {
|
|
2317
2320
|
let url = builder.getNewOrderByUrl(column.name);
|
|
2318
2321
|
let icon = "chevronUpDown";
|
|
@@ -2327,7 +2330,7 @@ var DataList = (props) => {
|
|
|
2327
2330
|
"th",
|
|
2328
2331
|
{
|
|
2329
2332
|
className: "px-6 py-3 text-left font-medium cursor-pointer bg-neutral-soft " + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
|
|
2330
|
-
children: /* @__PURE__ */ jsx37(Hyperlink, { href: url, className: "!text-neutral-contrast ", children: /* @__PURE__ */
|
|
2333
|
+
children: /* @__PURE__ */ jsx37(Hyperlink, { href: url, className: "!text-neutral-contrast ", children: /* @__PURE__ */ jsxs24("span", { className: "flex items-center space-x-1", children: [
|
|
2331
2334
|
/* @__PURE__ */ jsx37("span", { className: "text-black", children: column.label }),
|
|
2332
2335
|
column.enableSorting && /* @__PURE__ */ jsx37(Icon_default, { className: "w-4 h-4", name: icon })
|
|
2333
2336
|
] }) })
|
|
@@ -2393,9 +2396,9 @@ var DataList = (props) => {
|
|
|
2393
2396
|
}) }, index);
|
|
2394
2397
|
}) })
|
|
2395
2398
|
] }) }),
|
|
2396
|
-
/* @__PURE__ */ jsx37("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */
|
|
2399
|
+
/* @__PURE__ */ jsx37("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between", children: [
|
|
2397
2400
|
/* @__PURE__ */ jsx37("div", { className: "text-gray-700", children: label }),
|
|
2398
|
-
/* @__PURE__ */
|
|
2401
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex space-x-2 items-center", children: [
|
|
2399
2402
|
activePageNumber > 1 && /* @__PURE__ */ jsx37(
|
|
2400
2403
|
Hyperlink,
|
|
2401
2404
|
{
|
|
@@ -2418,14 +2421,14 @@ var DataList = (props) => {
|
|
|
2418
2421
|
] })
|
|
2419
2422
|
] }) })
|
|
2420
2423
|
] }),
|
|
2421
|
-
/* @__PURE__ */
|
|
2422
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */
|
|
2424
|
+
/* @__PURE__ */ jsxs24(NoContentView_default, { isDataFound, children: [
|
|
2425
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs24(
|
|
2423
2426
|
"div",
|
|
2424
2427
|
{
|
|
2425
2428
|
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`,
|
|
2426
2429
|
children: [
|
|
2427
2430
|
props.title ? /* @__PURE__ */ jsx37("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx37("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx37("div", {}),
|
|
2428
|
-
/* @__PURE__ */
|
|
2431
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-3", children: [
|
|
2429
2432
|
props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx37(
|
|
2430
2433
|
InputControl_default,
|
|
2431
2434
|
{
|
|
@@ -2441,7 +2444,7 @@ var DataList = (props) => {
|
|
|
2441
2444
|
},
|
|
2442
2445
|
filter.name
|
|
2443
2446
|
)),
|
|
2444
|
-
props.addLinkHref && /* @__PURE__ */
|
|
2447
|
+
props.addLinkHref && /* @__PURE__ */ jsxs24(
|
|
2445
2448
|
Hyperlink,
|
|
2446
2449
|
{
|
|
2447
2450
|
className: "gap-1",
|
|
@@ -2457,7 +2460,7 @@ var DataList = (props) => {
|
|
|
2457
2460
|
]
|
|
2458
2461
|
}
|
|
2459
2462
|
),
|
|
2460
|
-
/* @__PURE__ */
|
|
2463
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
2461
2464
|
/* @__PURE__ */ jsx37("div", { children: /* @__PURE__ */ jsx37("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx37("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx37("tr", { children: props?.columns?.map((column) => {
|
|
2462
2465
|
let url = builder.getNewOrderByUrl(column.name);
|
|
2463
2466
|
let icon = "chevronUpDown";
|
|
@@ -2472,7 +2475,7 @@ var DataList = (props) => {
|
|
|
2472
2475
|
"th",
|
|
2473
2476
|
{
|
|
2474
2477
|
className: "px-6 py-3 text-left font-medium cursor-pointer bg-neutral-soft " + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
|
|
2475
|
-
children: /* @__PURE__ */ jsx37(Hyperlink, { href: url, className: "text-body-950", children: /* @__PURE__ */
|
|
2478
|
+
children: /* @__PURE__ */ jsx37(Hyperlink, { href: url, className: "text-body-950", children: /* @__PURE__ */ jsxs24("span", { className: "flex items-center space-x-1", children: [
|
|
2476
2479
|
/* @__PURE__ */ jsx37("span", { children: column.label }),
|
|
2477
2480
|
column.enableSorting && /* @__PURE__ */ jsx37(Icon_default, { className: "w-4 h-4", name: icon })
|
|
2478
2481
|
] }) })
|
|
@@ -2569,7 +2572,7 @@ var LineBreakNode_default = LineBreakNode;
|
|
|
2569
2572
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
2570
2573
|
import React33 from "react";
|
|
2571
2574
|
import Link2 from "next/link";
|
|
2572
|
-
import { jsx as jsx40, jsxs as
|
|
2575
|
+
import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2573
2576
|
var LinkNode = (props) => {
|
|
2574
2577
|
const NodeTypes2 = {
|
|
2575
2578
|
["text"]: TextNode_default
|
|
@@ -2577,7 +2580,7 @@ var LinkNode = (props) => {
|
|
|
2577
2580
|
{
|
|
2578
2581
|
}
|
|
2579
2582
|
let formatClasses = props.node.cssClass || "";
|
|
2580
|
-
return /* @__PURE__ */
|
|
2583
|
+
return /* @__PURE__ */ jsxs25(Link2, { className: formatClasses, href: props.node.url, title: props.node.title, children: [
|
|
2581
2584
|
props.node.children && props.node.children.map((node, index) => {
|
|
2582
2585
|
const SelectedNode = NodeTypes2[node.type];
|
|
2583
2586
|
return /* @__PURE__ */ jsx40(React33.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx40(SelectedNode, { node }) }, index);
|
|
@@ -2749,7 +2752,7 @@ var DatafieldNode = (props) => {
|
|
|
2749
2752
|
var DatafieldNode_default = DatafieldNode;
|
|
2750
2753
|
|
|
2751
2754
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
2752
|
-
import { Fragment as Fragment4, jsx as jsx44, jsxs as
|
|
2755
|
+
import { Fragment as Fragment4, jsx as jsx44, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2753
2756
|
var ParagraphNode = (props) => {
|
|
2754
2757
|
const NodeTypes2 = {
|
|
2755
2758
|
["text"]: TextNode_default,
|
|
@@ -2783,7 +2786,7 @@ var ParagraphNode = (props) => {
|
|
|
2783
2786
|
) }, index);
|
|
2784
2787
|
}) });
|
|
2785
2788
|
}
|
|
2786
|
-
return /* @__PURE__ */
|
|
2789
|
+
return /* @__PURE__ */ jsxs26("div", { className: " " + formatClasses, children: [
|
|
2787
2790
|
hasChildren && props.node.children.map((node, index) => {
|
|
2788
2791
|
const SelectedNode = NodeTypes2[node.type];
|
|
2789
2792
|
return /* @__PURE__ */ jsx44(React34.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx44(
|
|
@@ -2871,12 +2874,12 @@ var ListItemNode = (props) => {
|
|
|
2871
2874
|
var ListItemNode_default = ListItemNode;
|
|
2872
2875
|
|
|
2873
2876
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
2874
|
-
import { jsx as jsx47, jsxs as
|
|
2877
|
+
import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2875
2878
|
var ListNode = (props) => {
|
|
2876
2879
|
const NodeTypes2 = {
|
|
2877
2880
|
listitem: ListItemNode_default
|
|
2878
2881
|
};
|
|
2879
|
-
return /* @__PURE__ */
|
|
2882
|
+
return /* @__PURE__ */ jsxs27(React37.Fragment, { children: [
|
|
2880
2883
|
props.node.listType == "bullet" && /* @__PURE__ */ jsx47("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
2881
2884
|
const SelectedNode = NodeTypes2[node.type];
|
|
2882
2885
|
return /* @__PURE__ */ jsx47(React37.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx47(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
@@ -2908,7 +2911,7 @@ var QuoteNode_default = QuoteNode;
|
|
|
2908
2911
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
2909
2912
|
import React39 from "react";
|
|
2910
2913
|
import dynamic from "next/dynamic";
|
|
2911
|
-
import { jsx as jsx49, jsxs as
|
|
2914
|
+
import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2912
2915
|
var CopyButton = dynamic(() => import("./CopyButton-XONTQQW7.mjs"), {
|
|
2913
2916
|
ssr: false,
|
|
2914
2917
|
// optional: fallback UI while loading
|
|
@@ -2926,8 +2929,8 @@ var CodeNode = (props) => {
|
|
|
2926
2929
|
if (node.type === "link") return node.text || node.url || "";
|
|
2927
2930
|
return "";
|
|
2928
2931
|
}).join("") ?? "";
|
|
2929
|
-
return /* @__PURE__ */
|
|
2930
|
-
/* @__PURE__ */
|
|
2932
|
+
return /* @__PURE__ */ jsxs28("div", { children: [
|
|
2933
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
2931
2934
|
/* @__PURE__ */ jsx49("span", { children: "Code Snippet" }),
|
|
2932
2935
|
/* @__PURE__ */ jsx49(CopyButton, { text: textContent })
|
|
2933
2936
|
] }),
|
|
@@ -3229,7 +3232,7 @@ var ImageNode = (props) => {
|
|
|
3229
3232
|
var ImageNode_default = ImageNode;
|
|
3230
3233
|
|
|
3231
3234
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
3232
|
-
import { Fragment as Fragment7, jsx as jsx53, jsxs as
|
|
3235
|
+
import { Fragment as Fragment7, jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3233
3236
|
var WidgetNode = (props) => {
|
|
3234
3237
|
const getWidgetParameters = () => {
|
|
3235
3238
|
const widgetInputParameters = {
|
|
@@ -3293,7 +3296,7 @@ var WidgetNode = (props) => {
|
|
|
3293
3296
|
if (process.env.NODE_ENV !== "production") {
|
|
3294
3297
|
console.warn("Widget not found:", widgetCode);
|
|
3295
3298
|
}
|
|
3296
|
-
return /* @__PURE__ */
|
|
3299
|
+
return /* @__PURE__ */ jsxs29(Fragment7, { children: [
|
|
3297
3300
|
"Widget not found: ",
|
|
3298
3301
|
widgetCode
|
|
3299
3302
|
] });
|
|
@@ -3556,7 +3559,7 @@ var ServiceClient = class {
|
|
|
3556
3559
|
var ServiceClient_default = ServiceClient;
|
|
3557
3560
|
|
|
3558
3561
|
// src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
|
|
3559
|
-
import { jsx as jsx55, jsxs as
|
|
3562
|
+
import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3560
3563
|
var FormContainerNode = (props) => {
|
|
3561
3564
|
const NodeTypes2 = {
|
|
3562
3565
|
["input-control"]: InputControlNode_default
|
|
@@ -3586,7 +3589,7 @@ var FormContainerNode = (props) => {
|
|
|
3586
3589
|
};
|
|
3587
3590
|
fetchInitialData();
|
|
3588
3591
|
}, [props.apiBaseUrl, props.node, props.session, props.routeParameters]);
|
|
3589
|
-
return /* @__PURE__ */
|
|
3592
|
+
return /* @__PURE__ */ jsxs30("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
|
|
3590
3593
|
node.children && node.children.map((node2, index) => {
|
|
3591
3594
|
{
|
|
3592
3595
|
}
|
|
@@ -3629,7 +3632,7 @@ var EmbedNode_default = EmbedNode;
|
|
|
3629
3632
|
|
|
3630
3633
|
// src/components/Slider.tsx
|
|
3631
3634
|
import React42, { useState as useState8, useEffect as useEffect8, Children, cloneElement } from "react";
|
|
3632
|
-
import { Fragment as Fragment8, jsx as jsx57, jsxs as
|
|
3635
|
+
import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3633
3636
|
var Slider = ({
|
|
3634
3637
|
children,
|
|
3635
3638
|
slidesToShow = 4,
|
|
@@ -3749,7 +3752,7 @@ var Slider = ({
|
|
|
3749
3752
|
return "bottom-4";
|
|
3750
3753
|
}
|
|
3751
3754
|
};
|
|
3752
|
-
return /* @__PURE__ */
|
|
3755
|
+
return /* @__PURE__ */ jsxs31(
|
|
3753
3756
|
"div",
|
|
3754
3757
|
{
|
|
3755
3758
|
className: `relative w-full overflow-hidden ${className}`,
|
|
@@ -3767,7 +3770,7 @@ var Slider = ({
|
|
|
3767
3770
|
children: slides
|
|
3768
3771
|
}
|
|
3769
3772
|
),
|
|
3770
|
-
show_arrows && /* @__PURE__ */
|
|
3773
|
+
show_arrows && /* @__PURE__ */ jsxs31(Fragment8, { children: [
|
|
3771
3774
|
/* @__PURE__ */ jsx57(
|
|
3772
3775
|
ArrowButton,
|
|
3773
3776
|
{
|
|
@@ -3778,7 +3781,7 @@ var Slider = ({
|
|
|
3778
3781
|
children: /* @__PURE__ */ jsx57("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ jsx57("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
|
|
3779
3782
|
}
|
|
3780
3783
|
),
|
|
3781
|
-
/* @__PURE__ */
|
|
3784
|
+
/* @__PURE__ */ jsxs31(
|
|
3782
3785
|
ArrowButton,
|
|
3783
3786
|
{
|
|
3784
3787
|
direction: "right",
|
|
@@ -3927,7 +3930,7 @@ var ProgressPill = ({
|
|
|
3927
3930
|
}
|
|
3928
3931
|
return null;
|
|
3929
3932
|
};
|
|
3930
|
-
return /* @__PURE__ */
|
|
3933
|
+
return /* @__PURE__ */ jsxs31(
|
|
3931
3934
|
"button",
|
|
3932
3935
|
{
|
|
3933
3936
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -4103,9 +4106,9 @@ var PathUtility = class {
|
|
|
4103
4106
|
var PathUtility_default = new PathUtility();
|
|
4104
4107
|
|
|
4105
4108
|
// src/components/NoDataFound.tsx
|
|
4106
|
-
import { jsx as jsx58, jsxs as
|
|
4109
|
+
import { jsx as jsx58, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4107
4110
|
var NoDataFound = () => {
|
|
4108
|
-
return /* @__PURE__ */
|
|
4111
|
+
return /* @__PURE__ */ jsxs32("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
4109
4112
|
/* @__PURE__ */ jsx58("div", { className: "mb-5", children: /* @__PURE__ */ jsx58("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx58(
|
|
4110
4113
|
"svg",
|
|
4111
4114
|
{
|
|
@@ -4133,7 +4136,7 @@ var NoDataFound_default = NoDataFound;
|
|
|
4133
4136
|
|
|
4134
4137
|
// src/components/Pagination.tsx
|
|
4135
4138
|
import { useMemo } from "react";
|
|
4136
|
-
import { jsx as jsx59, jsxs as
|
|
4139
|
+
import { jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4137
4140
|
var Pagination = (props) => {
|
|
4138
4141
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
4139
4142
|
const builder = useMemo(() => {
|
|
@@ -4204,11 +4207,11 @@ var Pagination = (props) => {
|
|
|
4204
4207
|
);
|
|
4205
4208
|
};
|
|
4206
4209
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
4207
|
-
return /* @__PURE__ */
|
|
4208
|
-
/* @__PURE__ */
|
|
4209
|
-
/* @__PURE__ */
|
|
4210
|
+
return /* @__PURE__ */ jsxs33("div", { className: "py-6 border-t bg-default", children: [
|
|
4211
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
4212
|
+
/* @__PURE__ */ jsxs33("div", { className: "text-sm", children: [
|
|
4210
4213
|
"Showing ",
|
|
4211
|
-
/* @__PURE__ */
|
|
4214
|
+
/* @__PURE__ */ jsxs33("span", { className: "font-semibold", children: [
|
|
4212
4215
|
startItem,
|
|
4213
4216
|
"-",
|
|
4214
4217
|
endItem
|
|
@@ -4218,8 +4221,8 @@ var Pagination = (props) => {
|
|
|
4218
4221
|
/* @__PURE__ */ jsx59("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
4219
4222
|
" results"
|
|
4220
4223
|
] }),
|
|
4221
|
-
totalPages > 1 && /* @__PURE__ */
|
|
4222
|
-
/* @__PURE__ */
|
|
4224
|
+
totalPages > 1 && /* @__PURE__ */ jsxs33("div", { className: "flex items-center space-x-1", children: [
|
|
4225
|
+
/* @__PURE__ */ jsxs33(
|
|
4223
4226
|
NavigationButton,
|
|
4224
4227
|
{
|
|
4225
4228
|
page: activePageNumber - 1,
|
|
@@ -4244,7 +4247,7 @@ var Pagination = (props) => {
|
|
|
4244
4247
|
const page = item;
|
|
4245
4248
|
return /* @__PURE__ */ jsx59(PageButton, { page, children: page }, page);
|
|
4246
4249
|
}),
|
|
4247
|
-
/* @__PURE__ */
|
|
4250
|
+
/* @__PURE__ */ jsxs33(
|
|
4248
4251
|
NavigationButton,
|
|
4249
4252
|
{
|
|
4250
4253
|
page: activePageNumber + 1,
|
|
@@ -4256,7 +4259,7 @@ var Pagination = (props) => {
|
|
|
4256
4259
|
}
|
|
4257
4260
|
)
|
|
4258
4261
|
] }),
|
|
4259
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */
|
|
4262
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ jsxs33("div", { className: "flex items-center space-x-2", children: [
|
|
4260
4263
|
/* @__PURE__ */ jsx59("span", { className: "text-sm", children: "Go to:" }),
|
|
4261
4264
|
/* @__PURE__ */ jsx59("div", { className: "relative", children: /* @__PURE__ */ jsx59(
|
|
4262
4265
|
"input",
|
|
@@ -4279,7 +4282,7 @@ var Pagination = (props) => {
|
|
|
4279
4282
|
) })
|
|
4280
4283
|
] })
|
|
4281
4284
|
] }),
|
|
4282
|
-
showPageSizeSelector && /* @__PURE__ */ jsx59("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */
|
|
4285
|
+
showPageSizeSelector && /* @__PURE__ */ jsx59("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ jsxs33("div", { className: "flex items-center justify-center space-x-2", children: [
|
|
4283
4286
|
/* @__PURE__ */ jsx59("span", { className: "text-sm", children: "Show:" }),
|
|
4284
4287
|
/* @__PURE__ */ jsx59("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ jsx59(
|
|
4285
4288
|
Hyperlink,
|
|
@@ -4378,7 +4381,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4378
4381
|
var ImageGalleryNode_default = ImageGalleryNode;
|
|
4379
4382
|
|
|
4380
4383
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
4381
|
-
import { jsx as jsx61, jsxs as
|
|
4384
|
+
import { jsx as jsx61, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4382
4385
|
function toCamelCase(str) {
|
|
4383
4386
|
return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
4384
4387
|
}
|
|
@@ -4673,7 +4676,7 @@ var DivContainer = async (props) => {
|
|
|
4673
4676
|
props.node.autoFormat && "auto-format",
|
|
4674
4677
|
props.node.bgClass
|
|
4675
4678
|
].filter(Boolean).join(" ");
|
|
4676
|
-
return /* @__PURE__ */
|
|
4679
|
+
return /* @__PURE__ */ jsxs34(React44.Fragment, { children: [
|
|
4677
4680
|
/* @__PURE__ */ jsx61("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
|
|
4678
4681
|
/* @__PURE__ */ jsx61(React44.Fragment, { children: /* @__PURE__ */ jsx61(
|
|
4679
4682
|
Wrapper,
|
package/package.json
CHANGED