@inseefr/lunatic 0.4.25-v2 → 0.4.27-v2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/button/lunatic-button.js +5 -1
- package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +1 -1
- package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +2 -1
- package/lib/components/checkbox/commons/checkbox-option.js +4 -1
- package/lib/components/commons/components/combo-box/combo-box.js +2 -2
- package/lib/components/commons/components/fieldset.scss +2 -0
- package/lib/components/datepicker/datepicker.js +4 -1
- package/lib/components/datepicker/lunatic-datepicker.js +1 -1
- package/lib/components/declarations/declarations.js +5 -1
- package/lib/components/dropdown/lunatic-dropdown.js +1 -1
- package/lib/components/filter-description/component.js +4 -1
- package/lib/components/input-number/lunatic-input-number.js +1 -1
- package/lib/components/loop/block-for-loop/block-for-loop.js +2 -1
- package/lib/components/loop/roster-for-loop/roster-for-loop.js +2 -1
- package/lib/components/radio/lunatic-radio-group.js +1 -1
- package/lib/components/sequence/sequence.js +4 -1
- package/lib/components/subsequence/subsequence.js +4 -1
- package/package.json +1 -1
|
@@ -17,6 +17,8 @@ var _isElement = require("../../utils/is-element");
|
|
|
17
17
|
|
|
18
18
|
require("./button.scss");
|
|
19
19
|
|
|
20
|
+
var _commons = require("../commons");
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
23
|
|
|
22
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -58,5 +60,7 @@ Button.propTypes = {
|
|
|
58
60
|
disabled: _propTypes["default"].bool,
|
|
59
61
|
onClick: _propTypes["default"].func.isRequired
|
|
60
62
|
};
|
|
61
|
-
|
|
63
|
+
|
|
64
|
+
var _default = (0, _commons.createCustomizableLunaticField)(Button);
|
|
65
|
+
|
|
62
66
|
exports["default"] = _default;
|
|
@@ -33,7 +33,7 @@ function LunaticCheckboxGroup(_ref) {
|
|
|
33
33
|
}));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
var _default = (0, _commons.createLunaticComponent)(LunaticCheckboxGroup, {
|
|
36
|
+
var _default = (0, _commons.createLunaticComponent)((0, _commons.createCustomizableLunaticField)(LunaticCheckboxGroup), {
|
|
37
37
|
fieldset: true,
|
|
38
38
|
inputId: 'lunatic-checkbox-group'
|
|
39
39
|
});
|
|
@@ -15,6 +15,8 @@ var _icons = require("../../commons/icons");
|
|
|
15
15
|
|
|
16
16
|
require("./checkbox-option.scss");
|
|
17
17
|
|
|
18
|
+
var _commons = require("../../commons");
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -61,5 +63,6 @@ function CheckboxOption(_ref) {
|
|
|
61
63
|
}, label)));
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
var _default = CheckboxOption;
|
|
66
|
+
var _default = (0, _commons.createCustomizableLunaticField)(CheckboxOption);
|
|
67
|
+
|
|
65
68
|
exports["default"] = _default;
|
|
@@ -99,8 +99,8 @@ function ComboBox(_ref) {
|
|
|
99
99
|
value: value,
|
|
100
100
|
selectedIndex: selectedIndex,
|
|
101
101
|
getOptionValue: getOptionValue
|
|
102
|
-
}));
|
|
103
|
-
}, []);
|
|
102
|
+
}));
|
|
103
|
+
}, [options, value, selectedIndex, getOptionValue]);
|
|
104
104
|
var onFocus = (0, _react.useCallback)(function () {
|
|
105
105
|
dispatch(_stateManagement.actions.onFocus());
|
|
106
106
|
}, []);
|
|
@@ -13,6 +13,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
require("./datepicker.scss");
|
|
15
15
|
|
|
16
|
+
var _commons = require("../commons");
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
19
|
|
|
18
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -49,5 +51,6 @@ function Datepicker(_ref) {
|
|
|
49
51
|
});
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
var _default = Datepicker;
|
|
54
|
+
var _default = (0, _commons.createCustomizableLunaticField)(Datepicker);
|
|
55
|
+
|
|
53
56
|
exports["default"] = _default;
|
|
@@ -30,7 +30,7 @@ var LunaticDatepicker = function LunaticDatepicker(_ref) {
|
|
|
30
30
|
}));
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
var _default = (0, _commons.createLunaticComponent)(LunaticDatepicker, {
|
|
33
|
+
var _default = (0, _commons.createLunaticComponent)((0, _commons.createCustomizableLunaticField)(LunaticDatepicker), {
|
|
34
34
|
inputId: 'lunatic-datepicker'
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -11,6 +11,8 @@ require("./declarations.scss");
|
|
|
11
11
|
|
|
12
12
|
var _declaration = _interopRequireDefault(require("./declaration"));
|
|
13
13
|
|
|
14
|
+
var _commons = require("../commons");
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
16
18
|
var DECLARATION_POSITIONS = {
|
|
@@ -53,5 +55,7 @@ Declarations.defaultProps = {
|
|
|
53
55
|
bindings: {}
|
|
54
56
|
};
|
|
55
57
|
Declarations.propTypes = {};
|
|
56
|
-
|
|
58
|
+
|
|
59
|
+
var _default = (0, _commons.createCustomizableLunaticField)(Declarations);
|
|
60
|
+
|
|
57
61
|
exports["default"] = _default;
|
|
@@ -56,6 +56,6 @@ LunaticDropdown.defaultProps = {
|
|
|
56
56
|
value: null
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
var _default = (0, _commons.createLunaticComponent)(LunaticDropdown);
|
|
59
|
+
var _default = (0, _commons.createLunaticComponent)((0, _commons.createCustomizableLunaticField)(LunaticDropdown));
|
|
60
60
|
|
|
61
61
|
exports["default"] = _default;
|
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _commons = require("../commons");
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
13
|
|
|
12
14
|
var FilterDescription = function FilterDescription(_ref) {
|
|
@@ -19,5 +21,6 @@ var FilterDescription = function FilterDescription(_ref) {
|
|
|
19
21
|
}, label);
|
|
20
22
|
};
|
|
21
23
|
|
|
22
|
-
var _default = FilterDescription;
|
|
24
|
+
var _default = (0, _commons.createCustomizableLunaticField)(FilterDescription);
|
|
25
|
+
|
|
23
26
|
exports["default"] = _default;
|
|
@@ -28,7 +28,7 @@ var LunaticInputNumber = function LunaticInputNumber(_ref) {
|
|
|
28
28
|
}));
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
var _default = (0, _commons.createLunaticComponent)(LunaticInputNumber, {
|
|
31
|
+
var _default = (0, _commons.createLunaticComponent)((0, _commons.createCustomizableLunaticField)(LunaticInputNumber), {
|
|
32
32
|
inputId: 'lunatic-input-number'
|
|
33
33
|
});
|
|
34
34
|
|
|
@@ -166,7 +166,7 @@ function BlockForLoop(_ref) {
|
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
var _default = BlockForLoop; // handleChange={handleChange}
|
|
169
|
+
var _default = (0, _commons.createCustomizableLunaticField)(BlockForLoop); // handleChange={handleChange}
|
|
170
170
|
// preferences={preferences}
|
|
171
171
|
// savingType={savingType}
|
|
172
172
|
// management={management}
|
|
@@ -175,4 +175,5 @@ var _default = BlockForLoop; // handleChange={handleChange}
|
|
|
175
175
|
// missing={missing}
|
|
176
176
|
// shortcut={shortcut}
|
|
177
177
|
|
|
178
|
+
|
|
178
179
|
exports["default"] = _default;
|
|
@@ -35,7 +35,7 @@ function LunaticRadioGroup(props) {
|
|
|
35
35
|
}));
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
var _default = (0, _commons.createLunaticComponent)(LunaticRadioGroup, {
|
|
38
|
+
var _default = (0, _commons.createLunaticComponent)((0, _commons.createCustomizableLunaticField)(LunaticRadioGroup), {
|
|
39
39
|
// set it to true if you want to display a fieldset + legend on a component
|
|
40
40
|
fieldset: true,
|
|
41
41
|
inputId: 'lunatic-radio-group'
|
|
@@ -11,6 +11,8 @@ var _declarations = require("../declarations");
|
|
|
11
11
|
|
|
12
12
|
require("./sequence.scss");
|
|
13
13
|
|
|
14
|
+
var _commons = require("../commons");
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
16
18
|
function Sequence(_ref) {
|
|
@@ -34,5 +36,6 @@ function Sequence(_ref) {
|
|
|
34
36
|
}));
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
var _default = Sequence;
|
|
39
|
+
var _default = (0, _commons.createCustomizableLunaticField)(Sequence);
|
|
40
|
+
|
|
38
41
|
exports["default"] = _default;
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _declarations = require("../declarations");
|
|
11
11
|
|
|
12
|
+
var _commons = require("../commons");
|
|
13
|
+
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
15
|
|
|
14
16
|
function Subsequence(_ref) {
|
|
@@ -31,5 +33,6 @@ function Subsequence(_ref) {
|
|
|
31
33
|
}));
|
|
32
34
|
}
|
|
33
35
|
|
|
34
|
-
var _default = Subsequence;
|
|
36
|
+
var _default = (0, _commons.createCustomizableLunaticField)(Subsequence);
|
|
37
|
+
|
|
35
38
|
exports["default"] = _default;
|