@dreamcommerce/aurora 2.20.10-0 → 2.20.10-2
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/build/cjs/packages/aurora/src/components/controls/components/values_syncer.js +4 -0
- package/build/cjs/packages/aurora/src/components/controls/components/values_syncer.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/components/values_syncer.js +4 -0
- package/build/esm/packages/aurora/src/components/controls/components/values_syncer.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/hoc/control_values_syncer/index.d.ts +2 -2
- package/build/esm/packages/aurora/src/components/controls/types.d.ts +1 -1
- package/build/esm/packages/aurora/src/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -47,6 +47,10 @@ var ValuesSyncer = function ValuesSyncer(_ref) {
|
|
|
47
47
|
setSecondControlValue(firstControlValue);
|
|
48
48
|
}
|
|
49
49
|
}, [locked, onLock, firstControlValue]);
|
|
50
|
+
React.useEffect(function () {
|
|
51
|
+
setFirstControlValue(initialFirstValue);
|
|
52
|
+
setSecondControlValue(initialSecondValue);
|
|
53
|
+
}, [initialSecondValue, initialFirstValue]);
|
|
50
54
|
React.useEffect(function () {
|
|
51
55
|
onChange === null || onChange === void 0 || onChange({
|
|
52
56
|
first: firstControlValue,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -39,6 +39,10 @@ var ValuesSyncer = function ValuesSyncer(_ref) {
|
|
|
39
39
|
setSecondControlValue(firstControlValue);
|
|
40
40
|
}
|
|
41
41
|
}, [locked, onLock, firstControlValue]);
|
|
42
|
+
useEffect(function () {
|
|
43
|
+
setFirstControlValue(initialFirstValue);
|
|
44
|
+
setSecondControlValue(initialSecondValue);
|
|
45
|
+
}, [initialSecondValue, initialFirstValue]);
|
|
42
46
|
useEffect(function () {
|
|
43
47
|
onChange === null || onChange === void 0 || onChange({
|
|
44
48
|
first: firstControlValue,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/esm/packages/aurora/src/components/controls/hoc/control_values_syncer/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IControlValuesSyncerProps } from '../../types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const ControlValuesSyncer: React.FC<
|
|
3
|
+
declare const ControlValuesSyncer: React.FC<IControlValuesSyncerProps>;
|
|
4
4
|
export default ControlValuesSyncer;
|
|
@@ -108,7 +108,7 @@ export interface IControlInputProps extends IInputProps, IControlCommonProps {
|
|
|
108
108
|
isRequired?: boolean;
|
|
109
109
|
labelAdditionalInfo?: string | ReactNode;
|
|
110
110
|
}
|
|
111
|
-
export interface
|
|
111
|
+
export interface IControlValuesSyncerProps extends IControlCommonProps, TValuesSyncerProps {
|
|
112
112
|
id?: string;
|
|
113
113
|
name?: string;
|
|
114
114
|
label?: string;
|
|
@@ -6,6 +6,8 @@ import { ICellProps, IIRowProps, ITableProps } from "./components/table/types";
|
|
|
6
6
|
import { IDropdownProps, ISelectOption } from "./components/dropdown/types";
|
|
7
7
|
import { TFlashMessage, TFlashMessageExtended } from "./components/flash_messenger/types";
|
|
8
8
|
import { TImagePickerFile, TImageSize } from "./components/image_picker/types";
|
|
9
|
+
import { TValuesSyncerProps } from "./components/controls/components/values_syncer";
|
|
10
|
+
import { IControlValuesSyncerProps } from "./components/controls/types";
|
|
9
11
|
import AbsoluteModal from "./components/modal/hoc/absolute_modal";
|
|
10
12
|
/**
|
|
11
13
|
* import components for export
|
|
@@ -131,4 +133,4 @@ export { Accordion, Button, Tooltip, ButtonsGroup, Dropdown, Select, MultiSelect
|
|
|
131
133
|
/**
|
|
132
134
|
* export types
|
|
133
135
|
*/
|
|
134
|
-
export type { IDropdownProps, ISelectOption, IHeadingProps, ICellProps, IIRowProps, ITableProps, IDropdownContext, IControlRadioGroupOption, IColor, IColorPickerColor, IDatepickerRange, TFilePickerFile, TImagePickerFile, TMessageBoxType, ILoaderProps, IWithLoader, TFlashMessage, TFlashMessageExtended, TImageSize, IImageEditorProps, TUploadedImageData };
|
|
136
|
+
export type { IDropdownProps, ISelectOption, IHeadingProps, ICellProps, IIRowProps, ITableProps, IDropdownContext, IControlRadioGroupOption, IColor, IColorPickerColor, IDatepickerRange, TFilePickerFile, TImagePickerFile, TMessageBoxType, ILoaderProps, IWithLoader, TFlashMessage, TFlashMessageExtended, TImageSize, IImageEditorProps, TUploadedImageData, TValuesSyncerProps, IControlValuesSyncerProps };
|