@enact/ui 4.7.9 → 4.8.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.
Files changed (119) hide show
  1. package/AnnounceDecorator/Announce.js +2 -2
  2. package/AnnounceDecorator/AnnounceDecorator.js +2 -2
  3. package/BodyText/BodyText.js +2 -2
  4. package/BodyText/tests/BodyText-specs.js +2 -2
  5. package/Button/Button.js +16 -16
  6. package/CHANGELOG.md +16 -0
  7. package/Cancelable/Cancelable.js +14 -14
  8. package/Cancelable/tests/Cancelable-specs.js +2 -2
  9. package/Changeable/Changeable.js +14 -14
  10. package/ComponentOverride/ComponentOverride.js +3 -3
  11. package/FloatingLayer/FloatingLayer.js +11 -11
  12. package/FloatingLayer/FloatingLayerContainer.js +2 -2
  13. package/FloatingLayer/FloatingLayerDecorator.js +2 -2
  14. package/FloatingLayer/Scrim.js +2 -2
  15. package/FloatingLayer/tests/useFloatingLayerDecorator-specs.js +2 -2
  16. package/ForwardRef/ForwardRef.js +13 -13
  17. package/GridListImageItem/GridListImageItem.js +2 -2
  18. package/Group/Group.js +3 -3
  19. package/Group/GroupItem.js +16 -17
  20. package/Group/tests/Group-specs.js +2 -2
  21. package/Heading/Heading.js +21 -21
  22. package/Icon/Icon.js +2 -2
  23. package/Icon/tests/Icon-specs.js +2 -2
  24. package/IconButton/IconButton.js +2 -2
  25. package/Image/Image.js +2 -2
  26. package/Image/tests/Image-specs.js +2 -2
  27. package/ImageItem/ImageItem.js +2 -2
  28. package/ImageItem/tests/ImageItem-specs.js +4 -4
  29. package/Item/Item.js +2 -2
  30. package/LabeledIcon/LabeledIcon.js +2 -2
  31. package/Layout/Cell.js +2 -2
  32. package/Layout/Layout.js +154 -154
  33. package/Layout/tests/Layout-specs.js +4 -4
  34. package/Marquee/MarqueeBase.js +2 -2
  35. package/Marquee/MarqueeController.js +2 -3
  36. package/Marquee/MarqueeDecorator.js +2 -2
  37. package/Marquee/tests/Marquee-specs.js +2 -2
  38. package/Measurable/Measurable.js +13 -15
  39. package/Measurable/tests/Measurable-specs.js +4 -4
  40. package/Media/Media.js +32 -32
  41. package/Placeholder/PlaceholderControllerDecorator.js +8 -8
  42. package/Placeholder/PlaceholderDecorator.js +8 -8
  43. package/ProgressBar/ProgressBar.js +14 -15
  44. package/README.md +1 -1
  45. package/RadioDecorator/RadioControllerDecorator.js +2 -2
  46. package/RadioDecorator/RadioDecorator.js +14 -14
  47. package/Repeater/Repeater.js +16 -16
  48. package/Repeater/tests/Repeater-specs.js +4 -4
  49. package/Resizable/Resizable.js +12 -12
  50. package/Resizable/tests/Resizable-specs.js +2 -2
  51. package/Resizable/tests/useResize-specs.js +2 -2
  52. package/Resizable/useResize.js +3 -2
  53. package/Routable/Link.js +2 -2
  54. package/Routable/Routable.js +15 -15
  55. package/Routable/Router.js +2 -2
  56. package/Routable/tests/Routable-specs.js +2 -2
  57. package/Scrollable/ScrollAnimator.js +2 -2
  58. package/Scrollable/ScrollThumb.js +9 -9
  59. package/Scrollable/Scrollable.js +12 -12
  60. package/Scrollable/ScrollableNative.js +4 -5
  61. package/Scrollable/Scrollbar.js +2 -2
  62. package/Scroller/Scroller.js +9 -9
  63. package/Scroller/ScrollerBasic.js +9 -9
  64. package/Scroller/UiScrollerBase.js +12 -12
  65. package/Skinnable/Skinnable.js +2 -2
  66. package/Skinnable/tests/Skinnable-specs.js +2 -2
  67. package/Skinnable/tests/useSkins-specs.js +2 -2
  68. package/Slider/Knob.js +2 -2
  69. package/Slider/PositionDecorator.js +2 -2
  70. package/Slider/Slider.js +17 -17
  71. package/SlotItem/SlotItem.js +2 -2
  72. package/Slottable/Slottable.js +15 -15
  73. package/Slottable/useSlots.js +2 -2
  74. package/Spinner/Spinner.js +2 -2
  75. package/ToggleIcon/ToggleIcon.js +2 -2
  76. package/ToggleItem/ToggleItem.js +2 -2
  77. package/ToggleItem/tests/ToggleItem-specs.js +4 -4
  78. package/Toggleable/Toggle.js +2 -2
  79. package/Toggleable/Toggleable.js +15 -16
  80. package/Toggleable/useToggle.js +1 -0
  81. package/Touchable/ClickAllow.js +2 -2
  82. package/Touchable/Drag.js +2 -2
  83. package/Touchable/Flick.js +2 -2
  84. package/Touchable/Hold.js +2 -2
  85. package/Touchable/Pinch.js +2 -2
  86. package/Touchable/Touch.js +2 -2
  87. package/Touchable/Touchable.js +2 -2
  88. package/Touchable/config.js +2 -2
  89. package/Touchable/tests/useTouch-specs.js +2 -2
  90. package/Touchable/useTouch.js +3 -2
  91. package/Transition/Transition.js +18 -18
  92. package/Transition/tests/Transition-specs.js +4 -4
  93. package/ViewManager/Arranger.js +5 -5
  94. package/ViewManager/TransitionGroup.js +6 -5
  95. package/ViewManager/View.js +4 -4
  96. package/ViewManager/ViewManager.js +4 -4
  97. package/ViewManager/tests/ViewManager-specs.js +2 -3
  98. package/VirtualList/UiVirtualListBase.js +2 -2
  99. package/VirtualList/VirtualList.js +12 -12
  100. package/VirtualList/VirtualListBasic.js +12 -2
  101. package/VirtualList/tests/VirtualGridList-native-specs.js +2 -2
  102. package/VirtualList/tests/VirtualGridList-specs.js +2 -2
  103. package/VirtualList/tests/VirtualList-native-specs.js +2 -2
  104. package/VirtualList/tests/VirtualList-specs.js +68 -2
  105. package/internal/IdProvider/IdProvider.js +7 -7
  106. package/internal/IdProvider/Provider.js +2 -2
  107. package/internal/IdProvider/tests/IdProvider-specs.js +2 -2
  108. package/internal/IdProvider/tests/useId-specs.js +2 -2
  109. package/internal/IdProvider/useId.js +1 -0
  110. package/internal/Pure/Pure.js +12 -12
  111. package/internal/Pure/tests/Pure-specs.js +2 -2
  112. package/internal/localized-fonts/tests/localized-fonts-specs.js +0 -1
  113. package/package.json +4 -3
  114. package/resolution/ResolutionDecorator.js +11 -11
  115. package/resolution/index.js +2 -2
  116. package/useScroll/ScrollAnimator.js +2 -2
  117. package/useScroll/Scrollbar.js +2 -2
  118. package/useScroll/ScrollbarTrack.js +2 -2
  119. package/useScroll/useScroll.js +3 -5
