@limetech/lime-crm-building-blocks 1.96.0 → 1.97.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 (179) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/{_MapCache-2e84a981.js → _MapCache-8b125fbb.js} +0 -26
  3. package/dist/cjs/{_Uint8Array-1e99726d.js → _Uint8Array-95263550.js} +1 -12
  4. package/dist/cjs/_baseIsEqual-cb7951b0.js +496 -0
  5. package/dist/cjs/_defineProperty-40a6ad5d.js +15 -0
  6. package/dist/cjs/{get-1acf79ce.js → get-932b213e.js} +5 -4
  7. package/dist/cjs/isEqual-e77cce75.js +37 -0
  8. package/dist/cjs/isSymbol-5b36aeee.js +30 -0
  9. package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
  10. package/dist/cjs/lime-query.types-bcb63a22.js +61 -0
  11. package/dist/cjs/limebb-component-config.cjs.entry.js +3 -2
  12. package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +382 -150
  13. package/dist/cjs/limebb-lime-query-filter-and_5.cjs.entry.js +278 -0
  14. package/dist/cjs/limebb-lime-query-value-input.cjs.entry.js +239 -0
  15. package/dist/cjs/limebb-limetype-field_2.cjs.entry.js +406 -0
  16. package/dist/cjs/limebb-live-docs-info.cjs.entry.js +2 -2
  17. package/dist/cjs/limebb-locale-picker.cjs.entry.js +13 -498
  18. package/dist/cjs/limebb-mention-group-counter.cjs.entry.js +2 -2
  19. package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +3 -3
  20. package/dist/cjs/limebb-notification-item.cjs.entry.js +1 -1
  21. package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +2 -2
  22. package/dist/cjs/limebb-property-selector.cjs.entry.js +234 -0
  23. package/dist/cjs/limebb-response-format-item.cjs.entry.js +80 -0
  24. package/dist/cjs/limebb-text-editor.cjs.entry.js +20 -61
  25. package/dist/cjs/limebb-trend-indicator.cjs.entry.js +1 -1
  26. package/dist/cjs/limetype-1fe0207f.js +90 -0
  27. package/dist/cjs/loader.cjs.js +1 -1
  28. package/dist/cjs/property-resolution-fb42a46b.js +66 -0
  29. package/dist/collection/collection-manifest.json +10 -0
  30. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-and.css +121 -0
  31. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-and.js +257 -0
  32. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.css +39 -0
  33. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.js +246 -0
  34. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.css +104 -0
  35. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.js +220 -0
  36. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.css +107 -0
  37. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.js +212 -0
  38. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-or.css +123 -0
  39. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-or.js +237 -0
  40. package/dist/collection/components/lime-query-builder/expressions/lime-query-value-input.css +48 -0
  41. package/dist/collection/components/lime-query-builder/expressions/lime-query-value-input.js +457 -0
  42. package/dist/collection/components/lime-query-builder/filter-conversion.js +118 -21
  43. package/dist/collection/components/lime-query-builder/lime-query-builder.css +30 -17
  44. package/dist/collection/components/lime-query-builder/lime-query-builder.js +233 -28
  45. package/dist/collection/components/lime-query-builder/limetype-field/limetype-field.js +435 -0
  46. package/dist/collection/components/lime-query-builder/property-selection-format.js +158 -0
  47. package/dist/collection/components/lime-query-builder/property-selector/property-selector.css +8 -0
  48. package/dist/collection/components/lime-query-builder/property-selector/property-selector.js +422 -0
  49. package/dist/collection/components/lime-query-builder/response-format-editor.css +72 -0
  50. package/dist/collection/components/lime-query-builder/response-format-editor.js +249 -0
  51. package/dist/collection/components/lime-query-builder/response-format-item.css +61 -0
  52. package/dist/collection/components/lime-query-builder/response-format-item.js +208 -0
  53. package/dist/collection/components/limeobject/file-viewer/live-docs-info.js +2 -2
  54. package/dist/collection/components/locale-picker/locale-picker.js +1 -1
  55. package/dist/collection/components/notification-list/notification-item/notification-item.js +1 -1
  56. package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +2 -2
  57. package/dist/collection/components/summary-popover/summary-popover.js +3 -3
  58. package/dist/collection/components/text-editor/mention-group-counter.js +2 -2
  59. package/dist/collection/components/text-editor/text-editor.js +1 -1
  60. package/dist/collection/components/trend-indicator/trend-indicator.js +1 -1
  61. package/dist/components/_MapCache.js +2 -27
  62. package/dist/components/_Uint8Array.js +2 -12
  63. package/dist/components/_baseIsEqual.js +494 -0
  64. package/dist/components/_defineProperty.js +13 -0
  65. package/dist/components/get.js +2 -1
  66. package/dist/components/isEqual.js +35 -0
  67. package/dist/components/isSymbol.js +28 -0
  68. package/dist/components/lime-query-filter-and.js +408 -0
  69. package/dist/components/lime-query-filter-comparison.js +152 -0
  70. package/dist/components/lime-query-value-input.js +266 -0
  71. package/dist/components/limebb-lime-query-builder.js +441 -149
  72. package/dist/components/limebb-lime-query-filter-and.d.ts +11 -0
  73. package/dist/components/limebb-lime-query-filter-and.js +6 -0
  74. package/dist/components/limebb-lime-query-filter-comparison.d.ts +11 -0
  75. package/dist/components/limebb-lime-query-filter-comparison.js +6 -0
  76. package/dist/components/limebb-lime-query-filter-expression.d.ts +11 -0
  77. package/dist/components/limebb-lime-query-filter-expression.js +6 -0
  78. package/dist/components/limebb-lime-query-filter-not.d.ts +11 -0
  79. package/dist/components/limebb-lime-query-filter-not.js +6 -0
  80. package/dist/components/limebb-lime-query-filter-or.d.ts +11 -0
  81. package/dist/components/limebb-lime-query-filter-or.js +6 -0
  82. package/dist/components/limebb-lime-query-value-input.d.ts +11 -0
  83. package/dist/components/limebb-lime-query-value-input.js +6 -0
  84. package/dist/components/limebb-limetype-field.d.ts +11 -0
  85. package/dist/components/limebb-limetype-field.js +6 -0
  86. package/dist/components/limebb-locale-picker.js +8 -493
  87. package/dist/components/limebb-mention-group-counter.js +2 -2
  88. package/dist/components/limebb-percentage-visualizer.js +2 -2
  89. package/dist/components/limebb-property-selector.d.ts +11 -0
  90. package/dist/components/limebb-property-selector.js +6 -0
  91. package/dist/components/limebb-response-format-editor.d.ts +11 -0
  92. package/dist/components/limebb-response-format-editor.js +6 -0
  93. package/dist/components/limebb-response-format-item.d.ts +11 -0
  94. package/dist/components/limebb-response-format-item.js +6 -0
  95. package/dist/components/limebb-text-editor.js +7 -48
  96. package/dist/components/limebb-trend-indicator.js +1 -1
  97. package/dist/components/limetype-field.js +184 -0
  98. package/dist/components/limetype.js +85 -0
  99. package/dist/components/live-docs-info.js +2 -2
  100. package/dist/components/notification-item.js +1 -1
  101. package/dist/components/property-selector.js +317 -0
  102. package/dist/components/response-format-editor.js +278 -0
  103. package/dist/components/response-format-item.js +104 -0
  104. package/dist/components/summary-popover.js +3 -3
  105. package/dist/esm/{_MapCache-6484495d.js → _MapCache-af496e9d.js} +2 -27
  106. package/dist/esm/{_Uint8Array-e5cac922.js → _Uint8Array-d6ebd526.js} +3 -13
  107. package/dist/esm/_baseIsEqual-28053b81.js +494 -0
  108. package/dist/esm/_defineProperty-e6a185c3.js +13 -0
  109. package/dist/esm/{get-f9e0b2e1.js → get-3e42932b.js} +2 -1
  110. package/dist/esm/isEqual-57d0c223.js +35 -0
  111. package/dist/esm/isSymbol-1c5f65cc.js +28 -0
  112. package/dist/esm/lime-crm-building-blocks.js +1 -1
  113. package/dist/esm/lime-query.types-f72355e1.js +59 -0
  114. package/dist/esm/limebb-component-config.entry.js +3 -2
  115. package/dist/esm/limebb-lime-query-builder.entry.js +379 -147
  116. package/dist/esm/limebb-lime-query-filter-and_5.entry.js +270 -0
  117. package/dist/esm/limebb-lime-query-value-input.entry.js +235 -0
  118. package/dist/esm/limebb-limetype-field_2.entry.js +401 -0
  119. package/dist/esm/limebb-live-docs-info.entry.js +2 -2
  120. package/dist/esm/limebb-locale-picker.entry.js +9 -494
  121. package/dist/esm/limebb-mention-group-counter.entry.js +2 -2
  122. package/dist/esm/limebb-navigation-button_2.entry.js +3 -3
  123. package/dist/esm/limebb-notification-item.entry.js +1 -1
  124. package/dist/esm/limebb-percentage-visualizer.entry.js +2 -2
  125. package/dist/esm/limebb-property-selector.entry.js +230 -0
  126. package/dist/esm/limebb-response-format-item.entry.js +76 -0
  127. package/dist/esm/limebb-text-editor.entry.js +7 -48
  128. package/dist/esm/limebb-trend-indicator.entry.js +1 -1
  129. package/dist/esm/limetype-6e7552a7.js +85 -0
  130. package/dist/esm/loader.js +1 -1
  131. package/dist/esm/property-resolution-fde2375e.js +63 -0
  132. package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
  133. package/dist/lime-crm-building-blocks/{p-88c64360.entry.js → p-00da9b24.entry.js} +1 -1
  134. package/dist/lime-crm-building-blocks/p-02c0cc04.entry.js +1 -0
  135. package/dist/lime-crm-building-blocks/p-123190c3.js +1 -0
  136. package/dist/lime-crm-building-blocks/p-244ee55b.entry.js +1 -0
  137. package/dist/lime-crm-building-blocks/p-35897ec3.js +1 -0
  138. package/dist/lime-crm-building-blocks/{p-85b7291c.entry.js → p-3932077b.entry.js} +1 -1
  139. package/dist/lime-crm-building-blocks/p-3b0a15ec.js +1 -0
  140. package/dist/lime-crm-building-blocks/p-5a6d2e7f.js +1 -0
  141. package/dist/lime-crm-building-blocks/p-60971d64.js +1 -0
  142. package/dist/lime-crm-building-blocks/p-6c1146ca.entry.js +1 -0
  143. package/dist/lime-crm-building-blocks/p-70a28b93.entry.js +1 -0
  144. package/dist/lime-crm-building-blocks/p-7e6fb4af.js +1 -0
  145. package/dist/lime-crm-building-blocks/{p-8664381a.entry.js → p-8c4eb49f.entry.js} +1 -1
  146. package/dist/lime-crm-building-blocks/p-96beaabc.entry.js +1 -0
  147. package/dist/lime-crm-building-blocks/p-a659d55a.js +1 -0
  148. package/dist/lime-crm-building-blocks/p-b7c72179.entry.js +1 -0
  149. package/dist/lime-crm-building-blocks/p-baf4e428.entry.js +1 -0
  150. package/dist/lime-crm-building-blocks/p-d298b34e.js +1 -0
  151. package/dist/lime-crm-building-blocks/{p-7c4bdc1b.entry.js → p-d89c44ad.entry.js} +1 -1
  152. package/dist/lime-crm-building-blocks/p-e0ab1554.js +1 -0
  153. package/dist/lime-crm-building-blocks/{p-8064cbfb.entry.js → p-e9d23ef7.entry.js} +1 -1
  154. package/dist/lime-crm-building-blocks/p-ef8a5266.entry.js +1 -0
  155. package/dist/lime-crm-building-blocks/{p-c9126885.entry.js → p-f52125a0.entry.js} +1 -1
  156. package/dist/lime-crm-building-blocks/p-f99c611d.entry.js +1 -0
  157. package/dist/lime-crm-building-blocks/p-fe2b91d9.js +1 -0
  158. package/dist/types/components/lime-query-builder/expressions/lime-query-filter-and.d.ts +56 -0
  159. package/dist/types/components/lime-query-builder/expressions/lime-query-filter-comparison.d.ts +64 -0
  160. package/dist/types/components/lime-query-builder/expressions/lime-query-filter-expression.d.ts +53 -0
  161. package/dist/types/components/lime-query-builder/expressions/lime-query-filter-not.d.ts +54 -0
  162. package/dist/types/components/lime-query-builder/expressions/lime-query-filter-or.d.ts +55 -0
  163. package/dist/types/components/lime-query-builder/expressions/lime-query-value-input.d.ts +92 -0
  164. package/dist/types/components/lime-query-builder/filter-conversion.d.ts +18 -0
  165. package/dist/types/components/lime-query-builder/lime-query-builder.d.ts +30 -8
  166. package/dist/types/components/lime-query-builder/limetype-field/limetype-field.d.ts +96 -0
  167. package/dist/types/components/lime-query-builder/property-selection-format.d.ts +23 -0
  168. package/dist/types/components/lime-query-builder/property-selector/property-selector.d.ts +71 -0
  169. package/dist/types/components/lime-query-builder/response-format-editor.d.ts +57 -0
  170. package/dist/types/components/lime-query-builder/response-format-item.d.ts +46 -0
  171. package/dist/types/components.d.ts +1558 -117
  172. package/package.json +1 -1
  173. package/dist/lime-crm-building-blocks/p-00e7e0d4.entry.js +0 -1
  174. package/dist/lime-crm-building-blocks/p-11ac105b.entry.js +0 -1
  175. package/dist/lime-crm-building-blocks/p-5abe3fff.entry.js +0 -1
  176. package/dist/lime-crm-building-blocks/p-8044ffbd.js +0 -1
  177. package/dist/lime-crm-building-blocks/p-92ec9205.entry.js +0 -1
  178. package/dist/lime-crm-building-blocks/p-bcc23575.js +0 -1
  179. package/dist/lime-crm-building-blocks/p-c40a3f4b.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.97.0](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.96.0...v1.97.0) (2025-11-03)
