@jetbrains/ring-ui 5.0.165 → 5.0.167

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.
@@ -47,7 +47,7 @@ function isActivatable(item) {
47
47
  return item != null && !nonActivatableTypes.includes(item.rgItemType) && !item.disabled;
48
48
  }
49
49
  function getDataHash(data) {
50
- return data.map(it => it.key).join('-');
50
+ return data.map(it => `${it.key}-${it.disabled}`).join('-');
51
51
  }
52
52
  const shouldActivateFirstItem = (props) => props.activateFirstItem ||
53
53
  props.activateSingleItem && props.data.length === 1;
@@ -1,355 +1,360 @@
1
- function _iterableToArrayLimit(arr, i) {
2
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
3
- if (null != _i) {
4
- var _s,
5
- _e,
6
- _x,
7
- _r,
8
- _arr = [],
9
- _n = !0,
10
- _d = !1;
1
+ function _iterableToArrayLimit(r, l) {
2
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
3
+ if (null != t) {
4
+ var e,
5
+ n,
6
+ i,
7
+ u,
8
+ a = [],
9
+ f = !0,
10
+ o = !1;
11
11
  try {
12
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
13
- if (Object(_i) !== _i) return;
14
- _n = !1;
15
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
16
- } catch (err) {
17
- _d = !0, _e = err;
12
+ if (i = (t = t.call(r)).next, 0 === l) {
13
+ if (Object(t) !== t) return;
14
+ f = !1;
15
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
16
+ } catch (r) {
17
+ o = !0, n = r;
18
18
  } finally {
19
19
  try {
20
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
20
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
21
21
  } finally {
22
- if (_d) throw _e;
22
+ if (o) throw n;
23
23
  }
24
24
  }
25
- return _arr;
25
+ return a;
26
26
  }
27
27
  }
28
- function ownKeys(object, enumerableOnly) {
29
- var keys = Object.keys(object);
28
+ function ownKeys(e, r) {
29
+ var t = Object.keys(e);
30
30
  if (Object.getOwnPropertySymbols) {
31
- var symbols = Object.getOwnPropertySymbols(object);
32
- enumerableOnly && (symbols = symbols.filter(function (sym) {
33
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
34
- })), keys.push.apply(keys, symbols);
31
+ var o = Object.getOwnPropertySymbols(e);
32
+ r && (o = o.filter(function (r) {
33
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
34
+ })), t.push.apply(t, o);
35
35
  }
36
- return keys;
37
- }
38
- function _objectSpread2(target) {
39
- for (var i = 1; i < arguments.length; i++) {
40
- var source = null != arguments[i] ? arguments[i] : {};
41
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
42
- _defineProperty(target, key, source[key]);
43
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
44
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
36
+ return t;
37
+ }
38
+ function _objectSpread2(e) {
39
+ for (var r = 1; r < arguments.length; r++) {
40
+ var t = null != arguments[r] ? arguments[r] : {};
41
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
42
+ _defineProperty(e, r, t[r]);
43
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
44
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
45
45
  });
46
46
  }
47
- return target;
47
+ return e;
48
48
  }
49
49
  function _regeneratorRuntime() {
50
50
  _regeneratorRuntime = function () {
51
- return exports;
51
+ return e;
52
52
  };
53
- var exports = {},
54
- Op = Object.prototype,
55
- hasOwn = Op.hasOwnProperty,
56
- defineProperty = Object.defineProperty || function (obj, key, desc) {
57
- obj[key] = desc.value;
53
+ var t,
54
+ e = {},
55
+ r = Object.prototype,
56
+ n = r.hasOwnProperty,
57
+ o = Object.defineProperty || function (t, e, r) {
58
+ t[e] = r.value;
58
59
  },
59
- $Symbol = "function" == typeof Symbol ? Symbol : {},
60
- iteratorSymbol = $Symbol.iterator || "@@iterator",
61
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
62
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
63
- function define(obj, key, value) {
64
- return Object.defineProperty(obj, key, {
65
- value: value,
60
+ i = "function" == typeof Symbol ? Symbol : {},
61
+ a = i.iterator || "@@iterator",
62
+ c = i.asyncIterator || "@@asyncIterator",
63
+ u = i.toStringTag || "@@toStringTag";
64
+ function define(t, e, r) {
65
+ return Object.defineProperty(t, e, {
66
+ value: r,
66
67
  enumerable: !0,
67
68
  configurable: !0,
68
69
  writable: !0
69
- }), obj[key];
70
+ }), t[e];
70
71
  }
71
72
  try {
72
73
  define({}, "");
73
- } catch (err) {
74
- define = function (obj, key, value) {
75
- return obj[key] = value;
74
+ } catch (t) {
75
+ define = function (t, e, r) {
76
+ return t[e] = r;
76
77
  };
77
78
  }
78
- function wrap(innerFn, outerFn, self, tryLocsList) {
79
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
80
- generator = Object.create(protoGenerator.prototype),
81
- context = new Context(tryLocsList || []);
82
- return defineProperty(generator, "_invoke", {
83
- value: makeInvokeMethod(innerFn, self, context)
84
- }), generator;
79
+ function wrap(t, e, r, n) {
80
+ var i = e && e.prototype instanceof Generator ? e : Generator,
81
+ a = Object.create(i.prototype),
82
+ c = new Context(n || []);
83
+ return o(a, "_invoke", {
84
+ value: makeInvokeMethod(t, r, c)
85
+ }), a;
85
86
  }
86
- function tryCatch(fn, obj, arg) {
87
+ function tryCatch(t, e, r) {
87
88
  try {
88
89
  return {
89
90
  type: "normal",
90
- arg: fn.call(obj, arg)
91
+ arg: t.call(e, r)
91
92
  };
92
- } catch (err) {
93
+ } catch (t) {
93
94
  return {
94
95
  type: "throw",
95
- arg: err
96
+ arg: t
96
97
  };
97
98
  }
98
99
  }
99
- exports.wrap = wrap;
100
- var ContinueSentinel = {};
100
+ e.wrap = wrap;
101
+ var h = "suspendedStart",
102
+ l = "suspendedYield",
103
+ f = "executing",
104
+ s = "completed",
105
+ y = {};
101
106
  function Generator() {}
102
107
  function GeneratorFunction() {}
103
108
  function GeneratorFunctionPrototype() {}
104
- var IteratorPrototype = {};
105
- define(IteratorPrototype, iteratorSymbol, function () {
109
+ var p = {};
110
+ define(p, a, function () {
106
111
  return this;
107
112
  });
108
- var getProto = Object.getPrototypeOf,
109
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
110
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
111
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
112
- function defineIteratorMethods(prototype) {
113
- ["next", "throw", "return"].forEach(function (method) {
114
- define(prototype, method, function (arg) {
115
- return this._invoke(method, arg);
113
+ var d = Object.getPrototypeOf,
114
+ v = d && d(d(values([])));
115
+ v && v !== r && n.call(v, a) && (p = v);
116
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
117
+ function defineIteratorMethods(t) {
118
+ ["next", "throw", "return"].forEach(function (e) {
119
+ define(t, e, function (t) {
120
+ return this._invoke(e, t);
116
121
  });
117
122
  });
118
123
  }
119
- function AsyncIterator(generator, PromiseImpl) {
120
- function invoke(method, arg, resolve, reject) {
121
- var record = tryCatch(generator[method], generator, arg);
122
- if ("throw" !== record.type) {
123
- var result = record.arg,
124
- value = result.value;
125
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
126
- invoke("next", value, resolve, reject);
127
- }, function (err) {
128
- invoke("throw", err, resolve, reject);
129
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
130
- result.value = unwrapped, resolve(result);
131
- }, function (error) {
132
- return invoke("throw", error, resolve, reject);
124
+ function AsyncIterator(t, e) {
125
+ function invoke(r, o, i, a) {
126
+ var c = tryCatch(t[r], t, o);
127
+ if ("throw" !== c.type) {
128
+ var u = c.arg,
129
+ h = u.value;
130
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
131
+ invoke("next", t, i, a);
132
+ }, function (t) {
133
+ invoke("throw", t, i, a);
134
+ }) : e.resolve(h).then(function (t) {
135
+ u.value = t, i(u);
136
+ }, function (t) {
137
+ return invoke("throw", t, i, a);
133
138
  });
134
139
  }
135
- reject(record.arg);
140
+ a(c.arg);
136
141
  }
137
- var previousPromise;
138
- defineProperty(this, "_invoke", {
139
- value: function (method, arg) {
142
+ var r;
143
+ o(this, "_invoke", {
144
+ value: function (t, n) {
140
145
  function callInvokeWithMethodAndArg() {
141
- return new PromiseImpl(function (resolve, reject) {
142
- invoke(method, arg, resolve, reject);
146
+ return new e(function (e, r) {
147
+ invoke(t, n, e, r);
143
148
  });
144
149
  }
145
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
150
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
146
151
  }
147
152
  });
148
153
  }
149
- function makeInvokeMethod(innerFn, self, context) {
150
- var state = "suspendedStart";
151
- return function (method, arg) {
152
- if ("executing" === state) throw new Error("Generator is already running");
153
- if ("completed" === state) {
154
- if ("throw" === method) throw arg;
154
+ function makeInvokeMethod(e, r, n) {
155
+ var o = h;
156
+ return function (i, a) {
157
+ if (o === f) throw new Error("Generator is already running");
158
+ if (o === s) {
159
+ if ("throw" === i) throw a;
155
160
  return {
156
- value: void 0,
161
+ value: t,
157
162
  done: !0
158
163
  };
159
164
  }
160
- for (context.method = method, context.arg = arg;;) {
161
- var delegate = context.delegate;
162
- if (delegate) {
163
- var delegateResult = maybeInvokeDelegate(delegate, context);
164
- if (delegateResult) {
165
- if (delegateResult === ContinueSentinel) continue;
166
- return delegateResult;
165
+ for (n.method = i, n.arg = a;;) {
166
+ var c = n.delegate;
167
+ if (c) {
168
+ var u = maybeInvokeDelegate(c, n);
169
+ if (u) {
170
+ if (u === y) continue;
171
+ return u;
167
172
  }
168
173
  }
169
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
170
- if ("suspendedStart" === state) throw state = "completed", context.arg;
171
- context.dispatchException(context.arg);
172
- } else "return" === context.method && context.abrupt("return", context.arg);
173
- state = "executing";
174
- var record = tryCatch(innerFn, self, context);
175
- if ("normal" === record.type) {
176
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
174
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
175
+ if (o === h) throw o = s, n.arg;
176
+ n.dispatchException(n.arg);
177
+ } else "return" === n.method && n.abrupt("return", n.arg);
178
+ o = f;
179
+ var p = tryCatch(e, r, n);
180
+ if ("normal" === p.type) {
181
+ if (o = n.done ? s : l, p.arg === y) continue;
177
182
  return {
178
- value: record.arg,
179
- done: context.done
183
+ value: p.arg,
184
+ done: n.done
180
185
  };
181
186
  }
182
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
187
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
183
188
  }
184
189
  };
185
190
  }
186
- function maybeInvokeDelegate(delegate, context) {
187
- var methodName = context.method,
188
- method = delegate.iterator[methodName];
189
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
190
- var record = tryCatch(method, delegate.iterator, context.arg);
191
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
192
- var info = record.arg;
193
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
191
+ function maybeInvokeDelegate(e, r) {
192
+ var n = r.method,
193
+ o = e.iterator[n];
194
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
195
+ var i = tryCatch(o, e.iterator, r.arg);
196
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
197
+ var a = i.arg;
198
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
194
199
  }
195
- function pushTryEntry(locs) {
196
- var entry = {
197
- tryLoc: locs[0]
200
+ function pushTryEntry(t) {
201
+ var e = {
202
+ tryLoc: t[0]
198
203
  };
199
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
204
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
200
205
  }
201
- function resetTryEntry(entry) {
202
- var record = entry.completion || {};
203
- record.type = "normal", delete record.arg, entry.completion = record;
206
+ function resetTryEntry(t) {
207
+ var e = t.completion || {};
208
+ e.type = "normal", delete e.arg, t.completion = e;
204
209
  }
205
- function Context(tryLocsList) {
210
+ function Context(t) {
206
211
  this.tryEntries = [{
207
212
  tryLoc: "root"
208
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
213
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
209
214
  }
210
- function values(iterable) {
211
- if (iterable || "" === iterable) {
212
- var iteratorMethod = iterable[iteratorSymbol];
213
- if (iteratorMethod) return iteratorMethod.call(iterable);
214
- if ("function" == typeof iterable.next) return iterable;
215
- if (!isNaN(iterable.length)) {
216
- var i = -1,
217
- next = function next() {
218
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
219
- return next.value = undefined, next.done = !0, next;
215
+ function values(e) {
216
+ if (e || "" === e) {
217
+ var r = e[a];
218
+ if (r) return r.call(e);
219
+ if ("function" == typeof e.next) return e;
220
+ if (!isNaN(e.length)) {
221
+ var o = -1,
222
+ i = function next() {
223
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
224
+ return next.value = t, next.done = !0, next;
220
225
  };
221
- return next.next = next;
226
+ return i.next = i;
222
227
  }
223
228
  }
224
- throw new TypeError(typeof iterable + " is not iterable");
229
+ throw new TypeError(typeof e + " is not iterable");
225
230
  }
226
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
231
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
227
232
  value: GeneratorFunctionPrototype,
228
233
  configurable: !0
229
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
234
+ }), o(GeneratorFunctionPrototype, "constructor", {
230
235
  value: GeneratorFunction,
231
236
  configurable: !0
232
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
233
- var ctor = "function" == typeof genFun && genFun.constructor;
234
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
235
- }, exports.mark = function (genFun) {
236
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
237
- }, exports.awrap = function (arg) {
237
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
238
+ var e = "function" == typeof t && t.constructor;
239
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
240
+ }, e.mark = function (t) {
241
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
242
+ }, e.awrap = function (t) {
238
243
  return {
239
- __await: arg
244
+ __await: t
240
245
  };
241
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
246
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
242
247
  return this;
243
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
244
- void 0 === PromiseImpl && (PromiseImpl = Promise);
245
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
246
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
247
- return result.done ? result.value : iter.next();
248
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
249
+ void 0 === i && (i = Promise);
250
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
251
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
252
+ return t.done ? t.value : a.next();
248
253
  });
249
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
254
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
250
255
  return this;
251
- }), define(Gp, "toString", function () {
256
+ }), define(g, "toString", function () {
252
257
  return "[object Generator]";
253
- }), exports.keys = function (val) {
254
- var object = Object(val),
255
- keys = [];
256
- for (var key in object) keys.push(key);
257
- return keys.reverse(), function next() {
258
- for (; keys.length;) {
259
- var key = keys.pop();
260
- if (key in object) return next.value = key, next.done = !1, next;
258
+ }), e.keys = function (t) {
259
+ var e = Object(t),
260
+ r = [];
261
+ for (var n in e) r.push(n);
262
+ return r.reverse(), function next() {
263
+ for (; r.length;) {
264
+ var t = r.pop();
265
+ if (t in e) return next.value = t, next.done = !1, next;
261
266
  }
262
267
  return next.done = !0, next;
263
268
  };
264
- }, exports.values = values, Context.prototype = {
269
+ }, e.values = values, Context.prototype = {
265
270
  constructor: Context,
266
- reset: function (skipTempReset) {
267
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
271
+ reset: function (e) {
272
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
268
273
  },
269
274
  stop: function () {
270
275
  this.done = !0;
271
- var rootRecord = this.tryEntries[0].completion;
272
- if ("throw" === rootRecord.type) throw rootRecord.arg;
276
+ var t = this.tryEntries[0].completion;
277
+ if ("throw" === t.type) throw t.arg;
273
278
  return this.rval;
274
279
  },
275
- dispatchException: function (exception) {
276
- if (this.done) throw exception;
277
- var context = this;
278
- function handle(loc, caught) {
279
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
280
+ dispatchException: function (e) {
281
+ if (this.done) throw e;
282
+ var r = this;
283
+ function handle(n, o) {
284
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
280
285
  }
281
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
282
- var entry = this.tryEntries[i],
283
- record = entry.completion;
284
- if ("root" === entry.tryLoc) return handle("end");
285
- if (entry.tryLoc <= this.prev) {
286
- var hasCatch = hasOwn.call(entry, "catchLoc"),
287
- hasFinally = hasOwn.call(entry, "finallyLoc");
288
- if (hasCatch && hasFinally) {
289
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
290
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
291
- } else if (hasCatch) {
292
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
286
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
287
+ var i = this.tryEntries[o],
288
+ a = i.completion;
289
+ if ("root" === i.tryLoc) return handle("end");
290
+ if (i.tryLoc <= this.prev) {
291
+ var c = n.call(i, "catchLoc"),
292
+ u = n.call(i, "finallyLoc");
293
+ if (c && u) {
294
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
295
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
296
+ } else if (c) {
297
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
293
298
  } else {
294
- if (!hasFinally) throw new Error("try statement without catch or finally");
295
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
299
+ if (!u) throw new Error("try statement without catch or finally");
300
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
296
301
  }
297
302
  }
298
303
  }
299
304
  },
300
- abrupt: function (type, arg) {
301
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
302
- var entry = this.tryEntries[i];
303
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
304
- var finallyEntry = entry;
305
+ abrupt: function (t, e) {
306
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
307
+ var o = this.tryEntries[r];
308
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
309
+ var i = o;
305
310
  break;
306
311
  }
307
312
  }
308
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
309
- var record = finallyEntry ? finallyEntry.completion : {};
310
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
313
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
314
+ var a = i ? i.completion : {};
315
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
311
316
  },
312
- complete: function (record, afterLoc) {
313
- if ("throw" === record.type) throw record.arg;
314
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
317
+ complete: function (t, e) {
318
+ if ("throw" === t.type) throw t.arg;
319
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
315
320
  },
316
- finish: function (finallyLoc) {
317
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
318
- var entry = this.tryEntries[i];
319
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
321
+ finish: function (t) {
322
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
323
+ var r = this.tryEntries[e];
324
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
320
325
  }
321
326
  },
322
- catch: function (tryLoc) {
323
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
324
- var entry = this.tryEntries[i];
325
- if (entry.tryLoc === tryLoc) {
326
- var record = entry.completion;
327
- if ("throw" === record.type) {
328
- var thrown = record.arg;
329
- resetTryEntry(entry);
327
+ catch: function (t) {
328
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
329
+ var r = this.tryEntries[e];
330
+ if (r.tryLoc === t) {
331
+ var n = r.completion;
332
+ if ("throw" === n.type) {
333
+ var o = n.arg;
334
+ resetTryEntry(r);
330
335
  }
331
- return thrown;
336
+ return o;
332
337
  }
333
338
  }
334
339
  throw new Error("illegal catch attempt");
335
340
  },
336
- delegateYield: function (iterable, resultName, nextLoc) {
341
+ delegateYield: function (e, r, n) {
337
342
  return this.delegate = {
338
- iterator: values(iterable),
339
- resultName: resultName,
340
- nextLoc: nextLoc
341
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
343
+ iterator: values(e),
344
+ resultName: r,
345
+ nextLoc: n
346
+ }, "next" === this.method && (this.arg = t), y;
342
347
  }
343
- }, exports;
348
+ }, e;
344
349
  }
345
- function _typeof(obj) {
350
+ function _typeof(o) {
346
351
  "@babel/helpers - typeof";
347
352
 
348
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
349
- return typeof obj;
350
- } : function (obj) {
351
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
352
- }, _typeof(obj);
353
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
354
+ return typeof o;
355
+ } : function (o) {
356
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
357
+ }, _typeof(o);
353
358
  }
354
359
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
355
360
  try {
package/dist/list/list.js CHANGED
@@ -97,7 +97,7 @@ function isActivatable(item) {
97
97
  }
98
98
  function getDataHash(data) {
99
99
  return data.map(function (it) {
100
- return it.key;
100
+ return "".concat(it.key, "-").concat(it.disabled);
101
101
  }).join('-');
102
102
  }
103
103
  var shouldActivateFirstItem = function shouldActivateFirstItem(props) {
@@ -12,11 +12,11 @@ var MAJOR_VERSION_INDEX = 0;
12
12
  /**
13
13
  * SUPPORTED_BROWSERS are defined by Babel plugin, see babel config
14
14
  */
15
- if (!["and_chr 115", "and_uc 15.5", "chrome 115", "chrome 114", "chrome 109", "edge 114", "firefox 115", "ios_saf 16.5", "ios_saf 16.3", "ios_saf 16.1", "op_mini all", "opera 99", "safari 16.5", "samsung 21"]) {
15
+ if (!["and_chr 116", "and_uc 15.5", "chrome 115", "chrome 114", "chrome 109", "edge 114", "firefox 115", "ios_saf 16.5", "ios_saf 16.3", "ios_saf 16.1", "op_mini all", "opera 99", "safari 16.5", "samsung 21"]) {
16
16
  // eslint-disable-next-line no-console
17
17
  console.warn('Ring UI: no SUPPORTED_BROWSERS passed. Please check babel config.');
18
18
  }
19
- var SUPPORTED = ["and_chr 115", "and_uc 15.5", "chrome 115", "chrome 114", "chrome 109", "edge 114", "firefox 115", "ios_saf 16.5", "ios_saf 16.3", "ios_saf 16.1", "op_mini all", "opera 99", "safari 16.5", "samsung 21"] || [];
19
+ var SUPPORTED = ["and_chr 116", "and_uc 15.5", "chrome 115", "chrome 114", "chrome 109", "edge 114", "firefox 115", "ios_saf 16.5", "ios_saf 16.3", "ios_saf 16.1", "op_mini all", "opera 99", "safari 16.5", "samsung 21"] || [];
20
20
  var WHITE_LISTED_BROWSERS = ['chrome', 'firefox', 'safari', 'edge'];
21
21
  var WHITE_LIST = SUPPORTED.reduce(function (acc, item) {
22
22
  var _item$match;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "5.0.165",
3
+ "version": "5.0.167",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -76,41 +76,41 @@
76
76
  "readmeFilename": "README.md",
77
77
  "devDependencies": {
78
78
  "@babel/cli": "^7.22.10",
79
- "@babel/eslint-parser": "^7.22.10",
79
+ "@babel/eslint-parser": "^7.22.11",
80
80
  "@csstools/stylelint-no-at-nest-rule": "^1.0.0",
81
81
  "@jetbrains/eslint-config": "^5.4.1",
82
82
  "@jetbrains/stylelint-config": "^4.0.1",
83
- "@primer/octicons": "^19.5.0",
83
+ "@primer/octicons": "^19.6.0",
84
84
  "@rollup/plugin-babel": "^6.0.3",
85
85
  "@rollup/plugin-json": "^6.0.0",
86
- "@rollup/plugin-node-resolve": "^15.2.0",
86
+ "@rollup/plugin-node-resolve": "^15.2.1",
87
87
  "@rollup/plugin-replace": "^5.0.2",
88
- "@storybook/addon-a11y": "7.3.1",
89
- "@storybook/addon-docs": "7.3.1",
90
- "@storybook/addon-essentials": "7.3.1",
88
+ "@storybook/addon-a11y": "7.3.2",
89
+ "@storybook/addon-docs": "7.3.2",
90
+ "@storybook/addon-essentials": "7.3.2",
91
91
  "@storybook/addon-storyshots": "7.2.0",
92
- "@storybook/addon-storyshots-puppeteer": "7.3.1",
93
- "@storybook/addon-storysource": "7.3.1",
94
- "@storybook/addons": "7.3.1",
92
+ "@storybook/addon-storyshots-puppeteer": "7.3.2",
93
+ "@storybook/addon-storysource": "7.3.2",
94
+ "@storybook/addons": "7.3.2",
95
95
  "@storybook/html": "7.2.0",
96
- "@storybook/html-webpack5": "^7.3.1",
96
+ "@storybook/html-webpack5": "^7.3.2",
97
97
  "@storybook/preview-api": "7.2.0",
98
- "@storybook/react": "7.3.1",
99
- "@storybook/source-loader": "7.3.1",
100
- "@storybook/theming": "7.3.1",
98
+ "@storybook/react": "7.3.2",
99
+ "@storybook/source-loader": "7.3.2",
100
+ "@storybook/theming": "7.3.2",
101
101
  "@testing-library/react": "^14.0.0",
102
102
  "@testing-library/user-event": "^14.4.3",
103
103
  "@types/chai": "^4.3.5",
104
104
  "@types/chai-as-promised": "^7.1.5",
105
105
  "@types/chai-dom": "0.0.10",
106
- "@types/chai-enzyme": "^0.6.8",
106
+ "@types/chai-enzyme": "^0.6.10",
107
107
  "@types/enzyme": "^3.10.13",
108
- "@types/react": "^18.2.20",
108
+ "@types/react": "^18.2.21",
109
109
  "@types/react-dom": "^18.2.7",
110
110
  "@types/sinon": "^10.0.16",
111
111
  "@types/sinon-chai": "^3.2.9",
112
- "@typescript-eslint/eslint-plugin": "^6.4.0",
113
- "@typescript-eslint/parser": "^6.4.0",
112
+ "@typescript-eslint/eslint-plugin": "^6.4.1",
113
+ "@typescript-eslint/parser": "^6.4.1",
114
114
  "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
115
115
  "acorn": "^8.10.0",
116
116
  "angular": "^1.8.3",
@@ -118,20 +118,20 @@
118
118
  "angular-route": "^1.8.3",
119
119
  "babel-plugin-react-docgen": "^4.2.1",
120
120
  "babel-plugin-require-context-hook": "^1.0.0",
121
- "caniuse-lite": "^1.0.30001521",
122
- "chai": "^4.3.7",
121
+ "caniuse-lite": "^1.0.30001524",
122
+ "chai": "^4.3.8",
123
123
  "chai-as-promised": "^7.1.1",
124
124
  "chai-dom": "^1.10.0",
125
125
  "chai-enzyme": "1.0.0-beta.1",
126
126
  "cheerio": "^1.0.0-rc.12",
127
- "core-js": "^3.32.0",
127
+ "core-js": "^3.32.1",
128
128
  "cpy-cli": "^3.1.1",
129
129
  "enzyme": "^3.11.0",
130
130
  "eslint": "^8.47.0",
131
- "eslint-import-resolver-webpack": "^0.13.6",
131
+ "eslint-import-resolver-webpack": "^0.13.7",
132
132
  "eslint-plugin-angular": "^4.1.0",
133
133
  "eslint-plugin-bdd": "^2.1.1",
134
- "eslint-plugin-import": "^2.28.0",
134
+ "eslint-plugin-import": "^2.28.1",
135
135
  "eslint-plugin-jsx-a11y": "^6.7.1",
136
136
  "eslint-plugin-react": "^7.33.2",
137
137
  "eslint-plugin-storybook": "^0.6.13",
@@ -141,8 +141,8 @@
141
141
  "husky": "^8.0.3",
142
142
  "identity-obj-proxy": "^3.0.0",
143
143
  "imports-loader": "^4.0.1",
144
- "jest": "~29.6.2",
145
- "jest-environment-jsdom": "^29.6.2",
144
+ "jest": "~29.6.4",
145
+ "jest-environment-jsdom": "^29.6.4",
146
146
  "jest-teamcity": "^1.10.0",
147
147
  "karma": "^6.4.2",
148
148
  "karma-chrome-launcher": "3.2.0",
@@ -150,19 +150,19 @@
150
150
  "karma-sourcemap-loader": "^0.4.0",
151
151
  "karma-teamcity-reporter": "^2.0.0",
152
152
  "karma-webpack": "^5.0.0",
153
- "lint-staged": "^14.0.0",
153
+ "lint-staged": "^14.0.1",
154
154
  "merge-options": "^3.0.4",
155
155
  "mocha": "^10.2.0",
156
156
  "pinst": "^3.0.0",
157
157
  "prettier": "^3.0.2",
158
- "puppeteer": "^21.0.3",
158
+ "puppeteer": "^21.1.0",
159
159
  "raw-loader": "^4.0.2",
160
160
  "react": "^18.2.0",
161
161
  "react-dom": "^18.2.0",
162
162
  "react-test-renderer": "^18.2.0",
163
163
  "regenerator-runtime": "^0.14.0",
164
164
  "rimraf": "^5.0.1",
165
- "rollup": "^3.28.0",
165
+ "rollup": "^3.28.1",
166
166
  "rollup-plugin-clear": "^2.0.7",
167
167
  "rollup-plugin-styles": "^4.0.0",
168
168
  "sinon": "^15.2.0",
@@ -171,11 +171,11 @@
171
171
  "storybook": "^7.2.3",
172
172
  "storybook-addon-themes": "^6.1.0",
173
173
  "storybook-zeplin": "^2.0.2",
174
- "stylelint": "^15.10.2",
174
+ "stylelint": "^15.10.3",
175
175
  "svg-inline-loader": "^0.8.2",
176
176
  "teamcity-service-messages": "^0.1.14",
177
177
  "terser-webpack-plugin": "^5.3.9",
178
- "typescript": "~5.1.6",
178
+ "typescript": "~5.2.2",
179
179
  "wallaby-webpack": "^3.9.16",
180
180
  "webpack": "^5.88.2",
181
181
  "webpack-cli": "^5.1.4",
@@ -201,8 +201,8 @@
201
201
  }
202
202
  },
203
203
  "dependencies": {
204
- "@babel/core": "^7.22.10",
205
- "@babel/preset-typescript": "^7.22.5",
204
+ "@babel/core": "^7.22.11",
205
+ "@babel/preset-typescript": "^7.22.11",
206
206
  "@jetbrains/babel-preset-jetbrains": "^2.3.2",
207
207
  "@jetbrains/icons": "^3.21.0",
208
208
  "@jetbrains/logos": "^2.2.16",