@dreamcommerce/aurora 3.0.0-270 → 3.0.0-272
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/select/components/select_original_values_guard.js +1 -0
- package/build/cjs/packages/aurora/src/components/select/components/select_original_values_guard.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/select/select_utils.js +8 -1
- package/build/cjs/packages/aurora/src/components/select/select_utils.js.map +1 -1
- package/build/esm/packages/aurora/src/components/select/components/select_original_values_guard.js +1 -0
- package/build/esm/packages/aurora/src/components/select/components/select_original_values_guard.js.map +1 -1
- package/build/esm/packages/aurora/src/components/select/select_utils.js +9 -2
- package/build/esm/packages/aurora/src/components/select/select_utils.js.map +1 -1
- package/package.json +1 -1
package/build/cjs/packages/aurora/src/components/select/components/select_original_values_guard.js
CHANGED
|
@@ -22,6 +22,7 @@ var SelectOriginalValuesGuard = function SelectOriginalValuesGuard(_ref) {
|
|
|
22
22
|
});
|
|
23
23
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, missingOptions.map(function (option) {
|
|
24
24
|
return /*#__PURE__*/React__default['default'].createElement(SelectPrimitive.Item, {
|
|
25
|
+
className: "aurora-hidden",
|
|
25
26
|
key: option.originalValue,
|
|
26
27
|
value: option.originalValue
|
|
27
28
|
}, /*#__PURE__*/React__default['default'].createElement(SelectPrimitive.ItemText, null, option.text));
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -29,10 +29,17 @@ _rollupPluginBabelHelpers.defineProperty(SelectUtils, "localSearchIsHeaderVisibl
|
|
|
29
29
|
return visible;
|
|
30
30
|
});
|
|
31
31
|
_rollupPluginBabelHelpers.defineProperty(SelectUtils, "findValueInOptions", function (value, options) {
|
|
32
|
+
var _option;
|
|
32
33
|
if (!value) return undefined;
|
|
33
|
-
|
|
34
|
+
var option = options.find(function (opt) {
|
|
34
35
|
return opt.value === value || opt.originalValue === value;
|
|
35
36
|
});
|
|
37
|
+
if ((_option = option) !== null && _option !== void 0 && _option.originalValue) {
|
|
38
|
+
option = _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, option), {}, {
|
|
39
|
+
value: option.originalValue
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return option;
|
|
36
43
|
});
|
|
37
44
|
|
|
38
45
|
exports.SelectUtils = SelectUtils;
|
|
@@ -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;"}
|
|
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;"}
|
package/build/esm/packages/aurora/src/components/select/components/select_original_values_guard.js
CHANGED
|
@@ -14,6 +14,7 @@ var SelectOriginalValuesGuard = function SelectOriginalValuesGuard(_ref) {
|
|
|
14
14
|
});
|
|
15
15
|
return /*#__PURE__*/React.createElement(React.Fragment, null, missingOptions.map(function (option) {
|
|
16
16
|
return /*#__PURE__*/React.createElement(Item, {
|
|
17
|
+
className: "aurora-hidden",
|
|
17
18
|
key: option.originalValue,
|
|
18
19
|
value: option.originalValue
|
|
19
20
|
}, /*#__PURE__*/React.createElement(ItemText, null, option.text));
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createClass as _createClass, classCallCheck as _classCallCheck, defineProperty as _defineProperty } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { createClass as _createClass, classCallCheck as _classCallCheck, defineProperty as _defineProperty, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
|
|
3
3
|
var _SelectUtils;
|
|
4
4
|
var SelectUtils = /*#__PURE__*/_createClass(function SelectUtils() {
|
|
@@ -25,10 +25,17 @@ _defineProperty(SelectUtils, "localSearchIsHeaderVisible", function (search, opt
|
|
|
25
25
|
return visible;
|
|
26
26
|
});
|
|
27
27
|
_defineProperty(SelectUtils, "findValueInOptions", function (value, options) {
|
|
28
|
+
var _option;
|
|
28
29
|
if (!value) return undefined;
|
|
29
|
-
|
|
30
|
+
var option = options.find(function (opt) {
|
|
30
31
|
return opt.value === value || opt.originalValue === value;
|
|
31
32
|
});
|
|
33
|
+
if ((_option = option) !== null && _option !== void 0 && _option.originalValue) {
|
|
34
|
+
option = _objectSpread2(_objectSpread2({}, option), {}, {
|
|
35
|
+
value: option.originalValue
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return option;
|
|
32
39
|
});
|
|
33
40
|
|
|
34
41
|
export { SelectUtils };
|
|
@@ -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;"}
|
|
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;"}
|