@emeraldemperaur/vector-sigma 1.4.6 → 1.4.9
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/README.md +18 -5
- package/lib/index.cjs +231 -198
- package/lib/index.esm.js +231 -198
- package/lib/types/components/avatar/avatar.d.ts +5 -5
- package/lib/types/components/button/button.d.ts +6 -6
- package/lib/types/components/checkbox/checkbox.d.ts +5 -5
- package/lib/types/components/conditional/conditional.d.ts +5 -5
- package/lib/types/components/datepicker/datepicker.d.ts +5 -5
- package/lib/types/components/daterangepicker/daterangepicker.d.ts +9 -9
- package/lib/types/components/datetimepicker/datetimepicker.d.ts +8 -8
- package/lib/types/components/dropdown/dropdown.d.ts +11 -11
- package/lib/types/components/file/file.d.ts +9 -9
- package/lib/types/components/file/filemultiple.d.ts +9 -9
- package/lib/types/components/image/image.d.ts +3 -3
- package/lib/types/components/input/input.d.ts +9 -9
- package/lib/types/components/input/passwordInput.d.ts +1 -1
- package/lib/types/components/input/phoneInput.d.ts +1 -1
- package/lib/types/components/input/uuidInput.d.ts +9 -9
- package/lib/types/components/input/xCreditCardInput.d.ts +1 -1
- package/lib/types/components/inputcurrency/inputcurrency.d.ts +9 -9
- package/lib/types/components/inputcurrency/stockInput.d.ts +10 -10
- package/lib/types/components/radio/radio.d.ts +9 -9
- package/lib/types/components/select/select.d.ts +18 -12
- package/lib/types/components/selectmultiple/selectmultiple.d.ts +10 -10
- package/lib/types/components/slider/range.d.ts +6 -6
- package/lib/types/components/slider/slider.d.ts +8 -8
- package/lib/types/components/toggle/toggle.d.ts +8 -8
- package/lib/types/components/xtitle/xtitle.d.ts +3 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -12242,14 +12242,14 @@ const AvatarInput = (_a) => {
|
|
|
12242
12242
|
React.createElement("div", null,
|
|
12243
12243
|
inputlabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", color: 'gray', highContrast: inputtype !== 'avatar-neumorphic', htmlFor: alias }, inputlabel)),
|
|
12244
12244
|
"\u00A0",
|
|
12245
|
-
props.
|
|
12245
|
+
props.ishinted ?
|
|
12246
12246
|
React.createElement(React.Fragment, null,
|
|
12247
|
-
React.createElement(e, { content: props.
|
|
12248
|
-
React.createElement("a", { href: props.
|
|
12247
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
12248
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
12249
12249
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
12250
12250
|
hasError ?
|
|
12251
12251
|
React.createElement(React.Fragment, null,
|
|
12252
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
12252
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)) : null))));
|
|
12253
12253
|
};
|
|
12254
12254
|
|
|
12255
12255
|
/**
|
|
@@ -12318,7 +12318,7 @@ const formatBytes = (bytes, decimals = 2) => {
|
|
|
12318
12318
|
};
|
|
12319
12319
|
|
|
12320
12320
|
const ButtonInput = (_a) => {
|
|
12321
|
-
var { inputtype = 'button-outline', type = 'button', inputlabel, alias,
|
|
12321
|
+
var { inputtype = 'button-outline', type = 'button', inputlabel, alias, readonly, style, width, children } = _a, props = __rest$1(_a, ["inputtype", "type", "inputlabel", "alias", "readonly", "style", "width", "children"]);
|
|
12322
12322
|
const buttonRef = React.useRef(null);
|
|
12323
12323
|
const [neumorphicVars, setNeumorphicVars] = React.useState({});
|
|
12324
12324
|
const [bgColor, setBgColor] = React.useState('#ffffff');
|
|
@@ -12402,14 +12402,14 @@ const ButtonInput = (_a) => {
|
|
|
12402
12402
|
transform: translateY(-2px);
|
|
12403
12403
|
}
|
|
12404
12404
|
` } })),
|
|
12405
|
-
React.createElement(o$a, Object.assign({ name: alias, disabled:
|
|
12405
|
+
React.createElement(o$a, Object.assign({ name: alias, disabled: readonly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, ref: buttonRef, onClick: handler, type: type }, props, getVariantProps()),
|
|
12406
12406
|
props.icon && (React.createElement("span", { style: { display: 'flex', alignItems: 'center' } }, props.icon)),
|
|
12407
12407
|
children),
|
|
12408
12408
|
React.createElement("br", null),
|
|
12409
|
-
React.createElement("div", null, props.
|
|
12409
|
+
React.createElement("div", null, props.ishinted ?
|
|
12410
12410
|
React.createElement(React.Fragment, null,
|
|
12411
|
-
React.createElement(e, { content: props.
|
|
12412
|
-
React.createElement("a", { href: props.
|
|
12411
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
12412
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
12413
12413
|
React.createElement(Icon, { name: 'questionmarkcircled', height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null))));
|
|
12414
12414
|
};
|
|
12415
12415
|
|
|
@@ -12482,14 +12482,14 @@ const CheckboxGroupInput = (_a) => {
|
|
|
12482
12482
|
React.createElement("div", null,
|
|
12483
12483
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
12484
12484
|
"\u00A0",
|
|
12485
|
-
props.
|
|
12485
|
+
props.ishinted ?
|
|
12486
12486
|
React.createElement(React.Fragment, null,
|
|
12487
|
-
React.createElement(e, { content: props.
|
|
12488
|
-
React.createElement("a", { href: props.
|
|
12487
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
12488
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
12489
12489
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
12490
12490
|
hasError ?
|
|
12491
12491
|
React.createElement(React.Fragment, null,
|
|
12492
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
12492
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || "Required field")) : null))));
|
|
12493
12493
|
};
|
|
12494
12494
|
|
|
12495
12495
|
const animationStyles = {
|
|
@@ -12562,14 +12562,14 @@ const ConditionalTrigger = (_a) => {
|
|
|
12562
12562
|
React.createElement("div", null,
|
|
12563
12563
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias, style: { cursor: 'pointer' } }, inputlabel),
|
|
12564
12564
|
"\u00A0",
|
|
12565
|
-
props.
|
|
12565
|
+
props.ishinted ?
|
|
12566
12566
|
React.createElement(React.Fragment, null,
|
|
12567
|
-
React.createElement(e, { content: props.
|
|
12568
|
-
React.createElement("a", { href: props.
|
|
12567
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
12568
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
12569
12569
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
12570
12570
|
hasError ?
|
|
12571
12571
|
React.createElement(React.Fragment, null,
|
|
12572
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ? React.createElement(React.Fragment, null, props.
|
|
12572
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ? React.createElement(React.Fragment, null, props.errortext || "Required field")
|
|
12573
12573
|
: 'Invalid file selection')) : null))));
|
|
12574
12574
|
};
|
|
12575
12575
|
|
|
@@ -21049,19 +21049,19 @@ const DatePicker = (_a) => {
|
|
|
21049
21049
|
React.createElement("div", null,
|
|
21050
21050
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
21051
21051
|
"\u00A0",
|
|
21052
|
-
props.
|
|
21052
|
+
props.ishinted ?
|
|
21053
21053
|
React.createElement(React.Fragment, null,
|
|
21054
|
-
React.createElement(e, { content: props.
|
|
21055
|
-
React.createElement("a", { href: props.
|
|
21054
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
21055
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
21056
21056
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
21057
21057
|
hasError ?
|
|
21058
21058
|
React.createElement(React.Fragment, null,
|
|
21059
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
21059
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || (meta.error || "Required field"))) : null))));
|
|
21060
21060
|
};
|
|
21061
21061
|
|
|
21062
21062
|
const DateRangePicker = (_a) => {
|
|
21063
21063
|
var _b, _c;
|
|
21064
|
-
var { inputtype = 'daterangepicker-outline', alias,
|
|
21064
|
+
var { inputtype = 'daterangepicker-outline', alias, readonly, width, inputlabel, placeholder = 'Pick a date range', value, minvalue, maxvalue, classname, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "value", "minvalue", "maxvalue", "classname", "style"]);
|
|
21065
21065
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
21066
21066
|
const [field, meta] = formik.useField(alias);
|
|
21067
21067
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -21131,8 +21131,8 @@ const DateRangePicker = (_a) => {
|
|
|
21131
21131
|
// Material
|
|
21132
21132
|
return Object.assign(Object.assign({}, base), { backgroundColor: 'var(--color-panel-solid)', border: 'none', boxShadow: '0 10px 38px -10px rgba(22, 23, 24, 0.35), 0 10px 20px -15px rgba(22, 23, 24, 0.2)' });
|
|
21133
21133
|
}, [inputtype, neuVars]);
|
|
21134
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
21135
|
-
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className:
|
|
21134
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
21135
|
+
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: classname },
|
|
21136
21136
|
React.createElement("input", { type: "hidden", name: alias, value: JSON.stringify({
|
|
21137
21137
|
from: (_b = selectedRange.from) === null || _b === void 0 ? void 0 : _b.toISOString(),
|
|
21138
21138
|
to: (_c = selectedRange.to) === null || _c === void 0 ? void 0 : _c.toISOString()
|
|
@@ -21237,15 +21237,15 @@ const DateRangePicker = (_a) => {
|
|
|
21237
21237
|
` } }),
|
|
21238
21238
|
React.createElement(P$1, { open: isOpen, onOpenChange: setIsOpen },
|
|
21239
21239
|
React.createElement(s$1, null,
|
|
21240
|
-
React.createElement(u, { variant: "surface", style: Object.assign({ cursor: 'pointer', height: inputtype === 'daterangepicker-neumorphic' ? '40px' : '32px' }, activeInputStyle), onClick: () => !
|
|
21240
|
+
React.createElement(u, { variant: "surface", style: Object.assign({ cursor: 'pointer', height: inputtype === 'daterangepicker-neumorphic' ? '40px' : '32px' }, activeInputStyle), onClick: () => !readonly && setIsOpen(true) },
|
|
21241
21241
|
React.createElement(c, null,
|
|
21242
21242
|
React.createElement(Icon, { name: 'calendar', height: "16", width: "16", style: { color: 'var(--gray-10)' } })),
|
|
21243
|
-
React.createElement("input", { id: inputId, "aria-describedby": hasError ? errorId : `${alias}InputLabel`, readOnly: true, disabled:
|
|
21243
|
+
React.createElement("input", { id: inputId, "aria-describedby": hasError ? errorId : `${alias}InputLabel`, readOnly: true, disabled: readonly, value: displayText, placeholder: placeholder, style: {
|
|
21244
21244
|
backgroundColor: 'transparent',
|
|
21245
21245
|
border: 'none',
|
|
21246
21246
|
outline: 'none',
|
|
21247
21247
|
width: '100%',
|
|
21248
|
-
cursor:
|
|
21248
|
+
cursor: readonly ? 'default' : 'pointer',
|
|
21249
21249
|
color: 'inherit',
|
|
21250
21250
|
fontFamily: 'inherit',
|
|
21251
21251
|
fontSize: 'var(--font-size-2)',
|
|
@@ -21260,7 +21260,7 @@ const DateRangePicker = (_a) => {
|
|
|
21260
21260
|
setIsOpen(false);
|
|
21261
21261
|
}
|
|
21262
21262
|
}, disabled: [
|
|
21263
|
-
...(
|
|
21263
|
+
...(readonly ? [{ from: new Date(1900, 0, 1), to: new Date(2100, 0, 1) }] : []),
|
|
21264
21264
|
{ before: parsedMin || new Date(1900, 0, 1) },
|
|
21265
21265
|
{ after: parsedMax || new Date(2100, 0, 1) }
|
|
21266
21266
|
], components: {
|
|
@@ -21274,18 +21274,18 @@ const DateRangePicker = (_a) => {
|
|
|
21274
21274
|
React.createElement("div", null,
|
|
21275
21275
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
21276
21276
|
"\u00A0",
|
|
21277
|
-
props.
|
|
21277
|
+
props.ishinted ?
|
|
21278
21278
|
React.createElement(React.Fragment, null,
|
|
21279
|
-
React.createElement(e, { content: props.
|
|
21280
|
-
React.createElement("a", { href: props.
|
|
21279
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
21280
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
21281
21281
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
21282
21282
|
hasError ?
|
|
21283
21283
|
React.createElement(React.Fragment, null,
|
|
21284
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
21284
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || (meta.error || "Required field"))) : null))));
|
|
21285
21285
|
};
|
|
21286
21286
|
|
|
21287
21287
|
const DateTimePicker = (_a) => {
|
|
21288
|
-
var { inputtype = 'datetimepicker-outline', alias, readonly, width, inputlabel, placeholder = 'Pick date & time', value, minvalue, maxvalue,
|
|
21288
|
+
var { inputtype = 'datetimepicker-outline', alias, readonly, width, inputlabel, placeholder = 'Pick date & time', value, minvalue, maxvalue, classname, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "value", "minvalue", "maxvalue", "classname", "style"]);
|
|
21289
21289
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
21290
21290
|
const [field, meta] = formik.useField(alias);
|
|
21291
21291
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -21366,8 +21366,8 @@ const DateTimePicker = (_a) => {
|
|
|
21366
21366
|
// Material
|
|
21367
21367
|
return Object.assign(Object.assign({}, base), { backgroundColor: 'var(--color-panel-solid)', border: 'none', boxShadow: '0 10px 38px -10px rgba(22, 23, 24, 0.35), 0 10px 20px -15px rgba(22, 23, 24, 0.2)' });
|
|
21368
21368
|
}, [inputtype, neuVars]);
|
|
21369
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
21370
|
-
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className:
|
|
21369
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
21370
|
+
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: classname },
|
|
21371
21371
|
React.createElement("input", { type: "hidden", name: alias, value: selectedDate ? selectedDate.toISOString() : '' }),
|
|
21372
21372
|
React.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
21373
21373
|
/* Reset & Layout */
|
|
@@ -21490,18 +21490,18 @@ const DateTimePicker = (_a) => {
|
|
|
21490
21490
|
React.createElement("div", null,
|
|
21491
21491
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
21492
21492
|
"\u00A0",
|
|
21493
|
-
props.
|
|
21493
|
+
props.ishinted ?
|
|
21494
21494
|
React.createElement(React.Fragment, null,
|
|
21495
|
-
React.createElement(e, { content: props.
|
|
21496
|
-
React.createElement("a", { href: props.
|
|
21495
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
21496
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
21497
21497
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
21498
21498
|
hasError ?
|
|
21499
21499
|
React.createElement(React.Fragment, null,
|
|
21500
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
21500
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || (meta.error || "Required field"))) : null))));
|
|
21501
21501
|
};
|
|
21502
21502
|
|
|
21503
21503
|
const Dropdown = (_a) => {
|
|
21504
|
-
var { inputtype = 'dropdown-outline', alias, readonly, width, inputlabel, placeholder, value, inputoptions, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "value", "inputoptions", "style"]);
|
|
21504
|
+
var { inputtype = 'dropdown-outline', alias, readonly, width, inputlabel, placeholder, value, inputoptions, style, newrow, ishinted, hinttext, hinturl, defaultvalue, errortext } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "value", "inputoptions", "style", "newrow", "ishinted", "hinttext", "hinturl", "defaultvalue", "errortext"]);
|
|
21505
21505
|
const triggerRef = React.useRef(null);
|
|
21506
21506
|
const [neuVars, setNeuVars] = React.useState({});
|
|
21507
21507
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
@@ -21575,7 +21575,7 @@ const Dropdown = (_a) => {
|
|
|
21575
21575
|
inputtype === 'dropdown-material' ? materialContent :
|
|
21576
21576
|
inputtype === 'dropdown-outline' ? outlineContent : Object.assign(Object.assign({}, neumorphicContent), neuVars);
|
|
21577
21577
|
return (React.createElement(React.Fragment, null,
|
|
21578
|
-
React.createElement(Column, { span: width, newLine:
|
|
21578
|
+
React.createElement(Column, { span: width, newLine: newrow },
|
|
21579
21579
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
21580
21580
|
inputtype === 'dropdown-neumorphic' && (React.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
21581
21581
|
.neu-select-trigger[data-state='open'] {
|
|
@@ -21587,19 +21587,20 @@ const Dropdown = (_a) => {
|
|
|
21587
21587
|
cursor: pointer;
|
|
21588
21588
|
}
|
|
21589
21589
|
` } })),
|
|
21590
|
-
React.createElement(C$1, { name: alias, disabled: readonly,
|
|
21591
|
-
|
|
21590
|
+
React.createElement(C$1, { name: alias, disabled: readonly, value: field.value || "", onValueChange: (val) => {
|
|
21591
|
+
const finalVal = val === "__RESET__" ? "" : val;
|
|
21592
|
+
setFieldValue(alias, finalVal);
|
|
21592
21593
|
setTimeout(() => setFieldTouched(alias, true), 0);
|
|
21593
21594
|
if (props.onValueChange)
|
|
21594
|
-
props.onValueChange(
|
|
21595
|
+
props.onValueChange(finalVal);
|
|
21595
21596
|
}, onOpenChange: (isOpen) => {
|
|
21596
21597
|
if (!isOpen) {
|
|
21597
21598
|
setFieldTouched(alias, true);
|
|
21598
21599
|
}
|
|
21599
21600
|
} },
|
|
21600
|
-
React.createElement(u$1, { id: `${alias}FormInput`, ref: triggerRef, variant: "ghost", placeholder: placeholder || "Select an option", className: `${inputtype === 'dropdown-neumorphic' ? 'neu-select-trigger' : ''} ${props.
|
|
21601
|
+
React.createElement(u$1, Object.assign({ id: `${alias}FormInput`, ref: triggerRef, variant: "ghost", placeholder: placeholder || "Select an option", className: `${inputtype === 'dropdown-neumorphic' ? 'neu-select-trigger' : ''} ${props.classname || ''}`, style: Object.assign(Object.assign({}, activeTriggerStyle), style) }, props)),
|
|
21601
21602
|
React.createElement(g, { position: "popper", sideOffset: 5, style: activeContentStyle },
|
|
21602
|
-
React.createElement(v, { value: "", className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '', style: { color: 'var(--gray-10)', fontStyle: 'italic' } }, placeholder || "Select an option"),
|
|
21603
|
+
React.createElement(v, { value: "__RESET__", className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '', style: { color: 'var(--gray-10)', fontStyle: 'italic' } }, placeholder || "Select an option"),
|
|
21603
21604
|
React.createElement(o$2, { size: "4", style: { margin: '4px 0', opacity: 0.5 } }),
|
|
21604
21605
|
inputoptions.map((inputoption) => (React.createElement(React.Fragment, { key: inputoption.optionid || crypto.randomUUID() }, inputoption.optionurl ?
|
|
21605
21606
|
React.createElement(v, { id: String(inputoption.optionid) || '', value: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
|
|
@@ -21609,14 +21610,14 @@ const Dropdown = (_a) => {
|
|
|
21609
21610
|
React.createElement("div", null,
|
|
21610
21611
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
21611
21612
|
"\u00A0",
|
|
21612
|
-
|
|
21613
|
+
ishinted ?
|
|
21613
21614
|
React.createElement(React.Fragment, null,
|
|
21614
|
-
React.createElement(e, { content:
|
|
21615
|
-
React.createElement("a", { href:
|
|
21615
|
+
React.createElement(e, { content: hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
21616
|
+
React.createElement("a", { href: hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
21616
21617
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
21617
21618
|
hasError ?
|
|
21618
21619
|
React.createElement(React.Fragment, null,
|
|
21619
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' },
|
|
21620
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errortext || meta.error || "Required field")) : null)))));
|
|
21620
21621
|
};
|
|
21621
21622
|
|
|
21622
21623
|
const getFileIcon$1 = (type, name) => {
|
|
@@ -21634,7 +21635,7 @@ const getFileIcon$1 = (type, name) => {
|
|
|
21634
21635
|
};
|
|
21635
21636
|
const File$1 = (_a) => {
|
|
21636
21637
|
var _b;
|
|
21637
|
-
var { inputtype = 'fileinput-outline', alias, readonly, width, inputlabel, placeholder = '', preview = false,
|
|
21638
|
+
var { inputtype = 'fileinput-outline', alias, readonly, width, inputlabel, placeholder = '', preview = false, classname, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "preview", "classname", "style"]);
|
|
21638
21639
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
21639
21640
|
const [field, meta] = formik.useField(alias);
|
|
21640
21641
|
const selectedFile = field.value;
|
|
@@ -21704,8 +21705,8 @@ const File$1 = (_a) => {
|
|
|
21704
21705
|
: '6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light)', border: 'none' }), neuVars);
|
|
21705
21706
|
const activeStyle = inputtype === 'fileinput-neumorphic' ? neumorphicTrigger :
|
|
21706
21707
|
inputtype === 'fileinput-outline' ? outlineTrigger : materialTrigger;
|
|
21707
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
21708
|
-
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className:
|
|
21708
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
21709
|
+
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: classname },
|
|
21709
21710
|
React.createElement("input", { ref: inputRef, id: inputId, name: alias, readOnly: readonly, type: "file", accept: ACCEPTED_FORMATS, onChange: handleFileChange, style: { display: 'none' }, "aria-describedby": hasError ? errorId : undefined }),
|
|
21710
21711
|
React.createElement("div", { onClick: () => { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click(); }, style: activeStyle, onMouseEnter: (e) => {
|
|
21711
21712
|
if (inputtype === 'fileinput-outline')
|
|
@@ -21740,14 +21741,14 @@ const File$1 = (_a) => {
|
|
|
21740
21741
|
React.createElement("div", null,
|
|
21741
21742
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
21742
21743
|
"\u00A0",
|
|
21743
|
-
props.
|
|
21744
|
+
props.ishinted ?
|
|
21744
21745
|
React.createElement(React.Fragment, null,
|
|
21745
|
-
React.createElement(e, { content: props.
|
|
21746
|
-
React.createElement("a", { href: props.
|
|
21746
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
21747
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
21747
21748
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
21748
21749
|
hasError ?
|
|
21749
21750
|
React.createElement(React.Fragment, null,
|
|
21750
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
21751
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || "Required field")) : null))));
|
|
21751
21752
|
};
|
|
21752
21753
|
|
|
21753
21754
|
const getFileIcon = (fileOrUrl) => {
|
|
@@ -21797,7 +21798,7 @@ const styles = {
|
|
|
21797
21798
|
}
|
|
21798
21799
|
};
|
|
21799
21800
|
const FileMultiple = (_a) => {
|
|
21800
|
-
var { inputtype = 'filemultiple-outline', alias, readonly, width, inputlabel, placeholder = '', preview = true,
|
|
21801
|
+
var { inputtype = 'filemultiple-outline', alias, readonly, width, inputlabel, placeholder = '', preview = true, classname, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "preview", "classname", "style"]);
|
|
21801
21802
|
const [field, meta] = formik.useField(alias);
|
|
21802
21803
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
21803
21804
|
const inputRef = React.useRef(null);
|
|
@@ -21846,8 +21847,8 @@ const FileMultiple = (_a) => {
|
|
|
21846
21847
|
};
|
|
21847
21848
|
const isNeumorphic = inputtype === 'filemultiple-neumorphic';
|
|
21848
21849
|
const hasError = meta.touched && meta.error;
|
|
21849
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
21850
|
-
React.createElement(p$8, { className:
|
|
21850
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
21851
|
+
React.createElement(p$8, { className: classname, style: style },
|
|
21851
21852
|
React.createElement(p$8, { onClick: () => { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click(); }, p: "4", style: Object.assign(Object.assign({}, styles[inputtype]), { cursor: 'pointer', transition: 'all 0.2s', borderColor: hasError ? 'var(--red-9)' : (styles[inputtype].borderBottom ? 'var(--accent-9)' : 'var(--gray-a8)'), position: 'relative' }) },
|
|
21852
21853
|
React.createElement(p$5, { align: "center", gap: "4" },
|
|
21853
21854
|
React.createElement(p$8, { style: {
|
|
@@ -21908,15 +21909,15 @@ const FileMultiple = (_a) => {
|
|
|
21908
21909
|
React.createElement("br", null),
|
|
21909
21910
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
21910
21911
|
"\u00A0",
|
|
21911
|
-
props.
|
|
21912
|
+
props.ishinted ?
|
|
21912
21913
|
React.createElement(React.Fragment, null,
|
|
21913
|
-
React.createElement(e, { content: props.
|
|
21914
|
-
React.createElement("a", { href: props.
|
|
21914
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
21915
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
21915
21916
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
21916
21917
|
hasError ?
|
|
21917
21918
|
React.createElement(React.Fragment, null,
|
|
21918
21919
|
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ?
|
|
21919
|
-
React.createElement(React.Fragment, null, props.
|
|
21920
|
+
React.createElement(React.Fragment, null, props.errortext || "Required field")
|
|
21920
21921
|
: 'Invalid file selection')) : null))));
|
|
21921
21922
|
};
|
|
21922
21923
|
|
|
@@ -29211,10 +29212,10 @@ const getStyles = (design, layout) => {
|
|
|
29211
29212
|
}
|
|
29212
29213
|
return Object.assign(Object.assign({ borderRadius }, visualStyles), { position: 'relative', overflow: 'hidden', display: 'block' });
|
|
29213
29214
|
};
|
|
29214
|
-
const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'normal',
|
|
29215
|
+
const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'normal', aspectratio = 16 / 9, height, width = '100%', classname, style, onClick, }) => {
|
|
29215
29216
|
const containerStyles = getStyles(design, layout);
|
|
29216
29217
|
const iconColor = design === 'neumorphic' ? '#555' : 'var(--gray-9)';
|
|
29217
|
-
const content = (React.createElement(p$8, { className:
|
|
29218
|
+
const content = (React.createElement(p$8, { className: classname, style: Object.assign(Object.assign(Object.assign({}, containerStyles), { width, height: height || 'auto' }), style), onClick: onClick }, src ? (React.createElement("img", { id: String(id), src: src, alt: alt, style: {
|
|
29218
29219
|
width: '100%',
|
|
29219
29220
|
height: '100%',
|
|
29220
29221
|
objectFit: 'cover',
|
|
@@ -29232,36 +29233,36 @@ const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'nor
|
|
|
29232
29233
|
return content;
|
|
29233
29234
|
}
|
|
29234
29235
|
return (React.createElement(p$8, { style: { width } },
|
|
29235
|
-
React.createElement(i$9, { ratio:
|
|
29236
|
+
React.createElement(i$9, { ratio: aspectratio }, content)));
|
|
29236
29237
|
};
|
|
29237
29238
|
|
|
29238
29239
|
const Input$2 = (_a) => {
|
|
29239
|
-
var { alias, inputtype = "text", width, inputlabel, readonly = false, placeholder = '', className, size = "2", style,
|
|
29240
|
+
var { alias, inputtype = "text", width, inputlabel, readonly = false, placeholder = '', className, size = "2", style, inputvariant = 'input-outline' } = _a, props = __rest$1(_a, ["alias", "inputtype", "width", "inputlabel", "readonly", "placeholder", "className", "size", "style", "inputvariant"]);
|
|
29240
29241
|
const [inputField, meta] = formik.useField(alias);
|
|
29241
29242
|
const hasError = Boolean(meta.touched && meta.error);
|
|
29242
|
-
const variantClass =
|
|
29243
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
29243
29244
|
const errorId = `${alias}-error`;
|
|
29244
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
29245
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
29245
29246
|
React.createElement(u, Object.assign({ size: size, type: inputtype, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, readOnly: readonly, placeholder: placeholder, color: hasError ? "red" : undefined, className: `${variantClass} ${className || ''}` }, inputField, props, { name: alias })),
|
|
29246
29247
|
React.createElement("div", null,
|
|
29247
29248
|
React.createElement("br", null),
|
|
29248
29249
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
29249
29250
|
"\u00A0",
|
|
29250
|
-
props.
|
|
29251
|
-
React.createElement("a", { href: props.
|
|
29251
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
29252
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
29252
29253
|
React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
29253
|
-
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
29254
|
+
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)))));
|
|
29254
29255
|
};
|
|
29255
29256
|
|
|
29256
29257
|
const PasswordInput = (_a) => {
|
|
29257
|
-
var { alias, inputlabel, width, readonly = false, placeholder = '',
|
|
29258
|
+
var { alias, inputlabel, width, readonly = false, placeholder = '', inputvariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "inputlabel", "width", "readonly", "placeholder", "inputvariant", "size", "className"]);
|
|
29258
29259
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
29259
29260
|
const toggleVisibility = () => setShowPassword(!showPassword);
|
|
29260
29261
|
const [field, meta] = formik.useField(alias);
|
|
29261
29262
|
const hasError = Boolean(meta.touched && meta.error);
|
|
29262
|
-
const variantClass =
|
|
29263
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
29263
29264
|
const errorId = `${alias}-error`;
|
|
29264
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
29265
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
29265
29266
|
React.createElement(u, Object.assign({ size: size, type: showPassword ? "text" : "password", id: `${alias}FormInput`, readOnly: readonly, "aria-describedby": `${alias}InputLabel`, placeholder: placeholder, color: hasError ? "red" : undefined, className: `${variantClass} ${className || ''}` }, field, props, { name: alias }),
|
|
29266
29267
|
React.createElement(c, null,
|
|
29267
29268
|
React.createElement(Icon, { name: "lockclosed", height: "16", width: "16" })),
|
|
@@ -29272,10 +29273,10 @@ const PasswordInput = (_a) => {
|
|
|
29272
29273
|
React.createElement("br", null),
|
|
29273
29274
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
29274
29275
|
"\u00A0",
|
|
29275
|
-
props.
|
|
29276
|
-
React.createElement("a", { href: props.
|
|
29276
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
29277
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
29277
29278
|
React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
29278
|
-
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
29279
|
+
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)))));
|
|
29279
29280
|
};
|
|
29280
29281
|
|
|
29281
29282
|
// This file is a workaround for a bug in web browsers' "native"
|
|
@@ -36817,14 +36818,14 @@ var en = {
|
|
|
36817
36818
|
};
|
|
36818
36819
|
|
|
36819
36820
|
const PhoneInput = (_a) => {
|
|
36820
|
-
var { alias, inputlabel, width, placeholder = "Phone Number", readonly,
|
|
36821
|
+
var { alias, inputlabel, width, placeholder = "Phone Number", readonly, inputvariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "inputlabel", "width", "placeholder", "readonly", "inputvariant", "size", "className"]);
|
|
36821
36822
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
36822
36823
|
const [field, meta] = formik.useField(alias);
|
|
36823
36824
|
const hasError = Boolean(meta.touched && meta.error);
|
|
36824
36825
|
const [country, setCountry] = React.useState('US');
|
|
36825
|
-
const variantClass =
|
|
36826
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
36826
36827
|
const errorId = `${alias}-error`;
|
|
36827
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
36828
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
36828
36829
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
36829
36830
|
React.createElement(u, Object.assign({ size: size, variant: "surface", color: hasError ? "red" : undefined, className: `${variantClass} ${className || ''}` }, props),
|
|
36830
36831
|
React.createElement(c, { style: { padding: 0 } },
|
|
@@ -36852,7 +36853,7 @@ const PhoneInput = (_a) => {
|
|
|
36852
36853
|
"(+",
|
|
36853
36854
|
getCountryCallingCode(c),
|
|
36854
36855
|
")")))))))),
|
|
36855
|
-
React.createElement(Input, { country: country, international:
|
|
36856
|
+
React.createElement(Input, { country: country, international: true, withCountryCallingCode: false, limitMaxLength: true, value: field.value || '', onChange: (val) => setFieldValue(alias, val || ''), onBlur: () => setFieldTouched(alias, true), readOnly: readonly, placeholder: placeholder, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, style: {
|
|
36856
36857
|
flex: 1,
|
|
36857
36858
|
border: 'none',
|
|
36858
36859
|
outline: 'none',
|
|
@@ -36866,10 +36867,10 @@ const PhoneInput = (_a) => {
|
|
|
36866
36867
|
} })),
|
|
36867
36868
|
React.createElement("div", { style: { marginTop: 4, display: 'flex', alignItems: 'center', gap: 6 } },
|
|
36868
36869
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
36869
|
-
props.
|
|
36870
|
-
React.createElement("a", { href: props.
|
|
36870
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available" },
|
|
36871
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
|
|
36871
36872
|
React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
36872
|
-
hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.
|
|
36873
|
+
hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.errortext || meta.error || `Required field`))))));
|
|
36873
36874
|
};
|
|
36874
36875
|
|
|
36875
36876
|
/** Checks if value is string */
|
|
@@ -40660,7 +40661,7 @@ const parseUuidFormat = (input) => {
|
|
|
40660
40661
|
};
|
|
40661
40662
|
|
|
40662
40663
|
const UUIDInput = (_a) => {
|
|
40663
|
-
var { alias, type,
|
|
40664
|
+
var { alias, type, inputlabel, width, delimiter = "-", format = [4, 4, 4, 4], placeholder = '', readOnly = false, inputvariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "type", "inputlabel", "width", "delimiter", "format", "placeholder", "readOnly", "inputvariant", "size", "className"]);
|
|
40664
40665
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
40665
40666
|
const [field, meta] = formik.useField(alias);
|
|
40666
40667
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -40687,8 +40688,8 @@ const UUIDInput = (_a) => {
|
|
|
40687
40688
|
setCopied(true);
|
|
40688
40689
|
setTimeout(() => setCopied(false), 2000);
|
|
40689
40690
|
};
|
|
40690
|
-
const variantClass =
|
|
40691
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
40691
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
40692
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
40692
40693
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
40693
40694
|
React.createElement(u, Object.assign({ size: size, variant: "surface", color: hasError ? 'red' : undefined, className: `${variantClass} ${className || ''}` }, props),
|
|
40694
40695
|
React.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, readOnly: readOnly, mask: maskPattern, definitions: definitions, value: field.value || '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), placeholder: placeholder, style: {
|
|
@@ -40708,12 +40709,12 @@ const UUIDInput = (_a) => {
|
|
|
40708
40709
|
React.createElement(e, { content: copied ? "Copied!" : "Copy to clipboard" },
|
|
40709
40710
|
React.createElement(o$5, { size: "1", variant: "ghost", color: copied ? "green" : "gray", onClick: handleCopy, type: "button", disabled: !field.value }, copied ? React.createElement(CheckIcon, null) : React.createElement(CopyIcon, null))))),
|
|
40710
40711
|
React.createElement("div", null,
|
|
40711
|
-
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias },
|
|
40712
|
+
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
40712
40713
|
"\u00A0",
|
|
40713
|
-
props.
|
|
40714
|
-
React.createElement("a", { href: props.
|
|
40714
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
40715
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
40715
40716
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
40716
|
-
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
40717
|
+
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || meta.error || `Required field`))))));
|
|
40717
40718
|
};
|
|
40718
40719
|
|
|
40719
40720
|
var FaCcVisa = {};
|
|
@@ -42145,7 +42146,7 @@ var cardValidator = /*@__PURE__*/getDefaultExportFromCjs(distExports);
|
|
|
42145
42146
|
|
|
42146
42147
|
const CreditCardInput = (_a) => {
|
|
42147
42148
|
var _b;
|
|
42148
|
-
var { alias, inputlabel, width, placeholder, readonly = false,
|
|
42149
|
+
var { alias, inputlabel, width, placeholder, readonly = false, inputvariant = 'input-outline', classname } = _a, props = __rest$1(_a, ["alias", "inputlabel", "width", "placeholder", "readonly", "inputvariant", "classname"]);
|
|
42149
42150
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42150
42151
|
const [field, meta] = formik.useField(alias);
|
|
42151
42152
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -42164,11 +42165,11 @@ const CreditCardInput = (_a) => {
|
|
|
42164
42165
|
default: return React.createElement(FaCreditCardExports.FaCreditCard, { color: "var(--gray-8)", size: "20" });
|
|
42165
42166
|
}
|
|
42166
42167
|
};
|
|
42167
|
-
const variantClass =
|
|
42168
|
-
const isOutline =
|
|
42169
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
42168
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
42169
|
+
const isOutline = inputvariant === 'input-outline';
|
|
42170
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
42170
42171
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
42171
|
-
React.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${
|
|
42172
|
+
React.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${classname || ''}`, style: {
|
|
42172
42173
|
width: '100%',
|
|
42173
42174
|
boxShadow: (isOutline && hasError) ? 'inset 0 0 0 1px var(--red-9)' : undefined,
|
|
42174
42175
|
backgroundColor: isOutline ? 'var(--color-surface)' : undefined,
|
|
@@ -42191,10 +42192,10 @@ const CreditCardInput = (_a) => {
|
|
|
42191
42192
|
React.createElement("div", { style: { marginTop: 4, display: 'flex', alignItems: 'center', gap: 6 } },
|
|
42192
42193
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42193
42194
|
"\u00A0",
|
|
42194
|
-
props.
|
|
42195
|
-
React.createElement("a", { href: props.
|
|
42195
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available" },
|
|
42196
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
|
|
42196
42197
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
42197
|
-
hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.
|
|
42198
|
+
hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.errortext || `Required field`))))));
|
|
42198
42199
|
};
|
|
42199
42200
|
|
|
42200
42201
|
const CURRENCIES = {
|
|
@@ -42266,7 +42267,7 @@ const CURRENCIES = {
|
|
|
42266
42267
|
};
|
|
42267
42268
|
|
|
42268
42269
|
const CurrencyInput = (_a) => {
|
|
42269
|
-
var { alias, inputtype = "currency", inputlabel, width,
|
|
42270
|
+
var { alias, inputtype = "currency", inputlabel, width, defaultvalue = "USD", placeholder, readonly = false, inputvariant = 'input-outline', classname } = _a, props = __rest$1(_a, ["alias", "inputtype", "inputlabel", "width", "defaultvalue", "placeholder", "readonly", "inputvariant", "classname"]);
|
|
42270
42271
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42271
42272
|
const [amountField, amountMeta] = formik.useField(alias);
|
|
42272
42273
|
const currencyAlias = `${alias}Currency`;
|
|
@@ -42276,24 +42277,24 @@ const CurrencyInput = (_a) => {
|
|
|
42276
42277
|
currencyHelpers.setValue(inputtype);
|
|
42277
42278
|
}
|
|
42278
42279
|
else if (!currencyField.value) {
|
|
42279
|
-
currencyHelpers.setValue(
|
|
42280
|
+
currencyHelpers.setValue(defaultvalue);
|
|
42280
42281
|
}
|
|
42281
|
-
}, [inputtype,
|
|
42282
|
+
}, [inputtype, defaultvalue]);
|
|
42282
42283
|
const hasError = Boolean(amountMeta.touched && amountMeta.error);
|
|
42283
42284
|
const currentCode = currencyField.value || "USD";
|
|
42284
42285
|
const activeCurrency = CURRENCIES[currentCode] || CURRENCIES.USD;
|
|
42285
|
-
const variantClass =
|
|
42286
|
-
const isOutline =
|
|
42286
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
42287
|
+
const isOutline = inputvariant === 'input-outline';
|
|
42287
42288
|
const errorId = `${alias}-error`;
|
|
42288
42289
|
return (React.createElement(Column, { span: width, newLine: props.newRow },
|
|
42289
42290
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
42290
|
-
React.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${
|
|
42291
|
+
React.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${classname || ''}`, style: {
|
|
42291
42292
|
width: '100%',
|
|
42292
42293
|
boxShadow: (isOutline && hasError) ? 'inset 0 0 0 1px var(--red-9)' : undefined,
|
|
42293
42294
|
backgroundColor: isOutline ? 'var(--color-surface)' : undefined,
|
|
42294
42295
|
cursor: 'text'
|
|
42295
42296
|
} },
|
|
42296
|
-
React.createElement(C$1, { value: activeCurrency.code, onValueChange: (val) => setFieldValue(currencyAlias, val), disabled:
|
|
42297
|
+
React.createElement(C$1, { value: activeCurrency.code, onValueChange: (val) => setFieldValue(currencyAlias, val), disabled: readonly || inputtype !== "currency" },
|
|
42297
42298
|
React.createElement(u$1, { variant: "ghost", style: {
|
|
42298
42299
|
height: '100%',
|
|
42299
42300
|
padding: '0 8px 0 12px',
|
|
@@ -42318,13 +42319,13 @@ const CurrencyInput = (_a) => {
|
|
|
42318
42319
|
React.createElement(IMaskInput, Object.assign({ id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel` }, {
|
|
42319
42320
|
mask: Number,
|
|
42320
42321
|
scale: activeCurrency.scale,
|
|
42321
|
-
signed: false,
|
|
42322
|
+
signed: String(false),
|
|
42322
42323
|
thousandsSeparator: ",",
|
|
42323
42324
|
padFractionalZeros: true,
|
|
42324
42325
|
normalizeZeros: true,
|
|
42325
42326
|
radix: ".",
|
|
42326
42327
|
mapToRadix: ['.'],
|
|
42327
|
-
}, { value: amountField.value !== undefined && amountField.value !== null ? String(amountField.value) : '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), readOnly:
|
|
42328
|
+
}, { value: amountField.value !== undefined && amountField.value !== null ? String(amountField.value) : '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), readOnly: readonly, placeholder: placeholder || '0.00', style: {
|
|
42328
42329
|
flex: 1,
|
|
42329
42330
|
border: 'none',
|
|
42330
42331
|
outline: 'none',
|
|
@@ -42340,10 +42341,10 @@ const CurrencyInput = (_a) => {
|
|
|
42340
42341
|
React.createElement("div", null,
|
|
42341
42342
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42342
42343
|
"\u00A0",
|
|
42343
|
-
props.
|
|
42344
|
-
React.createElement("a", { href: props.
|
|
42344
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available" },
|
|
42345
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
|
|
42345
42346
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
42346
|
-
hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.
|
|
42347
|
+
hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.errortext || amountMeta.error || `Required field`))))));
|
|
42347
42348
|
};
|
|
42348
42349
|
|
|
42349
42350
|
var FaChartLine = {};
|
|
@@ -42364,16 +42365,16 @@ function requireFaChartLine () {
|
|
|
42364
42365
|
var FaChartLineExports = /*@__PURE__*/ requireFaChartLine();
|
|
42365
42366
|
|
|
42366
42367
|
const StockInput = (_a) => {
|
|
42367
|
-
var { alias, inputlabel, width,
|
|
42368
|
+
var { alias, inputlabel, width, defaultvalue, placeholder, readonly = false, inputvariant = 'input-outline', classname } = _a, props = __rest$1(_a, ["alias", "inputlabel", "width", "defaultvalue", "placeholder", "readonly", "inputvariant", "classname"]);
|
|
42368
42369
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42369
42370
|
const [priceField, meta] = formik.useField(alias);
|
|
42370
42371
|
const hasError = Boolean(meta.touched && meta.error);
|
|
42371
|
-
const variantClass =
|
|
42372
|
-
const isOutline =
|
|
42372
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
42373
|
+
const isOutline = inputvariant === 'input-outline';
|
|
42373
42374
|
const errorId = `${alias}-error`;
|
|
42374
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
42375
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
42375
42376
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
42376
|
-
React.createElement(p$5, { align: "center", justify: "between", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${
|
|
42377
|
+
React.createElement(p$5, { align: "center", justify: "between", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${classname || ''}`, style: {
|
|
42377
42378
|
width: '100%',
|
|
42378
42379
|
height: 'var(--space-6)',
|
|
42379
42380
|
boxShadow: (isOutline)
|
|
@@ -42395,11 +42396,11 @@ const StockInput = (_a) => {
|
|
|
42395
42396
|
letterSpacing: '0.05em',
|
|
42396
42397
|
fontWeight: 600,
|
|
42397
42398
|
userSelect: 'none'
|
|
42398
|
-
} },
|
|
42399
|
+
} }, defaultvalue || React.createElement(FaChartLineExports.FaChartLine, null)),
|
|
42399
42400
|
React.createElement(p$5, { align: "center", style: { flex: 1, height: '100%', justifyContent: 'flex-end' } },
|
|
42400
|
-
React.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, mask: Number, scale: 2, readOnly:
|
|
42401
|
+
React.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, mask: Number, scale: 2, readOnly: readonly,
|
|
42401
42402
|
// @ts-expect-error: known library type definition gap
|
|
42402
|
-
signed: false, thousandsSeparator: ",", padFractionalZeros: true, normalizeZeros: true, radix: ".", mapToRadix: ['.'], value: priceField.value !== undefined && priceField.value !== null ? String(priceField.value) : '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), placeholder: placeholder || "0.00", style: {
|
|
42403
|
+
signed: String(false), thousandsSeparator: ",", padFractionalZeros: true, normalizeZeros: true, radix: ".", mapToRadix: ['.'], value: priceField.value !== undefined && priceField.value !== null ? String(priceField.value) : '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), placeholder: placeholder || "0.00", style: {
|
|
42403
42404
|
border: 'none',
|
|
42404
42405
|
outline: 'none',
|
|
42405
42406
|
background: 'transparent',
|
|
@@ -42414,14 +42415,14 @@ const StockInput = (_a) => {
|
|
|
42414
42415
|
React.createElement("div", null,
|
|
42415
42416
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42416
42417
|
"\u00A0",
|
|
42417
|
-
props.
|
|
42418
|
-
React.createElement("a", { href: props.
|
|
42418
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available" },
|
|
42419
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
|
|
42419
42420
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
42420
|
-
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
42421
|
+
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`))))));
|
|
42421
42422
|
};
|
|
42422
42423
|
|
|
42423
42424
|
const RadioGroupInput = (_a) => {
|
|
42424
|
-
var { inputtype = 'radio-outline', alias,
|
|
42425
|
+
var { inputtype = 'radio-outline', alias, readonly, width, inputlabel, placeholder = '', style, inputoptions, direction = 'column', columns, classname } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "style", "inputoptions", "direction", "columns", "classname"]);
|
|
42425
42426
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42426
42427
|
const [field, meta] = formik.useField(alias);
|
|
42427
42428
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -42439,8 +42440,8 @@ const RadioGroupInput = (_a) => {
|
|
|
42439
42440
|
});
|
|
42440
42441
|
}
|
|
42441
42442
|
}, [inputtype]);
|
|
42442
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
42443
|
-
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className:
|
|
42443
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
42444
|
+
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: classname },
|
|
42444
42445
|
inputtype === 'radio-neumorphic' && (React.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
42445
42446
|
/* Target the specific Radio Item button class */
|
|
42446
42447
|
.neu-radio .rt-RadioGroupItem {
|
|
@@ -42475,7 +42476,7 @@ const RadioGroupInput = (_a) => {
|
|
|
42475
42476
|
transform: none; /* Don't scale if pressed in */
|
|
42476
42477
|
}
|
|
42477
42478
|
` } })),
|
|
42478
|
-
React.createElement(I$1, { name: alias, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, disabled:
|
|
42479
|
+
React.createElement(I$1, { name: alias, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, disabled: readonly, value: field.value, onValueChange: (val) => {
|
|
42479
42480
|
setFieldValue(alias, val);
|
|
42480
42481
|
setTimeout(() => setFieldTouched(alias, true), 0);
|
|
42481
42482
|
} },
|
|
@@ -42492,10 +42493,10 @@ const RadioGroupInput = (_a) => {
|
|
|
42492
42493
|
React.createElement("div", null,
|
|
42493
42494
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42494
42495
|
"\u00A0",
|
|
42495
|
-
props.
|
|
42496
|
+
props.ishinted ?
|
|
42496
42497
|
React.createElement(React.Fragment, null,
|
|
42497
|
-
React.createElement(e, { content: props.
|
|
42498
|
-
React.createElement("a", { href: props.
|
|
42498
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
42499
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
42499
42500
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
42500
42501
|
hasError ?
|
|
42501
42502
|
React.createElement(React.Fragment, null,
|
|
@@ -42503,7 +42504,7 @@ const RadioGroupInput = (_a) => {
|
|
|
42503
42504
|
};
|
|
42504
42505
|
|
|
42505
42506
|
const OptionSelect = (_a) => {
|
|
42506
|
-
var { inputtype = '
|
|
42507
|
+
var { inputtype = 'dropdown-outline', alias, readonly, width, inputlabel, placeholder, value, inputoptions, style, newRow, ishinted, hinttext, hinturl, defaultvalue, errortext } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "value", "inputoptions", "style", "newRow", "ishinted", "hinttext", "hinturl", "defaultvalue", "errortext"]);
|
|
42507
42508
|
const triggerRef = React.useRef(null);
|
|
42508
42509
|
const [neuVars, setNeuVars] = React.useState({});
|
|
42509
42510
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
@@ -42511,7 +42512,7 @@ const OptionSelect = (_a) => {
|
|
|
42511
42512
|
const hasError = Boolean(meta.touched && meta.error);
|
|
42512
42513
|
const errorId = `${alias}-error`;
|
|
42513
42514
|
React.useEffect(() => {
|
|
42514
|
-
if (inputtype === '
|
|
42515
|
+
if (inputtype === 'dropdown-neumorphic' && triggerRef.current) {
|
|
42515
42516
|
const parentBg = getNearestParentBackground(triggerRef.current.parentElement);
|
|
42516
42517
|
const shadowDark = adjustColor(parentBg, -30);
|
|
42517
42518
|
const shadowLight = adjustColor(parentBg, 30);
|
|
@@ -42523,25 +42524,37 @@ const OptionSelect = (_a) => {
|
|
|
42523
42524
|
});
|
|
42524
42525
|
}
|
|
42525
42526
|
}, [inputtype]);
|
|
42527
|
+
const openLink = (inputUrl) => {
|
|
42528
|
+
window.open(inputUrl, '_blank', 'noopener,noreferrer');
|
|
42529
|
+
};
|
|
42526
42530
|
// --- STYLES ---
|
|
42527
42531
|
const materialTrigger = {
|
|
42528
42532
|
backgroundColor: 'var(--color-surface)',
|
|
42529
|
-
border:
|
|
42533
|
+
border: 'none',
|
|
42530
42534
|
boxShadow: '0 2px 5px rgba(0,0,0,0.1)',
|
|
42531
42535
|
borderRadius: '4px',
|
|
42532
42536
|
height: '32px',
|
|
42533
42537
|
fontWeight: 500,
|
|
42534
42538
|
};
|
|
42539
|
+
const materialContent = {
|
|
42540
|
+
borderRadius: '4px',
|
|
42541
|
+
boxShadow: '0 5px 15px rgba(0,0,0,0.2)',
|
|
42542
|
+
};
|
|
42535
42543
|
const outlineTrigger = {
|
|
42536
42544
|
backgroundColor: 'transparent',
|
|
42537
|
-
border:
|
|
42545
|
+
border: '2px solid var(--gray-7)',
|
|
42538
42546
|
borderRadius: '4px',
|
|
42539
42547
|
height: '32px',
|
|
42540
42548
|
fontWeight: 600,
|
|
42541
42549
|
};
|
|
42550
|
+
const outlineContent = {
|
|
42551
|
+
border: '2px solid var(--gray-7)',
|
|
42552
|
+
borderRadius: '4px',
|
|
42553
|
+
boxShadow: 'none',
|
|
42554
|
+
};
|
|
42542
42555
|
const neumorphicTrigger = {
|
|
42543
42556
|
backgroundColor: 'var(--neu-bg)',
|
|
42544
|
-
color:
|
|
42557
|
+
color: 'var(--neu-text)',
|
|
42545
42558
|
border: 'none',
|
|
42546
42559
|
borderRadius: '12px',
|
|
42547
42560
|
height: '40px',
|
|
@@ -42550,52 +42563,63 @@ const OptionSelect = (_a) => {
|
|
|
42550
42563
|
boxShadow: '6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light)',
|
|
42551
42564
|
transition: 'all 0.2s ease',
|
|
42552
42565
|
};
|
|
42553
|
-
const
|
|
42554
|
-
|
|
42555
|
-
|
|
42556
|
-
|
|
42566
|
+
const neumorphicContent = {
|
|
42567
|
+
backgroundColor: 'var(--neu-bg)',
|
|
42568
|
+
borderRadius: '12px',
|
|
42569
|
+
border: 'none',
|
|
42570
|
+
boxShadow: '6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light)',
|
|
42571
|
+
};
|
|
42572
|
+
const activeTriggerStyle = inputtype === 'dropdown' ? materialTrigger :
|
|
42573
|
+
inputtype === 'dropdown-material' ? materialTrigger :
|
|
42574
|
+
inputtype === 'dropdown-outline' ? outlineTrigger : Object.assign(Object.assign({}, neumorphicTrigger), neuVars);
|
|
42575
|
+
const activeContentStyle = inputtype === 'dropdown' ? materialContent :
|
|
42576
|
+
inputtype === 'dropdown-material' ? materialContent :
|
|
42577
|
+
inputtype === 'dropdown-outline' ? outlineContent : Object.assign(Object.assign({}, neumorphicContent), neuVars);
|
|
42578
|
+
return (React.createElement(Column, { span: width, newLine: newRow },
|
|
42557
42579
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
42558
|
-
inputtype === '
|
|
42559
|
-
|
|
42560
|
-
|
|
42561
|
-
|
|
42562
|
-
|
|
42563
|
-
|
|
42564
|
-
|
|
42565
|
-
|
|
42566
|
-
|
|
42567
|
-
|
|
42568
|
-
React.createElement(C$1, { name: alias, disabled:
|
|
42569
|
-
|
|
42580
|
+
inputtype === 'dropdown-neumorphic' && (React.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
42581
|
+
.neu-select-trigger[data-state='open'] {
|
|
42582
|
+
box-shadow: inset 6px 6px 12px var(--neu-shadow-dark),
|
|
42583
|
+
inset -6px -6px 12px var(--neu-shadow-light) !important;
|
|
42584
|
+
}
|
|
42585
|
+
.neu-select-item:hover {
|
|
42586
|
+
background-color: rgba(0,0,0,0.05) !important;
|
|
42587
|
+
cursor: pointer;
|
|
42588
|
+
}
|
|
42589
|
+
` } })),
|
|
42590
|
+
React.createElement(C$1, { name: alias, disabled: readonly, value: field.value || "", onValueChange: (val) => {
|
|
42591
|
+
const finalVal = val === "__RESET__" ? "" : val;
|
|
42592
|
+
setFieldValue(alias, finalVal);
|
|
42570
42593
|
setTimeout(() => setFieldTouched(alias, true), 0);
|
|
42571
42594
|
if (props.onValueChange)
|
|
42572
|
-
props.onValueChange(
|
|
42595
|
+
props.onValueChange(finalVal);
|
|
42573
42596
|
}, onOpenChange: (isOpen) => {
|
|
42574
42597
|
if (!isOpen) {
|
|
42575
42598
|
setFieldTouched(alias, true);
|
|
42576
42599
|
}
|
|
42577
42600
|
} },
|
|
42578
|
-
React.createElement(u$1, { id: `${alias}FormInput`, ref: triggerRef, variant: "ghost", placeholder: placeholder || "Select an option", className: `${inputtype === '
|
|
42579
|
-
React.createElement(g, { position: "popper", sideOffset: 5 },
|
|
42580
|
-
React.createElement(v, { value: "", className: inputtype === '
|
|
42601
|
+
React.createElement(u$1, Object.assign({ id: `${alias}FormInput`, ref: triggerRef, variant: "ghost", placeholder: placeholder || "Select an option", className: `${inputtype === 'dropdown-neumorphic' ? 'neu-select-trigger' : ''} ${props.className || ''}`, style: Object.assign(Object.assign({}, activeTriggerStyle), style) }, props)),
|
|
42602
|
+
React.createElement(g, { position: "popper", sideOffset: 5, style: activeContentStyle },
|
|
42603
|
+
React.createElement(v, { value: "__RESET__", className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '', style: { color: 'var(--gray-10)', fontStyle: 'italic' } }, placeholder || "Select an option"),
|
|
42581
42604
|
React.createElement(o$2, { size: "4", style: { margin: '4px 0', opacity: 0.5 } }),
|
|
42582
|
-
inputoptions.map((
|
|
42605
|
+
inputoptions.map((inputoption) => (React.createElement(React.Fragment, { key: inputoption.optionid || crypto.randomUUID() }, inputoption.optionurl ? (React.createElement(v, { id: String(inputoption.optionid) || '', value: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
|
|
42606
|
+
React.createElement("a", { onClick: (e) => { e.stopPropagation(); openLink(inputoption.optionurl || "#"); }, style: { textDecoration: 'none', color: 'inherit' } }, inputoption.text))) : (React.createElement(v, { id: String(inputoption.optionid) || '', value: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' }, inputoption.text))))))),
|
|
42583
42607
|
React.createElement("div", null,
|
|
42584
42608
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42585
42609
|
"\u00A0",
|
|
42586
|
-
|
|
42610
|
+
ishinted ?
|
|
42587
42611
|
React.createElement(React.Fragment, null,
|
|
42588
|
-
React.createElement(e, { content:
|
|
42589
|
-
React.createElement("a", { href:
|
|
42612
|
+
React.createElement(e, { content: hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
42613
|
+
React.createElement("a", { href: hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
42590
42614
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
42591
42615
|
hasError ?
|
|
42592
42616
|
React.createElement(React.Fragment, null,
|
|
42593
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' },
|
|
42617
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errortext || meta.error || "Required field")) : null))));
|
|
42594
42618
|
};
|
|
42595
42619
|
|
|
42596
42620
|
const MultipleSelect = (_a) => {
|
|
42597
42621
|
var _b;
|
|
42598
|
-
var { inputtype = 'multiselect-outline', alias,
|
|
42622
|
+
var { inputtype = 'multiselect-outline', alias, readonly, width, inputlabel, placeholder = '', style, inputoptions, classname } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "style", "inputoptions", "classname"]);
|
|
42599
42623
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42600
42624
|
const [field, meta] = formik.useField(alias);
|
|
42601
42625
|
const selectedValues = (Array.isArray(field.value) ? field.value : []);
|
|
@@ -42651,12 +42675,12 @@ const MultipleSelect = (_a) => {
|
|
|
42651
42675
|
: '6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light)', transition: 'all 0.2s ease' });
|
|
42652
42676
|
const activeTrigger = inputtype === 'multiselect-material' ? materialTrigger :
|
|
42653
42677
|
inputtype === 'multiselect-outline' ? outlineTrigger : Object.assign(Object.assign({}, neumorphicTrigger), neuVars);
|
|
42654
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
42678
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
42655
42679
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
42656
42680
|
React.createElement("input", { type: "hidden", name: alias, value: JSON.stringify(selectedValues) }),
|
|
42657
42681
|
React.createElement(P$1, { onOpenChange: setIsOpen },
|
|
42658
42682
|
React.createElement(s$1, null,
|
|
42659
|
-
React.createElement("button", { id: `${alias}FormInput`, type: "button", ref: triggerRef, className:
|
|
42683
|
+
React.createElement("button", { id: `${alias}FormInput`, type: "button", ref: triggerRef, className: classname, style: Object.assign(Object.assign({}, activeTrigger), style), "aria-describedby": `${alias}InputLabel` },
|
|
42660
42684
|
React.createElement("span", { style: {
|
|
42661
42685
|
overflow: 'hidden',
|
|
42662
42686
|
textOverflow: 'ellipsis',
|
|
@@ -42676,24 +42700,24 @@ const MultipleSelect = (_a) => {
|
|
|
42676
42700
|
backgroundColor: isSelected ? 'var(--accent-a3)' : 'transparent',
|
|
42677
42701
|
transition: 'background-color 0.1s'
|
|
42678
42702
|
}, className: "multiselect-item" },
|
|
42679
|
-
React.createElement(c$2, { disabled:
|
|
42703
|
+
React.createElement(c$2, { disabled: readonly, checked: isSelected, style: { pointerEvents: 'none' } }),
|
|
42680
42704
|
React.createElement(p$d, { size: "2" }, inputoption.text)));
|
|
42681
42705
|
})))))),
|
|
42682
42706
|
React.createElement("div", null,
|
|
42683
42707
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42684
42708
|
"\u00A0",
|
|
42685
|
-
props.
|
|
42709
|
+
props.ishinted ?
|
|
42686
42710
|
React.createElement(React.Fragment, null,
|
|
42687
|
-
React.createElement(e, { content: props.
|
|
42688
|
-
React.createElement("a", { href: props.
|
|
42711
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
42712
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
42689
42713
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
42690
42714
|
hasError ?
|
|
42691
42715
|
React.createElement(React.Fragment, null,
|
|
42692
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
42716
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)) : null))));
|
|
42693
42717
|
};
|
|
42694
42718
|
|
|
42695
42719
|
const SliderInput = (_a) => {
|
|
42696
|
-
var { inputtype = 'slider-outline', alias,
|
|
42720
|
+
var { inputtype = 'slider-outline', alias, readonly, width, inputlabel, placeholder = '', minvalue = 0, maxvalue = 100, stepvalue = 1, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "minvalue", "maxvalue", "stepvalue", "className", "style"]);
|
|
42697
42721
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42698
42722
|
const [field, meta] = formik.useField(alias);
|
|
42699
42723
|
const fieldValue = Array.isArray(field.value) ? field.value : [field.value || minvalue];
|
|
@@ -42712,7 +42736,7 @@ const SliderInput = (_a) => {
|
|
|
42712
42736
|
});
|
|
42713
42737
|
}
|
|
42714
42738
|
}, [inputtype]);
|
|
42715
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
42739
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
42716
42740
|
React.createElement(p$5, { direction: "column", gap: "3", width: "100%", ref: containerRef, style: style, className: className },
|
|
42717
42741
|
React.createElement(p$5, { justify: "between", align: "center" },
|
|
42718
42742
|
React.createElement(p$d, { size: "2", color: "gray", style: { fontVariantNumeric: 'tabular-nums' } }, fieldValue[0])),
|
|
@@ -42773,7 +42797,7 @@ const SliderInput = (_a) => {
|
|
|
42773
42797
|
box-shadow: none;
|
|
42774
42798
|
}
|
|
42775
42799
|
` } }),
|
|
42776
|
-
React.createElement(s, { name: alias, id: `${alias}FormInput`, disabled:
|
|
42800
|
+
React.createElement(s, { name: alias, id: `${alias}FormInput`, disabled: readonly, "aria-describedby": `${alias}InputLabel`, min: minvalue, max: maxvalue, step: stepvalue, value: fieldValue, onValueChange: (val) => {
|
|
42777
42801
|
// Formik Implementation - For array, pass 'val' directly
|
|
42778
42802
|
setFieldValue(alias, val[0]);
|
|
42779
42803
|
}, onValueCommit: () => {
|
|
@@ -42782,14 +42806,14 @@ const SliderInput = (_a) => {
|
|
|
42782
42806
|
React.createElement("div", null,
|
|
42783
42807
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42784
42808
|
"\u00A0",
|
|
42785
|
-
props.
|
|
42809
|
+
props.ishinted ?
|
|
42786
42810
|
React.createElement(React.Fragment, null,
|
|
42787
|
-
React.createElement(e, { content: props.
|
|
42788
|
-
React.createElement("a", { href: props.
|
|
42811
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
42812
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
42789
42813
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
42790
42814
|
hasError ?
|
|
42791
42815
|
React.createElement(React.Fragment, null,
|
|
42792
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
42816
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)) : null))));
|
|
42793
42817
|
};
|
|
42794
42818
|
|
|
42795
42819
|
const RangeSlider = (_a) => {
|
|
@@ -42819,7 +42843,7 @@ const RangeSlider = (_a) => {
|
|
|
42819
42843
|
});
|
|
42820
42844
|
}
|
|
42821
42845
|
}, [inputtype]);
|
|
42822
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
42846
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
42823
42847
|
React.createElement(p$5, { direction: "column", gap: "3", width: "100%", ref: containerRef, style: style, className: className },
|
|
42824
42848
|
React.createElement(p$5, { justify: "between", align: "center" },
|
|
42825
42849
|
React.createElement(p$d, { size: "2", color: "gray", style: { fontVariantNumeric: 'tabular-nums' } }, fieldValue.join(' - '))),
|
|
@@ -42862,18 +42886,18 @@ const RangeSlider = (_a) => {
|
|
|
42862
42886
|
React.createElement("div", null,
|
|
42863
42887
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42864
42888
|
"\u00A0",
|
|
42865
|
-
props.
|
|
42889
|
+
props.ishinted ?
|
|
42866
42890
|
React.createElement(React.Fragment, null,
|
|
42867
|
-
React.createElement(e, { content: props.
|
|
42868
|
-
React.createElement("a", { href: props.
|
|
42891
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
42892
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
42869
42893
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
42870
42894
|
hasError ?
|
|
42871
42895
|
React.createElement(React.Fragment, null,
|
|
42872
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
42896
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)) : null))));
|
|
42873
42897
|
};
|
|
42874
42898
|
|
|
42875
42899
|
const Toggle = (_a) => {
|
|
42876
|
-
var { inputtype = 'toggle-neumorphic', alias,
|
|
42900
|
+
var { inputtype = 'toggle-neumorphic', alias, readonly, width, inputlabel, style, children, newrow, ishinted, hinttext, hinturl, icon = 'stack' } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "style", "children", "newrow", "ishinted", "hinttext", "hinturl", "icon"]);
|
|
42877
42901
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42878
42902
|
const [field, meta] = formik.useField(alias);
|
|
42879
42903
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -42908,14 +42932,14 @@ const Toggle = (_a) => {
|
|
|
42908
42932
|
transition: 'all 0.1s ease',
|
|
42909
42933
|
};
|
|
42910
42934
|
const handleToggle = (val) => {
|
|
42911
|
-
if (!
|
|
42935
|
+
if (!readonly) {
|
|
42912
42936
|
setFieldValue(alias, val);
|
|
42913
42937
|
setFieldTouched(alias, true);
|
|
42914
42938
|
}
|
|
42915
42939
|
};
|
|
42916
|
-
return (React.createElement(Column, { span: width, newLine:
|
|
42940
|
+
return (React.createElement(Column, { span: width, newLine: newrow },
|
|
42917
42941
|
React.createElement("div", { ref: containerRef, style: { width: '100%', display: 'flex', flexDirection: 'column', gap: '4px' } },
|
|
42918
|
-
inputtype === 'toggle-neumorphic' ? (React.createElement("div", { className: "neu-toggle-wrapper", style: Object.assign(Object.assign({}, neuVars), { opacity:
|
|
42942
|
+
inputtype === 'toggle-neumorphic' ? (React.createElement("div", { className: "neu-toggle-wrapper", style: Object.assign(Object.assign({}, neuVars), { opacity: readonly ? 0.6 : 1, pointerEvents: readonly ? 'none' : 'auto' }), onClick: () => handleToggle(!field.value) },
|
|
42919
42943
|
React.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
42920
42944
|
.neu-toggle-wrapper {
|
|
42921
42945
|
isolation: isolate;
|
|
@@ -42957,8 +42981,8 @@ const Toggle = (_a) => {
|
|
|
42957
42981
|
` } }),
|
|
42958
42982
|
React.createElement("input", { className: "neu-toggle-state", type: "checkbox", checked: !!field.value, readOnly: true }),
|
|
42959
42983
|
React.createElement("div", { className: "neu-indicator" }),
|
|
42960
|
-
React.createElement(Icon, { name: icon }))) : (React.createElement(Root$1, { pressed: field.value, onPressedChange: handleToggle, name: alias, disabled:
|
|
42961
|
-
React.createElement(o$a, Object.assign({ disabled:
|
|
42984
|
+
React.createElement(Icon, { name: icon }))) : (React.createElement(Root$1, { pressed: field.value, onPressedChange: handleToggle, name: alias, disabled: readonly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, asChild: true },
|
|
42985
|
+
React.createElement(o$a, Object.assign({ disabled: readonly }, props, { className: `design-toggle ${inputtype} ${props.className || ''}`, style: Object.assign(Object.assign(Object.assign(Object.assign({}, style), (inputtype === 'toggle' ? materialStyle : {})), (inputtype === 'toggle-material' ? materialStyle : {})), (inputtype === 'toggle-outline' ? outlineStyle : {})), type: "button" }),
|
|
42962
42986
|
React.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
42963
42987
|
/* Material States */
|
|
42964
42988
|
.design-toggle.toggle-material[data-state='on'] {
|
|
@@ -42983,26 +43007,35 @@ const Toggle = (_a) => {
|
|
|
42983
43007
|
` } }),
|
|
42984
43008
|
children))),
|
|
42985
43009
|
React.createElement("div", null,
|
|
42986
|
-
|
|
43010
|
+
inputlabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel)),
|
|
42987
43011
|
"\u00A0",
|
|
42988
|
-
|
|
42989
|
-
React.createElement("a", { href:
|
|
43012
|
+
ishinted && (React.createElement(e, { content: hinttext || "No hint available" },
|
|
43013
|
+
React.createElement("a", { href: hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
|
|
42990
43014
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
42991
|
-
hasError && (React.createElement(p$d, { size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, props.
|
|
43015
|
+
hasError && (React.createElement(p$d, { size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, props.errortext || `Required field`))))));
|
|
42992
43016
|
};
|
|
42993
43017
|
|
|
42994
|
-
const SectionTitle = ({ title, width = 12, newRow = true, size = "5", subsize = "2", subtitle, align = "left", withSeparator = true, className }) => {
|
|
43018
|
+
const SectionTitle = ({ title, width = 12, newRow = true, size = "5", subsize = "2", subtitle, align = "left", withSeparator = true, className, backgroundcolor, icon }) => {
|
|
43019
|
+
const justifyMap = {
|
|
43020
|
+
left: 'start',
|
|
43021
|
+
center: 'center',
|
|
43022
|
+
right: 'end'
|
|
43023
|
+
};
|
|
42995
43024
|
return (React.createElement(Column, { span: width, newLine: newRow },
|
|
42996
43025
|
React.createElement(p$5, { direction: "column", gap: "2", className: className, style: {
|
|
42997
43026
|
width: '100%',
|
|
42998
43027
|
marginBottom: 'var(--space-2)',
|
|
42999
|
-
textAlign: align
|
|
43028
|
+
textAlign: align,
|
|
43029
|
+
backgroundColor: backgroundcolor || 'transparent',
|
|
43030
|
+
padding: backgroundcolor ? 'var(--space-3) var(--space-4)' : '0',
|
|
43031
|
+
borderRadius: backgroundcolor ? 'var(--radius-3)' : '0',
|
|
43000
43032
|
} },
|
|
43001
|
-
React.createElement(
|
|
43002
|
-
|
|
43003
|
-
|
|
43004
|
-
|
|
43005
|
-
|
|
43033
|
+
React.createElement(p$5, { align: "center", justify: justifyMap[align], gap: "3", style: { width: '100%' } },
|
|
43034
|
+
icon && (React.createElement(p$5, { align: "center", justify: "center", style: { color: 'var(--gray-12)' } }, icon)),
|
|
43035
|
+
React.createElement(r$g, { size: size, weight: "bold", style: {
|
|
43036
|
+
color: 'var(--gray-12)',
|
|
43037
|
+
lineHeight: '1.2'
|
|
43038
|
+
} }, title)),
|
|
43006
43039
|
subtitle && (React.createElement(p$d, { size: subsize, color: "gray", style: { maxWidth: '80%', margin: align === 'center' ? '0 auto' : undefined } }, subtitle)),
|
|
43007
43040
|
withSeparator && (React.createElement(o$2, { size: "4", style: {
|
|
43008
43041
|
width: '100%',
|