2
+
3
+ ### Features
4
+
5
+
6
+ * **lime-query-builder:** add visual query builder mode ([298d8ae](https://github.com/Lundalogik/lime-crm-building-blocks/commit/298d8aeaff6bf06245fb41cca5c604372205dee9))
7
+
1
8
  ## [1.96.0](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.95.0...v1.96.0) (2025-10-31)
2
9
 
3
10
  ### Features
@@ -2,31 +2,6 @@
2
2
 
3
3
  const _Map = require('./_Map-60aae0ed.js');
4
4
 
5
- /** `Object#toString` result references. */
6
- var symbolTag = '[object Symbol]';
7
-
8
- /**
9
- * Checks if `value` is classified as a `Symbol` primitive or object.
10
- *
11
- * @static
12
- * @memberOf _
13
- * @since 4.0.0
14
- * @category Lang
15
- * @param {*} value The value to check.
16
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
17
- * @example
18
- *
19
- * _.isSymbol(Symbol.iterator);
20
- * // => true
21
- *
22
- * _.isSymbol('abc');
23
- * // => false
24
- */
25
- function isSymbol(value) {
26
- return typeof value == 'symbol' ||
27
- (_Map.isObjectLike(value) && _Map.baseGetTag(value) == symbolTag);
28
- }
29
-
30
5
  /**
31
6
  * Performs a
32
7
  * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -460,4 +435,3 @@ MapCache.prototype.set = mapCacheSet;
460
435
  exports.ListCache = ListCache;
461
436
  exports.MapCache = MapCache;
462
437
  exports.eq = eq;
463
- exports.isSymbol = isSymbol;
@@ -1,19 +1,9 @@
1
1
  'use strict';
2
2
 
3
+ const _MapCache = require('./_MapCache-8b125fbb.js');
3
4
  const _Map = require('./_Map-60aae0ed.js');
4
- const _MapCache = require('./_MapCache-2e84a981.js');
5
5
  const _getTag = require('./_getTag-8809c5c6.js');
6
6
 
7
- var defineProperty = (function() {
8
- try {
9
- var func = _Map.getNative(Object, 'defineProperty');
10
- func({}, '', {});
11
- return func;
12
- } catch (e) {}
13
- }());
14
-
15
- const defineProperty$1 = defineProperty;
16
-
17
7
  /** Used as references for various `Number` constants. */
18
8
  var MAX_SAFE_INTEGER = 9007199254740991;
19
9
 
@@ -363,7 +353,6 @@ exports.Uint8Array = Uint8Array$1;
363
353
  exports.arrayLikeKeys = arrayLikeKeys;
364
354
  exports.arrayPush = arrayPush;
365
355
  exports.baseGetAllKeys = baseGetAllKeys;
366
- exports.defineProperty = defineProperty$1;
367
356
  exports.getAllKeys = getAllKeys;
368
357
  exports.getSymbols = getSymbols$1;
369
358
  exports.isIndex = isIndex;
@@ -0,0 +1,496 @@
1
+ 'use strict';
2
+
3
+ const _Uint8Array = require('./_Uint8Array-95263550.js');
4
+ const _MapCache = require('./_MapCache-8b125fbb.js');
5
+ const _Map = require('./_Map-60aae0ed.js');
6
+ const _getTag = require('./_getTag-8809c5c6.js');
7
+
8
+ /** Used to stand-in for `undefined` hash values. */
9
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
10
+
11
+ /**
12
+ * Adds `value` to the array cache.
13
+ *
14
+ * @private
15
+ * @name add
16
+ * @memberOf SetCache
17
+ * @alias push
18
+ * @param {*} value The value to cache.
19
+ * @returns {Object} Returns the cache instance.
20
+ */
21
+ function setCacheAdd(value) {
22
+ this.__data__.set(value, HASH_UNDEFINED);
23
+ return this;
24
+ }
25
+
26
+ /**
27
+ * Checks if `value` is in the array cache.
28
+ *
29
+ * @private
30
+ * @name has
31
+ * @memberOf SetCache
32
+ * @param {*} value The value to search for.
33
+ * @returns {number} Returns `true` if `value` is found, else `false`.
34
+ */
35
+ function setCacheHas(value) {
36
+ return this.__data__.has(value);
37
+ }
38
+
39
+ /**
40
+ *
41
+ * Creates an array cache object to store unique values.
42
+ *
43
+ * @private
44
+ * @constructor
45
+ * @param {Array} [values] The values to cache.
46
+ */
47
+ function SetCache(values) {
48
+ var index = -1,
49
+ length = values == null ? 0 : values.length;
50
+
51
+ this.__data__ = new _MapCache.MapCache;
52
+ while (++index < length) {
53
+ this.add(values[index]);
54
+ }
55
+ }
56
+
57
+ // Add methods to `SetCache`.
58
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
59
+ SetCache.prototype.has = setCacheHas;
60
+
61
+ /**
62
+ * A specialized version of `_.some` for arrays without support for iteratee
63
+ * shorthands.
64
+ *
65
+ * @private
66
+ * @param {Array} [array] The array to iterate over.
67
+ * @param {Function} predicate The function invoked per iteration.
68
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
69
+ * else `false`.
70
+ */
71
+ function arraySome(array, predicate) {
72
+ var index = -1,
73
+ length = array == null ? 0 : array.length;
74
+
75
+ while (++index < length) {
76
+ if (predicate(array[index], index, array)) {
77
+ return true;
78
+ }
79
+ }
80
+ return false;
81
+ }
82
+
83
+ /**
84
+ * Checks if a `cache` value for `key` exists.
85
+ *
86
+ * @private
87
+ * @param {Object} cache The cache to query.
88
+ * @param {string} key The key of the entry to check.
89
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
90
+ */
91
+ function cacheHas(cache, key) {
92
+ return cache.has(key);
93
+ }
94
+
95
+ /** Used to compose bitmasks for value comparisons. */
96
+ var COMPARE_PARTIAL_FLAG$3 = 1,
97
+ COMPARE_UNORDERED_FLAG$1 = 2;
98
+
99
+ /**
100
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
101
+ * partial deep comparisons.
102
+ *
103
+ * @private
104
+ * @param {Array} array The array to compare.
105
+ * @param {Array} other The other array to compare.
106
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
107
+ * @param {Function} customizer The function to customize comparisons.
108
+ * @param {Function} equalFunc The function to determine equivalents of values.
109
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
110
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
111
+ */
112
+ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
113
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
114
+ arrLength = array.length,
115
+ othLength = other.length;
116
+
117
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
118
+ return false;
119
+ }
120
+ // Check that cyclic values are equal.
121
+ var arrStacked = stack.get(array);
122
+ var othStacked = stack.get(other);
123
+ if (arrStacked && othStacked) {
124
+ return arrStacked == other && othStacked == array;
125
+ }
126
+ var index = -1,
127
+ result = true,
128
+ seen = (bitmask & COMPARE_UNORDERED_FLAG$1) ? new SetCache : undefined;
129
+
130
+ stack.set(array, other);
131
+ stack.set(other, array);
132
+
133
+ // Ignore non-index properties.
134
+ while (++index < arrLength) {
135
+ var arrValue = array[index],
136
+ othValue = other[index];
137
+
138
+ if (customizer) {
139
+ var compared = isPartial
140
+ ? customizer(othValue, arrValue, index, other, array, stack)
141
+ : customizer(arrValue, othValue, index, array, other, stack);
142
+ }
143
+ if (compared !== undefined) {
144
+ if (compared) {
145
+ continue;
146
+ }
147
+ result = false;
148
+ break;
149
+ }
150
+ // Recursively compare arrays (susceptible to call stack limits).
151
+ if (seen) {
152
+ if (!arraySome(other, function(othValue, othIndex) {
153
+ if (!cacheHas(seen, othIndex) &&
154
+ (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
155
+ return seen.push(othIndex);
156
+ }
157
+ })) {
158
+ result = false;
159
+ break;
160
+ }
161
+ } else if (!(
162
+ arrValue === othValue ||
163
+ equalFunc(arrValue, othValue, bitmask, customizer, stack)
164
+ )) {
165
+ result = false;
166
+ break;
167
+ }
168
+ }
169
+ stack['delete'](array);
170
+ stack['delete'](other);
171
+ return result;
172
+ }
173
+
174
+ /**
175
+ * Converts `map` to its key-value pairs.
176
+ *
177
+ * @private
178
+ * @param {Object} map The map to convert.
179
+ * @returns {Array} Returns the key-value pairs.
180
+ */
181
+ function mapToArray(map) {
182
+ var index = -1,
183
+ result = Array(map.size);
184
+
185
+ map.forEach(function(value, key) {
186
+ result[++index] = [key, value];
187
+ });
188
+ return result;
189
+ }
190
+
191
+ /**
192
+ * Converts `set` to an array of its values.
193
+ *
194
+ * @private
195
+ * @param {Object} set The set to convert.
196
+ * @returns {Array} Returns the values.
197
+ */
198
+ function setToArray(set) {
199
+ var index = -1,
200
+ result = Array(set.size);
201
+
202
+ set.forEach(function(value) {
203
+ result[++index] = value;
204
+ });
205
+ return result;
206
+ }
207
+
208
+ /** Used to compose bitmasks for value comparisons. */
209
+ var COMPARE_PARTIAL_FLAG$2 = 1,
210
+ COMPARE_UNORDERED_FLAG = 2;
211
+
212
+ /** `Object#toString` result references. */
213
+ var boolTag = '[object Boolean]',
214
+ dateTag = '[object Date]',
215
+ errorTag = '[object Error]',
216
+ mapTag = '[object Map]',
217
+ numberTag = '[object Number]',
218
+ regexpTag = '[object RegExp]',
219
+ setTag = '[object Set]',
220
+ stringTag = '[object String]',
221
+ symbolTag = '[object Symbol]';
222
+
223
+ var arrayBufferTag = '[object ArrayBuffer]',
224
+ dataViewTag = '[object DataView]';
225
+
226
+ /** Used to convert symbols to primitives and strings. */
227
+ var symbolProto = _Map.Symbol ? _Map.Symbol.prototype : undefined,
228
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
229
+
230
+ /**
231
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
232
+ * the same `toStringTag`.
233
+ *
234
+ * **Note:** This function only supports comparing values with tags of
235
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
236
+ *
237
+ * @private
238
+ * @param {Object} object The object to compare.
239
+ * @param {Object} other The other object to compare.
240
+ * @param {string} tag The `toStringTag` of the objects to compare.
241
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
242
+ * @param {Function} customizer The function to customize comparisons.
243
+ * @param {Function} equalFunc The function to determine equivalents of values.
244
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
245
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
246
+ */
247
+ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
248
+ switch (tag) {
249
+ case dataViewTag:
250
+ if ((object.byteLength != other.byteLength) ||
251
+ (object.byteOffset != other.byteOffset)) {
252
+ return false;
253
+ }
254
+ object = object.buffer;
255
+ other = other.buffer;
256
+
257
+ case arrayBufferTag:
258
+ if ((object.byteLength != other.byteLength) ||
259
+ !equalFunc(new _Uint8Array.Uint8Array(object), new _Uint8Array.Uint8Array(other))) {
260
+ return false;
261
+ }
262
+ return true;
263
+
264
+ case boolTag:
265
+ case dateTag:
266
+ case numberTag:
267
+ // Coerce booleans to `1` or `0` and dates to milliseconds.
268
+ // Invalid dates are coerced to `NaN`.
269
+ return _MapCache.eq(+object, +other);
270
+
271
+ case errorTag:
272
+ return object.name == other.name && object.message == other.message;
273
+
274
+ case regexpTag:
275
+ case stringTag:
276
+ // Coerce regexes to strings and treat strings, primitives and objects,
277
+ // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
278
+ // for more details.
279
+ return object == (other + '');
280
+
281
+ case mapTag:
282
+ var convert = mapToArray;
283
+
284
+ case setTag:
285
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
286
+ convert || (convert = setToArray);
287
+
288
+ if (object.size != other.size && !isPartial) {
289
+ return false;
290
+ }
291
+ // Assume cyclic values are equal.
292
+ var stacked = stack.get(object);
293
+ if (stacked) {
294
+ return stacked == other;
295
+ }
296
+ bitmask |= COMPARE_UNORDERED_FLAG;
297
+
298
+ // Recursively compare objects (susceptible to call stack limits).
299
+ stack.set(object, other);
300
+ var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
301
+ stack['delete'](object);
302
+ return result;
303
+
304
+ case symbolTag:
305
+ if (symbolValueOf) {
306
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
307
+ }
308
+ }
309
+ return false;
310
+ }
311
+
312
+ /** Used to compose bitmasks for value comparisons. */
313
+ var COMPARE_PARTIAL_FLAG$1 = 1;
314
+
315
+ /** Used for built-in method references. */
316
+ var objectProto$1 = Object.prototype;
317
+
318
+ /** Used to check objects for own properties. */
319
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
320
+
321
+ /**
322
+ * A specialized version of `baseIsEqualDeep` for objects with support for
323
+ * partial deep comparisons.
324
+ *
325
+ * @private
326
+ * @param {Object} object The object to compare.
327
+ * @param {Object} other The other object to compare.
328
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
329
+ * @param {Function} customizer The function to customize comparisons.
330
+ * @param {Function} equalFunc The function to determine equivalents of values.
331
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
332
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
333
+ */
334
+ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
335
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1,
336
+ objProps = _Uint8Array.getAllKeys(object),
337
+ objLength = objProps.length,
338
+ othProps = _Uint8Array.getAllKeys(other),
339
+ othLength = othProps.length;
340
+
341
+ if (objLength != othLength && !isPartial) {
342
+ return false;
343
+ }
344
+ var index = objLength;
345
+ while (index--) {
346
+ var key = objProps[index];
347
+ if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
348
+ return false;
349
+ }
350
+ }
351
+ // Check that cyclic values are equal.
352
+ var objStacked = stack.get(object);
353
+ var othStacked = stack.get(other);
354
+ if (objStacked && othStacked) {
355
+ return objStacked == other && othStacked == object;
356
+ }
357
+ var result = true;
358
+ stack.set(object, other);
359
+ stack.set(other, object);
360
+
361
+ var skipCtor = isPartial;
362
+ while (++index < objLength) {
363
+ key = objProps[index];
364
+ var objValue = object[key],
365
+ othValue = other[key];
366
+
367
+ if (customizer) {
368
+ var compared = isPartial
369
+ ? customizer(othValue, objValue, key, other, object, stack)
370
+ : customizer(objValue, othValue, key, object, other, stack);
371
+ }
372
+ // Recursively compare objects (susceptible to call stack limits).
373
+ if (!(compared === undefined
374
+ ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
375
+ : compared
376
+ )) {
377
+ result = false;
378
+ break;
379
+ }
380
+ skipCtor || (skipCtor = key == 'constructor');
381
+ }
382
+ if (result && !skipCtor) {
383
+ var objCtor = object.constructor,
384
+ othCtor = other.constructor;
385
+
386
+ // Non `Object` object instances with different constructors are not equal.
387
+ if (objCtor != othCtor &&
388
+ ('constructor' in object && 'constructor' in other) &&
389
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
390
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
391
+ result = false;
392
+ }
393
+ }
394
+ stack['delete'](object);
395
+ stack['delete'](other);
396
+ return result;
397
+ }
398
+
399
+ /** Used to compose bitmasks for value comparisons. */
400
+ var COMPARE_PARTIAL_FLAG = 1;
401
+
402
+ /** `Object#toString` result references. */
403
+ var argsTag = '[object Arguments]',
404
+ arrayTag = '[object Array]',
405
+ objectTag = '[object Object]';
406
+
407
+ /** Used for built-in method references. */
408
+ var objectProto = Object.prototype;
409
+
410
+ /** Used to check objects for own properties. */
411
+ var hasOwnProperty = objectProto.hasOwnProperty;
412
+
413
+ /**
414
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
415
+ * deep comparisons and tracks traversed objects enabling objects with circular
416
+ * references to be compared.
417
+ *
418
+ * @private
419
+ * @param {Object} object The object to compare.
420
+ * @param {Object} other The other object to compare.
421
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
422
+ * @param {Function} customizer The function to customize comparisons.
423
+ * @param {Function} equalFunc The function to determine equivalents of values.
424
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
425
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
426
+ */
427
+ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
428
+ var objIsArr = _Map.isArray(object),
429
+ othIsArr = _Map.isArray(other),
430
+ objTag = objIsArr ? arrayTag : _getTag.getTag(object),
431
+ othTag = othIsArr ? arrayTag : _getTag.getTag(other);
432
+
433
+ objTag = objTag == argsTag ? objectTag : objTag;
434
+ othTag = othTag == argsTag ? objectTag : othTag;
435
+
436
+ var objIsObj = objTag == objectTag,
437
+ othIsObj = othTag == objectTag,
438
+ isSameTag = objTag == othTag;
439
+
440
+ if (isSameTag && _getTag.isBuffer(object)) {
441
+ if (!_getTag.isBuffer(other)) {
442
+ return false;
443
+ }
444
+ objIsArr = true;
445
+ objIsObj = false;
446
+ }
447
+ if (isSameTag && !objIsObj) {
448
+ stack || (stack = new _Uint8Array.Stack);
449
+ return (objIsArr || _getTag.isTypedArray(object))
450
+ ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
451
+ : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
452
+ }
453
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
454
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
455
+ othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
456
+
457
+ if (objIsWrapped || othIsWrapped) {
458
+ var objUnwrapped = objIsWrapped ? object.value() : object,
459
+ othUnwrapped = othIsWrapped ? other.value() : other;
460
+
461
+ stack || (stack = new _Uint8Array.Stack);
462
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
463
+ }
464
+ }
465
+ if (!isSameTag) {
466
+ return false;
467
+ }
468
+ stack || (stack = new _Uint8Array.Stack);
469
+ return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
470
+ }
471
+
472
+ /**
473
+ * The base implementation of `_.isEqual` which supports partial comparisons
474
+ * and tracks traversed objects.
475
+ *
476
+ * @private
477
+ * @param {*} value The value to compare.
478
+ * @param {*} other The other value to compare.
479
+ * @param {boolean} bitmask The bitmask flags.
480
+ * 1 - Unordered comparison
481
+ * 2 - Partial comparison
482
+ * @param {Function} [customizer] The function to customize comparisons.
483
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
484
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
485
+ */
486
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
487
+ if (value === other) {
488
+ return true;
489
+ }
490
+ if (value == null || other == null || (!_Map.isObjectLike(value) && !_Map.isObjectLike(other))) {
491
+ return value !== value && other !== other;
492
+ }
493
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
494
+ }
495
+
496
+ exports.baseIsEqual = baseIsEqual;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ const _Map = require('./_Map-60aae0ed.js');
4
+
5
+ var defineProperty = (function() {
6
+ try {
7
+ var func = _Map.getNative(Object, 'defineProperty');
8
+ func({}, '', {});
9
+ return func;
10
+ } catch (e) {}
11
+ }());
12
+
13
+ const defineProperty$1 = defineProperty;
14
+
15
+ exports.defineProperty = defineProperty$1;
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const _Map = require('./_Map-60aae0ed.js');
4
- const _MapCache = require('./_MapCache-2e84a981.js');
4
+ const isSymbol = require('./isSymbol-5b36aeee.js');
5
+ const _MapCache = require('./_MapCache-8b125fbb.js');
5
6
 
