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