@limetech/lime-elements 39.13.2 → 39.14.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 (186) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/{_assignValue-D2D1zedG.js → _assignValue-DpsLUlF4.js} +25 -2
  3. package/dist/cjs/{_baseForOwn-QM0kHQT5.js → _baseEach-C570gT5Y.js} +43 -1
  4. package/dist/cjs/{_baseIsEqual-D6hrjmx4.js → _baseIsEqual-aOPReRWl.js} +1 -0
  5. package/dist/cjs/{_baseIteratee-iGEZ9pZY.js → _baseIteratee-DggA4e7a.js} +3 -1
  6. package/dist/cjs/_commonjsHelpers-CFO10eej.js +7 -0
  7. package/dist/cjs/_getAllKeysIn-BQIV8aw7.js +118 -0
  8. package/dist/cjs/_isIterateeCall-CPWXFS_s.js +72 -0
  9. package/dist/cjs/cloneDeep-CxFNKF1Y.js +619 -0
  10. package/dist/cjs/{isArrayLikeObject-CTP6Ak01.js → difference-Bfsq4sXB.js} +93 -5
  11. package/dist/cjs/{focus-trigger-element-NnpJ5nTp.js → focus-trigger-element-Brw8VubX.js} +1 -1
  12. package/dist/cjs/{format-D04vDIBj.js → format-D4jZb7Ls.js} +1 -1
  13. package/dist/cjs/{index-mbfaT7TB.js → index-BgFEL6FF.js} +1 -1
  14. package/dist/cjs/{isEmpty-DCC_l2Xp.js → isEmpty-EBCFxX1S.js} +1 -1
  15. package/dist/cjs/{isEqual-BsHLqE-x.js → isEqual-bXyw7kXo.js} +1 -1
  16. package/dist/cjs/lime-elements.cjs.js +1 -1
  17. package/dist/cjs/limel-badge.cjs.entry.js +2 -2
  18. package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +2 -3
  19. package/dist/cjs/limel-chip_2.cjs.entry.js +3 -3
  20. package/dist/cjs/limel-circular-progress.cjs.entry.js +2 -2
  21. package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
  22. package/dist/cjs/limel-date-picker.cjs.entry.js +3 -3
  23. package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
  24. package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +5 -44
  25. package/dist/cjs/limel-file-viewer.cjs.entry.js +2 -2
  26. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +12 -74
  27. package/dist/cjs/limel-form.cjs.entry.js +38541 -50295
  28. package/dist/cjs/limel-markdown.cjs.entry.js +3 -3
  29. package/dist/cjs/limel-picker.cjs.entry.js +1 -0
  30. package/dist/cjs/limel-popover_2.cjs.entry.js +2 -3
  31. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +13 -478
  32. package/dist/cjs/limel-tab-bar.cjs.entry.js +4 -83
  33. package/dist/cjs/limel-table.cjs.entry.js +17 -272
  34. package/dist/cjs/loader.cjs.js +1 -1
  35. package/dist/cjs/{markdown-parser-DCnW9yak.js → markdown-parser-BIa99LAc.js} +2 -2
  36. package/dist/cjs/{moment-DCqC7BZP.js → moment-CqRdiK10.js} +1 -1
  37. package/dist/cjs/pickBy-kLjYLoam.js +201 -0
  38. package/dist/cjs/{sv-jO-ewmqh.js → sv-BSR4W58y.js} +1 -1
  39. package/dist/collection/components/form/adapters/widget-adapter.js +23 -30
  40. package/dist/collection/components/form/fields/array-field.js +39 -6
  41. package/dist/collection/components/form/fields/field-helpers.js +4 -4
  42. package/dist/collection/components/form/fields/object-field.js +4 -2
  43. package/dist/collection/components/form/fields/schema-field.js +33 -70
  44. package/dist/collection/components/form/form.css +19 -19
  45. package/dist/collection/components/form/form.js +40 -72
  46. package/dist/collection/components/form/form.test-schemas.js +308 -0
  47. package/dist/collection/components/form/row/row-context.js +2 -0
  48. package/dist/collection/components/form/row/row.js +2 -2
  49. package/dist/collection/components/form/templates/array-context.js +2 -0
  50. package/dist/collection/components/form/templates/array-field-collapsible-item.js +4 -4
  51. package/dist/collection/components/form/templates/array-field-item.js +47 -0
  52. package/dist/collection/components/form/templates/array-field-simple-item.js +6 -7
  53. package/dist/collection/components/form/templates/array-field.js +38 -94
  54. package/dist/collection/components/form/templates/index.js +1 -0
  55. package/dist/collection/components/form/templates/object-field.js +15 -11
  56. package/dist/collection/components/form/validation-display.js +75 -0
  57. package/dist/collection/components/form/validator.js +10 -0
  58. package/dist/collection/components/form/widgets/code-editor.js +1 -1
  59. package/dist/collection/components/form/widgets/select.js +2 -1
  60. package/dist/collection/components/picker/picker.js +1 -0
  61. package/dist/collection/components/table/table.js +12 -12
  62. package/dist/esm/{_assignValue-DkGAX8ec.js → _assignValue-DOEO9byf.js} +24 -2
  63. package/dist/esm/{_baseForOwn-CfpQNnvA.js → _baseEach-CL_-rBMy.js} +42 -2
  64. package/dist/esm/{_baseIsEqual-BvHnKRmD.js → _baseIsEqual-BfXMsuGh.js} +2 -2
  65. package/dist/esm/{_baseIteratee-DFBCJcMA.js → _baseIteratee-kS1-0_xD.js} +3 -3
  66. package/dist/esm/_commonjsHelpers-B85MJLTf.js +5 -0
  67. package/dist/esm/_getAllKeysIn-BKpeslPJ.js +113 -0
  68. package/dist/esm/_isIterateeCall-CTcCv8Mb.js +69 -0
  69. package/dist/esm/cloneDeep-BXAw5H-1.js +609 -0
  70. package/dist/esm/{isArrayLikeObject-D7yRwRv4.js → difference-DMAjHh-t.js} +91 -7
  71. package/dist/esm/{focus-trigger-element-6aEStEKM.js → focus-trigger-element-DubROLkE.js} +1 -1
  72. package/dist/esm/{format-BMPGHLQ8.js → format-hTrthuPP.js} +1 -1
  73. package/dist/esm/{index-DJJymEnS.js → index-t4DgGbWS.js} +1 -1
  74. package/dist/esm/{isArrayLike-bWHU4ebg.js → isArrayLike-D1QkaJU2.js} +1 -1
  75. package/dist/esm/{isEmpty-tfwtR2ai.js → isEmpty-DrFXbHWO.js} +2 -2
  76. package/dist/esm/{isEqual-BkQ4Z_9r.js → isEqual-CpaoJ_AF.js} +1 -1
  77. package/dist/esm/lime-elements.js +1 -1
  78. package/dist/esm/limel-badge.entry.js +2 -2
  79. package/dist/esm/limel-breadcrumbs_7.entry.js +2 -3
  80. package/dist/esm/limel-chip_2.entry.js +4 -4
  81. package/dist/esm/limel-circular-progress.entry.js +2 -2
  82. package/dist/esm/limel-code-editor.entry.js +1 -1
  83. package/dist/esm/limel-date-picker.entry.js +3 -3
  84. package/dist/esm/limel-dialog.entry.js +3 -3
  85. package/dist/esm/limel-file-dropzone_2.entry.js +4 -43
  86. package/dist/esm/limel-file-viewer.entry.js +2 -2
  87. package/dist/esm/limel-flatpickr-adapter.entry.js +8 -70
  88. package/dist/esm/limel-form.entry.js +38553 -50307
  89. package/dist/esm/limel-markdown.entry.js +3 -3
  90. package/dist/esm/limel-picker.entry.js +1 -0
  91. package/dist/esm/limel-popover_2.entry.js +2 -3
  92. package/dist/esm/limel-prosemirror-adapter.entry.js +12 -477
  93. package/dist/esm/limel-tab-bar.entry.js +4 -83
  94. package/dist/esm/limel-table.entry.js +14 -269
  95. package/dist/esm/loader.js +1 -1
  96. package/dist/esm/{markdown-parser-CXYHPPe2.js → markdown-parser-D7vLKElE.js} +2 -2
  97. package/dist/esm/{moment-DhvPC9Jt.js → moment-DQRNe8qq.js} +1 -1
  98. package/dist/esm/pickBy-BEA90LIZ.js +195 -0
  99. package/dist/esm/{sv-84mf7Xsv.js → sv-CY-6-yEp.js} +1 -1
  100. package/dist/lime-elements/lime-elements.esm.js +1 -1
  101. package/dist/lime-elements/p-1cb2d781.entry.js +13 -0
  102. package/dist/lime-elements/{p-bd77c457.entry.js → p-2160ff6e.entry.js} +1 -1
  103. package/dist/lime-elements/{p-00d6ccd6.entry.js → p-25ae3a55.entry.js} +5 -5
  104. package/dist/lime-elements/{p-be0cbddb.entry.js → p-374ec191.entry.js} +1 -1
  105. package/dist/lime-elements/p-3a662d7e.entry.js +1 -0
  106. package/dist/lime-elements/{p-f0f5eda1.entry.js → p-41be4893.entry.js} +1 -1
  107. package/dist/lime-elements/{p-c84911e6.entry.js → p-4ad193a2.entry.js} +1 -1
  108. package/dist/lime-elements/{p-dd7a2361.entry.js → p-4ce682cf.entry.js} +3 -3
  109. package/dist/lime-elements/{p-eeae0ef6.entry.js → p-5ee484a7.entry.js} +4 -4
  110. package/dist/lime-elements/{p-b1d6553c.entry.js → p-77abb595.entry.js} +1 -1
  111. package/dist/lime-elements/p-8065425a.entry.js +1 -0
  112. package/dist/lime-elements/{p-77ba0f66.entry.js → p-8299af78.entry.js} +1 -1
  113. package/dist/lime-elements/{p-87c5e951.entry.js → p-8c7a7003.entry.js} +1 -1
  114. package/dist/lime-elements/{p-ce20d720.entry.js → p-97c401f1.entry.js} +1 -1
  115. package/dist/lime-elements/p-9a378cf0.entry.js +1 -0
  116. package/dist/lime-elements/p-B3zCFNAw.js +1 -0
  117. package/dist/lime-elements/p-B6bNnxRu.js +1 -0
  118. package/dist/lime-elements/p-B85MJLTf.js +1 -0
  119. package/dist/lime-elements/p-BCMRfUKp.js +1 -0
  120. package/dist/lime-elements/p-BbU4FGNT.js +1 -0
  121. package/dist/lime-elements/p-Bp0tNo1s.js +1 -0
  122. package/dist/lime-elements/{p-DpyWBa_Z.js → p-Bt64o80S.js} +1 -1
  123. package/dist/lime-elements/{p-BqiDn_Sf.js → p-BvDmWgCs.js} +1 -1
  124. package/dist/lime-elements/p-CMjGNANG.js +1 -0
  125. package/dist/lime-elements/p-DFWcgJ_i.js +1 -0
  126. package/dist/lime-elements/{p-B4YDb6f3.js → p-DJvGLFul.js} +1 -1
  127. package/dist/lime-elements/p-DTXIk0fN.js +1 -0
  128. package/dist/lime-elements/{p-BgPHaiMH.js → p-D_uMnX5g.js} +1 -1
  129. package/dist/lime-elements/{p-g3InYy9F.js → p-DdYOzHlg.js} +1 -1
  130. package/dist/lime-elements/{p-ndpPJpml.js → p-DsDkl4Sy.js} +1 -1
  131. package/dist/lime-elements/p-UGKt6Ywx.js +1 -0
  132. package/dist/lime-elements/p-afcf580c.entry.js +16 -0
  133. package/dist/lime-elements/p-b57b08b6.entry.js +1 -0
  134. package/dist/lime-elements/p-v6b303K5.js +1 -0
  135. package/dist/lime-elements/p-xQsJdKrq.js +1 -0
  136. package/dist/lime-elements/{p-BYx8mudw.js → p-zo6O9LC9.js} +2 -2
  137. package/dist/types/components/form/adapters/widget-adapter.d.ts +3 -2
  138. package/dist/types/components/form/fields/array-field.d.ts +11 -19
  139. package/dist/types/components/form/fields/object-field.d.ts +2 -2
  140. package/dist/types/components/form/fields/schema-field.d.ts +5 -18
  141. package/dist/types/components/form/form.d.ts +4 -8
  142. package/dist/types/components/form/form.test-schemas.d.ts +30 -0
  143. package/dist/types/components/form/row/row-context.d.ts +2 -0
  144. package/dist/types/components/form/templates/array-context.d.ts +7 -0
  145. package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +7 -11
  146. package/dist/types/components/form/templates/array-field-item.d.ts +6 -0
  147. package/dist/types/components/form/templates/array-field-simple-item.d.ts +7 -9
  148. package/dist/types/components/form/templates/array-field.d.ts +7 -8
  149. package/dist/types/components/form/templates/index.d.ts +1 -0
  150. package/dist/types/components/form/templates/object-field.d.ts +6 -1
  151. package/dist/types/components/form/templates/types.d.ts +2 -4
  152. package/dist/types/components/form/validation-display.d.ts +60 -0
  153. package/dist/types/components/form/validator.d.ts +6 -0
  154. package/dist/types/components/form/widgets/code-editor.d.ts +1 -1
  155. package/dist/types/components/form/widgets/types.d.ts +1 -1
  156. package/dist/types/components/table/table.d.ts +8 -8
  157. package/package.json +4 -2
  158. package/dist/cjs/_baseAssignValue-BJgt6T7z.js +0 -27
  159. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -10
  160. package/dist/cjs/_getPrototype-BK9cL-57.js +0 -8
  161. package/dist/cjs/negate-Bg3SqQh6.js +0 -42
  162. package/dist/collection/components/form/fields/types.js +0 -1
  163. package/dist/collection/components/form/schema-cache.js +0 -66
  164. package/dist/esm/_baseAssignValue-C8Uwn8zr.js +0 -25
  165. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -7
  166. package/dist/esm/_getPrototype-jV9gkkJy.js +0 -6
  167. package/dist/esm/negate-ooVD-6_a.js +0 -40
  168. package/dist/lime-elements/p-45dfcaf3.entry.js +0 -1
  169. package/dist/lime-elements/p-5db2d069.entry.js +0 -1
  170. package/dist/lime-elements/p-9728aa4a.entry.js +0 -1
  171. package/dist/lime-elements/p-BFTU3MAI.js +0 -1
  172. package/dist/lime-elements/p-BlJd1RC5.js +0 -1
  173. package/dist/lime-elements/p-C6SEjICu.js +0 -1
  174. package/dist/lime-elements/p-CqEHNkif.js +0 -1
  175. package/dist/lime-elements/p-Cs5T63LB.js +0 -1
  176. package/dist/lime-elements/p-Cw1B5fXE.js +0 -1
  177. package/dist/lime-elements/p-DKxusNKT.js +0 -1
  178. package/dist/lime-elements/p-DrjUjEz3.js +0 -1
  179. package/dist/lime-elements/p-DzlmgobW.js +0 -1
  180. package/dist/lime-elements/p-ZcW3uvZL.js +0 -1
  181. package/dist/lime-elements/p-a4a09ce9.entry.js +0 -7
  182. package/dist/lime-elements/p-ad9cb573.entry.js +0 -1
  183. package/dist/lime-elements/p-c4e2885d.entry.js +0 -16
  184. package/dist/lime-elements/p-ooVD-6_a.js +0 -1
  185. package/dist/types/components/form/fields/types.d.ts +0 -41
  186. package/dist/types/components/form/schema-cache.d.ts +0 -17
