@emeraldemperaur/vector-sigma 1.4.33 → 1.4.35
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/lib/index.esm.js
CHANGED
|
@@ -15904,6 +15904,28 @@ var HamburgerMenuIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
|
|
|
15904
15904
|
}));
|
|
15905
15905
|
});
|
|
15906
15906
|
|
|
15907
|
+
var _excluded$2u = ["color"];
|
|
15908
|
+
var HeadingIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
|
|
15909
|
+
var _ref$color = _ref.color,
|
|
15910
|
+
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
|
|
15911
|
+
props = _objectWithoutPropertiesLoose$7(_ref, _excluded$2u);
|
|
15912
|
+
|
|
15913
|
+
return createElement("svg", Object.assign({
|
|
15914
|
+
width: "15",
|
|
15915
|
+
height: "15",
|
|
15916
|
+
viewBox: "0 0 15 15",
|
|
15917
|
+
fill: "none",
|
|
15918
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15919
|
+
}, props, {
|
|
15920
|
+
ref: forwardedRef
|
|
15921
|
+
}), createElement("path", {
|
|
15922
|
+
d: "M8.75432 2.0502C8.50579 2.0502 8.30432 2.25167 8.30432 2.5002C8.30432 2.74873 8.50579 2.9502 8.75432 2.9502H9.94997V7.05004H5.04997V2.9502H6.25432C6.50285 2.9502 6.70432 2.74873 6.70432 2.5002C6.70432 2.25167 6.50285 2.0502 6.25432 2.0502H2.75432C2.50579 2.0502 2.30432 2.25167 2.30432 2.5002C2.30432 2.74873 2.50579 2.9502 2.75432 2.9502H3.94997V12.0502H2.75432C2.50579 12.0502 2.30432 12.2517 2.30432 12.5002C2.30432 12.7487 2.50579 12.9502 2.75432 12.9502H6.25432C6.50285 12.9502 6.70432 12.7487 6.70432 12.5002C6.70432 12.2517 6.50285 12.0502 6.25432 12.0502H5.04997V7.95004H9.94997V12.0502H8.75432C8.50579 12.0502 8.30432 12.2517 8.30432 12.5002C8.30432 12.7487 8.50579 12.9502 8.75432 12.9502H12.2543C12.5028 12.9502 12.7043 12.7487 12.7043 12.5002C12.7043 12.2517 12.5028 12.0502 12.2543 12.0502H11.05V2.9502H12.2543C12.5028 2.9502 12.7043 2.74873 12.7043 2.5002C12.7043 2.25167 12.5028 2.0502 12.2543 2.0502H8.75432Z",
|
|
15923
|
+
fill: color,
|
|
15924
|
+
fillRule: "evenodd",
|
|
15925
|
+
clipRule: "evenodd"
|
|
15926
|
+
}));
|
|
15927
|
+
});
|
|
15928
|
+
|
|
15907
15929
|
var _excluded$2v = ["color"];
|
|
15908
15930
|
var HeartIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
|
|
15909
15931
|
var _ref$color = _ref.color,
|
|
@@ -17238,7 +17260,8 @@ const iconMap = {
|
|
|
17238
17260
|
fontfamily: FontFamilyIcon,
|
|
17239
17261
|
video: VideoIcon,
|
|
17240
17262
|
shuffle: ShuffleIcon,
|
|
17241
|
-
loop: LoopIcon
|
|
17263
|
+
loop: LoopIcon,
|
|
17264
|
+
heading: HeadingIcon,
|
|
17242
17265
|
};
|
|
17243
17266
|
const Icon = (_a) => {
|
|
17244
17267
|
var { name } = _a, props = __rest$1(_a, ["name"]);
|
|
@@ -17619,7 +17642,7 @@ const CheckboxGroupInput = (_a) => {
|
|
|
17619
17642
|
const hasError = Boolean(fieldTouched && fieldError);
|
|
17620
17643
|
const containerRef = useRef(null);
|
|
17621
17644
|
const [neuVars, setNeuVars] = useState({});
|
|
17622
|
-
const inputId = `${alias}FormInput
|
|
17645
|
+
const inputId = `${alias}FormInput`;
|
|
17623
17646
|
const errorId = `${alias}-error`;
|
|
17624
17647
|
const handleCheckedChange = (checked, value) => {
|
|
17625
17648
|
let newValues = [...currentValues];
|
|
@@ -17630,7 +17653,7 @@ const CheckboxGroupInput = (_a) => {
|
|
|
17630
17653
|
newValues = newValues.filter((v) => String(v) !== String(value));
|
|
17631
17654
|
}
|
|
17632
17655
|
setFieldValue(alias, newValues);
|
|
17633
|
-
setTimeout(() => setFieldTouched(alias, true), 0);
|
|
17656
|
+
setTimeout(() => setFieldTouched(alias, true, false), 0);
|
|
17634
17657
|
};
|
|
17635
17658
|
useEffect(() => {
|
|
17636
17659
|
if (inputtype === 'checkbox-neumorphic' && containerRef.current) {
|
|
@@ -17644,51 +17667,45 @@ const CheckboxGroupInput = (_a) => {
|
|
|
17644
17667
|
}
|
|
17645
17668
|
}, [inputtype]);
|
|
17646
17669
|
return (React__default.createElement(Column, { span: width, newLine: newRow },
|
|
17647
|
-
React__default.createElement(p$5, { direction: "
|
|
17670
|
+
React__default.createElement(p$5, { direction: "row", gap: "2", width: "100%", ref: containerRef, style: style, className: className },
|
|
17648
17671
|
inputtype === 'checkbox-neumorphic' && (React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
17649
17672
|
.neu-checkbox .rt-CheckboxButton {
|
|
17650
17673
|
background-color: var(--neu-bg);
|
|
17651
17674
|
border: none;
|
|
17652
17675
|
box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light);
|
|
17653
17676
|
border-radius: 4px;
|
|
17654
|
-
width: 20px;
|
|
17655
|
-
height: 20px;
|
|
17656
|
-
transition: all 0.2s ease;
|
|
17677
|
+
width: 20px; height: 20px; transition: all 0.2s ease;
|
|
17657
17678
|
}
|
|
17658
|
-
/* Checked State: Pressed In */
|
|
17659
17679
|
.neu-checkbox[data-state='checked'] .rt-CheckboxButton {
|
|
17660
17680
|
box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light);
|
|
17661
|
-
background-color: var(--neu-bg);
|
|
17662
|
-
}
|
|
17663
|
-
.neu-checkbox .rt-CheckboxIndicator {
|
|
17664
|
-
color: var(--neu-check-color);
|
|
17681
|
+
background-color: var(--neu-bg);
|
|
17665
17682
|
}
|
|
17683
|
+
.neu-checkbox .rt-CheckboxIndicator { color: var(--neu-check-color); }
|
|
17666
17684
|
` } })),
|
|
17667
|
-
React__default.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars }, inputOptions.map((inputoption) => {
|
|
17668
|
-
const
|
|
17669
|
-
|
|
17685
|
+
React__default.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars, id: inputId, "aria-labelledby": `${alias}InputLabel`, role: "group" }, inputOptions.map((inputoption, idx) => {
|
|
17686
|
+
const optionVal = String(inputoption.optionvalue);
|
|
17687
|
+
const isChecked = currentValues.some(val => String(val) === optionVal);
|
|
17688
|
+
const itemKey = `${alias}-chk-${inputoption.optionid || idx}`;
|
|
17689
|
+
const itemId = `${alias}FormInput${inputoption.optionid || idx}`;
|
|
17690
|
+
return (React__default.createElement(p$d, { as: "label", key: itemKey, size: "2", style: {
|
|
17670
17691
|
display: 'flex',
|
|
17671
17692
|
alignItems: 'center',
|
|
17672
17693
|
gap: '8px',
|
|
17673
17694
|
cursor: 'pointer'
|
|
17674
17695
|
} },
|
|
17675
|
-
React__default.createElement(c$2, { name: alias, id:
|
|
17696
|
+
React__default.createElement(c$2, { name: alias, id: itemId, disabled: readOnly, value: optionVal, checked: isChecked, onCheckedChange: (checked) => handleCheckedChange(checked, optionVal), variant: inputtype === 'checkbox-outline' ? 'soft' : 'surface', className: inputtype === 'checkbox-neumorphic' ? 'neu-checkbox' : '', style: Object.assign({}, (inputtype === 'checkbox-outline' ? {
|
|
17676
17697
|
border: isChecked ? '2px solid var(--accent-9)' : '2px solid var(--gray-8)',
|
|
17677
17698
|
backgroundColor: 'transparent'
|
|
17678
17699
|
} : {})) }),
|
|
17679
17700
|
React__default.createElement("span", { style: { userSelect: 'none' } }, inputoption.text)));
|
|
17680
17701
|
})),
|
|
17681
17702
|
React__default.createElement("div", null,
|
|
17682
|
-
React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "
|
|
17703
|
+
React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "div", size: "2", weight: "bold" }, inputLabel),
|
|
17683
17704
|
"\u00A0",
|
|
17684
|
-
isHinted
|
|
17685
|
-
React__default.createElement(
|
|
17686
|
-
React__default.createElement(
|
|
17687
|
-
|
|
17688
|
-
React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
17689
|
-
hasError ?
|
|
17690
|
-
React__default.createElement(React__default.Fragment, null,
|
|
17691
|
-
React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || "Required field")) : null))));
|
|
17705
|
+
isHinted && (React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
17706
|
+
React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
17707
|
+
React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
17708
|
+
hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : "Required field")))))));
|
|
17692
17709
|
};
|
|
17693
17710
|
|
|
17694
17711
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
@@ -31333,7 +31350,8 @@ const DatePicker = ({ alias, inputLabel, inputtype = 'datepicker-outline', width
|
|
|
31333
31350
|
const fieldValue = getIn(values, alias);
|
|
31334
31351
|
const fieldTouched = getIn(touched, alias);
|
|
31335
31352
|
const fieldError = getIn(errors, alias);
|
|
31336
|
-
const inputId = `${alias}FormInput
|
|
31353
|
+
const inputId = `${alias}FormInput`;
|
|
31354
|
+
const labelId = `${alias}InputLabel`;
|
|
31337
31355
|
const hasError = Boolean(fieldTouched && fieldError);
|
|
31338
31356
|
const containerRef = useRef(null);
|
|
31339
31357
|
const [neuVars, setNeuVars] = useState({});
|
|
@@ -31403,11 +31421,11 @@ const DatePicker = ({ alias, inputLabel, inputtype = 'datepicker-outline', width
|
|
|
31403
31421
|
React__default.createElement(DatePicker$1, { id: `${alias}DatePicker`, selected: (fieldValue && new Date(fieldValue)) || null, onChange: (val) => {
|
|
31404
31422
|
setFieldValue(alias, val);
|
|
31405
31423
|
setFieldTouched(alias, true, false);
|
|
31406
|
-
}, disabled: readOnly, placeholderText: placeholder, dateFormat: "MMM d, yyyy", customInput: React__default.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
|
|
31424
|
+
}, disabled: readOnly, placeholderText: placeholder, dateFormat: "MMM d, yyyy", "aria-labelledby": labelId, customInput: React__default.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
|
|
31407
31425
|
React__default.createElement(c, null,
|
|
31408
31426
|
React__default.createElement(Icon, { name: "calendar", height: "16", width: "16", style: { color: 'var(--gray-10)' } }))) }),
|
|
31409
31427
|
React__default.createElement("div", null,
|
|
31410
|
-
inputLabel && React__default.createElement(p$d, { size: "2", weight: "bold", as: "
|
|
31428
|
+
inputLabel && React__default.createElement(p$d, { id: labelId, size: "2", weight: "bold", as: "div", style: { display: 'inline' } }, inputLabel),
|
|
31411
31429
|
isHinted && (React__default.createElement(e, { content: hintText || "No hint", align: "start" },
|
|
31412
31430
|
React__default.createElement("a", { href: hintUrl || "#", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
|
|
31413
31431
|
React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
@@ -31549,7 +31567,8 @@ const DateRangePicker = ({ alias, inputLabel, inputtype = 'daterangepicker-outli
|
|
|
31549
31567
|
const fieldTouched = getIn(touched, alias);
|
|
31550
31568
|
const fieldError = getIn(errors, alias);
|
|
31551
31569
|
const hasError = Boolean(fieldTouched && fieldError);
|
|
31552
|
-
const inputId = `${alias}FormInput
|
|
31570
|
+
const inputId = `${alias}FormInput`;
|
|
31571
|
+
const labelId = `${alias}InputLabel`;
|
|
31553
31572
|
const getDates = () => {
|
|
31554
31573
|
const val = fieldValue;
|
|
31555
31574
|
if (!val)
|
|
@@ -31661,11 +31680,11 @@ const DateRangePicker = ({ alias, inputLabel, inputtype = 'daterangepicker-outli
|
|
|
31661
31680
|
if (start && end) {
|
|
31662
31681
|
setFieldTouched(alias, true, false);
|
|
31663
31682
|
}
|
|
31664
|
-
}, disabled: readOnly, placeholderText: placeholder, dateFormat: "MMM d, yyyy", customInput: React__default.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
|
|
31683
|
+
}, disabled: readOnly, placeholderText: placeholder, dateFormat: "MMM d, yyyy", "aria-labelledby": labelId, customInput: React__default.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
|
|
31665
31684
|
React__default.createElement(c, null,
|
|
31666
31685
|
React__default.createElement(Icon, { name: "calendar", height: "16", width: "16", style: { color: 'var(--gray-10)' } }))) }),
|
|
31667
31686
|
React__default.createElement("div", null,
|
|
31668
|
-
inputLabel && React__default.createElement(p$d, { size: "2", weight: "bold", as: "
|
|
31687
|
+
inputLabel && React__default.createElement(p$d, { id: labelId, size: "2", weight: "bold", as: "div", style: { display: 'inline' } }, inputLabel),
|
|
31669
31688
|
isHinted && (React__default.createElement(e, { content: hintText || "No hint", align: "start" },
|
|
31670
31689
|
React__default.createElement("a", { href: hintUrl || "#", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
|
|
31671
31690
|
React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
@@ -32006,8 +32025,8 @@ const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'nor
|
|
|
32006
32025
|
const containerStyles = getStyles(design, layout);
|
|
32007
32026
|
const iconColor = design === 'neumorphic' ? '#555' : 'var(--gray-9)';
|
|
32008
32027
|
const content = (React__default.createElement(p$8, { className: className, style: Object.assign(Object.assign(Object.assign({}, containerStyles), { width, height: height || 'auto' }), style), onClick: onClick }, src ? (React__default.createElement("img", { id: String(id), src: src, alt: alt, style: {
|
|
32009
|
-
width: '
|
|
32010
|
-
height: '
|
|
32028
|
+
width: '333px',
|
|
32029
|
+
height: '333px',
|
|
32011
32030
|
objectFit: 'cover',
|
|
32012
32031
|
display: 'block',
|
|
32013
32032
|
} })) : (React__default.createElement(p$5, { align: "center", justify: "center", style: {
|
|
@@ -52494,64 +52513,53 @@ const RadioGroupInput = (_a) => {
|
|
|
52494
52513
|
return (React__default.createElement(Column, { span: width, newLine: newRow },
|
|
52495
52514
|
React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: className },
|
|
52496
52515
|
inputtype === 'radio-neumorphic' && (React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
52497
|
-
/* Target the specific Radio Item button class */
|
|
52498
52516
|
.neu-radio .rt-RadioGroupItem {
|
|
52499
52517
|
background-color: var(--neu-bg);
|
|
52500
52518
|
border: none;
|
|
52501
|
-
/* Circular Shadows */
|
|
52502
52519
|
box-shadow: 4px 4px 8px var(--neu-shadow-dark), -4px -4px 8px var(--neu-shadow-light);
|
|
52503
52520
|
width: 20px;
|
|
52504
52521
|
height: 20px;
|
|
52505
52522
|
transition: all 0.2s ease;
|
|
52506
52523
|
}
|
|
52507
|
-
|
|
52508
|
-
/* Checked State: Inset Shadow (Pressed In) */
|
|
52509
52524
|
.neu-radio .rt-RadioGroupItem[data-state='checked'] {
|
|
52510
52525
|
box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light);
|
|
52511
52526
|
background-color: var(--neu-bg);
|
|
52512
52527
|
}
|
|
52513
|
-
|
|
52514
|
-
/* The Inner Dot Indicator */
|
|
52515
52528
|
.neu-radio .rt-RadioGroupIndicator {
|
|
52516
52529
|
background-color: var(--neu-check-color);
|
|
52517
52530
|
width: 50%;
|
|
52518
52531
|
height: 50%;
|
|
52519
52532
|
border-radius: 50%;
|
|
52520
52533
|
}
|
|
52521
|
-
|
|
52522
|
-
/* Hover Effect */
|
|
52523
52534
|
.neu-radio .rt-RadioGroupItem:hover {
|
|
52524
52535
|
transform: scale(1.05);
|
|
52525
52536
|
}
|
|
52526
52537
|
.neu-radio .rt-RadioGroupItem[data-state='checked']:hover {
|
|
52527
|
-
transform: none;
|
|
52538
|
+
transform: none;
|
|
52528
52539
|
}
|
|
52529
52540
|
` } })),
|
|
52530
|
-
React__default.createElement(I$1, { name: alias, id: `${alias}FormInput`, "aria-
|
|
52541
|
+
React__default.createElement(I$1, { name: alias, id: `${alias}FormInput`, "aria-labelledby": `${alias}InputLabel`, disabled: readOnly, value: fieldValue !== undefined && fieldValue !== null ? String(fieldValue) : "", onValueChange: (val) => {
|
|
52531
52542
|
setFieldValue(alias, val);
|
|
52532
52543
|
setTimeout(() => setFieldTouched(alias, true, false), 0);
|
|
52533
52544
|
} },
|
|
52534
|
-
React__default.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars }, inputOptions.map((inputoption) => {
|
|
52535
|
-
const
|
|
52536
|
-
|
|
52545
|
+
React__default.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars }, inputOptions.map((inputoption, idx) => {
|
|
52546
|
+
const optionValue = String(inputoption.optionvalue);
|
|
52547
|
+
const isChecked = String(fieldValue) === optionValue;
|
|
52548
|
+
return (React__default.createElement(p$5, { asChild: true, key: `${alias}-radio-${idx}`, align: "center", gap: "2" },
|
|
52537
52549
|
React__default.createElement(p$d, { as: "label", size: "2", style: { cursor: 'pointer' } },
|
|
52538
|
-
React__default.createElement(y$1, { value:
|
|
52550
|
+
React__default.createElement(y$1, { value: optionValue, className: inputtype === 'radio-neumorphic' ? 'neu-radio' : '', style: Object.assign({}, (inputtype === 'radio-outline' ? {
|
|
52539
52551
|
border: isChecked ? '2px solid var(--accent-9)' : '2px solid var(--gray-8)',
|
|
52540
52552
|
backgroundColor: 'transparent'
|
|
52541
52553
|
} : {})) }),
|
|
52542
52554
|
React__default.createElement("span", { style: { userSelect: 'none' } }, inputoption.text))));
|
|
52543
52555
|
}))),
|
|
52544
52556
|
React__default.createElement("div", null,
|
|
52545
|
-
React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "
|
|
52557
|
+
React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "div", size: "2", weight: "bold" }, inputLabel),
|
|
52546
52558
|
"\u00A0",
|
|
52547
|
-
isHinted
|
|
52548
|
-
React__default.createElement(
|
|
52549
|
-
React__default.createElement(
|
|
52550
|
-
|
|
52551
|
-
React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
52552
|
-
hasError ?
|
|
52553
|
-
React__default.createElement(React__default.Fragment, null,
|
|
52554
|
-
React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`))) : null))));
|
|
52559
|
+
isHinted && (React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
52560
|
+
React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
52561
|
+
React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
52562
|
+
hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`)))))));
|
|
52555
52563
|
};
|
|
52556
52564
|
|
|
52557
52565
|
const OptionSelect = (_a) => {
|
|
@@ -52807,6 +52815,7 @@ const SliderInput = (_a) => {
|
|
|
52807
52815
|
const hasError = Boolean(fieldTouched && fieldError);
|
|
52808
52816
|
const containerRef = useRef(null);
|
|
52809
52817
|
const [neuVars, setNeuVars] = useState({});
|
|
52818
|
+
const labelId = `${alias}InputLabel`;
|
|
52810
52819
|
const errorId = `${alias}-error`;
|
|
52811
52820
|
useEffect(() => {
|
|
52812
52821
|
if (inputtype === 'slider-neumorphic' && containerRef.current) {
|
|
@@ -52880,13 +52889,13 @@ const SliderInput = (_a) => {
|
|
|
52880
52889
|
box-shadow: none;
|
|
52881
52890
|
}
|
|
52882
52891
|
` } }),
|
|
52883
|
-
React__default.createElement(s, { name: alias, id: `${alias}FormInput`, disabled: readOnly, "aria-
|
|
52892
|
+
React__default.createElement(s, { name: alias, id: `${alias}FormInput`, disabled: readOnly, "aria-labelledby": labelId, min: minvalue, max: maxvalue, step: stepvalue, value: fieldValue, onValueChange: (val) => {
|
|
52884
52893
|
setFieldValue(alias, val[0]);
|
|
52885
52894
|
}, onValueCommit: () => {
|
|
52886
52895
|
setFieldTouched(alias, true, false);
|
|
52887
52896
|
}, className: inputtype === 'slider-neumorphic' ? 'neu-slider' : inputtype === 'slider-outline' ? 'outline-slider' : '', style: neuVars }),
|
|
52888
52897
|
React__default.createElement("div", null,
|
|
52889
|
-
React__default.createElement(p$d, { id:
|
|
52898
|
+
React__default.createElement(p$d, { id: labelId, as: "div", size: "2", weight: "bold" }, inputLabel),
|
|
52890
52899
|
"\u00A0",
|
|
52891
52900
|
isHinted ?
|
|
52892
52901
|
React__default.createElement(React__default.Fragment, null,
|
|
@@ -52910,18 +52919,13 @@ const RangeSlider = (_a) => {
|
|
|
52910
52919
|
const fieldVal = getIn(values, alias);
|
|
52911
52920
|
const fieldTouched = getIn(touched, alias);
|
|
52912
52921
|
const fieldError = getIn(errors, alias);
|
|
52913
|
-
// Range Formik Logic
|
|
52914
|
-
// Synopsis
|
|
52915
|
-
// Radix slider component requires an array.
|
|
52916
|
-
// If field value is [20, 80] pass [20, 80].
|
|
52917
|
-
// If field value is 50 we pass [50].
|
|
52918
|
-
// If field value is undefined, default to [min] or [min, max].
|
|
52919
52922
|
const isRange = Array.isArray(fieldVal);
|
|
52920
52923
|
const sliderValue = isRange ? fieldVal : [fieldVal || minvalue];
|
|
52921
52924
|
const hasError = Boolean(fieldTouched && fieldError);
|
|
52922
52925
|
const containerRef = useRef(null);
|
|
52923
52926
|
const [neuVars, setNeuVars] = useState({});
|
|
52924
52927
|
const errorId = `${alias}-error`;
|
|
52928
|
+
const labelId = `${alias}InputLabel`;
|
|
52925
52929
|
useEffect(() => {
|
|
52926
52930
|
if (inputtype === 'range-neumorphic' && containerRef.current) {
|
|
52927
52931
|
const parentBg = getNearestParentBackground(containerRef.current.parentElement);
|
|
@@ -52945,13 +52949,9 @@ const RangeSlider = (_a) => {
|
|
|
52945
52949
|
box-shadow: inset 2px 2px 5px var(--neu-shadow-dark), inset -2px -2px 5px var(--neu-shadow-light);
|
|
52946
52950
|
border-radius: 99px;
|
|
52947
52951
|
}
|
|
52948
|
-
.neu-slider .rt-SliderRange {
|
|
52949
|
-
background-color: var(--neu-accent);
|
|
52950
|
-
border-radius: 99px;
|
|
52951
|
-
}
|
|
52952
|
+
.neu-slider .rt-SliderRange { background-color: var(--neu-accent); border-radius: 99px; }
|
|
52952
52953
|
.neu-slider .rt-SliderThumb {
|
|
52953
|
-
background-color: var(--neu-bg);
|
|
52954
|
-
border: 2px solid var(--neu-bg);
|
|
52954
|
+
background-color: var(--neu-bg); border: 2px solid var(--neu-bg);
|
|
52955
52955
|
width: 24px; height: 24px;
|
|
52956
52956
|
box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light);
|
|
52957
52957
|
}
|
|
@@ -52959,31 +52959,22 @@ const RangeSlider = (_a) => {
|
|
|
52959
52959
|
.neu-slider .rt-SliderThumb:active { transform: scale(0.95); cursor: grabbing; }
|
|
52960
52960
|
|
|
52961
52961
|
/* Outline */
|
|
52962
|
-
.outline-slider .rt-SliderTrack {
|
|
52963
|
-
height: 4px; background-color: transparent; border: 1px solid var(--gray-8);
|
|
52964
|
-
}
|
|
52962
|
+
.outline-slider .rt-SliderTrack { height: 4px; background-color: transparent; border: 1px solid var(--gray-8); }
|
|
52965
52963
|
.outline-slider .rt-SliderRange { background-color: var(--accent-9); }
|
|
52966
|
-
.outline-slider .rt-SliderThumb {
|
|
52967
|
-
background-color: white; border: 2px solid var(--accent-9); box-shadow: none;
|
|
52968
|
-
}
|
|
52964
|
+
.outline-slider .rt-SliderThumb { background-color: white; border: 2px solid var(--accent-9); box-shadow: none; }
|
|
52969
52965
|
` } }),
|
|
52970
|
-
React__default.createElement(s, { name: alias, id: `${alias}FormInput`, disabled: readOnly, "aria-
|
|
52971
|
-
// LOGIC SYNOPSIS:
|
|
52972
|
-
// If Range, set value as array.
|
|
52973
|
-
// If Slider, set value as first value.
|
|
52966
|
+
React__default.createElement(s, { name: alias, id: `${alias}FormInput`, disabled: readOnly, "aria-labelledby": labelId, min: minvalue, max: maxvalue, step: stepvalue, minStepsBetweenThumbs: minStepsBetweenThumbs, value: sliderValue, onValueChange: (val) => {
|
|
52974
52967
|
setFieldValue(alias, isRange ? val : val[0]);
|
|
52975
52968
|
}, onValueCommit: () => setFieldTouched(alias, true, false), className: inputtype === 'range-neumorphic' ? 'neu-slider' : inputtype === 'range-outline' ? 'outline-slider' : '', style: neuVars }),
|
|
52976
52969
|
React__default.createElement("div", null,
|
|
52977
|
-
React__default.createElement(p$d, { id:
|
|
52970
|
+
React__default.createElement(p$d, { id: labelId, as: "div", size: "2", weight: "bold", style: { display: 'inline' } }, inputLabel),
|
|
52978
52971
|
"\u00A0",
|
|
52979
|
-
isHinted
|
|
52980
|
-
React__default.createElement(
|
|
52981
|
-
React__default.createElement(
|
|
52982
|
-
React__default.createElement(
|
|
52983
|
-
|
|
52984
|
-
|
|
52985
|
-
React__default.createElement(React__default.Fragment, null,
|
|
52986
|
-
React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`))) : null))));
|
|
52972
|
+
isHinted && (React__default.createElement(React__default.Fragment, null,
|
|
52973
|
+
React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
52974
|
+
React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
52975
|
+
React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } }))))),
|
|
52976
|
+
hasError && (React__default.createElement(React__default.Fragment, null,
|
|
52977
|
+
React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`))))))));
|
|
52987
52978
|
};
|
|
52988
52979
|
|
|
52989
52980
|
const Toggle = (_a) => {
|
|
@@ -53154,7 +53145,7 @@ const ConditionalTrigger = (_a) => {
|
|
|
53154
53145
|
const fieldValue = getIn(values, alias);
|
|
53155
53146
|
const fieldTouched = getIn(touched, alias);
|
|
53156
53147
|
const fieldError = getIn(errors, alias);
|
|
53157
|
-
const inputId = `${alias}FormInput
|
|
53148
|
+
const inputId = `${alias}FormInput`;
|
|
53158
53149
|
const errorId = `${alias}-error`;
|
|
53159
53150
|
// Trigger (Equality) Logic :: If current Field value === trigger value
|
|
53160
53151
|
const isOpen = fieldValue === triggerValue;
|
|
@@ -53165,19 +53156,19 @@ const ConditionalTrigger = (_a) => {
|
|
|
53165
53156
|
const isNeumorphic = inputtype.includes('neumorphic');
|
|
53166
53157
|
const hasError = Boolean(fieldTouched && fieldError);
|
|
53167
53158
|
const renderTrigger = () => {
|
|
53168
|
-
|
|
53169
|
-
|
|
53170
|
-
|
|
53171
|
-
|
|
53172
|
-
|
|
53173
|
-
|
|
53174
|
-
|
|
53175
|
-
|
|
53176
|
-
|
|
53177
|
-
|
|
53178
|
-
|
|
53179
|
-
|
|
53180
|
-
|
|
53159
|
+
if (inputtype.includes('conditionalcheckbox') || inputtype.includes('conditional-checkbox')) {
|
|
53160
|
+
return (React__default.createElement(p$5, { align: "center", gap: "2", style: { cursor: 'pointer' } },
|
|
53161
|
+
React__default.createElement(c$2, { name: alias, disabled: readOnly, checked: fieldValue === true, onCheckedChange: (checked) => handleChange(!!checked), id: inputId })));
|
|
53162
|
+
}
|
|
53163
|
+
else if (inputtype.includes('conditionalselect') || inputtype.includes('conditional-select')) {
|
|
53164
|
+
return (React__default.createElement(p$5, { direction: "column", gap: "1", style: { width: '100%' } },
|
|
53165
|
+
React__default.createElement(C$1, { name: alias, disabled: readOnly, value: fieldValue !== undefined ? String(fieldValue) : undefined, onValueChange: handleChange },
|
|
53166
|
+
React__default.createElement(u$1, { id: inputId, variant: isNeumorphic ? 'soft' : 'surface', style: { width: '100%' }, placeholder: placeholder || "Select" }),
|
|
53167
|
+
React__default.createElement(g, null, inputOptions.map((inputoption, idx) => (React__default.createElement(v, { key: `${alias}-opt-${inputoption.optionid || idx}`, value: String(inputoption.optionvalue) }, inputoption.text)))))));
|
|
53168
|
+
}
|
|
53169
|
+
else {
|
|
53170
|
+
return (React__default.createElement(p$5, { justify: "between", align: "center", style: { width: '100%' } },
|
|
53171
|
+
React__default.createElement(i$1, { id: inputId, name: alias, disabled: readOnly, checked: fieldValue === true, onCheckedChange: (checked) => handleChange(!!checked), variant: isNeumorphic ? 'soft' : 'surface' })));
|
|
53181
53172
|
}
|
|
53182
53173
|
};
|
|
53183
53174
|
const containerStyle = getDesignStyles(inputtype, isOpen);
|
|
@@ -53188,20 +53179,16 @@ const ConditionalTrigger = (_a) => {
|
|
|
53188
53179
|
React__default.createElement("div", { style: animationStyles.inner },
|
|
53189
53180
|
React__default.createElement(p$8, { style: {
|
|
53190
53181
|
paddingTop: '8px',
|
|
53191
|
-
borderTop: isOpen && !isNeumorphic ? '1px dashed var(--gray-6)' : 'none'
|
|
53192
|
-
} },
|
|
53193
|
-
|
|
53182
|
+
borderTop: isOpen && !isNeumorphic ? '1px dashed var(--gray-6)' : 'none',
|
|
53183
|
+
} },
|
|
53184
|
+
React__default.createElement("div", { style: { display: 'grid', gridTemplateColumns: 'repeat(12, 1fr)', gap: '16px', width: '100%' } }, children)))),
|
|
53185
|
+
React__default.createElement("div", { style: { marginTop: '8px' } },
|
|
53194
53186
|
React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: inputId, style: { cursor: 'pointer' } }, inputLabel),
|
|
53195
53187
|
"\u00A0",
|
|
53196
|
-
isHinted
|
|
53197
|
-
React__default.createElement(
|
|
53198
|
-
React__default.createElement(
|
|
53199
|
-
|
|
53200
|
-
React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
53201
|
-
hasError ?
|
|
53202
|
-
React__default.createElement(React__default.Fragment, null,
|
|
53203
|
-
React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof fieldError === 'string' ? React__default.createElement(React__default.Fragment, null, errorText || "Required field")
|
|
53204
|
-
: 'Invalid file selection')) : null))));
|
|
53188
|
+
isHinted && (React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
53189
|
+
React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
53190
|
+
React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
53191
|
+
hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof fieldError === 'string' ? React__default.createElement(React__default.Fragment, null, errorText || "Required field") : 'Invalid selection'))))));
|
|
53205
53192
|
};
|
|
53206
53193
|
|
|
53207
53194
|
const Row = ({ children, className, gap = "4" }) => {
|
|
@@ -53330,7 +53317,7 @@ const AccordionItem = ({ sectionId, title, children, disabled = false, icon }) =
|
|
|
53330
53317
|
React__default.createElement(p$d, { size: "3", weight: "bold", style: { color: 'var(--accordion-title-color, var(--gray-12))' } }, title)),
|
|
53331
53318
|
React__default.createElement(Icon, { name: "chevrondown", height: "20", width: "20", className: "v-accordion-chevron" }))),
|
|
53332
53319
|
React__default.createElement(Content2$3, { className: "v-accordion-content", style: { overflow: 'hidden' } },
|
|
53333
|
-
React__default.createElement("div", { style: { padding: '
|
|
53320
|
+
React__default.createElement("div", { style: { padding: '24px 16px 24px 16px' } },
|
|
53334
53321
|
React__default.createElement(p$d, { size: "2", color: "gray", as: "div" }, children)))));
|
|
53335
53322
|
};
|
|
53336
53323
|
|
|
@@ -53490,7 +53477,7 @@ const Codex = ({ design = 'outline', defaultStepId, brandColor, width = 12, newR
|
|
|
53490
53477
|
step.description && (React__default.createElement(p$d, { size: "1", color: "gray", style: { display: 'block', marginTop: '4px' } }, step.description)))),
|
|
53491
53478
|
index < steps.length - 1 && (React__default.createElement("div", { className: `v-step-line ${isCompleted ? 'completed' : 'pending'}` }))));
|
|
53492
53479
|
}))),
|
|
53493
|
-
React__default.createElement(p$8, { style: { position: 'relative' } }, children)))));
|
|
53480
|
+
React__default.createElement(p$8, { style: { position: 'relative', marginTop: '33px', marginBottom: '33px' } }, children)))));
|
|
53494
53481
|
};
|
|
53495
53482
|
const CodexItem = ({ stepId, children, }) => {
|
|
53496
53483
|
const { activeStepId } = useContext(CodexContext);
|
|
@@ -53499,7 +53486,7 @@ const CodexItem = ({ stepId, children, }) => {
|
|
|
53499
53486
|
return (React__default.createElement("div", { className: "v-step-content-animation", style: { width: '100%' } }, children));
|
|
53500
53487
|
};
|
|
53501
53488
|
|
|
53502
|
-
const CodexControls = ({ nextStepId, prevStepId, nextLabel = "Continue", prevLabel = "Back", finishLabel = "Submit", prevIcon = "doublearrowleft", nextIcon = "doublearrowright", finishIcon = "paperplane", onSubmit =
|
|
53489
|
+
const CodexControls = ({ nextStepId, prevStepId, nextLabel = "Continue", prevLabel = "Back", finishLabel = "Submit", prevIcon = "doublearrowleft", nextIcon = "doublearrowright", finishIcon = "paperplane", onSubmit = true, onNext, onPrev, onFinish }) => {
|
|
53503
53490
|
const { setActiveStepId, brandColor } = useStepper();
|
|
53504
53491
|
const handlePrev = () => {
|
|
53505
53492
|
if (onPrev)
|
|
@@ -53541,11 +53528,12 @@ const SectionTitle = ({ title, width = 12, newRow = true, size = "5", subsize =
|
|
|
53541
53528
|
center: 'center',
|
|
53542
53529
|
right: 'end'
|
|
53543
53530
|
};
|
|
53544
|
-
return (React__default.createElement(Column, { span: width, newLine: newRow },
|
|
53531
|
+
return (React__default.createElement(Column, { span: width, newLine: newRow, style: { marginBottom: '23px', marginTop: '23px' } },
|
|
53545
53532
|
React__default.createElement(p$5, { direction: "column", gap: "2", className: className, style: {
|
|
53546
53533
|
width: '100%',
|
|
53547
53534
|
boxSizing: 'border-box',
|
|
53548
|
-
|
|
53535
|
+
marginTop: '23px',
|
|
53536
|
+
marginBottom: '23px',
|
|
53549
53537
|
textAlign: align,
|
|
53550
53538
|
backgroundColor: backgroundColor || 'transparent',
|
|
53551
53539
|
padding: backgroundColor ? 'var(--space-3) var(--space-4)' : '0',
|
|
@@ -53632,7 +53620,7 @@ const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice',
|
|
|
53632
53620
|
case checkboxInputType.includes(normalizedType):
|
|
53633
53621
|
return React__default.createElement(CheckboxGroupInput, Object.assign({}, layoutProps, { inputOptions: inputOptions || [InputOptionsPlaceholder] }));
|
|
53634
53622
|
case conditionalInputType.includes(normalizedType):
|
|
53635
|
-
return React__default.createElement(ConditionalTrigger, Object.assign({}, layoutProps, { inputOptions: inputOptions, triggerValue:
|
|
53623
|
+
return React__default.createElement(ConditionalTrigger, Object.assign({}, layoutProps, { inputOptions: inputOptions, triggerValue: triggerValue, children: toggledInput }));
|
|
53636
53624
|
case datePickerInputType.includes(normalizedType):
|
|
53637
53625
|
return React__default.createElement(DatePicker, Object.assign({}, layoutProps, { placeholder: inputPlaceholder }));
|
|
53638
53626
|
case dateRangePickerInputType.includes(normalizedType):
|
|
@@ -53669,7 +53657,7 @@ const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice',
|
|
|
53669
53657
|
case rangeSliderInputType.includes(normalizedType):
|
|
53670
53658
|
return React__default.createElement(RangeSlider, Object.assign({}, layoutProps, { stepvalue: Number(stepValue), minvalue: Number(inputMinValue), maxvalue: Number(inputMaxValue) }));
|
|
53671
53659
|
case toggleInputType.includes(normalizedType):
|
|
53672
|
-
return React__default.createElement(Toggle, Object.assign({}, layoutProps, { icon:
|
|
53660
|
+
return React__default.createElement(Toggle, Object.assign({}, layoutProps, { icon: "layers" }));
|
|
53673
53661
|
default:
|
|
53674
53662
|
return React__default.createElement(Input$2, Object.assign({}, layoutProps, { placeholder: inputPlaceholder }));
|
|
53675
53663
|
}
|
|
@@ -53686,8 +53674,8 @@ const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice',
|
|
|
53686
53674
|
switch (displayMode) {
|
|
53687
53675
|
case 'dual':
|
|
53688
53676
|
return (React__default.createElement(React__default.Fragment, null,
|
|
53689
|
-
React__default.createElement("div", { style: { display: 'flex', alignItems: 'center', gap: '12px', marginBottom: '20px' } },
|
|
53690
|
-
React__default.createElement("span",
|
|
53677
|
+
React__default.createElement("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '12px', marginBottom: '20px' } },
|
|
53678
|
+
React__default.createElement("span", { style: { fontWeight: 600 } }, "Dual Display"),
|
|
53691
53679
|
React__default.createElement("div", { className: "neu-toggle-wrapper", style: Object.assign(Object.assign({}, neuVars), { opacity: readOnlyMode ? 0.6 : 1, pointerEvents: readOnlyMode ? 'none' : 'auto' }), onClick: () => setDualToggled(!dualToggled) },
|
|
53692
53680
|
React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
53693
53681
|
.neu-toggle-wrapper { isolation: isolate; position: relative; height: 30px; width: 60px; border-radius: 15px; overflow: hidden; cursor: pointer; background: var(--neu-bg); box-shadow: -8px -4px 8px 0px var(--neu-shadow-light), 8px 4px 12px 0px var(--neu-shadow-dark), 4px 4px 4px 0px var(--neu-shadow-dark) inset, -4px -4px 4px 0px var(--neu-shadow-light) inset; }
|
|
@@ -53699,23 +53687,23 @@ const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice',
|
|
|
53699
53687
|
React__default.createElement("div", { className: "neu-indicator" })),
|
|
53700
53688
|
React__default.createElement(Icon, { name: "layers", height: "20", width: "20", color: brandColor, style: { opacity: readOnlyMode ? 0.5 : 1, cursor: 'pointer' }, onClick: () => setDualToggled(!dualToggled) })),
|
|
53701
53689
|
dualToggled ?
|
|
53702
|
-
React__default.createElement(Accordion, { allowMultiple: true, brandcolor: brandColor, titleColor: '#ffffff' }, xFormModel.model.map((formsection) => (React__default.createElement(AccordionItem, { key: formsection.sectionId, sectionId: String(formsection.sectionId), title: formsection.title },
|
|
53690
|
+
React__default.createElement(Accordion, { allowMultiple: true, brandcolor: brandColor, titleColor: '#ffffff' }, xFormModel.model.map((formsection) => (React__default.createElement(AccordionItem, { key: formsection.sectionId, sectionId: String(formsection.sectionId), title: formsection.title, icon: React__default.createElement(Icon, { name: formsection.icon || "fontfamily" }) },
|
|
53703
53691
|
React__default.createElement(Row, { key: formsection.sectionId }, renderQueries(formsection.queries))))))
|
|
53704
53692
|
:
|
|
53705
53693
|
xFormModel.model.map((formsection) => (React__default.createElement(React__default.Fragment, { key: formsection.sectionId || crypto.randomUUID() },
|
|
53706
|
-
React__default.createElement(SectionTitle, { title: formsection.title, icon: React__default.createElement(Icon, { name:
|
|
53694
|
+
React__default.createElement(SectionTitle, { title: formsection.title, icon: React__default.createElement(Icon, { name: formsection.icon || "fontfamily" }) }),
|
|
53707
53695
|
React__default.createElement(Row, null, renderQueries(formsection.queries)))))));
|
|
53708
53696
|
case 'accordion':
|
|
53709
|
-
return (React__default.createElement(Accordion, { allowMultiple: true, brandcolor: brandColor, titleColor: '#ffffff' }, xFormModel.model.map((formsection) => (React__default.createElement(AccordionItem, { key: formsection.sectionId, sectionId: String(formsection.sectionId), title: formsection.title },
|
|
53697
|
+
return (React__default.createElement(Accordion, { allowMultiple: true, brandcolor: brandColor, titleColor: '#ffffff' }, xFormModel.model.map((formsection) => (React__default.createElement(AccordionItem, { key: formsection.sectionId, sectionId: String(formsection.sectionId), title: formsection.title, icon: React__default.createElement(Icon, { name: formsection.icon || "fontfamily" }) },
|
|
53710
53698
|
React__default.createElement(Row, { key: formsection.sectionId }, renderQueries(formsection.queries)))))));
|
|
53711
53699
|
case 'codex':
|
|
53712
|
-
return (React__default.createElement(Codex, { brandColor: brandColor }, xFormModel.model.map((formsection, index, array) => (React__default.createElement(CodexItem, { key: formsection.sectionId, stepId: String(formsection.sectionId), title: formsection.title },
|
|
53700
|
+
return (React__default.createElement(Codex, { brandColor: brandColor }, xFormModel.model.map((formsection, index, array) => (React__default.createElement(CodexItem, { key: formsection.sectionId, stepId: String(formsection.sectionId), title: formsection.title, icon: React__default.createElement(Icon, { name: formsection.icon || "fontfamily" }) },
|
|
53713
53701
|
React__default.createElement(Row, { key: formsection.sectionId }, renderQueries(formsection.queries)),
|
|
53714
53702
|
React__default.createElement(CodexControls, { prevStepId: index > 0 ? String(array[index - 1].sectionId) : undefined, nextStepId: index < array.length - 1 ? String(array[index + 1].sectionId) : undefined, onPrev: onPrev, onNext: onNext, onFinish: onFinish }))))));
|
|
53715
53703
|
case 'codice':
|
|
53716
53704
|
default:
|
|
53717
53705
|
return (React__default.createElement(React__default.Fragment, { key: xFormModel.uuid }, xFormModel.model.map((formsection) => (React__default.createElement(React__default.Fragment, { key: formsection.sectionId || crypto.randomUUID() },
|
|
53718
|
-
React__default.createElement(SectionTitle, { title: formsection.title, icon: React__default.createElement(Icon, { name: String(formsection.icon) }) }),
|
|
53706
|
+
React__default.createElement(SectionTitle, { backgroundColor: brandColor, title: formsection.title, icon: React__default.createElement(Icon, { name: String(formsection.icon) }) }),
|
|
53719
53707
|
React__default.createElement(Row, null, renderQueries(formsection.queries)))))));
|
|
53720
53708
|
}
|
|
53721
53709
|
};
|
|
@@ -53951,7 +53939,8 @@ const DateTimePicker = ({ alias, inputLabel, inputtype = 'datetimepicker-outline
|
|
|
53951
53939
|
const fieldValue = getIn(values, alias);
|
|
53952
53940
|
const fieldTouched = getIn(touched, alias);
|
|
53953
53941
|
const fieldError = getIn(errors, alias);
|
|
53954
|
-
const inputId = `${alias}FormInput
|
|
53942
|
+
const inputId = `${alias}FormInput`;
|
|
53943
|
+
const labelId = `${alias}InputLabel`;
|
|
53955
53944
|
const hasError = Boolean(fieldTouched && fieldError);
|
|
53956
53945
|
const containerRef = useRef(null);
|
|
53957
53946
|
const [neuVars, setNeuVars] = useState({});
|
|
@@ -54060,11 +54049,11 @@ const DateTimePicker = ({ alias, inputLabel, inputtype = 'datetimepicker-outline
|
|
|
54060
54049
|
React__default.createElement(DatePicker$1, { id: `${alias}DatePicker`, selected: (fieldValue && new Date(fieldValue)) || null, onChange: (val) => {
|
|
54061
54050
|
setFieldValue(alias, val);
|
|
54062
54051
|
setFieldTouched(alias, true, false);
|
|
54063
|
-
}, showTimeSelect: true, timeFormat: "HH:mm", timeIntervals: 15, dateFormat: "MMM d, yyyy h:mm aa", disabled: readOnly, placeholderText: placeholder, customInput: React__default.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
|
|
54052
|
+
}, showTimeSelect: true, timeFormat: "HH:mm", timeIntervals: 15, dateFormat: "MMM d, yyyy h:mm aa", disabled: readOnly, placeholderText: placeholder, "aria-labelledby": labelId, customInput: React__default.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
|
|
54064
54053
|
React__default.createElement(c, null,
|
|
54065
54054
|
React__default.createElement(Icon, { name: "clock", height: "16", width: "16", style: { color: 'var(--gray-10)' } }))) }),
|
|
54066
54055
|
React__default.createElement("div", null,
|
|
54067
|
-
inputLabel && React__default.createElement(p$d, { size: "2", weight: "bold", as: "
|
|
54056
|
+
inputLabel && React__default.createElement(p$d, { id: labelId, size: "2", weight: "bold", as: "div", style: { display: 'inline' } }, inputLabel),
|
|
54068
54057
|
isHinted && (React__default.createElement(e, { content: hintText || "No hint", align: "start" },
|
|
54069
54058
|
React__default.createElement("a", { href: hintUrl || "#", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
|
|
54070
54059
|
React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
@@ -66,11 +66,11 @@ export interface CheckboxGroup {
|
|
|
66
66
|
* * Required inputOptions{} for the Checkbox Group input field.
|
|
67
67
|
* * @example
|
|
68
68
|
* inputOptions={
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
* [
|
|
70
|
+
* {optionid: 1, optionvalue: "Kaiju", optionurl:"https://github.com/emeraldemperaur", text: "Kaiju"},
|
|
71
|
+
* {optionid: 2, optionvalue: "MekaGodzilla", optionurl:"https://github.com/emeraldemperaur", text: "MekaGodzilla"},
|
|
72
|
+
* {optionid: 3, optionvalue: "Zaibatsu", optionurl:"https://github.com/emeraldemperaur", text: "Zaibatsu"},
|
|
73
|
+
* ]}
|
|
74
74
|
*/
|
|
75
75
|
inputOptions: InputOption[];
|
|
76
76
|
/**
|