6
7
  /**
7
8
  * A specialized version of `_.map` for arrays without support for iteratee
@@ -47,7 +48,7 @@ function baseToString(value) {
47
48
  // Recursively convert values (susceptible to call stack limits).
48
49
  return arrayMap(value, baseToString) + '';
49
50
  }
50
- if (_MapCache.isSymbol(value)) {
51
+ if (isSymbol.isSymbol(value)) {
51
52
  return symbolToString ? symbolToString.call(value) : '';
52
53
  }
53
54
  var result = (value + '');
@@ -72,7 +73,7 @@ function isKey(value, object) {
72
73
  }
73
74
  var type = typeof value;
74
75
  if (type == 'number' || type == 'symbol' || type == 'boolean' ||
75
- value == null || _MapCache.isSymbol(value)) {
76
+ value == null || isSymbol.isSymbol(value)) {
76
77
  return true;
77
78
  }
78
79
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
@@ -249,7 +250,7 @@ var INFINITY = 1 / 0;
249
250
  * @returns {string|symbol} Returns the key.
250
251
  */
251
252
  function toKey(value) {
252
- if (typeof value == 'string' || _MapCache.isSymbol(value)) {
253
+ if (typeof value == 'string' || isSymbol.isSymbol(value)) {
253
254
  return value;
254
255
  }
255
256
  var result = (value + '');
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ const _baseIsEqual = require('./_baseIsEqual-cb7951b0.js');
4
+
5
+ /**
6
+ * Performs a deep comparison between two values to determine if they are
7
+ * equivalent.
8
+ *
9
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
10
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
11
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
12
+ * by their own, not inherited, enumerable properties. Functions and DOM
13
+ * nodes are compared by strict equality, i.e. `===`.
14
+ *
15
+ * @static
16
+ * @memberOf _
17
+ * @since 0.1.0
18
+ * @category Lang
19
+ * @param {*} value The value to compare.
20
+ * @param {*} other The other value to compare.
21
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
22
+ * @example
23
+ *
24
+ * var object = { 'a': 1 };
25
+ * var other = { 'a': 1 };
26
+ *
27
+ * _.isEqual(object, other);
28
+ * // => true
29
+ *
30
+ * object === other;
31
+ * // => false
32
+ */
33
+ function isEqual(value, other) {
34
+ return _baseIsEqual.baseIsEqual(value, other);
35
+ }
36
+
37
+ exports.isEqual = isEqual;
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ const _Map = require('./_Map-60aae0ed.js');
4
+
5
+ /** `Object#toString` result references. */
6
+ var symbolTag = '[object Symbol]';
7
+
8
+ /**
9
+ * Checks if `value` is classified as a `Symbol` primitive or object.
10
+ *
11
+ * @static
12
+ * @memberOf _
13
+ * @since 4.0.0
14
+ * @category Lang
15
+ * @param {*} value The value to check.
16
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
17
+ * @example
18
+ *
19
+ * _.isSymbol(Symbol.iterator);
20
+ * // => true
21
+ *
22
+ * _.isSymbol('abc');
23
+ * // => false
24
+ */
25
+ function isSymbol(value) {
26
+ return typeof value == 'symbol' ||
27
+ (_Map.isObjectLike(value) && _Map.baseGetTag(value) == symbolTag);
28
+ }
29
+
30
+ exports.isSymbol = isSymbol;