@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.
@@ -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 _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");
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(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);
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(e, r, t) {
22
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
23
- writable: !1
24
- }), e;
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(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;
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
- 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]);
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 n;
41
- }, _extends.apply(null, arguments);
54
+ return target;
55
+ };
56
+ return _extends.apply(this, arguments);
42
57
  }
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, {
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: t,
53
- writable: !0,
54
- configurable: !0
64
+ value: subClass,
65
+ writable: true,
66
+ configurable: true
55
67
  }
56
- }), Object.defineProperty(t, "prototype", {
57
- writable: !1
58
- }), e && _setPrototypeOf(t, e);
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 _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);
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 _setPrototypeOf(t, e) {
66
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
67
- return t.__proto__ = e, t;
68
- }, _setPrototypeOf(t, e);
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(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;
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" === r ? String : Number)(t);
109
+ return (hint === "string" ? String : Number)(input);
79
110
  }
80
- function _toPropertyKey(t) {
81
- var i = _toPrimitive(t, "string");
82
- return "symbol" == typeof i ? i : i + "";
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-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"};
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;
@@ -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 _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");
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(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);
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(e, r, t) {
28
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
29
- writable: !1
30
- }), e;
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(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;
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
- 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]);
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 n;
47
- }, _extends.apply(null, arguments);
60
+ return target;
61
+ };
62
+ return _extends.apply(this, arguments);
48
63
  }
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, {
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: t,
59
- writable: !0,
60
- configurable: !0
70
+ value: subClass,
71
+ writable: true,
72
+ configurable: true
61
73
  }
62
- }), Object.defineProperty(t, "prototype", {
63
- writable: !1
64
- }), e && _setPrototypeOf(t, e);
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 _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);
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 _setPrototypeOf(t, e) {
72
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
73
- return t.__proto__ = e, t;
74
- }, _setPrototypeOf(t, e);
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(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;
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" === r ? String : Number)(t);
115
+ return (hint === "string" ? String : Number)(input);
85
116
  }
86
- function _toPropertyKey(t) {
87
- var i = _toPrimitive(t, "string");
88
- return "symbol" == typeof i ? i : i + "";
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-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"};
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.23.4-alpha.0",
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.23.4-alpha.0",
14
- "@targetprocess/icons": "^12.23.0",
15
- "@targetprocess/popover": "^12.23.4-alpha.0",
16
- "@targetprocess/select": "^12.23.0",
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": "99534dff51718fc768b54c72fef84f2853e37818"
25
+ "gitHead": "c079d436e88f2ce5f20f29ac1681a38ce7d1ef4a"
26
26
  }