react-hook-form-cloudscape 1.5.1 → 1.7.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/README.md +5 -5
- package/components/attribute-editor/attribute-editor.d.ts +1 -1
- package/components/attribute-editor/attribute-editor.js +1 -1
- package/components/attribute-editor/attribute-editor.js.map +1 -1
- package/components/autosuggest/autosuggest.d.ts +0 -2
- package/components/autosuggest/autosuggest.js +8 -9
- package/components/autosuggest/autosuggest.js.map +1 -1
- package/components/cards/cards.d.ts +5 -2
- package/components/cards/cards.js +3 -3
- package/components/cards/cards.js.map +1 -1
- package/components/checkbox/checkbox.d.ts +5 -2
- package/components/checkbox/checkbox.js +2 -2
- package/components/checkbox/checkbox.js.map +1 -1
- package/components/code-editor/code-editor.d.ts +5 -2
- package/components/code-editor/code-editor.js +2 -2
- package/components/code-editor/code-editor.js.map +1 -1
- package/components/components/attribute-editor/attribute-editor.d.ts +1 -1
- package/components/components/autosuggest/autosuggest.d.ts +0 -2
- package/components/components/cards/cards.d.ts +5 -2
- package/components/components/checkbox/checkbox.d.ts +5 -2
- package/components/components/code-editor/code-editor.d.ts +5 -2
- package/components/components/date-range-picker/date-range-picker.d.ts +5 -2
- package/components/components/property-filter/property-filter.d.ts +1 -1
- package/components/components/radio-group/radio-group.d.ts +5 -2
- package/components/components/tag-editor/tag-editor.d.ts +5 -2
- package/components/components/text-filter/text-filter.d.ts +5 -2
- package/components/components/tiles/tiles.d.ts +5 -2
- package/components/components/time-input/time-input.d.ts +5 -2
- package/components/components/toggle/toggle.d.ts +5 -2
- package/components/date-range-picker/date-range-picker.d.ts +5 -2
- package/components/date-range-picker/date-range-picker.js +3 -3
- package/components/date-range-picker/date-range-picker.js.map +1 -1
- package/components/property-filter/property-filter.d.ts +1 -1
- package/components/property-filter/property-filter.js +2 -2
- package/components/property-filter/property-filter.js.map +1 -1
- package/components/radio-group/radio-group.d.ts +5 -2
- package/components/radio-group/radio-group.js +2 -2
- package/components/radio-group/radio-group.js.map +1 -1
- package/components/tag-editor/tag-editor.d.ts +5 -2
- package/components/tag-editor/tag-editor.js +2 -2
- package/components/tag-editor/tag-editor.js.map +1 -1
- package/components/text-filter/text-filter.d.ts +5 -2
- package/components/text-filter/text-filter.js +2 -2
- package/components/text-filter/text-filter.js.map +1 -1
- package/components/tiles/tiles.d.ts +5 -2
- package/components/tiles/tiles.js +2 -2
- package/components/tiles/tiles.js.map +1 -1
- package/components/time-input/time-input.d.ts +5 -2
- package/components/time-input/time-input.js +2 -2
- package/components/time-input/time-input.js.map +1 -1
- package/components/toggle/toggle.d.ts +5 -2
- package/components/toggle/toggle.js +2 -2
- package/components/toggle/toggle.js.map +1 -1
- package/package.json +24 -14
- package/react-hook-form-cloudscape.es.js +600 -531
- package/react-hook-form-cloudscape.es.js.map +1 -1
- package/react-hook-form-cloudscape.umd.js +10 -10
- package/react-hook-form-cloudscape.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
## React-hook-form wrapper for Cloudscape Design System
|
|
2
2
|
|
|
3
|
-
A React library that simplifies the integration of [`react-hook-form`](https://github.com/react-hook-form/react-hook-form) with [`Cloudscape Design System`](https://github.com/cloudscape-design/components).
|
|
3
|
+
A React library that simplifies the integration of [`react-hook-form`](https://github.com/react-hook-form/react-hook-form) with [`Cloudscape Design System`](https://github.com/cloudscape-design/components). It provides a set of pre-built, controlled input components that handle validation, allowing you to focus on building complex form logic with minimal effort.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/react-hook-form-cloudscape)
|
|
6
|
-
|
|
6
|
+

|
|
7
7
|
[](https://github.com/abudayah/react-hook-form-cloudscape/actions/workflows/dependabot/dependabot-updates)
|
|
8
|
+
[](https://securityscorecards.dev/viewer/?uri=github.com/abudayah/react-hook-form-cloudscape)
|
|
8
9
|
[](https://github.com/abudayah/react-hook-form-cloudscape)
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
11
|
## Installation
|
|
13
12
|
|
|
14
13
|
```
|
|
15
|
-
npm install react-hook-form @cloudscape-design/components
|
|
14
|
+
npm install react-hook-form @cloudscape-design/components react-hook-form-cloudscape
|
|
16
15
|
```
|
|
17
16
|
|
|
18
17
|
## How to use it
|
|
@@ -40,6 +39,7 @@ function App {
|
|
|
40
39
|
You can [create bug reports or feature requests](https://github.com/abudayah/react-hook-form-cloudscape/issues/new/choose), or [start a discussion](https://github.com/abudayah/react-hook-form-cloudscape/discussions) to ask a question. To minimize duplicates, we recommend that you search for existing bug reports, feature requests, or discussions before initiating a new thread.
|
|
41
40
|
|
|
42
41
|
## Articles and guides
|
|
42
|
+
|
|
43
43
|
- [Cloudscape Form Validation Made Easy: A Step-by-Step Guide with React-hook-form-cloudscape](https://medium.com/@abudayah/cloudscape-form-validation-made-easy-a-step-by-step-guide-with-react-hook-form-cloudscape-f2238225f125)
|
|
44
44
|
|
|
45
45
|
## License
|
|
@@ -13,5 +13,5 @@ export interface CAttributeEditorProps<T extends FieldValues> extends Omit<Attri
|
|
|
13
13
|
onRemoveButtonClick?: (event: NonCancelableCustomEvent<AttributeEditorProps.RemoveButtonClickDetail>, remove: UseFieldArrayRemove) => void;
|
|
14
14
|
onAddButtonClick?: (event: NonCancelableCustomEvent<object>, append: UseFieldArrayAppend<T, ArrayPath<T>>) => void;
|
|
15
15
|
}
|
|
16
|
-
declare const CAttributeEditor: <TFieldValues extends FieldValues>({ name, control,
|
|
16
|
+
declare const CAttributeEditor: <TFieldValues extends FieldValues>({ name, control, definition, defaultValue, handleState, onAddButtonClick, onRemoveButtonClick, ...props }: CAttributeEditorProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default CAttributeEditor;
|
|
@@ -4,7 +4,7 @@ import { useMemo } from 'react';
|
|
|
4
4
|
import { AttributeEditor } from '@cloudscape-design/components';
|
|
5
5
|
import { useFieldArray, useFormState, get, } from 'react-hook-form';
|
|
6
6
|
const CAttributeEditor = (_a) => {
|
|
7
|
-
var { name, control,
|
|
7
|
+
var { name, control, definition, defaultValue, handleState = true, onAddButtonClick, onRemoveButtonClick } = _a, props = __rest(_a, ["name", "control", "definition", "defaultValue", "handleState", "onAddButtonClick", "onRemoveButtonClick"]);
|
|
8
8
|
const { errors } = useFormState({ control });
|
|
9
9
|
const { fields, append, remove } = useFieldArray({
|
|
10
10
|
name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute-editor.js","sourceRoot":"","sources":["../../src/components/attribute-editor/attribute-editor.tsx"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"attribute-editor.js","sourceRoot":"","sources":["../../src/components/attribute-editor/attribute-editor.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,eAAe,EAAkD,MAAM,+BAA+B,CAAC;AAChH,OAAO,EAIL,aAAa,EACb,YAAY,EACZ,GAAG,GAKJ,MAAM,iBAAiB,CAAC;AAqBzB,MAAM,gBAAgB,GAAG,CAAmC,EAStB,EAAE,EAAE;QATkB,EAC1D,IAAI,EACJ,OAAO,EACP,UAAU,EACV,YAAY,EACZ,WAAW,GAAG,IAAI,EAClB,gBAAgB,EAChB,mBAAmB,OAEiB,EADjC,KAAK,cARkD,2GAS3D,CADS;IAER,MAAM,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7C,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAe;QAC7D,IAAI;QACJ,OAAO;KACR,CAAC,CAAC;IAEH,MAAM,mBAAmB,GAAG,OAAO,CACjC,GAAG,EAAE,CACH,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,iBACtB,SAAS,EAAE,CAAC,KAAmB,EAAE,KAAa,EAAE,EAAE,CAChD,GAAG,CAAC,KAAK;YACR,GAAG,CAAC,MAAM,EAAE,GAAG,IAAI,IAAI,KAAK,IAAI,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,UAAU,CAAwB,IACpG,GAAG,EACN,CAAC,EACL,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,CAC3B,CAAC;IAEF,OAAO,CACL,KAAC,eAAe,kBACd,UAAU,EAAE,mBAAmB,EAC/B,KAAK,EAAG,MAAyB,IAAI,EAAE,EACvC,mBAAmB,EAAE,CAAC,CAAC,EAAE,EAAE;YACzB,IAAI,WAAW,EAAE,CAAC;gBAChB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAC7B,CAAC;YACD,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAG,CAAC,EAAE,MAAM,CAAC,CAAC;QACnC,CAAC,EACD,gBAAgB,EAAE,CAAC,CAAC,EAAE,EAAE;YACtB,IAAI,WAAW,EAAE,CAAC;gBAChB,MAAM,CAAC,YAAY,CAAC,CAAC;YACvB,CAAC;YACD,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAG,CAAC,EAAE,MAAM,CAAC,CAAC;QAChC,CAAC,IACG,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -6,8 +6,6 @@ export interface CAutosuggestProps<T extends FieldValues> extends Omit<Autosugge
|
|
|
6
6
|
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
7
|
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
8
|
shouldUnregister?: boolean;
|
|
9
|
-
onBlur?: AutosuggestProps['onBlur'];
|
|
10
|
-
onChange?: AutosuggestProps['onChange'];
|
|
11
9
|
}
|
|
12
10
|
export declare const CAutosuggest: <T extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onBlur, onChange, ...props }: CAutosuggestProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
13
11
|
export default CAutosuggest;
|
|
@@ -5,19 +5,18 @@ import { Controller } from 'react-hook-form';
|
|
|
5
5
|
import { Autosuggest } from '@cloudscape-design/components';
|
|
6
6
|
export const CAutosuggest = (_a) => {
|
|
7
7
|
var { name, control, defaultValue, rules, shouldUnregister = false, onBlur, onChange } = _a, props = __rest(_a, ["name", "control", "defaultValue", "rules", "shouldUnregister", "onBlur", "onChange"]);
|
|
8
|
-
const handleOnBlur = useCallback((event) => {
|
|
8
|
+
const handleOnBlur = useCallback((formOnBlur, event) => {
|
|
9
|
+
var _a;
|
|
10
|
+
if ((_a = event.detail) === null || _a === void 0 ? void 0 : _a.value) {
|
|
11
|
+
formOnBlur(event.detail.value);
|
|
12
|
+
}
|
|
9
13
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
10
14
|
}, [onBlur]);
|
|
11
|
-
const handleOnChange = useCallback((event) => {
|
|
15
|
+
const handleOnChange = useCallback((formOnChange, event) => {
|
|
16
|
+
formOnChange(event.detail.value);
|
|
12
17
|
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
13
18
|
}, [onChange]);
|
|
14
|
-
return (_jsx(Controller, { name: name, control: control, defaultValue: defaultValue, rules: rules, shouldUnregister: shouldUnregister, render: ({ field: { ref, onBlur
|
|
15
|
-
formOnBlur();
|
|
16
|
-
handleOnBlur(e);
|
|
17
|
-
}, onChange: (e) => {
|
|
18
|
-
formOnChange(e.detail.value);
|
|
19
|
-
handleOnChange(e);
|
|
20
|
-
} }, props))) }));
|
|
19
|
+
return (_jsx(Controller, { name: name, control: control, defaultValue: defaultValue, rules: rules, shouldUnregister: shouldUnregister, render: ({ field: { ref, onBlur, onChange, value } }) => (_jsx(Autosuggest, Object.assign({ ref: ref, name: name, value: value || '', onBlur: handleOnBlur.bind(null, onBlur), onChange: handleOnChange.bind(null, onChange) }, props))) }));
|
|
21
20
|
};
|
|
22
21
|
export default CAutosuggest;
|
|
23
22
|
//# sourceMappingURL=autosuggest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autosuggest.js","sourceRoot":"","sources":["../../src/components/autosuggest/autosuggest.tsx"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"autosuggest.js","sourceRoot":"","sources":["../../src/components/autosuggest/autosuggest.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAAU,EAA0E,MAAM,iBAAiB,CAAC;AACrH,OAAO,EAAE,WAAW,EAA8C,MAAM,+BAA+B,CAAC;AAUxG,MAAM,CAAC,MAAM,YAAY,GAAG,CAAwB,EAS7B,EAAE,EAAE;QATyB,EAClD,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,KAAK,EACL,gBAAgB,GAAG,KAAK,EACxB,MAAM,EACN,QAAQ,OAEa,EADlB,KAAK,cAR0C,sFASnD,CADS;IAER,MAAM,YAAY,GAAG,WAAW,CAC9B,CAAC,UAAmC,EAAE,KAAyD,EAAE,EAAE;;QACjG,IAAI,MAAA,KAAK,CAAC,MAAM,0CAAE,KAAK,EAAE,CAAC;YACxB,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC;QACD,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,KAAuC,CAAC,CAAC;IACpD,CAAC,EACD,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,YAAqC,EAAE,KAA8D,EAAE,EAAE;QACxG,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,KAA2E,CAAC,CAAC;IAC1F,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,KAAC,UAAU,IACT,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CACvD,KAAC,WAAW,kBACV,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,KAAK,EAAG,KAAgB,IAAI,EAAE,EAC9B,MAAM,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,EACvC,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,IACzC,KAAK,EACT,CACH,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { CardsProps } from '@cloudscape-design/components';
|
|
2
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
|
+
import { Control, FieldValues, Path, FieldPathValue, FieldPath, RegisterOptions } from 'react-hook-form';
|
|
3
3
|
export interface ControlledCardsProps<T extends FieldValues> extends Omit<Required<Pick<CardsProps, 'trackBy'>> & Required<Pick<CardsProps, 'selectionType'>> & CardsProps, 'value'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
shouldUnregister?: boolean;
|
|
7
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
8
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
6
9
|
}
|
|
7
|
-
export declare const CCards: <TFieldValues extends FieldValues>({ name, control, onSelectionChange, ...props }: ControlledCardsProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const CCards: <TFieldValues extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onSelectionChange, ...props }: ControlledCardsProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CCards;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Cards } from '@cloudscape-design/components';
|
|
4
3
|
import { useCallback } from 'react';
|
|
4
|
+
import { Cards } from '@cloudscape-design/components';
|
|
5
5
|
import { Controller } from 'react-hook-form';
|
|
6
6
|
export const CCards = (_a) => {
|
|
7
|
-
var { name, control, onSelectionChange } = _a, props = __rest(_a, ["name", "control", "onSelectionChange"]);
|
|
7
|
+
var { name, control, defaultValue, rules, shouldUnregister = false, onSelectionChange } = _a, props = __rest(_a, ["name", "control", "defaultValue", "rules", "shouldUnregister", "onSelectionChange"]);
|
|
8
8
|
const handleOnChange = useCallback((formOnChange, e) => {
|
|
9
9
|
formOnChange(e.detail.selectedItems);
|
|
10
10
|
onSelectionChange === null || onSelectionChange === void 0 ? void 0 : onSelectionChange(e);
|
|
11
11
|
}, [onSelectionChange]);
|
|
12
|
-
return (_jsx(Controller, { name: name, control: control, render: ({ field: { onChange, value } }) => (_jsx(Cards, Object.assign({ onSelectionChange: handleOnChange.bind(null, onChange), selectedItems: value }, props))) }));
|
|
12
|
+
return (_jsx(Controller, { name: name, control: control, defaultValue: defaultValue, rules: rules, shouldUnregister: shouldUnregister, render: ({ field: { onChange, value } }) => (_jsx(Cards, Object.assign({ onSelectionChange: handleOnChange.bind(null, onChange), selectedItems: value }, props))) }));
|
|
13
13
|
};
|
|
14
14
|
export default CCards;
|
|
15
15
|
//# sourceMappingURL=cards.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cards.js","sourceRoot":"","sources":["../../src/components/cards/cards.tsx"],"names":[],"mappings":";;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"cards.js","sourceRoot":"","sources":["../../src/components/cards/cards.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAwC,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC5F,OAAO,EAAE,UAAU,EAA0E,MAAM,iBAAiB,CAAC;AAcrH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAmC,EAQpB,EAAE,EAAE;QARgB,EACvD,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,KAAK,EACL,gBAAgB,GAAG,KAAK,EACxB,iBAAiB,OAEkB,EADhC,KAAK,cAP+C,qFAQxD,CADS;IAER,MAAM,cAAc,GAAG,WAAW,CAChC,CACE,YAAqD,EACrD,CAA2E,EAC3E,EAAE;QACF,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACrC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAG,CAAC,CAAC,CAAC;IACzB,CAAC,EACD,CAAC,iBAAiB,CAAC,CACpB,CAAC;IAEF,OAAO,CACL,KAAC,UAAU,IACT,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAC1C,KAAC,KAAK,kBAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,aAAa,EAAE,KAAK,IAAM,KAAK,EAAI,CACnG,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldPath, FieldPathValue, FieldValues, Path, RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { CheckboxProps } from '@cloudscape-design/components';
|
|
3
3
|
export interface CCheckboxProps<T extends FieldValues> extends Omit<CheckboxProps, 'checked'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CCheckbox: <TFieldValues extends FieldValues>({ name, control, onChange, ...props }: CCheckboxProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CCheckbox: <TFieldValues extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onChange, ...props }: CCheckboxProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CCheckbox;
|
|
@@ -4,12 +4,12 @@ import { useCallback } from 'react';
|
|
|
4
4
|
import { Controller } from 'react-hook-form';
|
|
5
5
|
import { Checkbox } from '@cloudscape-design/components';
|
|
6
6
|
const CCheckbox = (_a) => {
|
|
7
|
-
var { name, control, onChange } = _a, props = __rest(_a, ["name", "control", "onChange"]);
|
|
7
|
+
var { name, control, defaultValue, rules, shouldUnregister = false, onChange } = _a, props = __rest(_a, ["name", "control", "defaultValue", "rules", "shouldUnregister", "onChange"]);
|
|
8
8
|
const handleOnChange = useCallback((formOnChange, e) => {
|
|
9
9
|
formOnChange(e.detail.checked);
|
|
10
10
|
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
11
11
|
}, [onChange]);
|
|
12
|
-
return (_jsx(Controller, { name: name, control: control, render: ({ field: { ref, onChange, value = false } }) => (_jsx(Checkbox, Object.assign({ ref: ref, onChange: handleOnChange.bind(null, onChange), checked: value }, props))) }));
|
|
12
|
+
return (_jsx(Controller, { name: name, control: control, defaultValue: defaultValue, rules: rules, shouldUnregister: shouldUnregister, render: ({ field: { ref, onChange, value = false } }) => (_jsx(Checkbox, Object.assign({ ref: ref, onChange: handleOnChange.bind(null, onChange), checked: value }, props))) }));
|
|
13
13
|
};
|
|
14
14
|
export default CCheckbox;
|
|
15
15
|
//# sourceMappingURL=checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAW,UAAU,EAAiE,MAAM,iBAAiB,CAAC;AACrH,OAAO,EAAE,QAAQ,EAA2C,MAAM,+BAA+B,CAAC;AAUlG,MAAM,SAAS,GAAG,CAAmC,EAQtB,EAAE,EAAE;QARkB,EACnD,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,KAAK,EACL,gBAAgB,GAAG,KAAK,EACxB,QAAQ,OAEqB,EAD1B,KAAK,cAP2C,4EAQpD,CADS;IAER,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,YAAwC,EAAE,CAAuD,EAAE,EAAE;QACpG,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC/B,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,CAAC,CAAC,CAAC;IAChB,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,KAAC,UAAU,IACT,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,GAAG,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CACvD,KAAC,QAAQ,kBAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,IAAM,KAAK,EAAI,CACjG,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldValues, Path, FieldPath, FieldPathValue, RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { CodeEditorProps } from '@cloudscape-design/components';
|
|
3
3
|
export interface CCodeEditorProps<T extends FieldValues> extends Omit<CodeEditorProps, 'value'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CCodeEditor: <TFieldValues extends FieldValues>({ name, control, onChange, ...props }: CCodeEditorProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CCodeEditor: <TFieldValues extends FieldValues>({ name, control, onChange, defaultValue, rules, shouldUnregister, ...props }: CCodeEditorProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CCodeEditor;
|
|
@@ -4,12 +4,12 @@ import { useCallback } from 'react';
|
|
|
4
4
|
import { Controller } from 'react-hook-form';
|
|
5
5
|
import { CodeEditor } from '@cloudscape-design/components';
|
|
6
6
|
const CCodeEditor = (_a) => {
|
|
7
|
-
var { name, control, onChange } = _a, props = __rest(_a, ["name", "control", "onChange"]);
|
|
7
|
+
var { name, control, onChange, defaultValue, rules, shouldUnregister = false } = _a, props = __rest(_a, ["name", "control", "onChange", "defaultValue", "rules", "shouldUnregister"]);
|
|
8
8
|
const handleOnChange = useCallback((formOnChange, e) => {
|
|
9
9
|
formOnChange(e.detail.value);
|
|
10
10
|
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
11
11
|
}, [onChange]);
|
|
12
|
-
return (_jsx(Controller, { name: name, control: control, render: ({ field: { onChange, value } }) => (_jsx(CodeEditor, Object.assign({ value: value || '', onChange: handleOnChange.bind(null, onChange) }, props))) }));
|
|
12
|
+
return (_jsx(Controller, { name: name, control: control, defaultValue: defaultValue, rules: rules, shouldUnregister: shouldUnregister, render: ({ field: { onChange, value } }) => (_jsx(CodeEditor, Object.assign({ value: value || '', onChange: handleOnChange.bind(null, onChange) }, props))) }));
|
|
13
13
|
};
|
|
14
14
|
export default CCodeEditor;
|
|
15
15
|
//# sourceMappingURL=code-editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor.js","sourceRoot":"","sources":["../../src/components/code-editor/code-editor.tsx"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"code-editor.js","sourceRoot":"","sources":["../../src/components/code-editor/code-editor.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAAU,EAA0E,MAAM,iBAAiB,CAAC;AACrH,OAAO,EAAE,UAAU,EAA6C,MAAM,+BAA+B,CAAC;AAUtG,MAAM,WAAW,GAAG,CAAmC,EAQtB,EAAE,EAAE;QARkB,EACrD,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,gBAAgB,GAAG,KAAK,OAEO,EAD5B,KAAK,cAP6C,4EAQtD,CADS;IAER,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,YAAqC,EAAE,CAAyD,EAAE,EAAE;QACnG,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7B,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,CAAC,CAAC,CAAC;IAChB,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,KAAC,UAAU,IACT,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAC1C,KAAC,UAAU,kBAAC,KAAK,EAAE,KAAK,IAAI,EAAE,EAAE,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAM,KAAK,EAAI,CAC7F,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -13,5 +13,5 @@ export interface CAttributeEditorProps<T extends FieldValues> extends Omit<Attri
|
|
|
13
13
|
onRemoveButtonClick?: (event: NonCancelableCustomEvent<AttributeEditorProps.RemoveButtonClickDetail>, remove: UseFieldArrayRemove) => void;
|
|
14
14
|
onAddButtonClick?: (event: NonCancelableCustomEvent<object>, append: UseFieldArrayAppend<T, ArrayPath<T>>) => void;
|
|
15
15
|
}
|
|
16
|
-
declare const CAttributeEditor: <TFieldValues extends FieldValues>({ name, control,
|
|
16
|
+
declare const CAttributeEditor: <TFieldValues extends FieldValues>({ name, control, definition, defaultValue, handleState, onAddButtonClick, onRemoveButtonClick, ...props }: CAttributeEditorProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default CAttributeEditor;
|
|
@@ -6,8 +6,6 @@ export interface CAutosuggestProps<T extends FieldValues> extends Omit<Autosugge
|
|
|
6
6
|
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
7
|
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
8
|
shouldUnregister?: boolean;
|
|
9
|
-
onBlur?: AutosuggestProps['onBlur'];
|
|
10
|
-
onChange?: AutosuggestProps['onChange'];
|
|
11
9
|
}
|
|
12
10
|
export declare const CAutosuggest: <T extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onBlur, onChange, ...props }: CAutosuggestProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
13
11
|
export default CAutosuggest;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { CardsProps } from '@cloudscape-design/components';
|
|
2
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
|
+
import { Control, FieldValues, Path, FieldPathValue, FieldPath, RegisterOptions } from 'react-hook-form';
|
|
3
3
|
export interface ControlledCardsProps<T extends FieldValues> extends Omit<Required<Pick<CardsProps, 'trackBy'>> & Required<Pick<CardsProps, 'selectionType'>> & CardsProps, 'value'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
shouldUnregister?: boolean;
|
|
7
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
8
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
6
9
|
}
|
|
7
|
-
export declare const CCards: <TFieldValues extends FieldValues>({ name, control, onSelectionChange, ...props }: ControlledCardsProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const CCards: <TFieldValues extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onSelectionChange, ...props }: ControlledCardsProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CCards;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldPath, FieldPathValue, FieldValues, Path, RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { CheckboxProps } from '@cloudscape-design/components';
|
|
3
3
|
export interface CCheckboxProps<T extends FieldValues> extends Omit<CheckboxProps, 'checked'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CCheckbox: <TFieldValues extends FieldValues>({ name, control, onChange, ...props }: CCheckboxProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CCheckbox: <TFieldValues extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onChange, ...props }: CCheckboxProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CCheckbox;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldValues, Path, FieldPath, FieldPathValue, RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { CodeEditorProps } from '@cloudscape-design/components';
|
|
3
3
|
export interface CCodeEditorProps<T extends FieldValues> extends Omit<CodeEditorProps, 'value'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CCodeEditor: <TFieldValues extends FieldValues>({ name, control, onChange, ...props }: CCodeEditorProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CCodeEditor: <TFieldValues extends FieldValues>({ name, control, onChange, defaultValue, rules, shouldUnregister, ...props }: CCodeEditorProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CCodeEditor;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { DateRangePickerProps } from '@cloudscape-design/components';
|
|
2
|
-
import { Control, Path, FieldValues } from 'react-hook-form';
|
|
2
|
+
import { Control, Path, FieldValues, FieldPath, FieldPathValue, RegisterOptions } from 'react-hook-form';
|
|
3
3
|
export interface CDateRangePickerProps<T extends FieldValues> extends Omit<DateRangePickerProps, 'value'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CDateRangePicker: <TFieldValues extends FieldValues>({ name, control, onBlur, onChange, ...props }: CDateRangePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CDateRangePicker: <TFieldValues extends FieldValues>({ name, control, onBlur, onChange, defaultValue, rules, shouldUnregister, ...props }: CDateRangePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CDateRangePicker;
|
|
@@ -7,5 +7,5 @@ export interface ControlledPropertyFilterProps<T extends FieldValues> extends Om
|
|
|
7
7
|
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
8
|
shouldUnregister?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const CPropertyFilter: <TFieldValues extends FieldValues>(
|
|
10
|
+
export declare const CPropertyFilter: <TFieldValues extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, ...props }: ControlledPropertyFilterProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default CPropertyFilter;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldValues, Path, FieldPath, FieldPathValue, RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { RadioGroupProps } from '@cloudscape-design/components';
|
|
3
3
|
export interface CRadioGroupProps<T extends FieldValues> extends Omit<RadioGroupProps, 'value'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CRadioGroup: <TFieldValues extends FieldValues>({ name, control, onChange, ...props }: CRadioGroupProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CRadioGroup: <TFieldValues extends FieldValues>({ name, control, onChange, rules, defaultValue, shouldUnregister, ...props }: CRadioGroupProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CRadioGroup;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Control, Path, FieldValues } from 'react-hook-form';
|
|
1
|
+
import { Control, Path, FieldValues, FieldPath, FieldPathValue, RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { TagEditorProps } from '@cloudscape-design/components';
|
|
3
3
|
export interface CTagEditorProps<T extends FieldValues> extends Omit<TagEditorProps, 'tags'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CTagEditor: <TFieldValues extends FieldValues>({ name, control, onChange, ...props }: CTagEditorProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CTagEditor: <TFieldValues extends FieldValues>({ name, control, onChange, defaultValue, rules, shouldUnregister, ...props }: CTagEditorProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CTagEditor;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldValues, Path, FieldPath, FieldPathValue, RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { TextFilterProps } from '@cloudscape-design/components';
|
|
3
3
|
export interface CTextFilterProps<T extends FieldValues> extends Omit<TextFilterProps, 'filteringText'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CTextFilter: <TFieldValues extends FieldValues>({ name, control, onChange, ...props }: CTextFilterProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CTextFilter: <TFieldValues extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onChange, ...props }: CTextFilterProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CTextFilter;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldValues, Path, FieldPath, FieldPathValue, RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { TilesProps } from '@cloudscape-design/components';
|
|
3
3
|
export interface CTilesProps<T extends FieldValues> extends Omit<TilesProps, 'value'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CTiles: <TFieldValues extends FieldValues>({ name, control, onChange, ...props }: CTilesProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CTiles: <TFieldValues extends FieldValues>({ name, control, onChange, defaultValue, rules, shouldUnregister, ...props }: CTilesProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CTiles;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldValues, Path, FieldPath, FieldPathValue, RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { TimeInputProps } from '@cloudscape-design/components';
|
|
3
3
|
export interface CTimeInputProps<T extends FieldValues> extends Omit<TimeInputProps, 'value'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CTimeInput: <TFieldValues extends FieldValues>({ name, control, onBlur, onChange, ...props }: CTimeInputProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CTimeInput: <TFieldValues extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onBlur, onChange, ...props }: CTimeInputProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CTimeInput;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldPath, FieldPathValue, FieldValues, Path, RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { ToggleProps } from '@cloudscape-design/components';
|
|
3
3
|
export interface CToggleProps<T extends FieldValues> extends Omit<ToggleProps, 'checked'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CToggle: <TFieldValues extends FieldValues>({ name, control, onChange, ...props }: CToggleProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CToggle: <TFieldValues extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onChange, ...props }: CToggleProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CToggle;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { DateRangePickerProps } from '@cloudscape-design/components';
|
|
2
|
-
import { Control, Path, FieldValues } from 'react-hook-form';
|
|
2
|
+
import { Control, Path, FieldValues, FieldPath, FieldPathValue, RegisterOptions } from 'react-hook-form';
|
|
3
3
|
export interface CDateRangePickerProps<T extends FieldValues> extends Omit<DateRangePickerProps, 'value'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CDateRangePicker: <TFieldValues extends FieldValues>({ name, control, onBlur, onChange, ...props }: CDateRangePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CDateRangePicker: <TFieldValues extends FieldValues>({ name, control, onBlur, onChange, defaultValue, rules, shouldUnregister, ...props }: CDateRangePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CDateRangePicker;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { DateRangePicker } from '@cloudscape-design/components';
|
|
4
3
|
import { useCallback } from 'react';
|
|
4
|
+
import { DateRangePicker } from '@cloudscape-design/components';
|
|
5
5
|
import { Controller } from 'react-hook-form';
|
|
6
6
|
const CDateRangePicker = (_a) => {
|
|
7
|
-
var { name, control, onBlur, onChange } = _a, props = __rest(_a, ["name", "control", "onBlur", "onChange"]);
|
|
7
|
+
var { name, control, onBlur, onChange, defaultValue, rules, shouldUnregister = false } = _a, props = __rest(_a, ["name", "control", "onBlur", "onChange", "defaultValue", "rules", "shouldUnregister"]);
|
|
8
8
|
const handleOnBlur = useCallback((event) => {
|
|
9
9
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
10
10
|
}, [onBlur]);
|
|
11
11
|
const handleOnChange = useCallback((event) => {
|
|
12
12
|
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
13
13
|
}, [onChange]);
|
|
14
|
-
return (_jsx(Controller, { name: name, control: control, render: ({ field: { ref, onBlur: formOnBlur, onChange: formOnChange, value } }) => (_jsx(DateRangePicker, Object.assign({ ref: ref, value: value, onBlur: (e) => {
|
|
14
|
+
return (_jsx(Controller, { name: name, control: control, defaultValue: defaultValue, rules: rules, shouldUnregister: shouldUnregister, render: ({ field: { ref, onBlur: formOnBlur, onChange: formOnChange, value } }) => (_jsx(DateRangePicker, Object.assign({ ref: ref, value: value, onBlur: (e) => {
|
|
15
15
|
formOnBlur();
|
|
16
16
|
handleOnBlur(e);
|
|
17
17
|
}, onChange: (e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-picker.js","sourceRoot":"","sources":["../../src/components/date-range-picker/date-range-picker.tsx"],"names":[],"mappings":";;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"date-range-picker.js","sourceRoot":"","sources":["../../src/components/date-range-picker/date-range-picker.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAwB,eAAe,EAA4B,MAAM,+BAA+B,CAAC;AAChH,OAAO,EAAE,UAAU,EAA0E,MAAM,iBAAiB,CAAC;AAUrH,MAAM,gBAAgB,GAAG,CAAmC,EAStB,EAAE,EAAE;QATkB,EAC1D,IAAI,EACJ,OAAO,EACP,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,gBAAgB,GAAG,KAAK,OAEY,EADjC,KAAK,cARkD,sFAS3D,CADS;IAER,MAAM,YAAY,GAAG,WAAW,CAC9B,CAAC,KAAqC,EAAE,EAAE;QACxC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,KAAK,CAAC,CAAC;IAClB,CAAC,EACD,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,KAAkE,EAAE,EAAE;QACrE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,KAAK,CAAC,CAAC;IACpB,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,KAAC,UAAU,IACT,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CACjF,KAAC,eAAe,kBACd,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAmC,EAC1C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE;gBACZ,UAAU,EAAE,CAAC;gBACb,YAAY,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC,EACD,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAC7B,cAAc,CAAC,CAAC,CAAC,CAAC;YACpB,CAAC,IACG,KAAK,EACT,CACH,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -7,5 +7,5 @@ export interface ControlledPropertyFilterProps<T extends FieldValues> extends Om
|
|
|
7
7
|
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
8
|
shouldUnregister?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const CPropertyFilter: <TFieldValues extends FieldValues>(
|
|
10
|
+
export declare const CPropertyFilter: <TFieldValues extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, ...props }: ControlledPropertyFilterProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default CPropertyFilter;
|
|
@@ -3,8 +3,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
4
|
import { Controller } from 'react-hook-form';
|
|
5
5
|
import { PropertyFilter } from '@cloudscape-design/components';
|
|
6
|
-
export const CPropertyFilter = (
|
|
7
|
-
|
|
6
|
+
export const CPropertyFilter = (_a) => {
|
|
7
|
+
var { name, control, defaultValue, rules, shouldUnregister = false } = _a, props = __rest(_a, ["name", "control", "defaultValue", "rules", "shouldUnregister"]);
|
|
8
8
|
const handleOnChange = useCallback((formOnChange, e) => {
|
|
9
9
|
formOnChange(e.detail);
|
|
10
10
|
}, []);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-filter.js","sourceRoot":"","sources":["../../src/components/property-filter/property-filter.tsx"],"names":[],"mappings":";;AAAA,OAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAW,UAAU,EAA2D,MAAM,iBAAiB,CAAC;AAC/G,OAAO,EAAiD,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAW9G,MAAM,CAAC,MAAM,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"property-filter.js","sourceRoot":"","sources":["../../src/components/property-filter/property-filter.tsx"],"names":[],"mappings":";;AAAA,OAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAW,UAAU,EAA2D,MAAM,iBAAiB,CAAC;AAC/G,OAAO,EAAiD,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAW9G,MAAM,CAAC,MAAM,eAAe,GAAG,CAAmC,EAOpB,EAAE,EAAE;QAPgB,EAChE,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,KAAK,EACL,gBAAgB,GAAG,KAAK,OAEoB,EADzC,KAAK,cANwD,gEAOjE,CADS;IAER,MAAM,cAAc,GAAG,WAAW,CAChC,CACE,YAAwD,EACxD,CAAsD,EACtD,EAAE;QACF,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,KAAC,UAAU,IACT,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;YACzC,OAAO,KAAC,cAAc,kBAAC,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,KAAK,IAAM,KAAK,EAAI,CAAC;QACpG,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldValues, Path, FieldPath, FieldPathValue, RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { RadioGroupProps } from '@cloudscape-design/components';
|
|
3
3
|
export interface CRadioGroupProps<T extends FieldValues> extends Omit<RadioGroupProps, 'value'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CRadioGroup: <TFieldValues extends FieldValues>({ name, control, onChange, ...props }: CRadioGroupProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CRadioGroup: <TFieldValues extends FieldValues>({ name, control, onChange, rules, defaultValue, shouldUnregister, ...props }: CRadioGroupProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CRadioGroup;
|
|
@@ -4,12 +4,12 @@ import { useCallback } from 'react';
|
|
|
4
4
|
import { Controller } from 'react-hook-form';
|
|
5
5
|
import { RadioGroup } from '@cloudscape-design/components';
|
|
6
6
|
const CRadioGroup = (_a) => {
|
|
7
|
-
var { name, control, onChange } = _a, props = __rest(_a, ["name", "control", "onChange"]);
|
|
7
|
+
var { name, control, onChange, rules, defaultValue, shouldUnregister = false } = _a, props = __rest(_a, ["name", "control", "onChange", "rules", "defaultValue", "shouldUnregister"]);
|
|
8
8
|
const handleOnChange = useCallback((formOnChange, e) => {
|
|
9
9
|
formOnChange(e.detail.value);
|
|
10
10
|
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
11
11
|
}, [onChange]);
|
|
12
|
-
return (_jsx(Controller, { name: name, control: control, render: ({ field: { onChange, value } }) => (_jsx(RadioGroup, Object.assign({ onChange: handleOnChange.bind(null, onChange), value: value, items: props.items }, props))) }));
|
|
12
|
+
return (_jsx(Controller, { name: name, control: control, defaultValue: defaultValue, rules: rules, shouldUnregister: shouldUnregister, render: ({ field: { onChange, value } }) => (_jsx(RadioGroup, Object.assign({ onChange: handleOnChange.bind(null, onChange), value: value, items: props.items }, props))) }));
|
|
13
13
|
};
|
|
14
14
|
export default CRadioGroup;
|
|
15
15
|
//# sourceMappingURL=radio-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../src/components/radio-group/radio-group.tsx"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../src/components/radio-group/radio-group.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAAU,EAA0E,MAAM,iBAAiB,CAAC;AACrH,OAAO,EAA4B,UAAU,EAAmB,MAAM,+BAA+B,CAAC;AAUtG,MAAM,WAAW,GAAG,CAAmC,EAQtB,EAAE,EAAE;QARkB,EACrD,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,gBAAgB,GAAG,KAAK,OAEO,EAD5B,KAAK,cAP6C,4EAQtD,CADS;IAER,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,YAAqC,EAAE,CAAyD,EAAE,EAAE;QACnG,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7B,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,CAAC,CAAC,CAAC;IAChB,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,KAAC,UAAU,IACT,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAC1C,KAAC,UAAU,kBAAC,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,IAAM,KAAK,EAAI,CAC3G,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Control, Path, FieldValues } from 'react-hook-form';
|
|
1
|
+
import { Control, Path, FieldValues, FieldPath, FieldPathValue, RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { TagEditorProps } from '@cloudscape-design/components';
|
|
3
3
|
export interface CTagEditorProps<T extends FieldValues> extends Omit<TagEditorProps, 'tags'> {
|
|
4
4
|
name: Path<T>;
|
|
5
5
|
control?: Control<T>;
|
|
6
|
+
defaultValue?: FieldPathValue<T, FieldPath<T>>;
|
|
7
|
+
rules?: Omit<RegisterOptions<T, FieldPath<T>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
8
|
+
shouldUnregister?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const CTagEditor: <TFieldValues extends FieldValues>({ name, control, onChange, ...props }: CTagEditorProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CTagEditor: <TFieldValues extends FieldValues>({ name, control, onChange, defaultValue, rules, shouldUnregister, ...props }: CTagEditorProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CTagEditor;
|
|
@@ -4,12 +4,12 @@ import { useCallback } from 'react';
|
|
|
4
4
|
import { Controller } from 'react-hook-form';
|
|
5
5
|
import { TagEditor } from '@cloudscape-design/components';
|
|
6
6
|
const CTagEditor = (_a) => {
|
|
7
|
-
var { name, control, onChange } = _a, props = __rest(_a, ["name", "control", "onChange"]);
|
|
7
|
+
var { name, control, onChange, defaultValue, rules, shouldUnregister } = _a, props = __rest(_a, ["name", "control", "onChange", "defaultValue", "rules", "shouldUnregister"]);
|
|
8
8
|
const handleOnChange = useCallback((formOnChange, e) => {
|
|
9
9
|
formOnChange([...e.detail.tags]);
|
|
10
10
|
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
11
11
|
}, [onChange]);
|
|
12
|
-
return (_jsx(Controller, { name: name, control: control, render: ({ field: { ref, onChange, value } }) => (_jsx(TagEditor, Object.assign({ ref: ref, tags: value || [], onChange: handleOnChange.bind(null, onChange) }, props))) }));
|
|
12
|
+
return (_jsx(Controller, { name: name, control: control, defaultValue: defaultValue, rules: rules, shouldUnregister: shouldUnregister, render: ({ field: { ref, onChange, value } }) => (_jsx(TagEditor, Object.assign({ ref: ref, tags: value || [], onChange: handleOnChange.bind(null, onChange) }, props))) }));
|
|
13
13
|
};
|
|
14
14
|
export default CTagEditor;
|
|
15
15
|
//# sourceMappingURL=tag-editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-editor.js","sourceRoot":"","sources":["../../src/components/tag-editor/tag-editor.tsx"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"tag-editor.js","sourceRoot":"","sources":["../../src/components/tag-editor/tag-editor.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAAU,EAA0E,MAAM,iBAAiB,CAAC;AACrH,OAAO,EAA4B,SAAS,EAAkB,MAAM,+BAA+B,CAAC;AAUpG,MAAM,UAAU,GAAG,CAAmC,EAQtB,EAAE,EAAE;QARkB,EACpD,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,gBAAgB,OAEc,EAD3B,KAAK,cAP4C,4EAQrD,CADS;IAER,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,YAAkD,EAAE,CAAwD,EAAE,EAAE;QAC/G,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QACjC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,CAAC,CAAC,CAAC;IAChB,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,KAAC,UAAU,IACT,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAC/C,KAAC,SAAS,kBACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAG,KAA8B,IAAI,EAAE,EAC3C,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,IACzC,KAAK,EACT,CACH,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|