@canonical/react-ds-global-form 0.40.0 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/lib/common/Wrapper/hooks/useFieldWrapper.js.map +1 -1
- package/dist/esm/lib/common/Wrapper/withWrapper.js.map +1 -1
- package/dist/esm/lib/common/bindField/bindField.js.map +1 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/utils/convertValueToItem.js.map +1 -1
- package/dist/esm/lib/subcomponent/PhoneInput/PhoneInput.js +1 -1
- package/dist/esm/lib/subcomponent/RangeInput/RangeInput.js +1 -1
- package/dist/esm/lib/subcomponent/RatingInput/RatingInput.js +1 -4
- package/dist/esm/lib/subcomponent/RatingInput/RatingInput.js.map +1 -1
- package/dist/esm/lib/utils/middleware/addRESTOptions.js.map +1 -1
- package/dist/esm/lib/utils/middleware/addRESTValidation.js.map +1 -1
- package/dist/types/lib/_work_in_progress/DensityTestbed/mocks.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/InvisibleWrapper.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/ToggleWrapper.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/Wrapper.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/hooks/useFieldWrapper.d.ts +27 -27
- package/dist/types/lib/common/Wrapper/hooks/useFieldWrapper.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/messages.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/withConditionalDisplay.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/withToggleWrapper.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/withWrapper.d.ts +1 -1
- package/dist/types/lib/common/Wrapper/withWrapper.d.ts.map +1 -1
- package/dist/types/lib/component/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/types/lib/component/CheckboxField/CheckboxField.d.ts.map +1 -1
- package/dist/types/lib/component/ChoicesField/Choices.d.ts.map +1 -1
- package/dist/types/lib/component/ChoicesField/ChoicesField.d.ts +25 -25
- package/dist/types/lib/component/ChoicesField/ChoicesField.d.ts.map +1 -1
- package/dist/types/lib/component/ChoicesField/common/Option/Option.d.ts.map +1 -1
- package/dist/types/lib/component/ColorField/ColorField.d.ts +25 -25
- package/dist/types/lib/component/ColorField/ColorField.d.ts.map +1 -1
- package/dist/types/lib/component/ComboboxField/ComboboxField.d.ts +32 -32
- package/dist/types/lib/component/ComboboxField/ComboboxField.d.ts.map +1 -1
- package/dist/types/lib/component/DateField/DateField.d.ts +152 -152
- package/dist/types/lib/component/DateField/DateField.d.ts.map +1 -1
- package/dist/types/lib/component/DateTimeField/DateTimeField.d.ts +152 -152
- package/dist/types/lib/component/DateTimeField/DateTimeField.d.ts.map +1 -1
- package/dist/types/lib/component/FileUploadField/FileUploadField.d.ts +25 -25
- package/dist/types/lib/component/FileUploadField/FileUploadField.d.ts.map +1 -1
- package/dist/types/lib/component/HiddenField/HiddenField.d.ts +152 -152
- package/dist/types/lib/component/HiddenField/HiddenField.d.ts.map +1 -1
- package/dist/types/lib/component/NumberField/NumberField.d.ts +152 -152
- package/dist/types/lib/component/NumberField/NumberField.d.ts.map +1 -1
- package/dist/types/lib/component/PasswordField/PasswordField.d.ts +153 -153
- package/dist/types/lib/component/PasswordField/PasswordField.d.ts.map +1 -1
- package/dist/types/lib/component/PhoneField/PhoneField.d.ts +29 -29
- package/dist/types/lib/component/PhoneField/PhoneField.d.ts.map +1 -1
- package/dist/types/lib/component/RangeField/RangeField.d.ts +153 -153
- package/dist/types/lib/component/RangeField/RangeField.d.ts.map +1 -1
- package/dist/types/lib/component/RangeField/common/RangeControl/RangeControl.d.ts +139 -139
- package/dist/types/lib/component/RangeField/common/RangeControl/RangeControl.d.ts.map +1 -1
- package/dist/types/lib/component/RatingField/RatingField.d.ts +26 -26
- package/dist/types/lib/component/RatingField/RatingField.d.ts.map +1 -1
- package/dist/types/lib/component/RichChoicesField/RichChoices.d.ts.map +1 -1
- package/dist/types/lib/component/RichChoicesField/RichChoicesField.d.ts +23 -23
- package/dist/types/lib/component/RichChoicesField/RichChoicesField.d.ts.map +1 -1
- package/dist/types/lib/component/RichChoicesField/common/Option/Option.d.ts.map +1 -1
- package/dist/types/lib/component/SelectField/SelectField.d.ts +131 -131
- package/dist/types/lib/component/SelectField/SelectField.d.ts.map +1 -1
- package/dist/types/lib/component/SwitchField/SwitchField.d.ts +1 -1
- package/dist/types/lib/component/SwitchField/SwitchField.d.ts.map +1 -1
- package/dist/types/lib/component/TextField/TextField.d.ts +154 -154
- package/dist/types/lib/component/TextField/TextField.d.ts.map +1 -1
- package/dist/types/lib/component/TextareaField/TextareaField.d.ts +136 -136
- package/dist/types/lib/component/TextareaField/TextareaField.d.ts.map +1 -1
- package/dist/types/lib/component/TimeField/TimeField.d.ts +152 -152
- package/dist/types/lib/component/TimeField/TimeField.d.ts.map +1 -1
- package/dist/types/lib/pattern/Field/Field.d.ts.map +1 -1
- package/dist/types/lib/pattern/Form/Form.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/CheckboxInput/CheckboxInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/ColorInput/ColorInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/ComboboxInput/ComboboxInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/ComboboxInput/MultipleCombobox.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/ComboboxInput/SingleCombobox.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/ComboboxInput/common/List/List.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/ComboboxInput/common/ResetButton/ResetButton.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/ComboboxInput/messages.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/ComboboxInput/utils/convertItemToString.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/ComboboxInput/utils/convertValueToItem.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/ComboboxInput/utils/filterItems.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/DateInput/DateInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/DateTimeInput/DateTimeInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/Field/Description/Description.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/Field/Error/Error.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/Field/Label/Label.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/FileUploadInput/FileUploadInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/HiddenInput/HiddenInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/NumberInput/NumberInput.d.ts +139 -139
- package/dist/types/lib/subcomponent/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/PasswordInput/PasswordInput.d.ts +139 -139
- package/dist/types/lib/subcomponent/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/PhoneInput/PhoneInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/RadioInput/RadioInput.d.ts +140 -140
- package/dist/types/lib/subcomponent/RadioInput/RadioInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/RangeInput/RangeInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/RatingInput/RatingInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/SelectInput/SelectInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/SwitchInput/SwitchInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/TextInput/TextInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/TextareaInput/TextareaInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/TimeInput/TimeInput.d.ts.map +1 -1
- package/dist/types/lib/utils/countries/countries.d.ts.map +1 -1
- package/dist/types/lib/utils/countries/masks.d.ts.map +1 -1
- package/dist/types/lib/utils/hooks/useFieldAriaProperties.d.ts.map +1 -1
- package/dist/types/lib/utils/hooks/useFieldError.d.ts.map +1 -1
- package/dist/types/lib/utils/hooks/useOptionAriaProperties.d.ts.map +1 -1
- package/dist/types/lib/utils/middleware/addRESTOptions.d.ts.map +1 -1
- package/dist/types/lib/utils/middleware/addRESTValidation.d.ts.map +1 -1
- package/package.json +19 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFieldWrapper.js","sourceRoot":"","sources":["../../../../../../src/lib/common/Wrapper/hooks/useFieldWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAwB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,EACL,sBAAsB,EACtB,aAAa,GACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAUtC;;;;GAIG;AACH,MAAM,eAAe,GAAG,CACtB,IAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"useFieldWrapper.js","sourceRoot":"","sources":["../../../../../../src/lib/common/Wrapper/hooks/useFieldWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAwB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,EACL,sBAAsB,EACtB,aAAa,GACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAUtC;;;;GAIG;AACH,MAAM,eAAe,GAAG,CACtB,IAAY,EACZ,OAAO,GAA2B,EAAE,EACpC,EAAE;IACF,MAAM,EACJ,KAAK,EACL,UAAU,GAAG,KAAK,EAClB,iBAAiB,GAAG,EAAE,EACtB,mBAAmB,GAAG,EAAE,EACxB,mBAAmB,GAAG,IAAI,GAC3B,GAAG,OAAO,CAAC;IAEZ,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IAEvC,MAAM,OAAO,GAAG,CAAC,CAAC,UAAU,CAAC;IAE7B,4EAA4E;IAC5E,6DAA6D;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version":3,"file":"withWrapper.js","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/withWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAQhC,OAAO,cAAc,MAAM,cAAc,CAAC;AAC1C,OAAO,sBAAsB,MAAM,6BAA6B,CAAC;AAOjE,MAAM,WAAW,GAAG,CAKlB,SAA8C,EAC9C,OAAwC,EACxC,OAAO,GAAsD,cAAc,EAG3E,EAAE;IACF,MAAM,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAEhD,SAAS,gBAAgB,CAAC,EACxB,UAAU,GAAG,EAAE,EACf,gBAAgB,GAAG,OAAO,EAC1B,GAAG,KAAK,EACsC;QAC9C,8DAA8D;QAC9D,wFAAwF;QAExF,MAAM,iBAAiB,GAAG,OAAO,CAC/B,GAAG,EAAE;QACH,gEAAgE;QAChE,6BAA6B;QAC7B,CAAC,GAAG,UAAU,CAAC;aACZ,OAAO,EAAE;aACT,MAAM,CACL,CAAC,oBAAoB,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,oBAAoB,CAAC,EACxD,iBAAiB,CAClB,EACL,CAAC,UAAU,CAAC,CACb,CAAC;QAEF,gDAAgD;QAChD,MAAM,UAAU,GAAG;YACjB,gCAAgC;YAChC,SAAS,EAAE,iBAAiB;YAC5B,GAAG,KAAK;YACR,GAAG,OAAO;SACX,CAAC;QACF,qHAAqH;QAErH,OAAO,KAAK,CAAC,aAAa,CACxB,gBAAgB,EAChB,UAA0C,CAC3C,CAAC;IACJ,CAAC;IACD,OAAO,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;AAClD,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindField.js","sourceRoot":"","sources":["../../../../../src/lib/common/bindField/bindField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,aAAa,EAAW,MAAM,OAAO,CAAC;AACnE,OAAO,EAEL,aAAa,EACb,cAAc,EACd,QAAQ,GACT,MAAM,iBAAiB,CAAC;AAGzB;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS;AAC/B,wFAAwF;AACxF,cAAkC,EAClC,IAAc,EACd,
|
|
1
|
+
{"version":3,"file":"bindField.js","sourceRoot":"","sources":["../../../../../src/lib/common/bindField/bindField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,aAAa,EAAW,MAAM,OAAO,CAAC;AACnE,OAAO,EAEL,aAAa,EACb,cAAc,EACd,QAAQ,GACT,MAAM,iBAAiB,CAAC;AAGzB;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS;AAC/B,wFAAwF;AACxF,cAAkC,EAClC,IAAc,EACd,OAAO,GAAqB,EAAE;IAE9B,MAAM,KAAK,GACR,cAA2C,CAAC,WAAW;QACxD,cAAc,CAAC,IAAI;QACnB,OAAO,CAAC;IAEV,mEAAmE;IACnE,2EAA2E;IAC3E,2EAA2E;IAC3E,8EAA8E;IAC9E,0EAA0E;IAC1E,gFAAgF;IAChF,MAAM,aAAa,GAAG,CACpB,aAA0C,EAC1C,KAA8B,EACb,EAAE;QACnB,MAAM,KAAK,GACT,OAAO,OAAO,CAAC,uBAAuB,KAAK,UAAU;YACnD,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,KAAK,CAAC;YACxC,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;QACtC,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,aAAa,EAAqB,CAAC;IAC3D,CAAC,CAAC;IAEF,IAAI,KAAY,CAAC;IAEjB,IAAI,IAAI,KAAK,YAAY,EAAE,CAAC;QAC1B,KAAK,GAAG,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,IAAI,EAAK,EAAE,EAAE;YAC9C,MAA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aAAa,EAAE,IAAI,CAAC,CAAC;aACtD,CAAC,CAAC;QACL,CAAC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,WAAW,GAAG,aAAa,KAAK,GAAG,CAAC;IAC1C,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertValueToItem.js","sourceRoot":"","sources":["../../../../../../src/lib/subcomponent/ComboboxInput/utils/convertValueToItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,SAAS,kBAAkB,CACzB,KAAa,EACb,KAAe,EACf,
|
|
1
|
+
{"version":3,"file":"convertValueToItem.js","sourceRoot":"","sources":["../../../../../../src/lib/subcomponent/ComboboxInput/utils/convertValueToItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,SAAS,kBAAkB,CACzB,KAAa,EACb,KAAe,EACf,QAAQ,GAAiB,SAAS;IAElC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC,IAAI,IAAI,CAAC;AACxE,CAAC;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { invariant } from "@canonical/utils";
|
|
3
3
|
import { forwardRef, useCallback, useMemo, useState } from "react";
|
|
4
4
|
import { countries as defaultCountries, } from "../../utils/countries/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import "./styles.css";
|
|
4
4
|
const componentCssClassName = "ds range";
|
|
@@ -38,10 +38,7 @@ export const RatingInput = ({ id, className, style, name, count = 5, allowHalf =
|
|
|
38
38
|
const half = rating % 1 !== 0;
|
|
39
39
|
const ratingId = `${groupId}-${rating}`;
|
|
40
40
|
const label = formatStarLabel(rating, count);
|
|
41
|
-
return (
|
|
42
|
-
// The label is the positioned click target and wraps its own
|
|
43
|
-
// (visually-hidden) radio, so it is a labelled control.
|
|
44
|
-
_jsxs("label", { className: ["star-target", half ? "left" : "right"].join(" "), title: label, children: [_jsx("input", { id: ratingId, className: "star-input", type: "radio", name: name, value: rating, disabled: disabled, "data-rating": rating, ...(value !== undefined
|
|
41
|
+
return (_jsxs("label", { className: ["star-target", half ? "left" : "right"].join(" "), title: label, children: [_jsx("input", { id: ratingId, className: "star-input", type: "radio", name: name, value: rating, disabled: disabled, "data-rating": rating, ...(value !== undefined
|
|
45
42
|
? { checked: isChecked(rating) }
|
|
46
43
|
: { defaultChecked: defaultValue === rating }), onChange: () => onChange?.(rating) }), _jsx("span", { className: "ds-visually-hidden", children: label })] }, rating));
|
|
47
44
|
})] }, star))) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RatingInput.js","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/RatingInput/RatingInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,KAAK,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAE/C,MAAM,sBAAsB,GAAG,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CAC9D,GAAG,KAAK,OAAO,KAAK,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1B,EAAE,EACF,SAAS,EACT,KAAK,EACL,IAAI,EACJ,KAAK,GAAG,CAAC,EACT,SAAS,GA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C,CAAC,IAAI,CAAC,GAAG,CAAC,EAC7D,KAAK,EAAE,KAAK,aAEZ,gBACE,EAAE,EAAE,QAAQ,EACZ,SAAS,EAAC,YAAY,EACtB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,QAAQ,iBACL,MAAM,KAEf,CAAC,KAAK,KAAK,SAAS;oCACtB,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE;oCAChC,CAAC,CAAC,EAAE,cAAc,EAAE,YAAY,KAAK,MAAM,EAAE,CAAC,EAChD,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,GAClC,EACF,eAAM,SAAS,EAAC,oBAAoB,YAAE,KAAK,GAAQ,KAlB9C,MAAM,CAmBL,CACT,CAAC;gBACJ,CAAC,CAAC,KAlCwB,IAAI,CAmCzB,CACR,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addRESTOptions.js","sourceRoot":"","sources":["../../../../../src/lib/utils/middleware/addRESTOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAW3D,SAAS,mBAAmB,CAC1B,GAAW,EACX,
|
|
1
|
+
{"version":3,"file":"addRESTOptions.js","sourceRoot":"","sources":["../../../../../src/lib/utils/middleware/addRESTOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAW3D,SAAS,mBAAmB,CAC1B,GAAW,EACX,OAAO,GAAwB,EAAE;IAGjC,MAAM,EACJ,MAAM,GAAG,KAAK,EACd,OAAO,GAAG,EAAE,EACZ,aAAa,GAAG,CAAC,IAAI,EAAE,EAAE,CAA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,IAAI,EAAE,UAAU,KAAK,EAAE,CAAC,CAAC;YACvD,CAAC;YACD,OAAO,aAAa,CAAC,gBAAgB,EAAE;gBACrC,GAAG,KAAK;gBACR,OAAO,EAAE,WAAW;aACrB,CAAC,CAAC;QACL,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addRESTValidation.js","sourceRoot":"","sources":["../../../../../src/lib/utils/middleware/addRESTValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAajD,SAAS,sBAAsB,CAC7B,GAAW,EACX,
|
|
1
|
+
{"version":3,"file":"addRESTValidation.js","sourceRoot":"","sources":["../../../../../src/lib/utils/middleware/addRESTValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAajD,SAAS,sBAAsB,CAC7B,GAAW,EACX,OAAO,GAAsB,EAAE;IAG/B,MAAM,EACJ,MAAM,GAAG,MAAM,EACf,OAAO,GAAG,EAAE,cAAc,EAAE,kBAAkB,EAAE,EAChD,aAAa,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EACtC,cAAc,GAAG,KAAK,IAAI,EAAE,CAAC,mBAAmB,EAChD,SAAS,GAAG,CAAC,EACb,YAAY,GAAG,GAAG,GACnB,GAAG,OAAO,CAAC;IAEZ,OAAO,CAAC,gBAAgB,EAAE,EAAE;QAC1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AAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/DensityTestbed/mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;;;;GAUG;AAEH;kDACkD;AAClD,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/DensityTestbed/mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;;;;GAUG;AAEH;kDACkD;AAClD,eAAO,MAAM,QAAQ,4BAIlB;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,EAAE,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,KAAG,KAAK,CAAC,YAWT,CAAC;AAEF;;mEAEmE;AACnE,eAAO,MAAM,SAAS,aAAc;IAAE,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,KAAG,KAAK,CAAC,YAM9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvisibleWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/InvisibleWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhE;;;;;;;;;GASG;AACH,QAAA,MAAM,gBAAgB,GAAI,cAAc,SAAS,cAAc,
|
|
1
|
+
{"version":3,"file":"InvisibleWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/InvisibleWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhE;;;;;;;;;GASG;AACH,QAAA,MAAM,gBAAgB,GAAI,cAAc,SAAS,cAAc,kHAO5D,YAAY,CAAC,cAAc,CAAC,KAAG,KAAK,CAAC,YAevC,CAAC;eAEa,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/ToggleWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,cAAc,CAAC;AACtB,OAAO,qBAAqB,CAAC;AAI7B;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,aAAa,GAAI,cAAc,SAAS,cAAc,
|
|
1
|
+
{"version":3,"file":"ToggleWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/ToggleWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,cAAc,CAAC;AACtB,OAAO,qBAAqB,CAAC;AAI7B;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,aAAa,GAAI,cAAc,SAAS,cAAc,wNAkBzD,YAAY,CAAC,cAAc,CAAC,KAAG,KAAK,CAAC,YA0EvC,CAAC;eAEa,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/Wrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,cAAc,CAAC;AAKtB;;;;;GAKG;AACH,QAAA,MAAM,OAAO,GAAI,cAAc,SAAS,cAAc,
|
|
1
|
+
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/Wrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,cAAc,CAAC;AAKtB;;;;;GAKG;AACH,QAAA,MAAM,OAAO,GAAI,cAAc,SAAS,cAAc,sMAiBnD,YAAY,CAAC,cAAc,CAAC,KAAG,KAAK,CAAC,YAqDvC,CAAC;eAEa,OAAO"}
|
|
@@ -40,7 +40,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
40
40
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
41
41
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
42
42
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
43
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
43
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
44
44
|
value?: any;
|
|
45
45
|
setValueAs?: ((value: any) => any) | undefined;
|
|
46
46
|
shouldUnregister?: boolean;
|
|
@@ -57,7 +57,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
57
57
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
58
58
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
59
59
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
60
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
60
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
61
61
|
value?: any;
|
|
62
62
|
setValueAs?: ((value: any) => any) | undefined;
|
|
63
63
|
shouldUnregister?: boolean;
|
|
@@ -74,7 +74,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
74
74
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
75
75
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
76
76
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
77
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
77
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
78
78
|
value?: any;
|
|
79
79
|
setValueAs?: ((value: any) => any) | undefined;
|
|
80
80
|
shouldUnregister?: boolean;
|
|
@@ -91,7 +91,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
91
91
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
92
92
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
93
93
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
94
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
94
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
95
95
|
value?: any;
|
|
96
96
|
setValueAs?: ((value: any) => any) | undefined;
|
|
97
97
|
shouldUnregister?: boolean;
|
|
@@ -108,7 +108,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
108
108
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
109
109
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
110
110
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
111
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
111
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
112
112
|
value?: any;
|
|
113
113
|
setValueAs?: ((value: any) => any) | undefined;
|
|
114
114
|
shouldUnregister?: boolean;
|
|
@@ -125,7 +125,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
125
125
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
126
126
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
127
127
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
128
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
128
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
129
129
|
value?: any;
|
|
130
130
|
setValueAs?: ((value: any) => any) | undefined;
|
|
131
131
|
shouldUnregister?: boolean;
|
|
@@ -142,7 +142,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
142
142
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
143
143
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
144
144
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
145
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
145
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
146
146
|
value?: any;
|
|
147
147
|
setValueAs?: ((value: any) => any) | undefined;
|
|
148
148
|
shouldUnregister?: boolean;
|
|
@@ -159,7 +159,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
159
159
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
160
160
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
161
161
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
162
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
162
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
163
163
|
value?: any;
|
|
164
164
|
setValueAs?: ((value: any) => any) | undefined;
|
|
165
165
|
shouldUnregister?: boolean;
|
|
@@ -176,7 +176,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
176
176
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
177
177
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
178
178
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
179
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
179
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
180
180
|
value?: any;
|
|
181
181
|
setValueAs?: ((value: any) => any) | undefined;
|
|
182
182
|
shouldUnregister?: boolean;
|
|
@@ -193,7 +193,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
193
193
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
194
194
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
195
195
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
196
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
196
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
197
197
|
value?: any;
|
|
198
198
|
setValueAs?: ((value: any) => any) | undefined;
|
|
199
199
|
shouldUnregister?: boolean;
|
|
@@ -210,7 +210,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
210
210
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
211
211
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
212
212
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
213
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
213
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
214
214
|
value?: any;
|
|
215
215
|
setValueAs?: ((value: any) => any) | undefined;
|
|
216
216
|
shouldUnregister?: boolean;
|
|
@@ -227,7 +227,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
227
227
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
228
228
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
229
229
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
230
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
230
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
231
231
|
value?: any;
|
|
232
232
|
setValueAs?: ((value: any) => any) | undefined;
|
|
233
233
|
shouldUnregister?: boolean;
|
|
@@ -244,7 +244,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
244
244
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
245
245
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
246
246
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
247
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
247
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
248
248
|
value?: any;
|
|
249
249
|
setValueAs?: ((value: any) => any) | undefined;
|
|
250
250
|
shouldUnregister?: boolean;
|
|
@@ -261,7 +261,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
261
261
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
262
262
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
263
263
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
264
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
264
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
265
265
|
value?: any;
|
|
266
266
|
setValueAs?: ((value: any) => any) | undefined;
|
|
267
267
|
shouldUnregister?: boolean;
|
|
@@ -278,7 +278,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
278
278
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
279
279
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
280
280
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
281
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
281
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
282
282
|
value?: any;
|
|
283
283
|
setValueAs?: ((value: any) => any) | undefined;
|
|
284
284
|
shouldUnregister?: boolean;
|
|
@@ -295,7 +295,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
295
295
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
296
296
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
297
297
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
298
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
298
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
299
299
|
value?: any;
|
|
300
300
|
setValueAs?: ((value: any) => any) | undefined;
|
|
301
301
|
shouldUnregister?: boolean;
|
|
@@ -312,7 +312,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
312
312
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
313
313
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
314
314
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
315
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
315
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
316
316
|
value?: any;
|
|
317
317
|
setValueAs?: ((value: any) => any) | undefined;
|
|
318
318
|
shouldUnregister?: boolean;
|
|
@@ -329,7 +329,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
329
329
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
330
330
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
331
331
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
332
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
332
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
333
333
|
value?: any;
|
|
334
334
|
setValueAs?: ((value: any) => any) | undefined;
|
|
335
335
|
shouldUnregister?: boolean;
|
|
@@ -346,7 +346,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
346
346
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
347
347
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
348
348
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
349
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
349
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
350
350
|
value?: any;
|
|
351
351
|
setValueAs?: ((value: any) => any) | undefined;
|
|
352
352
|
shouldUnregister?: boolean;
|
|
@@ -363,7 +363,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
363
363
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
364
364
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
365
365
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
366
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
366
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
367
367
|
value?: any;
|
|
368
368
|
setValueAs?: ((value: any) => any) | undefined;
|
|
369
369
|
shouldUnregister?: boolean;
|
|
@@ -380,7 +380,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
380
380
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
381
381
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
382
382
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
383
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
383
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
384
384
|
value?: any;
|
|
385
385
|
setValueAs?: ((value: any) => any) | undefined;
|
|
386
386
|
shouldUnregister?: boolean;
|
|
@@ -397,7 +397,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
397
397
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
398
398
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
399
399
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
400
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
400
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
401
401
|
value?: any;
|
|
402
402
|
setValueAs?: ((value: any) => any) | undefined;
|
|
403
403
|
shouldUnregister?: boolean;
|
|
@@ -414,7 +414,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
414
414
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
415
415
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
416
416
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
417
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
417
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
418
418
|
value?: any;
|
|
419
419
|
setValueAs?: ((value: any) => any) | undefined;
|
|
420
420
|
shouldUnregister?: boolean;
|
|
@@ -431,7 +431,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
431
431
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
432
432
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
433
433
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
434
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
434
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
435
435
|
value?: any;
|
|
436
436
|
setValueAs?: ((value: any) => any) | undefined;
|
|
437
437
|
shouldUnregister?: boolean;
|
|
@@ -448,7 +448,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
448
448
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
449
449
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
450
450
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
451
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
451
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
452
452
|
value?: any;
|
|
453
453
|
setValueAs?: ((value: any) => any) | undefined;
|
|
454
454
|
shouldUnregister?: boolean;
|
|
@@ -465,7 +465,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
465
465
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
466
466
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
467
467
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
468
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
468
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
469
469
|
value?: any;
|
|
470
470
|
setValueAs?: ((value: any) => any) | undefined;
|
|
471
471
|
shouldUnregister?: boolean;
|
|
@@ -482,7 +482,7 @@ declare const useFieldWrapper: (name: string, options?: UseFieldWrapperOptions)
|
|
|
482
482
|
max?: import("react-hook-form").ValidationRule<string | number> | undefined;
|
|
483
483
|
maxLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
484
484
|
minLength?: import("react-hook-form").ValidationRule<number> | undefined;
|
|
485
|
-
validate?: import("react-hook-form").Validate<any, import("react-hook-form").FieldValues
|
|
485
|
+
validate?: Record<string, import("react-hook-form").Validate<any, import("react-hook-form").FieldValues>> | import("react-hook-form").Validate<any, import("react-hook-form").FieldValues> | undefined;
|
|
486
486
|
value?: any;
|
|
487
487
|
setValueAs?: ((value: any) => any) | undefined;
|
|
488
488
|
shouldUnregister?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFieldWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/common/Wrapper/hooks/useFieldWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,iBAAiB,CAAC;AAQvE,KAAK,sBAAsB,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,eAAe,CAAC;IACpC,mBAAmB,CAAC,EAAE,eAAe,CAAC;IACtC,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"useFieldWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/common/Wrapper/hooks/useFieldWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,iBAAiB,CAAC;AAQvE,KAAK,sBAAsB,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,eAAe,CAAC;IACpC,mBAAmB,CAAC,EAAE,eAAe,CAAC;IACtC,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,eAAe,SACb,MAAM,YACH,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDhC,CAAC;eACa,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/messages.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/messages.ts"],"names":[],"mappings":";IACE,QAAQ,SAAS,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withConditionalDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/withConditionalDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzE,KAAK,6BAA6B,CAAC,cAAc,SAAS,cAAc,IACtE,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC,CAAC;AAG3D,QAAA,MAAM,sBAAsB,GAAI,cAAc,SAAS,cAAc,
|
|
1
|
+
{"version":3,"file":"withConditionalDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/withConditionalDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzE,KAAK,6BAA6B,CAAC,cAAc,SAAS,cAAc,IACtE,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC,CAAC;AAG3D,QAAA,MAAM,sBAAsB,GAAI,cAAc,SAAS,cAAc,oBACjD,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,aAG5C,6BAA6B,CAAC,cAAc,CAAC,yFAcvD,CAAC;eAEa,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withToggleWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/withToggleWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,YAAY,EACb,MAAM,aAAa,CAAC;AAIrB;;;;GAIG;AACH,KAAK,kBAAkB,CAAC,cAAc,SAAS,cAAc,IAAI,IAAI,CACnE,YAAY,CAAC,cAAc,CAAC,EAC5B,WAAW,GAAG,OAAO,GAAG,cAAc,CACvC,GACC,gBAAgB,CAAC;AAEnB;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,iBAAiB,GAAI,cAAc,SAAS,cAAc,
|
|
1
|
+
{"version":3,"file":"withToggleWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/withToggleWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,YAAY,EACb,MAAM,aAAa,CAAC;AAIrB;;;;GAIG;AACH,KAAK,kBAAkB,CAAC,cAAc,SAAS,cAAc,IAAI,IAAI,CACnE,YAAY,CAAC,cAAc,CAAC,EAC5B,WAAW,GAAG,OAAO,GAAG,cAAc,CACvC,GACC,gBAAgB,CAAC;AAEnB;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,iBAAiB,GAAI,cAAc,SAAS,cAAc,aACnD,aAAa,CAAC,cAAc,CAAC,aAC7B,OAAO,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC,KACrD,EAAE,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAWvC,CAAC;eAEa,iBAAiB"}
|
|
@@ -3,6 +3,6 @@ import type { BaseInputProps, BaseWrapperProps, Condition, WrappedComponentProps
|
|
|
3
3
|
type WrappedComponentPropsInternal<ComponentProps extends BaseInputProps> = Omit<WrappedComponentProps<ComponentProps>, "Component"> & {
|
|
4
4
|
condition?: Condition;
|
|
5
5
|
};
|
|
6
|
-
declare const withWrapper: <ComponentProps extends BaseInputProps, ComponentWrapperProps extends BaseWrapperProps<ComponentProps> = WrapperProps<ComponentProps>>(Component: React.ComponentType<ComponentProps>, options?: Partial<ComponentWrapperProps>, Wrapper?: React.ComponentType<WrapperProps<ComponentProps>>) => (props: "
|
|
6
|
+
declare const withWrapper: <ComponentProps extends BaseInputProps, ComponentWrapperProps extends BaseWrapperProps<ComponentProps> = WrapperProps<ComponentProps>>(Component: React.ComponentType<ComponentProps>, options?: Partial<ComponentWrapperProps>, Wrapper?: React.ComponentType<WrapperProps<ComponentProps>>) => (props: "WrapperComponent" | "className" | "condition" | "controlLabel" | "description" | "id" | "isOptional" | "label" | "labelPosition" | "middleware" | "mockLabel" | "nestedRegisterProps" | "requiredIndicator" | "style" | "unregisterOnUnmount" | Exclude<Exclude<keyof ComponentProps, "Component">, "Component"> extends infer T extends keyof WrappedComponentProps<WrappedComponentPropsInternal<ComponentProps>> ? { [P in T]: WrappedComponentProps<WrappedComponentPropsInternal<ComponentProps>>[P]; } : never) => React.ReactElement<WrappedComponentPropsInternal<ComponentProps>, string | React.JSXElementConstructor<any>> | null;
|
|
7
7
|
export default withWrapper;
|
|
8
8
|
//# sourceMappingURL=withWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/withWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,qBAAqB,EACrB,YAAY,EACb,MAAM,aAAa,CAAC;AAIrB,KAAK,6BAA6B,CAAC,cAAc,SAAS,cAAc,IACtE,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC,GAAG;IACzD,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEJ,QAAA,MAAM,WAAW,GACf,cAAc,SAAS,cAAc,EACrC,qBAAqB,SACnB,gBAAgB,CAAC,cAAc,CAAC,GAAG,YAAY,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"withWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/withWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,qBAAqB,EACrB,YAAY,EACb,MAAM,aAAa,CAAC;AAIrB,KAAK,6BAA6B,CAAC,cAAc,SAAS,cAAc,IACtE,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC,GAAG;IACzD,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEJ,QAAA,MAAM,WAAW,GACf,cAAc,SAAS,cAAc,EACrC,qBAAqB,SACnB,gBAAgB,CAAC,cAAc,CAAC,GAAG,YAAY,CAAC,cAAc,CAAC,aAEtD,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,YACpC,OAAO,CAAC,qBAAqB,CAAC,YAC/B,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,0nBA0C3D,CAAC;eAEa,WAAW"}
|
|
@@ -11,6 +11,6 @@ type CheckboxInputFieldProps = InputProps<CheckboxInputProps>;
|
|
|
11
11
|
*
|
|
12
12
|
* @implements ds:global.component.checkbox_field
|
|
13
13
|
*/
|
|
14
|
-
declare const _default: import("react").FC<Omit<import("../../common/types.js").WrapperProps<CheckboxInputFieldProps>, "
|
|
14
|
+
declare const _default: import("react").FC<Omit<import("../../common/types.js").WrapperProps<CheckboxInputFieldProps>, "Component" | "controlLabel" | "label"> & import("../../common/types.js").ToggleLabelProps>;
|
|
15
15
|
export default _default;
|
|
16
16
|
//# sourceMappingURL=CheckboxField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxField.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/CheckboxField/CheckboxField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAGpF,KAAK,uBAAuB,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;AAE9D;;;;;;;;;GASG
|
|
1
|
+
{"version":3,"file":"CheckboxField.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/CheckboxField/CheckboxField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAGpF,KAAK,uBAAuB,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;AAE9D;;;;;;;;;GASG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Choices.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/ChoicesField/Choices.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Choices.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/ChoicesField/Choices.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,qGAYjB,wBAAwB,KAAG,KAAK,CAAC,YAmDnC,CAAC;eAEa,OAAO"}
|
|
@@ -9,38 +9,38 @@ import type { ChoicesFieldProps } from "./types.js";
|
|
|
9
9
|
* @implements ds:global.component.choices_field
|
|
10
10
|
*/
|
|
11
11
|
declare const _default: (props: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
value?: string | string[] | undefined;
|
|
16
|
-
label?: string | undefined;
|
|
17
|
-
style?: React.CSSProperties | undefined;
|
|
18
|
-
className?: string | undefined;
|
|
19
|
-
disabled?: boolean | undefined;
|
|
12
|
+
id?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
20
15
|
options: import("../../index.js").Option[];
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"aria-
|
|
24
|
-
"aria-
|
|
25
|
-
"aria-
|
|
26
|
-
"aria-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
mockLabel?: boolean
|
|
16
|
+
name: string;
|
|
17
|
+
registerProps?: import("react-hook-form").RegisterOptions;
|
|
18
|
+
"aria-labelledby"?: string;
|
|
19
|
+
"aria-describedby"?: string;
|
|
20
|
+
"aria-errormessage"?: string;
|
|
21
|
+
"aria-invalid"?: boolean;
|
|
22
|
+
description?: string;
|
|
23
|
+
label?: string;
|
|
24
|
+
controlLabel?: string;
|
|
25
|
+
labelPosition?: "before" | "after";
|
|
26
|
+
isOptional?: boolean;
|
|
27
|
+
requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
|
|
28
|
+
nestedRegisterProps?: import("react-hook-form").RegisterOptions;
|
|
29
|
+
unregisterOnUnmount?: boolean;
|
|
30
|
+
mockLabel?: boolean;
|
|
36
31
|
middleware?: (import("../../index.js").Middleware<ChoicesFieldProps>[] & import("../../index.js").Middleware<Omit<import("../../index.js").WrappedComponentProps<ChoicesFieldProps>, "Component"> & {
|
|
37
32
|
condition?: import("../../index.js").Condition;
|
|
38
33
|
}>[]) | undefined;
|
|
39
34
|
WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<ChoicesFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<ChoicesFieldProps>, "Component"> & {
|
|
40
35
|
condition?: import("../../index.js").Condition;
|
|
41
36
|
}>>) | undefined;
|
|
42
|
-
condition?: import("../../index.js").Condition
|
|
43
|
-
isMultiple?: boolean
|
|
37
|
+
condition?: import("../../index.js").Condition;
|
|
38
|
+
isMultiple?: boolean;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
layout?: "inline" | "stacked" | "columns";
|
|
41
|
+
columns?: number;
|
|
42
|
+
value?: string | string[];
|
|
43
|
+
onChange?: (value: string | string[]) => void;
|
|
44
44
|
}) => import("react").ReactElement<Omit<import("../../index.js").WrappedComponentProps<ChoicesFieldProps>, "Component"> & {
|
|
45
45
|
condition?: import("../../index.js").Condition;
|
|
46
46
|
}, string | import("react").JSXElementConstructor<any>> | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChoicesField.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/ChoicesField/ChoicesField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;;;;;;;GAQG
|
|
1
|
+
{"version":3,"file":"ChoicesField.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/ChoicesField/ChoicesField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;;;;;;;GAQG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/ChoicesField/common/Option/Option.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAI9C;;;;;GAKG;AACH,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/ChoicesField/common/Option/Option.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAI9C;;;;;GAKG;AACH,QAAA,MAAM,MAAM,yDAOT,WAAW,KAAG,KAAK,CAAC,YAmCtB,CAAC;eAEa,MAAM"}
|