@@ -11,8 +11,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
11
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
13
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
15
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
15
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
16
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
17
17
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
18
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -20,16 +20,16 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
20
20
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
21
21
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
22
22
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /* global ResizeObserver, MutationObserver */ /**
23
- * A higher-order component that adds the ability to measure nodes conveniently.
24
- *
25
- * @module ui/Measurable
26
- * @exports Measurable
27
- */ /**
28
- * Default config for {@link ui/Measurable.Measurable}.
29
- *
30
- * @memberof ui/Measurable.Measurable
31
- * @hocconfig
32
- */
23
+ * A higher-order component that adds the ability to measure nodes conveniently.
24
+ *
25
+ * @module ui/Measurable
26
+ * @exports Measurable
27
+ */ /**
28
+ * Default config for {@link ui/Measurable.Measurable}.
29
+ *
30
+ * @memberof ui/Measurable.Measurable
31
+ * @hocconfig
32
+ */
33
33
  var defaultConfig = {
34
34
  /**
35
35
  * Configures the prop name to pass the measurement object.
@@ -107,7 +107,6 @@ var useMeasurable = exports.useMeasurable = function useMeasurable() {
107
107
  }
108
108
  }, [] // disconnect on unmount
109
109
  );
110
-
111
110
  return {
112
111
  ref: ref,
113
112
  measurement: measurement
@@ -134,12 +133,11 @@ var useMeasurable = exports.useMeasurable = function useMeasurable() {
134
133
  */
135
134
  var Measurable = exports.Measurable = (0, _hoc["default"])(defaultConfig, function (configHoc, Wrapped) {
136
135
  return function MeasurableHoc(props) {
137
- var _measurementProps;
138
136
  // Take the config from Measurable and insert it into a fresh instance of defineMeasurable
139
137
  var _useMeasurable = useMeasurable(),
140
138
  ref = _useMeasurable.ref,
141
139
  measurement = _useMeasurable.measurement;
142
- var measurementProps = (_measurementProps = {}, _defineProperty(_measurementProps, configHoc.refProp, ref), _defineProperty(_measurementProps, configHoc.measurementProp, measurement), _measurementProps);
140
+ var measurementProps = _defineProperty(_defineProperty({}, configHoc.refProp, ref), configHoc.measurementProp, measurement);
143
141
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapped, _objectSpread(_objectSpread({}, props), measurementProps));
144
142
  };
145
143
  });
