@jetbrains/ring-ui-built 6.0.29 → 6.0.31

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.
@@ -1,6 +1,151 @@
1
+ function _arrayLikeToArray(r, a) {
2
+ (null == a || a > r.length) && (a = r.length);
3
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
4
+ return n;
5
+ }
6
+ function _arrayWithHoles(r) {
7
+ if (Array.isArray(r)) return r;
8
+ }
9
+ function _arrayWithoutHoles(r) {
10
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
11
+ }
12
+ function _assertThisInitialized(e) {
13
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
14
+ return e;
15
+ }
16
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
17
+ try {
18
+ var i = n[a](c),
19
+ u = i.value;
20
+ } catch (n) {
21
+ return void e(n);
22
+ }
23
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
24
+ }
25
+ function _asyncToGenerator(n) {
26
+ return function () {
27
+ var t = this,
28
+ e = arguments;
29
+ return new Promise(function (r, o) {
30
+ var a = n.apply(t, e);
31
+ function _next(n) {
32
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
33
+ }
34
+ function _throw(n) {
35
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
36
+ }
37
+ _next(void 0);
38
+ });
39
+ };
40
+ }
1
41
  function _callSuper(t, o, e) {
2
42
  return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
3
43
  }
44
+ function _classCallCheck(a, n) {
45
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
46
+ }
47
+ function _defineProperties(e, r) {
48
+ for (var t = 0; t < r.length; t++) {
49
+ var o = r[t];
50
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
51
+ }
52
+ }
53
+ function _createClass(e, r, t) {
54
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
55
+ writable: !1
56
+ }), e;
57
+ }
58
+ function _createForOfIteratorHelper(r, e) {
59
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
60
+ if (!t) {
61
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e ) {
62
+ t && (r = t);
63
+ var n = 0,
64
+ F = function () {};
65
+ return {
66
+ s: F,
67
+ n: function () {
68
+ return n >= r.length ? {
69
+ done: !0
70
+ } : {
71
+ done: !1,
72
+ value: r[n++]
73
+ };
74
+ },
75
+ e: function (r) {
76
+ throw r;
77
+ },
78
+ f: F
79
+ };
80
+ }
81
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
82
+ }
83
+ var o,
84
+ a = !0,
85
+ u = !1;
86
+ return {
87
+ s: function () {
88
+ t = t.call(r);
89
+ },
90
+ n: function () {
91
+ var r = t.next();
92
+ return a = r.done, r;
93
+ },
94
+ e: function (r) {
95
+ u = !0, o = r;
96
+ },
97
+ f: function () {
98
+ try {
99
+ a || null == t.return || t.return();
100
+ } finally {
101
+ if (u) throw o;
102
+ }
103
+ }
104
+ };
105
+ }
106
+ function _defineProperty(e, r, t) {
107
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
108
+ value: t,
109
+ enumerable: !0,
110
+ configurable: !0,
111
+ writable: !0
112
+ }) : e[r] = t, e;
113
+ }
114
+ function _extends() {
115
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
116
+ for (var e = 1; e < arguments.length; e++) {
117
+ var t = arguments[e];
118
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
119
+ }
120
+ return n;
121
+ }, _extends.apply(null, arguments);
122
+ }
123
+ function _get() {
124
+ return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
125
+ var p = _superPropBase(e, t);
126
+ if (p) {
127
+ var n = Object.getOwnPropertyDescriptor(p, t);
128
+ return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
129
+ }
130
+ }, _get.apply(null, arguments);
131
+ }
132
+ function _getPrototypeOf(t) {
133
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
134
+ return t.__proto__ || Object.getPrototypeOf(t);
135
+ }, _getPrototypeOf(t);
136
+ }
137
+ function _inherits(t, e) {
138
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
139
+ t.prototype = Object.create(e && e.prototype, {
140
+ constructor: {
141
+ value: t,
142
+ writable: !0,
143
+ configurable: !0
144
+ }
145
+ }), Object.defineProperty(t, "prototype", {
146
+ writable: !1
147
+ }), e && _setPrototypeOf(t, e);
148
+ }
4
149
  function _isNativeReflectConstruct() {
5
150
  try {
6
151
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -9,6 +154,9 @@ function _isNativeReflectConstruct() {
9
154
  return !!t;
10
155
  })();
11
156
  }