@@ -3,7 +3,7 @@ import { g as getNative, t as toSource } from './_getNative-aN4R8EiP.js';
3
3
  import { r as root, b as baseGetTag, f as freeGlobal, S as Symbol } from './isObject-BJQylLSL.js';
4
4
  import { i as isArray } from './isArray-B8VKuhvH.js';
5
5
  import { i as isObjectLike } from './isObjectLike-oiMYqRQ0.js';
6
- import { i as isLength, a as isIndex, b as isArrayLike } from './isArrayLike-bWHU4ebg.js';
6
+ import { a as isLength, b as isIndex, i as isArrayLike } from './isArrayLike-D1QkaJU2.js';
7
7
 
8
8
  /* Built-in method references that are verified to be native. */
9
9
  var WeakMap = getNative(root, 'WeakMap');
@@ -1539,4 +1539,4 @@ function baseIsEqual(value, other, bitmask, customizer, stack) {
1539
1539
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
1540
1540
  }
1541
1541
 
1542
- export { MapCache as M, Set as S, Uint8Array as U, SetCache as a, baseIsEqual as b, cacheHas as c, isTypedArray as d, isArguments as e, isPrototype as f, getTag as g, baseKeys as h, isBuffer as i, Stack as j, keys as k, arrayPush as l, arrayLikeKeys as m, stubArray as n, overArg as o, getSymbols as p, baseGetAllKeys as q, baseUnary as r, setToArray as s, nodeUtil as t, getAllKeys as u };
1542
+ export { MapCache as M, Stack as S, Uint8Array as U, isTypedArray as a, isArguments as b, SetCache as c, cacheHas as d, baseIsEqual as e, baseTimes as f, Set as g, getTag as h, isBuffer as i, isPrototype as j, keys as k, baseKeys as l, getSymbols as m, baseUnary as n, nodeUtil as o, getAllKeys as p, arrayPush as q, arrayLikeKeys as r, setToArray as s, overArg as t, stubArray as u, baseGetAllKeys as v };
@@ -1,8 +1,8 @@
1
- import { M as MapCache, j as Stack, b as baseIsEqual, k as keys, e as isArguments } from './_baseIsEqual-BvHnKRmD.js';
1
+ import { M as MapCache, S as Stack, e as baseIsEqual, k as keys, b as isArguments } from './_baseIsEqual-BfXMsuGh.js';
2
2
  import { S as Symbol, i as isObject } from './isObject-BJQylLSL.js';
