@targetprocess/dropdown-field 12.23.4-alpha.0 → 12.24.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/dist/dropdown-field.es.js +92 -61
- package/dist/dropdown-field.js +92 -61
- package/package.json +6 -6
|
@@ -5,81 +5,112 @@ import { Popover } from '@targetprocess/popover';
|
|
|
5
5
|
import { Field } from '@targetprocess/field';
|
|
6
6
|
import { LoadingIcon, ChevronIcon } from '@targetprocess/icons';
|
|
7
7
|
|
|
8
|
-
function
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
function _classCallCheck(a, n) {
|
|
13
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
8
|
+
function _classCallCheck(instance, Constructor) {
|
|
9
|
+
if (!(instance instanceof Constructor)) {
|
|
10
|
+
throw new TypeError("Cannot call a class as a function");
|
|
11
|
+
}
|
|
14
12
|
}
|
|
15
|
-
function _defineProperties(
|
|
16
|
-
for (var
|
|
17
|
-
var
|
|
18
|
-
|
|
13
|
+
function _defineProperties(target, props) {
|
|
14
|
+
for (var i = 0; i < props.length; i++) {
|
|
15
|
+
var descriptor = props[i];
|
|
16
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
17
|
+
descriptor.configurable = true;
|
|
18
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
19
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
|
-
function _createClass(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
23
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
24
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
25
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
26
|
+
writable: false
|
|
27
|
+
});
|
|
28
|
+
return Constructor;
|
|
25
29
|
}
|
|
26
|
-
function _defineProperty(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
function _defineProperty(obj, key, value) {
|
|
31
|
+
key = _toPropertyKey(key);
|
|
32
|
+
if (key in obj) {
|
|
33
|
+
Object.defineProperty(obj, key, {
|
|
34
|
+
value: value,
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true
|
|
38
|
+
});
|
|
39
|
+
} else {
|
|
40
|
+
obj[key] = value;
|
|
41
|
+
}
|
|
42
|
+
return obj;
|
|
33
43
|
}
|
|
34
44
|
function _extends() {
|
|
35
|
-
|
|
36
|
-
for (var
|
|
37
|
-
var
|
|
38
|
-
for (var
|
|
45
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
46
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
47
|
+
var source = arguments[i];
|
|
48
|
+
for (var key in source) {
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
50
|
+
target[key] = source[key];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
39
53
|
}
|
|
40
|
-
return
|
|
41
|
-
}
|
|
54
|
+
return target;
|
|
55
|
+
};
|
|
56
|
+
return _extends.apply(this, arguments);
|
|
42
57
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function _inherits(t, e) {
|
|
49
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
50
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
58
|
+
function _inherits(subClass, superClass) {
|
|
59
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
60
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
61
|
+
}
|
|
62
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
51
63
|
constructor: {
|
|
52
|
-
value:
|
|
53
|
-
writable:
|
|
54
|
-
configurable:
|
|
64
|
+
value: subClass,
|
|
65
|
+
writable: true,
|
|
66
|
+
configurable: true
|
|
55
67
|
}
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(subClass, "prototype", {
|
|
70
|
+
writable: false
|
|
71
|
+
});
|
|
72
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
73
|
+
}
|
|
74
|
+
function _getPrototypeOf(o) {
|
|
75
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
76
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
77
|
+
};
|
|
78
|
+
return _getPrototypeOf(o);
|
|
59
79
|
}
|
|
60
|
-
function
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
80
|
+
function _setPrototypeOf(o, p) {
|
|
81
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
82
|
+
o.__proto__ = p;
|
|
83
|
+
return o;
|
|
84
|
+
};
|
|
85
|
+
return _setPrototypeOf(o, p);
|
|
64
86
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
87
|
+
function _assertThisInitialized(self) {
|
|
88
|
+
if (self === void 0) {
|
|
89
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
90
|
+
}
|
|
91
|
+
return self;
|
|
92
|
+
}
|
|
93
|
+
function _possibleConstructorReturn(self, call) {
|
|
94
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
95
|
+
return call;
|
|
96
|
+
} else if (call !== void 0) {
|
|
97
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
98
|
+
}
|
|
99
|
+
return _assertThisInitialized(self);
|
|
69
100
|
}
|
|
70
|
-
function _toPrimitive(
|
|
71
|
-
if ("object"
|
|
72
|
-
var
|
|
73
|
-
if (
|
|
74
|
-
var
|
|
75
|
-
if ("object"
|
|
101
|
+
function _toPrimitive(input, hint) {
|
|
102
|
+
if (typeof input !== "object" || input === null) return input;
|
|
103
|
+
var prim = input[Symbol.toPrimitive];
|
|
104
|
+
if (prim !== undefined) {
|
|
105
|
+
var res = prim.call(input, hint || "default");
|
|
106
|
+
if (typeof res !== "object") return res;
|
|
76
107
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
77
108
|
}
|
|
78
|
-
return ("string"
|
|
109
|
+
return (hint === "string" ? String : Number)(input);
|
|
79
110
|
}
|
|
80
|
-
function _toPropertyKey(
|
|
81
|
-
var
|
|
82
|
-
return "symbol"
|
|
111
|
+
function _toPropertyKey(arg) {
|
|
112
|
+
var key = _toPrimitive(arg, "string");
|
|
113
|
+
return typeof key === "symbol" ? key : String(key);
|
|
83
114
|
}
|
|
84
115
|
|
|
85
116
|
function styleInject(css, ref) {
|
|
@@ -109,8 +140,8 @@ function styleInject(css, ref) {
|
|
|
109
140
|
}
|
|
110
141
|
}
|
|
111
142
|
|
|
112
|
-
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.popover-body--no-gutters__dropdown-field__12-
|
|
113
|
-
var styles = {"popover-body--no-gutters":"popover-body--no-gutters__dropdown-field__12-
|
|
143
|
+
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.popover-body--no-gutters__dropdown-field__12-24-0 {\n padding: 0;\n}\n";
|
|
144
|
+
var styles = {"popover-body--no-gutters":"popover-body--no-gutters__dropdown-field__12-24-0"};
|
|
114
145
|
styleInject(css);
|
|
115
146
|
|
|
116
147
|
var dropdownInnerSpace = 4;
|
package/dist/dropdown-field.js
CHANGED
|
@@ -11,81 +11,112 @@ var popover = require('@targetprocess/popover');
|
|
|
11
11
|
var field = require('@targetprocess/field');
|
|
12
12
|
var icons = require('@targetprocess/icons');
|
|
13
13
|
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
function _classCallCheck(a, n) {
|
|
19
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
function _classCallCheck(instance, Constructor) {
|
|
15
|
+
if (!(instance instanceof Constructor)) {
|
|
16
|
+
throw new TypeError("Cannot call a class as a function");
|
|
17
|
+
}
|
|
20
18
|
}
|
|
21
|
-
function _defineProperties(
|
|
22
|
-
for (var
|
|
23
|
-
var
|
|
24
|
-
|
|
19
|
+
function _defineProperties(target, props) {
|
|
20
|
+
for (var i = 0; i < props.length; i++) {
|
|
21
|
+
var descriptor = props[i];
|
|
22
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
23
|
+
descriptor.configurable = true;
|
|
24
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
25
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
|
-
function _createClass(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
29
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
30
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
31
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
32
|
+
writable: false
|
|
33
|
+
});
|
|
34
|
+
return Constructor;
|
|
31
35
|
}
|
|
32
|
-
function _defineProperty(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
function _defineProperty(obj, key, value) {
|
|
37
|
+
key = _toPropertyKey(key);
|
|
38
|
+
if (key in obj) {
|
|
39
|
+
Object.defineProperty(obj, key, {
|
|
40
|
+
value: value,
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
writable: true
|
|
44
|
+
});
|
|
45
|
+
} else {
|
|
46
|
+
obj[key] = value;
|
|
47
|
+
}
|
|
48
|
+
return obj;
|
|
39
49
|
}
|
|
40
50
|
function _extends() {
|
|
41
|
-
|
|
42
|
-
for (var
|
|
43
|
-
var
|
|
44
|
-
for (var
|
|
51
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
52
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
53
|
+
var source = arguments[i];
|
|
54
|
+
for (var key in source) {
|
|
55
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
56
|
+
target[key] = source[key];
|
|
57
|
+
}
|
|
58
|
+
}
|
|
45
59
|
}
|
|
46
|
-
return
|
|
47
|
-
}
|
|
60
|
+
return target;
|
|
61
|
+
};
|
|
62
|
+
return _extends.apply(this, arguments);
|
|
48
63
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function _inherits(t, e) {
|
|
55
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
56
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
64
|
+
function _inherits(subClass, superClass) {
|
|
65
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
66
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
67
|
+
}
|
|
68
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
57
69
|
constructor: {
|
|
58
|
-
value:
|
|
59
|
-
writable:
|
|
60
|
-
configurable:
|
|
70
|
+
value: subClass,
|
|
71
|
+
writable: true,
|
|
72
|
+
configurable: true
|
|
61
73
|
}
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(subClass, "prototype", {
|
|
76
|
+
writable: false
|
|
77
|
+
});
|
|
78
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
79
|
+
}
|
|
80
|
+
function _getPrototypeOf(o) {
|
|
81
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
82
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
83
|
+
};
|
|
84
|
+
return _getPrototypeOf(o);
|
|
65
85
|
}
|
|
66
|
-
function
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
86
|
+
function _setPrototypeOf(o, p) {
|
|
87
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
88
|
+
o.__proto__ = p;
|
|
89
|
+
return o;
|
|
90
|
+
};
|
|
91
|
+
return _setPrototypeOf(o, p);
|
|
70
92
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
93
|
+
function _assertThisInitialized(self) {
|
|
94
|
+
if (self === void 0) {
|
|
95
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
96
|
+
}
|
|
97
|
+
return self;
|
|
98
|
+
}
|
|
99
|
+
function _possibleConstructorReturn(self, call) {
|
|
100
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
101
|
+
return call;
|
|
102
|
+
} else if (call !== void 0) {
|
|
103
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
104
|
+
}
|
|
105
|
+
return _assertThisInitialized(self);
|
|
75
106
|
}
|
|
76
|
-
function _toPrimitive(
|
|
77
|
-
if ("object"
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
var
|
|
81
|
-
if ("object"
|
|
107
|
+
function _toPrimitive(input, hint) {
|
|
108
|
+
if (typeof input !== "object" || input === null) return input;
|
|
109
|
+
var prim = input[Symbol.toPrimitive];
|
|
110
|
+
if (prim !== undefined) {
|
|
111
|
+
var res = prim.call(input, hint || "default");
|
|
112
|
+
if (typeof res !== "object") return res;
|
|
82
113
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
83
114
|
}
|
|
84
|
-
return ("string"
|
|
115
|
+
return (hint === "string" ? String : Number)(input);
|
|
85
116
|
}
|
|
86
|
-
function _toPropertyKey(
|
|
87
|
-
var
|
|
88
|
-
return "symbol"
|
|
117
|
+
function _toPropertyKey(arg) {
|
|
118
|
+
var key = _toPrimitive(arg, "string");
|
|
119
|
+
return typeof key === "symbol" ? key : String(key);
|
|
89
120
|
}
|
|
90
121
|
|
|
91
122
|
function styleInject(css, ref) {
|
|
@@ -115,8 +146,8 @@ function styleInject(css, ref) {
|
|
|
115
146
|
}
|
|
116
147
|
}
|
|
117
148
|
|
|
118
|
-
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.popover-body--no-gutters__dropdown-field__12-
|
|
119
|
-
var styles = {"popover-body--no-gutters":"popover-body--no-gutters__dropdown-field__12-
|
|
149
|
+
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.popover-body--no-gutters__dropdown-field__12-24-0 {\n padding: 0;\n}\n";
|
|
150
|
+
var styles = {"popover-body--no-gutters":"popover-body--no-gutters__dropdown-field__12-24-0"};
|
|
120
151
|
styleInject(css);
|
|
121
152
|
|
|
122
153
|
var dropdownInnerSpace = 4;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@targetprocess/dropdown-field",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.24.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/dropdown-field.js",
|
|
6
6
|
"module": "dist/dropdown-field.es.js",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"prepack": "node -r ../../.ts-node.js ../../config/rollup.config.js ."
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@targetprocess/field": "^12.
|
|
14
|
-
"@targetprocess/icons": "^12.
|
|
15
|
-
"@targetprocess/popover": "^12.
|
|
16
|
-
"@targetprocess/select": "^12.
|
|
13
|
+
"@targetprocess/field": "^12.24.0",
|
|
14
|
+
"@targetprocess/icons": "^12.24.0",
|
|
15
|
+
"@targetprocess/popover": "^12.24.0",
|
|
16
|
+
"@targetprocess/select": "^12.24.0",
|
|
17
17
|
"classnames": "^2.2.5",
|
|
18
18
|
"prop-types": "^15.6.0",
|
|
19
19
|
"react": "^16.7.0"
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"sideEffects": false,
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "c079d436e88f2ce5f20f29ac1681a38ce7d1ef4a"
|
|
26
26
|
}
|