@targetprocess/dropdown-field 12.23.3 → 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.
@@ -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 _classCallCheck(instance, Constructor) {
9
- if (!(instance instanceof Constructor)) {
10
- throw new TypeError("Cannot call a class as a function");
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(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);
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(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;
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(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;
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 (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
- }
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 target;
55
- };
56
- return _extends.apply(this, arguments);
40
+ return n;
41
+ }, _extends.apply(null, arguments);
57
42
  }
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, {
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: subClass,
65
- writable: true,
66
- configurable: true
52
+ value: t,
53
+ writable: !0,
54
+ configurable: !0
67
55
  }
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);
56
+ }), Object.defineProperty(t, "prototype", {
57
+ writable: !1
58
+ }), e && _setPrototypeOf(t, e);
79
59
  }
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);
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 _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);
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(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;
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 (hint === "string" ? String : Number)(input);
78
+ return ("string" === r ? String : Number)(t);
110
79
  }
111
- function _toPropertyKey(arg) {
112
- var key = _toPrimitive(arg, "string");
113
- return typeof key === "symbol" ? key : String(key);
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-3 {\n padding: 0;\n}\n";
144
- var styles = {"popover-body--no-gutters":"popover-body--no-gutters__dropdown-field__12-23-3"};
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;
@@ -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 _classCallCheck(instance, Constructor) {
15
- if (!(instance instanceof Constructor)) {
16
- throw new TypeError("Cannot call a class as a function");
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(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);
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(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;
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(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;
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 (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
- }
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 target;
61
- };
62
- return _extends.apply(this, arguments);
46
+ return n;
47
+ }, _extends.apply(null, arguments);
63
48
  }
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, {
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: subClass,
71
- writable: true,
72
- configurable: true
58
+ value: t,
59
+ writable: !0,
60
+ configurable: !0
73
61
  }
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);
62
+ }), Object.defineProperty(t, "prototype", {
63
+ writable: !1
64
+ }), e && _setPrototypeOf(t, e);
85
65
  }
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);
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 _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);
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(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;
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 (hint === "string" ? String : Number)(input);
84
+ return ("string" === r ? String : Number)(t);
116
85
  }
117
- function _toPropertyKey(arg) {
118
- var key = _toPrimitive(arg, "string");
119
- return typeof key === "symbol" ? key : String(key);
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-3 {\n padding: 0;\n}\n";
150
- var styles = {"popover-body--no-gutters":"popover-body--no-gutters__dropdown-field__12-23-3"};
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",
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.3",
13
+ "@targetprocess/field": "^12.23.4-alpha.0",
14
14
  "@targetprocess/icons": "^12.23.0",
15
- "@targetprocess/popover": "^12.23.3",
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": "b1177e00af98d1e0a815b37f3b8e959a0a9d09bc"
25
+ "gitHead": "99534dff51718fc768b54c72fef84f2853e37818"
26
26
  }