157
+ function _iterableToArray(r) {
158
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
159
+ }
12
160
  function _iterableToArrayLimit(r, l) {
13
161
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
14
162
  if (null != t) {
@@ -36,6 +184,12 @@ function _iterableToArrayLimit(r, l) {
36
184
  return a;
37
185
  }
38
186
  }
187
+ function _nonIterableRest() {
188
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
189
+ }
190
+ function _nonIterableSpread() {
191
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
192
+ }
39
193
  function ownKeys(e, r) {
40
194
  var t = Object.keys(e);
41
195
  if (Object.getOwnPropertySymbols) {
@@ -57,6 +211,31 @@ function _objectSpread2(e) {
57
211
  }
58
212
  return e;
59
213
  }
214
+ function _objectWithoutProperties(e, t) {
215
+ if (null == e) return {};
216
+ var o,
217
+ r,
218
+ i = _objectWithoutPropertiesLoose(e, t);
219
+ if (Object.getOwnPropertySymbols) {
220
+ var n = Object.getOwnPropertySymbols(e);
221
+ for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
222
+ }
223
+ return i;
224
+ }
225
+ function _objectWithoutPropertiesLoose(r, e) {
226
+ if (null == r) return {};
227
+ var t = {};
228
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
229
+ if (e.indexOf(n) >= 0) continue;
230
+ t[n] = r[n];
231
+ }
232
+ return t;
233
+ }
234
+ function _possibleConstructorReturn(t, e) {
235
+ if (e && ("object" == typeof e || "function" == typeof e)) return e;
236
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
237
+ return _assertThisInitialized(t);
238
+ }
60
239
  function _regeneratorRuntime() {
61
240
  _regeneratorRuntime = function () {
62
241
  return e;
@@ -358,6 +537,21 @@ function _regeneratorRuntime() {
358
537
  }
359
538
  }, e;
360
539
  }
540
+ function _setPrototypeOf(t, e) {
541
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
542
+ return t.__proto__ = e, t;
543
+ }, _setPrototypeOf(t, e);
544
+ }
545
+ function _slicedToArray(r, e) {
546
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
547
+ }
548
+ function _superPropBase(t, o) {
549
+ for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
550
+ return t;
551
+ }
552
+ function _toConsumableArray(r) {
553
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
554
+ }
361
555
  function _toPrimitive(t, r) {
362
556
  if ("object" != typeof t || !t) return t;
363
557
  var e = t[Symbol.toPrimitive];
@@ -372,262 +566,12 @@ function _toPropertyKey(t) {
372
566
  var i = _toPrimitive(t, "string");
373
567
  return "symbol" == typeof i ? i : i + "";
374
568
  }
375
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
376
- try {
377
- var info = gen[key](arg);
378
- var value = info.value;
379
- } catch (error) {
380
- reject(error);
381
- return;
382
- }
383
- if (info.done) {
384
- resolve(value);
385
- } else {
386
- Promise.resolve(value).then(_next, _throw);
387
- }
388
- }
389
- function _asyncToGenerator(fn) {
390
- return function () {
391
- var self = this,
392
- args = arguments;
393
- return new Promise(function (resolve, reject) {
394
- var gen = fn.apply(self, args);
395
- function _next(value) {
396
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
397
- }
398
- function _throw(err) {
399
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
400
- }
401
- _next(undefined);
402
- });
403
- };
404
- }
405
- function _classCallCheck(instance, Constructor) {
406
- if (!(instance instanceof Constructor)) {
407
- throw new TypeError("Cannot call a class as a function");
408
- }
409
- }
410
- function _defineProperties(target, props) {
411
- for (var i = 0; i < props.length; i++) {
412
- var descriptor = props[i];
413
- descriptor.enumerable = descriptor.enumerable || false;
414
- descriptor.configurable = true;
415
- if ("value" in descriptor) descriptor.writable = true;
416
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
417
- }
418
- }
419
- function _createClass(Constructor, protoProps, staticProps) {
420
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
421
- if (staticProps) _defineProperties(Constructor, staticProps);
422
- Object.defineProperty(Constructor, "prototype", {
423
- writable: false
424
- });
425
- return Constructor;
426
- }
427
- function _defineProperty(obj, key, value) {
428
- key = _toPropertyKey(key);
429
- if (key in obj) {
430
- Object.defineProperty(obj, key, {
431
- value: value,
432
- enumerable: true,
433
- configurable: true,
434
- writable: true
435
- });
436
- } else {
437
- obj[key] = value;
438
- }
439
- return obj;
440
- }
441
- function _extends() {
442
- _extends = Object.assign ? Object.assign.bind() : function (target) {
443
- for (var i = 1; i < arguments.length; i++) {
444
- var source = arguments[i];
445
- for (var key in source) {
446
- if (Object.prototype.hasOwnProperty.call(source, key)) {
447
- target[key] = source[key];
448
- }
449
- }
450
- }
451
- return target;
452
- };
453
- return _extends.apply(this, arguments);
454
- }
455
- function _inherits(subClass, superClass) {
456
- if (typeof superClass !== "function" && superClass !== null) {
457
- throw new TypeError("Super expression must either be null or a function");
458
- }
459
- subClass.prototype = Object.create(superClass && superClass.prototype, {
460
- constructor: {
461
- value: subClass,
462
- writable: true,
463
- configurable: true
464
- }
465
- });
466
- Object.defineProperty(subClass, "prototype", {
467
- writable: false
468
- });
469
- if (superClass) _setPrototypeOf(subClass, superClass);
470
- }
471
- function _getPrototypeOf(o) {
472
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
473
- return o.__proto__ || Object.getPrototypeOf(o);
474
- };
475
- return _getPrototypeOf(o);
476
- }
477
- function _setPrototypeOf(o, p) {
478
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
479
- o.__proto__ = p;
480
- return o;
481
- };
482
- return _setPrototypeOf(o, p);
483
- }
484
- function _objectWithoutPropertiesLoose(source, excluded) {
485
- if (source == null) return {};
486
- var target = {};
487
- for (var key in source) {
488
- if (Object.prototype.hasOwnProperty.call(source, key)) {
489
- if (excluded.indexOf(key) >= 0) continue;
490
- target[key] = source[key];
491
- }
492
- }
493
- return target;
494
- }
495
- function _objectWithoutProperties(source, excluded) {
496
- if (source == null) return {};
497
- var target = _objectWithoutPropertiesLoose(source, excluded);
498
- var key, i;
499
- if (Object.getOwnPropertySymbols) {
500
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
501
- for (i = 0; i < sourceSymbolKeys.length; i++) {
502
- key = sourceSymbolKeys[i];
503
- if (excluded.indexOf(key) >= 0) continue;
504
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
505
- target[key] = source[key];
506
- }
507
- }
508
- return target;
509
- }
510
- function _assertThisInitialized(self) {
511
- if (self === void 0) {
512
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
513
- }
514
- return self;
515
- }
516
- function _possibleConstructorReturn(self, call) {
517
- if (call && (typeof call === "object" || typeof call === "function")) {
518
- return call;
519
- } else if (call !== void 0) {
520
- throw new TypeError("Derived constructors may only return object or undefined");
521
- }
522
- return _assertThisInitialized(self);
523
- }
524
- function _superPropBase(object, property) {
525
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
526
- object = _getPrototypeOf(object);
527
- if (object === null) break;
528
- }
529
- return object;
530
- }
531
- function _get() {
532
- if (typeof Reflect !== "undefined" && Reflect.get) {
533
- _get = Reflect.get.bind();
534
- } else {
535
- _get = function _get(target, property, receiver) {
536
- var base = _superPropBase(target, property);
537
- if (!base) return;
538
- var desc = Object.getOwnPropertyDescriptor(base, property);
539
- if (desc.get) {
540
- return desc.get.call(arguments.length < 3 ? target : receiver);
541
- }
542
- return desc.value;
543
- };
569
+ function _unsupportedIterableToArray(r, a) {
570
+ if (r) {
571
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
572
+ var t = {}.toString.call(r).slice(8, -1);
573
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
544
574
  }
545
- return _get.apply(this, arguments);
546
- }
547
- function _slicedToArray(arr, i) {
548
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
549
- }
550
- function _toConsumableArray(arr) {
551
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
552
- }
553
- function _arrayWithoutHoles(arr) {
554
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
555
- }
556
- function _arrayWithHoles(arr) {
557
- if (Array.isArray(arr)) return arr;
558
- }
559
- function _iterableToArray(iter) {
560
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
561
- }
562
- function _unsupportedIterableToArray(o, minLen) {
563
- if (!o) return;
564
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
565
- var n = Object.prototype.toString.call(o).slice(8, -1);
566
- if (n === "Object" && o.constructor) n = o.constructor.name;
567
- if (n === "Map" || n === "Set") return Array.from(o);
568
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
569
- }
570
- function _arrayLikeToArray(arr, len) {
571
- if (len == null || len > arr.length) len = arr.length;
572
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
573
- return arr2;
574
- }
575
- function _nonIterableSpread() {
576
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
577
- }
578
- function _nonIterableRest() {
579
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
580
- }
581
- function _createForOfIteratorHelper(o, allowArrayLike) {
582
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
583
- if (!it) {
584
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) {
585
- if (it) o = it;
586
- var i = 0;
587
- var F = function () {};
588
- return {
589
- s: F,
590
- n: function () {
591
- if (i >= o.length) return {
592
- done: true
593
- };
594
- return {
595
- done: false,
596
- value: o[i++]
597
- };
598
- },
599
- e: function (e) {
600
- throw e;
601
- },
602
- f: F
603
- };
604
- }
605
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
606
- }
607
- var normalCompletion = true,
608
- didErr = false,
609
- err;
610
- return {
611
- s: function () {
612
- it = it.call(o);
613
- },
614
- n: function () {
615
- var step = it.next();
616
- normalCompletion = step.done;
617
- return step;
618
- },
619
- e: function (e) {
620
- didErr = true;
621
- err = e;
622
- },
623
- f: function () {
624
- try {
625
- if (!normalCompletion && it.return != null) it.return();
626
- } finally {
627
- if (didErr) throw err;
628
- }
629
- }
630
- };
631
575
  }
632
576
 
633
577
  export { _defineProperty as _, _inherits as a, _createClass as b, _objectWithoutProperties as c, _objectSpread2 as d, _extends as e, _classCallCheck as f, _callSuper as g, _asyncToGenerator as h, _regeneratorRuntime as i, _slicedToArray as j, _toConsumableArray as k, _createForOfIteratorHelper as l, _get as m, _getPrototypeOf as n, _toPropertyKey as o };
@@ -16,7 +16,7 @@ export type DatePickerProps = Omit<DatePopupProps, 'translations' | 'parseDateIn
16
16
  clear: boolean;
17
17
  inline: boolean;
18
18
  popupClassName?: string | null | undefined;
19
- dropdownProps?: DropdownAttrs;
19
+ dropdownProps?: Partial<DropdownAttrs>;
20
20
  translations?: DatePickerTranslations | null | undefined;
21
21
  displayMonthFormat: (date: Date, locale: Locale | undefined) => string;
22
22
  displayDayFormat: (date: Date, locale: Locale | undefined) => string;