@@ -3,16 +3,16 @@
3
3
  var _react = require("@testing-library/react");
4
4
  var _Measurable = _interopRequireWildcard(require("../Measurable"));
5
5
  var _jsxRuntime = require("react/jsx-runtime");
6
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
7
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
6
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
7
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
8
8
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
9
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
10
10
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
13
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
15
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
15
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
16
  var data;
17
17
  var DivComponent = function DivComponent(props) {
18
18
  data = props;
package/Media/Media.js CHANGED
@@ -20,8 +20,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
20
20
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
21
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
22
22
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
24
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
24
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25
25
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -29,35 +29,35 @@ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "
29
29
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
30
30
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
31
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**
32
- * A representation of `HTMLMediaElement` component with an ability to attach a custom event
33
- * handler.
34
- *
35
- * @module ui/Media
36
- * @exports getKeyFromSource
37
- * @exports handledMediaEventsMap
38
- * @exports Media
39
- */ /**
40
- * Generates a key representing the source node or nodes provided
41
- *
42
- * Example:
43
- * ```
44
- * getKeyFromSource('path/file.mp4'); // 'path/file.mp4'
45
- * getKeyFromSource(
46
- * <source src="path/file.mp4" type="video/mp4" />
47
- * ); // 'path/file.mp4'
48
- * getKeyFromSource([
49
- * <source src="path/file.mp4" type="video/mp4" />,
50
- * <source src="path/file.ogg" type="video/ogg" />,
51
- * ]); // 'path/file.mp4+path/file.ogg'
52
- * ```
53
- *
54
- * @function
55
- * @param {String|Element|Element[]} source URI for a source, `<source>` node, or array of
56
- * `<source>` nodes
57
- * @returns {String} Key representing sources
58
- * @memberof ui/Media
59
- * @public
60
- */
32
+ * A representation of `HTMLMediaElement` component with an ability to attach a custom event
33
+ * handler.
34
+ *
35
+ * @module ui/Media
36
+ * @exports getKeyFromSource
37
+ * @exports handledMediaEventsMap
38
+ * @exports Media
39
+ */ /**
40
+ * Generates a key representing the source node or nodes provided
41
+ *
42
+ * Example:
43
+ * ```
44
+ * getKeyFromSource('path/file.mp4'); // 'path/file.mp4'
45
+ * getKeyFromSource(
46
+ * <source src="path/file.mp4" type="video/mp4" />
47
+ * ); // 'path/file.mp4'
48
+ * getKeyFromSource([
49
+ * <source src="path/file.mp4" type="video/mp4" />,
50
+ * <source src="path/file.ogg" type="video/ogg" />,
51
+ * ]); // 'path/file.mp4+path/file.ogg'
52
+ * ```
53
+ *
54
+ * @function
55
+ * @param {String|Element|Element[]} source URI for a source, `<source>` node, or array of
56
+ * `<source>` nodes
57
+ * @returns {String} Key representing sources
58
+ * @memberof ui/Media
59
+ * @public
60
+ */
61
61
  var getKeyFromSource = exports.getKeyFromSource = function getKeyFromSource() {
62
62
  var source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
63
63
  if ( /*#__PURE__*/(0, _react.isValidElement)(source)) {
@@ -73,7 +73,7 @@ var getKeyFromSource = exports.getKeyFromSource = function getKeyFromSource() {
73
73
  /**
74
74
  * Maps standard media event `type` values to React-style callback prop names
75
75
  *
76
- * See https://reactjs.org/docs/events.html#media-events
76
+ * See https://react.dev/reference/react-dom/components/common#common-props
77
77
  *
78
78
  * ```
79
79
  * {
@@ -18,8 +18,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
18
18
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
19
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
20
20
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
22
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
21
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
22
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
23
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
24
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
25
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -27,12 +27,12 @@ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "
27
27
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
28
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
29
29
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**
30
- * Default config for `PlaceholderControllerDecorator`.
31
- *
32
- * @memberof ui/Placeholder.PlaceholderControllerDecorator
33
- * @hocconfig
34
- * @public
35
- */
30
+ * Default config for `PlaceholderControllerDecorator`.
31
+ *
32
+ * @memberof ui/Placeholder.PlaceholderControllerDecorator
33
+ * @hocconfig
34
+ * @public
35
+ */
36
36
  var defaultConfig = {
37
37
  /**
38
38
  * The bounds of the container represented by an object with `height` and `width` members.
@@ -15,8 +15,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
15
15
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
16
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
17
17
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
19
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
19
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
20
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
21
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
22
22
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -24,12 +24,12 @@ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "
24
24
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25
25
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26
26
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**
27
- * Default config for PlaceholderDecorator.
28
- *
29
- * @memberof ui/Placeholder.PlaceholderDecorator
30
- * @hocconfig
31
- * @public
32
- */
27
+ * Default config for PlaceholderDecorator.
28
+ *
29
+ * @memberof ui/Placeholder.PlaceholderDecorator
30
+ * @hocconfig
31
+ * @public
32
+ */
33
33
  var defaultConfig = {
34
34
  /**
35
35
  * Configures the style of the placeholder element
@@ -20,24 +20,23 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
20
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
21
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22
22
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
24
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
25
- * A basic progress bar component that can display the progress of something in a horizontal,
26
- * vertical, or radial bar format.
27
- *
28
- * A secondary independent progress indicator can be displayed, to indicate
29
- * an additional degree of information, often used as a background loading progress.
30
- *
31
- * @module ui/ProgressBar
32
- * @exports ProgressBar
33
- * @exports ProgressBarBase
34
- * @exports ProgressBarDecorator
35
- */
23
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
24
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
25
+ * A basic progress bar component that can display the progress of something in a horizontal,
26
+ * vertical, or radial bar format.
27
+ *
28
+ * A secondary independent progress indicator can be displayed, to indicate
29
+ * an additional degree of information, often used as a background loading progress.
30
+ *
31
+ * @module ui/ProgressBar
32
+ * @exports ProgressBar
33
+ * @exports ProgressBarBase
34
+ * @exports ProgressBarDecorator
35
+ */
36
36
  var progressToProportion = function progressToProportion(value) {
37
37
  return (0, _clamp["default"])(0, 1, value);
38
38
  };
39
39
  var calcBarStyle = function calcBarStyle(prop, anchor) {
40
- var _ref;
41
40
  var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : anchor;
42
41
  var startProp = arguments.length > 3 ? arguments[3] : undefined;
43
42
  var endProp = arguments.length > 4 ? arguments[4] : undefined;
@@ -47,7 +46,7 @@ var calcBarStyle = function calcBarStyle(prop, anchor) {
47
46
  (0, _validators.validateRange)(start, 0, 1, 'ProgressBar', prop, 'min', 'max');
48
47
  (0, _validators.validateRange)(end, 0, 1, 'ProgressBar', prop, 'min', 'max');
49
48
  }
50
- return _ref = {}, _defineProperty(_ref, startProp, progressToProportion(start)), _defineProperty(_ref, endProp, progressToProportion(end)), _ref;
49
+ return _defineProperty(_defineProperty({}, startProp, progressToProportion(start)), endProp, progressToProportion(end));
51
50
  };
52
51
 
53
52
  /**
package/README.md CHANGED
@@ -35,7 +35,7 @@ npm install --save @enact/ui
35
35
 
36
36
  Unless otherwise specified, all content, including all source code files and documentation files in this repository are:
37
37
 
38
- Copyright (c) 2012-2023 LG Electronics
38
+ Copyright (c) 2012-2024 LG Electronics
39
39
 
40
40
  Unless otherwise specified or set forth in the NOTICE file, all content, including all source code files and documentation files in this repository are: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this content except in compliance with the License. You may obtain a copy of the License at
41
41
 
@@ -16,8 +16,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
16
16
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
17
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
18
18
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
20
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
20
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
21
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
23
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -23,8 +23,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
23
23
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24
24
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
25
25
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
26
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
27
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
26
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
27
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
28
28
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
30
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -32,18 +32,18 @@ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "
32
32
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
33
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
34
34
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**
35
- * A higher-order component that manages activation of components.
36
- *
37
- * @module ui/RadioDecorator
38
- * @exports RadioDecorator
39
- * @exports RadioControllerDecorator
40
- * @deprecated Will be removed in 5.0.0.
41
- */ /**
42
- * Default config for `RadioDecorator`.
43
- *
44
- * @memberof ui/RadioDecorator.RadioDecorator
45
- * @hocconfig
46
- */
35
+ * A higher-order component that manages activation of components.
36
+ *
37
+ * @module ui/RadioDecorator
38
+ * @exports RadioDecorator
39
+ * @exports RadioControllerDecorator
40
+ * @deprecated Will be removed in 5.0.0.
41
+ */ /**
42
+ * Default config for `RadioDecorator`.
43
+ *
44
+ * @memberof ui/RadioDecorator.RadioDecorator
45
+ * @hocconfig
46
+ */
47
47
  var defaultConfig = {
48
48
  /**
49
49
  * The event indicating the wrapped component is activated
@@ -16,21 +16,21 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
16
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
17
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18
18
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
20
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
21
- * A repeater component.
22
- *
23
- * @module ui/Repeater
24
- * @exports Repeater
25
- */ /**
26
- * A stateless component that stamps out copies of `childComponent`, without
27
- * [RepeaterDecorator](ui/Repeater.RepeaterDecorator) applied.
28
- *
29
- * @class RepeaterBase
30
- * @memberof ui/Repeater
31
- * @ui
32
- * @public
33
- */
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
20
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
21
+ * A repeater component.
22
+ *
23
+ * @module ui/Repeater
24
+ * @exports Repeater
25
+ */ /**
26
+ * A stateless component that stamps out copies of `childComponent`, without
27
+ * [RepeaterDecorator](ui/Repeater.RepeaterDecorator) applied.
28
+ *
29
+ * @class RepeaterBase
30
+ * @memberof ui/Repeater
31
+ * @ui
32
+ * @public
33
+ */
34
34
  var RepeaterBase = exports.RepeaterBase = (0, _kind["default"])({
35
35
  name: 'Repeater',
36
36
  propTypes: /** @lends ui/Repeater.RepeaterBase.prototype */{
@@ -54,7 +54,7 @@ var RepeaterBase = exports.RepeaterBase = (0, _kind["default"])({
54
54
  * text content using the `children` key.
55
55
  *
56
56
  * > **NOTE**: When an array of objects is provided, make sure a unique `key` is assigned to each
57
- * data. See https://fb.me/react-warning-keys for more information.
57
+ * data. See https://react.dev/learn/rendering-lists#keeping-list-items-in-order-with-key for more information.
58
58
  *
59
59
  * @type {String[]|Array.<{key: (Number|String)}>}
60
60
  * @required
@@ -4,13 +4,13 @@ require("@testing-library/jest-dom");
4
4
  var _react = require("@testing-library/react");
5
5
  var _Repeater = _interopRequireWildcard(require("../Repeater"));
6
6
  var _jsxRuntime = require("react/jsx-runtime");
7
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
8
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
7
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
8
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
9
9
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10
10
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
11
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
13
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
13
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
14
14
  describe('Repeater Specs', function () {
15
15
  var stringItems = ['One', 'Two', 'Three'];
16
16
  var objItems = stringItems.map(function (content, key) {
@@ -20,18 +20,18 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
20
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
21
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22
22
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
24
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
25
- * A higher-order component that handles component resize event.
26
- *
27
- * @module ui/Resizable
28
- * @exports Resizable
29
- */ /**
30
- * Default config for `Resizable`.
31
- *
32
- * @memberof ui/Resizable.Resizable
33
- * @hocconfig
34
- */
23
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
24
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
25
+ * A higher-order component that handles component resize event.
26
+ *
27
+ * @module ui/Resizable
28
+ * @exports Resizable
29
+ */ /**
30
+ * Default config for `Resizable`.
31
+ *
32
+ * @memberof ui/Resizable.Resizable
33
+ * @hocconfig
34
+ */
35
35
  var defaultConfig = {
36
36
  /**
37
37
  * A handler to process the `resize` event.
@@ -4,8 +4,8 @@ var _Registry = _interopRequireDefault(require("@enact/core/internal/Registry"))
4
4
  var _react = require("@testing-library/react");
5
5
  var _Resizable = _interopRequireWildcard(require("../Resizable"));
6
6
  var _jsxRuntime = require("react/jsx-runtime");
7
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
8
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
7
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
8
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
10
  describe('Resizable', function () {
11
11
  var data;
@@ -9,8 +9,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
9
9
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10
10
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
11
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
13
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
13
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
14
14
  describe('useResize', function () {
15
15
  var data;
16
16
  var DivComponent = function DivComponent(props) {