3
3
  import { i as isArray } from './isArray-B8VKuhvH.js';
4
4
  import { i as isSymbol } from './isSymbol-ClAke5ga.js';
5
- import { i as isLength, a as isIndex } from './isArrayLike-bWHU4ebg.js';
5
+ import { a as isLength, b as isIndex } from './isArrayLike-D1QkaJU2.js';
6
6
  import { i as identity } from './identity-CK4jS9_E.js';
7
7
 
8
8
  /**
@@ -596,4 +596,4 @@ function baseIteratee(value) {
596
596
  return property(value);
597
597
  }
598
598
 
599
- export { toKey as a, baseIteratee as b, castPath as c, baseGet as d, arrayMap as e, get as g, hasPath as h, toString as t };
599
+ export { arrayMap as a, baseGet as b, baseIteratee as c, castPath as d, toKey as e, hasPath as f, get as g, hasIn as h, stringToPath as s, toString as t };
@@ -0,0 +1,5 @@
1
+ function getDefaultExportFromCjs (x) {
2
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3
+ }
4
+
5
+ export { getDefaultExportFromCjs as g };
@@ -0,0 +1,113 @@
1
+ import { j as isPrototype, r as arrayLikeKeys, t as overArg, u as stubArray, q as arrayPush, m as getSymbols, v as baseGetAllKeys } from './_baseIsEqual-BfXMsuGh.js';
2
+ import { i as isObject } from './isObject-BJQylLSL.js';
3
+ import { i as isArrayLike } from './isArrayLike-D1QkaJU2.js';
4
+
5
+ /**
6
+ * This function is like
7
+ * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
8
+ * except that it includes inherited enumerable properties.
9
+ *
10
+ * @private
11
+ * @param {Object} object The object to query.
12
+ * @returns {Array} Returns the array of property names.
13
+ */
14
+ function nativeKeysIn(object) {
15
+ var result = [];
16
+ if (object != null) {
17
+ for (var key in Object(object)) {
18
+ result.push(key);
19
+ }
20
+ }
21
+ return result;
22
+ }
23
+
24
+ /** Used for built-in method references. */
25
+ var objectProto = Object.prototype;
26
+
27
+ /** Used to check objects for own properties. */
28
+ var hasOwnProperty = objectProto.hasOwnProperty;
29
+
30
+ /**
31
+ * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
32
+ *
33
+ * @private
34
+ * @param {Object} object The object to query.
35
+ * @returns {Array} Returns the array of property names.
36
+ */
37
+ function baseKeysIn(object) {
38
+ if (!isObject(object)) {
39
+ return nativeKeysIn(object);
40
+ }
41
+ var isProto = isPrototype(object),
42
+ result = [];
43
+
44
+ for (var key in object) {
45
+ if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
46
+ result.push(key);
47
+ }
48
+ }
49
+ return result;
50
+ }
51
+
52
+ /**
53
+ * Creates an array of the own and inherited enumerable property names of `object`.
54
+ *
55
+ * **Note:** Non-object values are coerced to objects.
56
+ *
57
+ * @static
58
+ * @memberOf _
59
+ * @since 3.0.0
60
+ * @category Object
61
+ * @param {Object} object The object to query.
62
+ * @returns {Array} Returns the array of property names.
63
+ * @example
64
+ *
65
+ * function Foo() {
66
+ * this.a = 1;
67
+ * this.b = 2;
68
+ * }
69
+ *
70
+ * Foo.prototype.c = 3;
71
+ *
72
+ * _.keysIn(new Foo);
73
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
74
+ */
75
+ function keysIn(object) {
76
+ return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
77
+ }
78
+
79
+ /** Built-in value references. */
80
+ var getPrototype = overArg(Object.getPrototypeOf, Object);
81
+
82
+ /* Built-in method references for those with the same name as other `lodash` methods. */
83
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
84
+
85
+ /**
86
+ * Creates an array of the own and inherited enumerable symbols of `object`.
87
+ *
88
+ * @private
89
+ * @param {Object} object The object to query.
90
+ * @returns {Array} Returns the array of symbols.
91
+ */
92
+ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
93
+ var result = [];
94
+ while (object) {
95
+ arrayPush(result, getSymbols(object));
96
+ object = getPrototype(object);
97
+ }
98
+ return result;
99
+ };
100
+
101
+ /**
102
+ * Creates an array of own and inherited enumerable property names and
103
+ * symbols of `object`.
104
+ *
105
+ * @private
106
+ * @param {Object} object The object to query.
107
+ * @returns {Array} Returns the array of property names and symbols.
108
+ */
109
+ function getAllKeysIn(object) {
110
+ return baseGetAllKeys(object, keysIn, getSymbolsIn);
111
+ }
112
+
113
+ export { getAllKeysIn as a, getSymbolsIn as b, getPrototype as g, keysIn as k };
@@ -0,0 +1,69 @@
1
+ import { t as toNumber } from './toNumber-D6JYpQI9.js';
2
+ import { e as eq } from './eq-D7VMHFyO.js';
3
+ import { i as isArrayLike, b as isIndex } from './isArrayLike-D1QkaJU2.js';
4
+ import { i as isObject } from './isObject-BJQylLSL.js';
5
+
6
+ /** Used as references for various `Number` constants. */
7
+ var INFINITY = 1 / 0,
8
+ MAX_INTEGER = 1.7976931348623157e+308;
9
+
10
+ /**
11
+ * Converts `value` to a finite number.
12
+ *
13
+ * @static
14
+ * @memberOf _
15
+ * @since 4.12.0
16
+ * @category Lang
17
+ * @param {*} value The value to convert.
18
+ * @returns {number} Returns the converted number.
19
+ * @example
20
+ *
21
+ * _.toFinite(3.2);
22
+ * // => 3.2
23
+ *
24
+ * _.toFinite(Number.MIN_VALUE);
25
+ * // => 5e-324
26
+ *
27
+ * _.toFinite(Infinity);
28
+ * // => 1.7976931348623157e+308
29
+ *
30
+ * _.toFinite('3.2');
31
+ * // => 3.2
32
+ */
33
+ function toFinite(value) {
34
+ if (!value) {
35
+ return value === 0 ? value : 0;
36
+ }
37
+ value = toNumber(value);
38
+ if (value === INFINITY || value === -INFINITY) {
39
+ var sign = (value < 0 ? -1 : 1);
40
+ return sign * MAX_INTEGER;
41
+ }
42
+ return value === value ? value : 0;
43
+ }
44
+
45
+ /**
46
+ * Checks if the given arguments are from an iteratee call.
47
+ *
48
+ * @private
49
+ * @param {*} value The potential iteratee value argument.
50
+ * @param {*} index The potential iteratee index or key argument.
51
+ * @param {*} object The potential iteratee object argument.
52
+ * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
53
+ * else `false`.
54
+ */
55
+ function isIterateeCall(value, index, object) {
56
+ if (!isObject(object)) {
57
+ return false;
58
+ }
59
+ var type = typeof index;
60
+ if (type == 'number'
61
+ ? (isArrayLike(object) && isIndex(index, object.length))
62
+ : (type == 'string' && index in object)
63
+ ) {
64
+ return eq(object[index], value);
65
+ }
66
+ return false;
67
+ }
68
+
69
+ export { isIterateeCall as i, toFinite as t };