@comet/admin-react-select 2.0.1-canary.0 → 2.0.1-canary.104.32
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/FinalFormReactSelect.js +150 -105
- package/lib/FinalFormReactSelectStaticOptions.js +118 -93
- package/lib/ReactSelect.js +235 -139
- package/lib/ReactSelect.styles.js +75 -67
- package/lib/index.js +84 -16
- package/package.json +13 -6
- package/lib/FinalFormReactSelect.js.map +0 -1
- package/lib/FinalFormReactSelectStaticOptions.js.map +0 -1
- package/lib/ReactSelect.js.map +0 -1
- package/lib/ReactSelect.styles.js.map +0 -1
- package/lib/index.js.map +0 -1
|
@@ -1,115 +1,160 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __assign = (this && this.__assign) || function () {
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
-
if (k2 === undefined) k2 = k;
|
|
30
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
31
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
32
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
33
|
-
}
|
|
34
|
-
Object.defineProperty(o, k2, desc);
|
|
35
|
-
}) : (function(o, m, k, k2) {
|
|
36
|
-
if (k2 === undefined) k2 = k;
|
|
37
|
-
o[k2] = m[k];
|
|
38
|
-
}));
|
|
39
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
40
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
41
|
-
}) : function(o, v) {
|
|
42
|
-
o["default"] = v;
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
43
7
|
});
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
8
|
+
exports.FinalFormReactSelectCreatable = exports.FinalFormReactSelectAsyncCreatable = exports.FinalFormReactSelectAsync = exports.FinalFormReactSelect = void 0;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _ReactSelect = require("./ReactSelect");
|
|
13
|
+
|
|
14
|
+
var _excluded = ["input", "meta"],
|
|
15
|
+
_excluded2 = ["input", "meta"],
|
|
16
|
+
_excluded3 = ["input", "meta"],
|
|
17
|
+
_excluded4 = ["input", "meta"];
|
|
18
|
+
|
|
19
|
+
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); }
|
|
20
|
+
|
|
21
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
|
+
|
|
23
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
24
|
+
|
|
25
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
26
|
+
|
|
27
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
28
|
+
|
|
29
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
30
|
+
|
|
31
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
32
|
+
|
|
33
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
34
|
+
|
|
35
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
36
|
+
|
|
37
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
38
|
+
|
|
39
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
40
|
+
|
|
41
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
42
|
+
|
|
43
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
44
|
+
|
|
45
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
46
|
+
|
|
47
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
48
|
+
|
|
66
49
|
// tslint:disable:max-classes-per-file
|
|
67
|
-
var FinalFormReactSelect =
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
50
|
+
var FinalFormReactSelect = /*#__PURE__*/function (_React$Component) {
|
|
51
|
+
_inherits(FinalFormReactSelect, _React$Component);
|
|
52
|
+
|
|
53
|
+
var _super = _createSuper(FinalFormReactSelect);
|
|
54
|
+
|
|
55
|
+
function FinalFormReactSelect() {
|
|
56
|
+
_classCallCheck(this, FinalFormReactSelect);
|
|
57
|
+
|
|
58
|
+
return _super.apply(this, arguments);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
_createClass(FinalFormReactSelect, [{
|
|
62
|
+
key: "render",
|
|
63
|
+
value: function render() {
|
|
64
|
+
var _this$props = this.props,
|
|
65
|
+
input = _this$props.input,
|
|
66
|
+
meta = _this$props.meta,
|
|
67
|
+
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
68
|
+
|
|
69
|
+
return /*#__PURE__*/React.createElement(_ReactSelect.ReactSelect, _extends({}, input, rest));
|
|
71
70
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}(React.Component));
|
|
71
|
+
}]);
|
|
72
|
+
|
|
73
|
+
return FinalFormReactSelect;
|
|
74
|
+
}(React.Component);
|
|
75
|
+
|
|
78
76
|
exports.FinalFormReactSelect = FinalFormReactSelect;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
|
|
78
|
+
var FinalFormReactSelectAsync = /*#__PURE__*/function (_React$Component2) {
|
|
79
|
+
_inherits(FinalFormReactSelectAsync, _React$Component2);
|
|
80
|
+
|
|
81
|
+
var _super2 = _createSuper(FinalFormReactSelectAsync);
|
|
82
|
+
|
|
83
|
+
function FinalFormReactSelectAsync() {
|
|
84
|
+
_classCallCheck(this, FinalFormReactSelectAsync);
|
|
85
|
+
|
|
86
|
+
return _super2.apply(this, arguments);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
_createClass(FinalFormReactSelectAsync, [{
|
|
90
|
+
key: "render",
|
|
91
|
+
value: function render() {
|
|
92
|
+
var _this$props2 = this.props,
|
|
93
|
+
input = _this$props2.input,
|
|
94
|
+
meta = _this$props2.meta,
|
|
95
|
+
rest = _objectWithoutProperties(_this$props2, _excluded2);
|
|
96
|
+
|
|
97
|
+
return /*#__PURE__*/React.createElement(_ReactSelect.ReactSelectAsync, _extends({}, input, rest));
|
|
83
98
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}(React.Component));
|
|
99
|
+
}]);
|
|
100
|
+
|
|
101
|
+
return FinalFormReactSelectAsync;
|
|
102
|
+
}(React.Component);
|
|
103
|
+
|
|
90
104
|
exports.FinalFormReactSelectAsync = FinalFormReactSelectAsync;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
105
|
+
|
|
106
|
+
var FinalFormReactSelectCreatable = /*#__PURE__*/function (_React$Component3) {
|
|
107
|
+
_inherits(FinalFormReactSelectCreatable, _React$Component3);
|
|
108
|
+
|
|
109
|
+
var _super3 = _createSuper(FinalFormReactSelectCreatable);
|
|
110
|
+
|
|
111
|
+
function FinalFormReactSelectCreatable() {
|
|
112
|
+
_classCallCheck(this, FinalFormReactSelectCreatable);
|
|
113
|
+
|
|
114
|
+
return _super3.apply(this, arguments);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
_createClass(FinalFormReactSelectCreatable, [{
|
|
118
|
+
key: "render",
|
|
119
|
+
value: function render() {
|
|
120
|
+
var _this$props3 = this.props,
|
|
121
|
+
input = _this$props3.input,
|
|
122
|
+
meta = _this$props3.meta,
|
|
123
|
+
rest = _objectWithoutProperties(_this$props3, _excluded3);
|
|
124
|
+
|
|
125
|
+
return /*#__PURE__*/React.createElement(_ReactSelect.ReactSelectCreatable, _extends({}, input, rest));
|
|
95
126
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}(React.Component));
|
|
127
|
+
}]);
|
|
128
|
+
|
|
129
|
+
return FinalFormReactSelectCreatable;
|
|
130
|
+
}(React.Component);
|
|
131
|
+
|
|
102
132
|
exports.FinalFormReactSelectCreatable = FinalFormReactSelectCreatable;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
133
|
+
|
|
134
|
+
var FinalFormReactSelectAsyncCreatable = /*#__PURE__*/function (_React$Component4) {
|
|
135
|
+
_inherits(FinalFormReactSelectAsyncCreatable, _React$Component4);
|
|
136
|
+
|
|
137
|
+
var _super4 = _createSuper(FinalFormReactSelectAsyncCreatable);
|
|
138
|
+
|
|
139
|
+
function FinalFormReactSelectAsyncCreatable() {
|
|
140
|
+
_classCallCheck(this, FinalFormReactSelectAsyncCreatable);
|
|
141
|
+
|
|
142
|
+
return _super4.apply(this, arguments);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
_createClass(FinalFormReactSelectAsyncCreatable, [{
|
|
146
|
+
key: "render",
|
|
147
|
+
value: function render() {
|
|
148
|
+
var _this$props4 = this.props,
|
|
149
|
+
input = _this$props4.input,
|
|
150
|
+
meta = _this$props4.meta,
|
|
151
|
+
rest = _objectWithoutProperties(_this$props4, _excluded4);
|
|
152
|
+
|
|
153
|
+
return /*#__PURE__*/React.createElement(_ReactSelect.ReactSelectAsyncCreatable, _extends({}, input, rest));
|
|
107
154
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
exports.FinalFormReactSelectAsyncCreatable = FinalFormReactSelectAsyncCreatable;
|
|
115
|
-
//# sourceMappingURL=FinalFormReactSelect.js.map
|
|
155
|
+
}]);
|
|
156
|
+
|
|
157
|
+
return FinalFormReactSelectAsyncCreatable;
|
|
158
|
+
}(React.Component);
|
|
159
|
+
|
|
160
|
+
exports.FinalFormReactSelectAsyncCreatable = FinalFormReactSelectAsyncCreatable;
|
|
@@ -1,97 +1,122 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __assign = (this && this.__assign) || function () {
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
-
if (k2 === undefined) k2 = k;
|
|
30
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
31
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
32
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
33
|
-
}
|
|
34
|
-
Object.defineProperty(o, k2, desc);
|
|
35
|
-
}) : (function(o, m, k, k2) {
|
|
36
|
-
if (k2 === undefined) k2 = k;
|
|
37
|
-
o[k2] = m[k];
|
|
38
|
-
}));
|
|
39
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
40
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
41
|
-
}) : function(o, v) {
|
|
42
|
-
o["default"] = v;
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
43
7
|
});
|
|
44
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
45
|
-
if (mod && mod.__esModule) return mod;
|
|
46
|
-
var result = {};
|
|
47
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
48
|
-
__setModuleDefault(result, mod);
|
|
49
|
-
return result;
|
|
50
|
-
};
|
|
51
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
52
|
-
var t = {};
|
|
53
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
54
|
-
t[p] = s[p];
|
|
55
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
56
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
57
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
58
|
-
t[p[i]] = s[p[i]];
|
|
59
|
-
}
|
|
60
|
-
return t;
|
|
61
|
-
};
|
|
62
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
8
|
exports.FinalFormReactSelectStaticOptions = void 0;
|
|
64
|
-
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _FinalFormReactSelect = require("./FinalFormReactSelect");
|
|
13
|
+
|
|
14
|
+
var _excluded = ["input", "meta"];
|
|
15
|
+
|
|
16
|
+
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); }
|
|
17
|
+
|
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
|
|
20
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
|
+
|
|
22
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23
|
+
|
|
24
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25
|
+
|
|
26
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
|
+
|
|
28
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
29
|
+
|
|
30
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
31
|
+
|
|
32
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
33
|
+
|
|
34
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
35
|
+
|
|
36
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
37
|
+
|
|
38
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
39
|
+
|
|
40
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
41
|
+
|
|
42
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
43
|
+
|
|
44
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45
|
+
|
|
46
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
|
+
|
|
48
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
+
|
|
50
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
51
|
+
|
|
52
|
+
var FinalFormReactSelectStaticOptions = /*#__PURE__*/function (_React$Component) {
|
|
53
|
+
_inherits(FinalFormReactSelectStaticOptions, _React$Component);
|
|
54
|
+
|
|
55
|
+
var _super = _createSuper(FinalFormReactSelectStaticOptions);
|
|
56
|
+
|
|
57
|
+
function FinalFormReactSelectStaticOptions() {
|
|
58
|
+
var _this;
|
|
59
|
+
|
|
60
|
+
_classCallCheck(this, FinalFormReactSelectStaticOptions);
|
|
61
|
+
|
|
62
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
63
|
+
args[_key] = arguments[_key];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
67
|
+
|
|
68
|
+
_defineProperty(_assertThisInitialized(_this), "getOptionLabel", function (_ref) {
|
|
69
|
+
var label = _ref.label;
|
|
70
|
+
return label;
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
_defineProperty(_assertThisInitialized(_this), "getOptionValue", function (_ref2) {
|
|
74
|
+
var value = _ref2.value;
|
|
75
|
+
return value;
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
_defineProperty(_assertThisInitialized(_this), "onChange", function (v) {
|
|
79
|
+
return _this.props.input.onChange(v ? v.value : null);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
return _this;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
_createClass(FinalFormReactSelectStaticOptions, [{
|
|
86
|
+
key: "render",
|
|
87
|
+
value: function render() {
|
|
88
|
+
var _this2 = this;
|
|
89
|
+
|
|
90
|
+
var _this$props = this.props,
|
|
91
|
+
input = _this$props.input,
|
|
92
|
+
meta = _this$props.meta,
|
|
93
|
+
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
94
|
+
|
|
95
|
+
var optionValue = this.props.options.find(function (_ref3) {
|
|
96
|
+
var value = _ref3.value;
|
|
97
|
+
return value === _this2.props.input.value;
|
|
98
|
+
}) || null;
|
|
99
|
+
|
|
100
|
+
var selectInput = _objectSpread(_objectSpread({}, input), {}, {
|
|
101
|
+
value: optionValue
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
return /*#__PURE__*/React.createElement(_FinalFormReactSelect.FinalFormReactSelect, _extends({}, rest, {
|
|
105
|
+
input: selectInput,
|
|
106
|
+
meta: _objectSpread(_objectSpread({}, meta), {}, {
|
|
107
|
+
initial: this.props.options.find(function (_ref4) {
|
|
108
|
+
var value = _ref4.value;
|
|
109
|
+
return value === meta.initial;
|
|
110
|
+
})
|
|
111
|
+
}),
|
|
112
|
+
getOptionLabel: this.getOptionLabel,
|
|
113
|
+
getOptionValue: this.getOptionValue,
|
|
114
|
+
onChange: this.onChange
|
|
115
|
+
}));
|
|
80
116
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}) || null;
|
|
88
|
-
var selectInput = __assign(__assign({}, input), { value: optionValue });
|
|
89
|
-
return (React.createElement(FinalFormReactSelect_1.FinalFormReactSelect, __assign({}, rest, { input: selectInput, meta: __assign(__assign({}, meta), { initial: this.props.options.find(function (_a) {
|
|
90
|
-
var value = _a.value;
|
|
91
|
-
return value === meta.initial;
|
|
92
|
-
}) }), getOptionLabel: this.getOptionLabel, getOptionValue: this.getOptionValue, onChange: this.onChange })));
|
|
93
|
-
};
|
|
94
|
-
return FinalFormReactSelectStaticOptions;
|
|
95
|
-
}(React.Component));
|
|
96
|
-
exports.FinalFormReactSelectStaticOptions = FinalFormReactSelectStaticOptions;
|
|
97
|
-
//# sourceMappingURL=FinalFormReactSelectStaticOptions.js.map
|
|
117
|
+
}]);
|
|
118
|
+
|
|
119
|
+
return FinalFormReactSelectStaticOptions;
|
|
120
|
+
}(React.Component);
|
|
121
|
+
|
|
122
|
+
exports.FinalFormReactSelectStaticOptions = FinalFormReactSelectStaticOptions;
|
package/lib/ReactSelect.js
CHANGED
|
@@ -1,174 +1,270 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
28
7
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
var
|
|
58
|
-
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
|
|
8
|
+
exports.ControlInput = void 0;
|
|
9
|
+
exports.ReactSelect = ReactSelect;
|
|
10
|
+
exports.ReactSelectAsync = ReactSelectAsync;
|
|
11
|
+
exports.ReactSelectAsyncCreatable = ReactSelectAsyncCreatable;
|
|
12
|
+
exports.ReactSelectCreatable = ReactSelectCreatable;
|
|
13
|
+
|
|
14
|
+
var _Cancel = _interopRequireDefault(require("@mui/icons-material/Cancel"));
|
|
15
|
+
|
|
16
|
+
var _Clear = _interopRequireDefault(require("@mui/icons-material/Clear"));
|
|
17
|
+
|
|
18
|
+
var _KeyboardArrowDown = _interopRequireDefault(require("@mui/icons-material/KeyboardArrowDown"));
|
|
19
|
+
|
|
20
|
+
var _material = require("@mui/material");
|
|
21
|
+
|
|
22
|
+
var _styles = require("@mui/styles");
|
|
23
|
+
|
|
24
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
25
|
+
|
|
26
|
+
var React = _interopRequireWildcard(require("react"));
|
|
27
|
+
|
|
28
|
+
var _reactSelect = _interopRequireDefault(require("react-select"));
|
|
29
|
+
|
|
30
|
+
var _async = _interopRequireDefault(require("react-select/async"));
|
|
31
|
+
|
|
32
|
+
var _asyncCreatable = _interopRequireDefault(require("react-select/async-creatable"));
|
|
33
|
+
|
|
34
|
+
var _creatable = _interopRequireDefault(require("react-select/creatable"));
|
|
35
|
+
|
|
36
|
+
var _ReactSelect = _interopRequireDefault(require("./ReactSelect.styles"));
|
|
37
|
+
|
|
38
|
+
var _excluded = ["inputRef"],
|
|
39
|
+
_excluded2 = ["classes", "theme", "components", "selectComponent"];
|
|
40
|
+
|
|
41
|
+
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); }
|
|
42
|
+
|
|
43
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
44
|
+
|
|
45
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
46
|
+
|
|
47
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
48
|
+
|
|
49
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
50
|
+
|
|
51
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
52
|
+
|
|
53
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
54
|
+
|
|
55
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
56
|
+
|
|
57
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
58
|
+
|
|
64
59
|
function NoOptionsMessage(props) {
|
|
65
|
-
|
|
60
|
+
return /*#__PURE__*/React.createElement(_material.Typography, _extends({
|
|
61
|
+
className: props.selectProps.classes.noOptionsMessage
|
|
62
|
+
}, props.innerProps), props.children);
|
|
66
63
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
|
|
65
|
+
function inputComponent(_ref) {
|
|
66
|
+
var inputRef = _ref.inputRef,
|
|
67
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
68
|
+
|
|
69
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
70
|
+
ref: inputRef
|
|
71
|
+
}, props));
|
|
70
72
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
|
|
74
|
+
var ControlInput = function ControlInput(_ref2) {
|
|
75
|
+
var props = _extends({}, _ref2);
|
|
76
|
+
|
|
77
|
+
return /*#__PURE__*/React.createElement(_material.InputBase, _extends({
|
|
78
|
+
classes: {
|
|
79
|
+
root: "root",
|
|
80
|
+
focused: "focused"
|
|
81
|
+
}
|
|
82
|
+
}, props));
|
|
74
83
|
};
|
|
84
|
+
|
|
75
85
|
exports.ControlInput = ControlInput;
|
|
86
|
+
|
|
76
87
|
function Control(props) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
88
|
+
var InputProps = {
|
|
89
|
+
inputComponent: inputComponent,
|
|
90
|
+
inputProps: _objectSpread({
|
|
91
|
+
className: props.selectProps.classes.input,
|
|
92
|
+
inputRef: props.innerRef,
|
|
93
|
+
children: props.children
|
|
94
|
+
}, props.innerProps)
|
|
95
|
+
};
|
|
96
|
+
return /*#__PURE__*/React.createElement(ControlInput, _extends({
|
|
97
|
+
type: "text",
|
|
98
|
+
fullWidth: true
|
|
99
|
+
}, InputProps, props.selectProps.textFieldProps));
|
|
82
100
|
}
|
|
101
|
+
|
|
83
102
|
function Option(props) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
103
|
+
var rootClasses = [props.selectProps.classes.option];
|
|
104
|
+
if (props.isFocused) rootClasses.push(props.selectProps.classes.optionFocused);
|
|
105
|
+
if (props.isSelected) rootClasses.push(props.selectProps.classes.optionSelected);
|
|
106
|
+
return /*#__PURE__*/React.createElement(_material.MenuItem, _extends({
|
|
107
|
+
classes: {
|
|
108
|
+
root: rootClasses.join(" ")
|
|
109
|
+
},
|
|
110
|
+
ref: props.innerRef,
|
|
111
|
+
selected: props.isSelected,
|
|
112
|
+
disabled: props.isDisabled,
|
|
113
|
+
component: "div"
|
|
114
|
+
}, props.innerProps), props.children);
|
|
90
115
|
}
|
|
116
|
+
|
|
91
117
|
function Placeholder(props) {
|
|
92
|
-
|
|
118
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
119
|
+
className: props.selectProps.classes.placeholder
|
|
120
|
+
}, props.innerProps), props.children);
|
|
93
121
|
}
|
|
122
|
+
|
|
94
123
|
function SingleValue(props) {
|
|
95
|
-
|
|
124
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
125
|
+
className: props.selectProps.classes.singleValue
|
|
126
|
+
}, props.innerProps), props.children);
|
|
96
127
|
}
|
|
128
|
+
|
|
97
129
|
function ValueContainer(props) {
|
|
98
|
-
|
|
130
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
131
|
+
className: props.selectProps.classes.valueContainer
|
|
132
|
+
}, props.children);
|
|
99
133
|
}
|
|
134
|
+
|
|
100
135
|
function MultiValue(props) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
136
|
+
return /*#__PURE__*/React.createElement(_material.Chip, {
|
|
137
|
+
tabIndex: -1,
|
|
138
|
+
label: props.children,
|
|
139
|
+
className: (0, _classnames["default"])(props.selectProps.classes.chip, _defineProperty({}, props.selectProps.classes.chipFocused, props.isFocused)),
|
|
140
|
+
onDelete: props.removeProps.onClick,
|
|
141
|
+
deleteIcon: /*#__PURE__*/React.createElement(_Cancel["default"], props.removeProps)
|
|
142
|
+
});
|
|
105
143
|
}
|
|
144
|
+
|
|
106
145
|
function Menu(props) {
|
|
107
|
-
|
|
146
|
+
return /*#__PURE__*/React.createElement(_material.Paper, _extends({
|
|
147
|
+
className: props.selectProps.classes.paper
|
|
148
|
+
}, props.innerProps), props.children);
|
|
108
149
|
}
|
|
150
|
+
|
|
109
151
|
function IndicatorsContainer(props) {
|
|
110
|
-
|
|
152
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
153
|
+
className: props.selectProps.classes.indicatorsContainer
|
|
154
|
+
}, props.children);
|
|
111
155
|
}
|
|
156
|
+
|
|
112
157
|
function IndicatorSeparator(props) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
var selectProps = _a.selectProps, clearValue = _a.clearValue;
|
|
117
|
-
var Icon = selectProps.clearIcon ? selectProps.clearIcon : Clear_1.default;
|
|
118
|
-
return (React.createElement("div", { className: "".concat(selectProps.classes.indicator, " ").concat(selectProps.classes.clearIndicator), onClick: clearValue },
|
|
119
|
-
React.createElement(Icon, { fontSize: "inherit", color: "inherit" })));
|
|
120
|
-
}
|
|
121
|
-
function DropdownIndicator(_a) {
|
|
122
|
-
var selectProps = _a.selectProps;
|
|
123
|
-
var DefaultIcon = selectProps.dropdownIcon ? selectProps.dropdownIcon : KeyboardArrowDown_1.default;
|
|
124
|
-
var OpenIcon = selectProps.dropdownIconOpen ? selectProps.dropdownIconOpen : KeyboardArrowDown_1.default;
|
|
125
|
-
var Icon = selectProps.menuIsOpen ? OpenIcon : DefaultIcon;
|
|
126
|
-
return (React.createElement("div", { className: "".concat(selectProps.classes.indicator, " ").concat(selectProps.classes.dropdownIndicator) },
|
|
127
|
-
React.createElement(Icon, { fontSize: "inherit", color: "inherit" })));
|
|
158
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
159
|
+
className: props.selectProps.classes.indicatorSeparator
|
|
160
|
+
});
|
|
128
161
|
}
|
|
162
|
+
|
|
163
|
+
function ClearIndicator(_ref3) {
|
|
164
|
+
var selectProps = _ref3.selectProps,
|
|
165
|
+
clearValue = _ref3.clearValue;
|
|
166
|
+
var Icon = selectProps.clearIcon ? selectProps.clearIcon : _Clear["default"];
|
|
167
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
168
|
+
className: "".concat(selectProps.classes.indicator, " ").concat(selectProps.classes.clearIndicator),
|
|
169
|
+
onClick: clearValue
|
|
170
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
171
|
+
fontSize: "inherit",
|
|
172
|
+
color: "inherit"
|
|
173
|
+
}));
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function DropdownIndicator(_ref4) {
|
|
177
|
+
var selectProps = _ref4.selectProps;
|
|
178
|
+
var DefaultIcon = selectProps.dropdownIcon ? selectProps.dropdownIcon : _KeyboardArrowDown["default"];
|
|
179
|
+
var OpenIcon = selectProps.dropdownIconOpen ? selectProps.dropdownIconOpen : _KeyboardArrowDown["default"];
|
|
180
|
+
var Icon = selectProps.menuIsOpen ? OpenIcon : DefaultIcon;
|
|
181
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
182
|
+
className: "".concat(selectProps.classes.indicator, " ").concat(selectProps.classes.dropdownIndicator)
|
|
183
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
184
|
+
fontSize: "inherit",
|
|
185
|
+
color: "inherit"
|
|
186
|
+
}));
|
|
187
|
+
}
|
|
188
|
+
|
|
129
189
|
var components = {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
190
|
+
Control: Control,
|
|
191
|
+
Menu: Menu,
|
|
192
|
+
MultiValue: MultiValue,
|
|
193
|
+
NoOptionsMessage: NoOptionsMessage,
|
|
194
|
+
Option: Option,
|
|
195
|
+
Placeholder: Placeholder,
|
|
196
|
+
SingleValue: SingleValue,
|
|
197
|
+
ValueContainer: ValueContainer,
|
|
198
|
+
IndicatorsContainer: IndicatorsContainer,
|
|
199
|
+
IndicatorSeparator: IndicatorSeparator,
|
|
200
|
+
ClearIndicator: ClearIndicator,
|
|
201
|
+
DropdownIndicator: DropdownIndicator
|
|
142
202
|
};
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
203
|
+
|
|
204
|
+
function SelectWrapper(_ref5) {
|
|
205
|
+
var classes = _ref5.classes,
|
|
206
|
+
theme = _ref5.theme,
|
|
207
|
+
origComponents = _ref5.components,
|
|
208
|
+
SelectComponent = _ref5.selectComponent,
|
|
209
|
+
rest = _objectWithoutProperties(_ref5, _excluded2);
|
|
210
|
+
|
|
211
|
+
return /*#__PURE__*/React.createElement(SelectComponent, _extends({
|
|
212
|
+
classes: classes,
|
|
213
|
+
menuPortalTarget: document.body,
|
|
214
|
+
components: _objectSpread(_objectSpread({}, components), origComponents),
|
|
215
|
+
placeholder: ""
|
|
216
|
+
}, rest));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
var ExtendedSelectWrapper = (0, _styles.withStyles)(_ReactSelect["default"], {
|
|
220
|
+
name: "CometAdminSelect"
|
|
221
|
+
})(SelectWrapper);
|
|
222
|
+
|
|
223
|
+
var useReactSelectStyles = function useReactSelectStyles() {
|
|
224
|
+
var _useTheme = (0, _material.useTheme)(),
|
|
225
|
+
zIndex = _useTheme.zIndex;
|
|
226
|
+
|
|
227
|
+
return {
|
|
228
|
+
menuPortal: function menuPortal(styles) {
|
|
229
|
+
return _objectSpread(_objectSpread({}, styles), {}, {
|
|
230
|
+
zIndex: zIndex.modal
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
};
|
|
153
234
|
};
|
|
235
|
+
|
|
154
236
|
function ReactSelect(props) {
|
|
155
|
-
|
|
156
|
-
|
|
237
|
+
var reactSelectStyles = useReactSelectStyles();
|
|
238
|
+
return /*#__PURE__*/React.createElement(ExtendedSelectWrapper, _extends({
|
|
239
|
+
selectComponent: _reactSelect["default"]
|
|
240
|
+
}, props, {
|
|
241
|
+
styles: _objectSpread({}, reactSelectStyles)
|
|
242
|
+
}));
|
|
157
243
|
}
|
|
158
|
-
|
|
244
|
+
|
|
159
245
|
function ReactSelectAsync(props) {
|
|
160
|
-
|
|
161
|
-
|
|
246
|
+
var reactSelectStyles = useReactSelectStyles();
|
|
247
|
+
return /*#__PURE__*/React.createElement(ExtendedSelectWrapper, _extends({
|
|
248
|
+
selectComponent: _async["default"]
|
|
249
|
+
}, props, {
|
|
250
|
+
styles: _objectSpread({}, reactSelectStyles)
|
|
251
|
+
}));
|
|
162
252
|
}
|
|
163
|
-
|
|
253
|
+
|
|
164
254
|
function ReactSelectCreatable(props) {
|
|
165
|
-
|
|
166
|
-
|
|
255
|
+
var reactSelectStyles = useReactSelectStyles();
|
|
256
|
+
return /*#__PURE__*/React.createElement(ExtendedSelectWrapper, _extends({
|
|
257
|
+
selectComponent: _creatable["default"]
|
|
258
|
+
}, props, {
|
|
259
|
+
styles: _objectSpread({}, reactSelectStyles)
|
|
260
|
+
}));
|
|
167
261
|
}
|
|
168
|
-
|
|
262
|
+
|
|
169
263
|
function ReactSelectAsyncCreatable(props) {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
264
|
+
var reactSelectStyles = useReactSelectStyles();
|
|
265
|
+
return /*#__PURE__*/React.createElement(ExtendedSelectWrapper, _extends({
|
|
266
|
+
selectComponent: _asyncCreatable["default"]
|
|
267
|
+
}, props, {
|
|
268
|
+
styles: _objectSpread({}, reactSelectStyles)
|
|
269
|
+
}));
|
|
270
|
+
}
|
|
@@ -1,69 +1,77 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _styles = require("@mui/material/styles");
|
|
9
|
+
|
|
10
|
+
var _styles2 = require("@mui/styles");
|
|
11
|
+
|
|
12
|
+
var styles = function styles(theme) {
|
|
13
|
+
return (0, _styles2.createStyles)({
|
|
14
|
+
input: {
|
|
15
|
+
display: "flex",
|
|
16
|
+
paddingRight: 0
|
|
17
|
+
},
|
|
18
|
+
valueContainer: {
|
|
19
|
+
display: "flex",
|
|
20
|
+
flexWrap: "nowrap",
|
|
21
|
+
flex: 1,
|
|
22
|
+
alignItems: "center",
|
|
23
|
+
overflow: "hidden"
|
|
24
|
+
},
|
|
25
|
+
chip: {
|
|
26
|
+
margin: "".concat(theme.spacing(0.5), " ").concat(theme.spacing(0.25))
|
|
27
|
+
},
|
|
28
|
+
chipFocused: {
|
|
29
|
+
backgroundColor: (0, _styles.emphasize)(theme.palette.mode === "light" ? theme.palette.grey[300] : theme.palette.grey[700], 0.08)
|
|
30
|
+
},
|
|
31
|
+
noOptionsMessage: {
|
|
32
|
+
padding: "".concat(theme.spacing(1), " ").concat(theme.spacing(2)),
|
|
33
|
+
color: theme.palette.text.secondary
|
|
34
|
+
},
|
|
35
|
+
singleValue: {
|
|
36
|
+
overflow: "hidden",
|
|
37
|
+
textOverflow: "ellipsis",
|
|
38
|
+
whiteSpace: "nowrap"
|
|
39
|
+
},
|
|
40
|
+
placeholder: {
|
|
41
|
+
color: theme.palette.text.disabled
|
|
42
|
+
},
|
|
43
|
+
paper: {},
|
|
44
|
+
indicatorsContainer: {
|
|
45
|
+
display: "flex"
|
|
46
|
+
},
|
|
47
|
+
indicatorSeparator: {
|
|
48
|
+
width: 1,
|
|
49
|
+
flexGrow: 1,
|
|
50
|
+
backgroundColor: theme.palette.divider
|
|
51
|
+
},
|
|
52
|
+
indicator: {
|
|
53
|
+
display: "flex",
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
justifyContent: "center",
|
|
56
|
+
color: theme.palette.grey[500],
|
|
57
|
+
width: 32,
|
|
58
|
+
cursor: "pointer"
|
|
59
|
+
},
|
|
60
|
+
clearIndicator: {
|
|
61
|
+
fontSize: 18
|
|
62
|
+
},
|
|
63
|
+
dropdownIndicator: {
|
|
64
|
+
fontSize: 20
|
|
65
|
+
},
|
|
66
|
+
option: {},
|
|
67
|
+
optionSelected: {
|
|
68
|
+
fontWeight: theme.typography.fontWeightMedium
|
|
69
|
+
},
|
|
70
|
+
optionFocused: {
|
|
71
|
+
backgroundColor: theme.palette.grey[50]
|
|
72
|
+
}
|
|
73
|
+
});
|
|
67
74
|
};
|
|
68
|
-
|
|
69
|
-
|
|
75
|
+
|
|
76
|
+
var _default = styles;
|
|
77
|
+
exports["default"] = _default;
|
package/lib/index.js
CHANGED
|
@@ -1,17 +1,85 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, "
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ControlInput", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _ReactSelect.ControlInput;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "FinalFormReactSelect", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _FinalFormReactSelect.FinalFormReactSelect;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "FinalFormReactSelectAsync", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _FinalFormReactSelect.FinalFormReactSelectAsync;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "FinalFormReactSelectAsyncCreatable", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _FinalFormReactSelect.FinalFormReactSelectAsyncCreatable;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "FinalFormReactSelectCreatable", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _FinalFormReactSelect.FinalFormReactSelectCreatable;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "FinalFormReactSelectStaticOptions", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _FinalFormReactSelectStaticOptions.FinalFormReactSelectStaticOptions;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "ReactSelect", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _ReactSelect.ReactSelect;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "ReactSelectAsync", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _ReactSelect.ReactSelectAsync;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "ReactSelectAsyncCreatable", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _ReactSelect.ReactSelectAsyncCreatable;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "ReactSelectCreatable", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _ReactSelect.ReactSelectCreatable;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "SelectClassKey", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _ReactSelect2.SelectClassKey;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "SelectProps", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _ReactSelect.SelectProps;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
var _FinalFormReactSelect = require("./FinalFormReactSelect");
|
|
80
|
+
|
|
81
|
+
var _FinalFormReactSelectStaticOptions = require("./FinalFormReactSelectStaticOptions");
|
|
82
|
+
|
|
83
|
+
var _ReactSelect = require("./ReactSelect");
|
|
84
|
+
|
|
85
|
+
var _ReactSelect2 = require("./ReactSelect.styles");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/admin-react-select",
|
|
3
|
-
"version": "2.0.1-canary.
|
|
3
|
+
"version": "2.0.1-canary.104.32+bf417036",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -15,11 +15,14 @@
|
|
|
15
15
|
"classnames": "^2.2.6"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@
|
|
19
|
-
"@comet/
|
|
18
|
+
"@babel/cli": "^7.17.6",
|
|
19
|
+
"@comet/admin": "^2.0.1-canary.104.32+bf417036",
|
|
20
|
+
"@comet/admin-babel-preset": "^2.0.1-canary.104.32+bf417036",
|
|
21
|
+
"@comet/eslint-config": "^2.0.1-canary.104.32+bf417036",
|
|
20
22
|
"@types/react-select": "^3.1.2",
|
|
21
23
|
"eslint": "^8.0.0",
|
|
22
24
|
"prettier": "^2.0.0",
|
|
25
|
+
"rimraf": "^3.0.2",
|
|
23
26
|
"typescript": "^4.0.0",
|
|
24
27
|
"yarn-run-all": "^3.0.0"
|
|
25
28
|
},
|
|
@@ -35,8 +38,12 @@
|
|
|
35
38
|
"react-select": "^3.0.4"
|
|
36
39
|
},
|
|
37
40
|
"scripts": {
|
|
38
|
-
"build": "rimraf lib &&
|
|
39
|
-
"
|
|
41
|
+
"build": "rimraf lib && run-p build:babel build:types",
|
|
42
|
+
"build:babel": "npx babel ./src -x \".ts,.tsx\" -d lib",
|
|
43
|
+
"build:types": "tsc --project ./tsconfig.json --emitDeclarationOnly",
|
|
44
|
+
"start": "rimraf lib && run-p start:babel start:types",
|
|
45
|
+
"start:babel": "npx babel ./src -x \".ts,.tsx\" -d lib -w",
|
|
46
|
+
"start:types": "tsc --project ./tsconfig.json --emitDeclarationOnly --watch --preserveWatchOutput",
|
|
40
47
|
"lint": "run-p lint:eslint lint:tsc",
|
|
41
48
|
"lint:eslint": "eslint --max-warnings 0 src/",
|
|
42
49
|
"lint:tsc": "tsc --noEmit"
|
|
@@ -46,5 +53,5 @@
|
|
|
46
53
|
"access": "public"
|
|
47
54
|
},
|
|
48
55
|
"license": "BSD-2-Clause",
|
|
49
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "bf417036f3c9d8b99e43806f8f376433ed376328"
|
|
50
57
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FinalFormReactSelect.js","sourceRoot":"","sources":["../src/FinalFormReactSelect.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAM/B,6CAKuB;AAEvB,sCAAsC;AACtC;IAAsD,wCAErD;IAFD;;IAOA,CAAC;IAJU,qCAAM,GAAb;QACI,IAAM,KAA2B,IAAI,CAAC,KAAK,EAAnC,KAAK,WAAA,EAAE,IAAI,UAAA,EAAK,IAAI,cAAtB,iBAAwB,CAAa,CAAC;QAC5C,OAAO,oBAAC,yBAAM,eAAiB,KAAK,EAAM,IAAI,EAAI,CAAC;IACvD,CAAC;IACL,2BAAC;AAAD,CAAC,AAPD,CAAsD,KAAK,CAAC,SAAS,GAOpE;AAPY,oDAAoB;AAQjC;IAAoF,6CAEnF;IAFD;;IAQA,CAAC;IALU,0CAAM,GAAb;QACI,IAAM,KAA2B,IAAI,CAAC,KAAK,EAAnC,KAAK,WAAA,EAAE,IAAI,UAAA,EAAK,IAAI,cAAtB,iBAAwB,CAAa,CAAC;QAE5C,OAAO,oBAAC,8BAAK,eAA0B,KAAK,EAAM,IAAI,EAAI,CAAC;IAC/D,CAAC;IACL,gCAAC;AAAD,CAAC,AARD,CAAoF,KAAK,CAAC,SAAS,GAQlG;AARY,8DAAyB;AAStC;IAAwF,iDAEvF;IAFD;;IAQA,CAAC;IALU,8CAAM,GAAb;QACI,IAAM,KAA2B,IAAI,CAAC,KAAK,EAA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