@limetech/lime-crm-building-blocks 1.120.0 → 1.121.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 (99) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/{_MapCache-De1Fwe0H.js → _MapCache-DHOVMBKi.js} +341 -3
  3. package/dist/cjs/{_getTag-CdUodI28.js → _Uint8Array-CXHKqIsu.js} +375 -30
  4. package/dist/cjs/{_baseIsEqual-BtwicGmu.js → _baseIsEqual-Ba8g_ag_.js} +11 -13
  5. package/dist/cjs/{_defineProperty-eImBwVFM.js → _defineProperty-Bl_qu8Vn.js} +2 -2
  6. package/dist/cjs/{get-BRGtX379.js → get-D1lIKhWp.js} +6 -7
  7. package/dist/cjs/{isSymbol-D8S28StA.js → isSymbol-BJj6FNl6.js} +2 -2
  8. package/dist/cjs/limebb-component-config.cjs.entry.js +3 -4
  9. package/dist/cjs/limebb-info-tile.cjs.entry.js +134 -135
  10. package/dist/cjs/limebb-lime-query-filter-builder_3.cjs.entry.js +5 -7
  11. package/dist/cjs/limebb-locale-picker.cjs.entry.js +18 -20
  12. package/dist/cjs/limebb-object-chip.cjs.entry.js +1 -1
  13. package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +3 -3
  14. package/dist/cjs/limebb-property-selector.cjs.entry.js +1 -1
  15. package/dist/cjs/limebb-text-editor.cjs.entry.js +23 -25
  16. package/dist/cjs/limebb-trend-indicator.cjs.entry.js +2 -2
  17. package/dist/cjs/{limetype-TVwQ2eby.js → limetype-C7_hrzhN.js} +46 -0
  18. package/dist/collection/components/info-tile/info-tile.js +30 -67
  19. package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +3 -3
  20. package/dist/collection/components/text-editor/text-editor.js +1 -1
  21. package/dist/collection/components/trend-indicator/trend-indicator.js +2 -2
  22. package/dist/collection/util/explorer-link.js +68 -0
  23. package/dist/collection/util/find-filter.js +16 -0
  24. package/dist/collection/util/limetype.js +45 -0
  25. package/dist/collection/util/localize-record.js +21 -0
  26. package/dist/components/_MapCache.js +1 -1
  27. package/dist/components/_Uint8Array.js +1 -1
  28. package/dist/components/_baseIsEqual.js +1 -1
  29. package/dist/components/_defineProperty.js +1 -1
  30. package/dist/components/get.js +1 -1
  31. package/dist/components/isSymbol.js +1 -1
  32. package/dist/components/limebb-info-tile.js +1 -1
  33. package/dist/components/limebb-locale-picker.js +1 -1
  34. package/dist/components/limebb-text-editor.js +1 -1
  35. package/dist/components/limebb-trend-indicator.js +1 -1
  36. package/dist/components/limetype-field.js +1 -1
  37. package/dist/components/limetype.js +1 -1
  38. package/dist/components/percentage-visualizer.js +1 -1
  39. package/dist/esm/{_MapCache-C_kVhYUl.js → _MapCache-BgAfMcRA.js} +329 -2
  40. package/dist/esm/{_getTag-DZlkp9mJ.js → _Uint8Array-CUI8uY-p.js} +351 -11
  41. package/dist/esm/{_baseIsEqual-DB13O4pD.js → _baseIsEqual-C-Mrg4RA.js} +2 -4
  42. package/dist/esm/{_defineProperty-DSmG08hO.js → _defineProperty-DZ483KPn.js} +1 -1
  43. package/dist/esm/{get-Bo260bSC.js → get-Cq4rshNg.js} +2 -3
  44. package/dist/esm/{isSymbol-Ci8cASb6.js → isSymbol-_IkM6xCs.js} +1 -1
  45. package/dist/esm/limebb-component-config.entry.js +3 -4
  46. package/dist/esm/limebb-info-tile.entry.js +135 -136
  47. package/dist/esm/limebb-lime-query-filter-builder_3.entry.js +4 -6
  48. package/dist/esm/limebb-locale-picker.entry.js +6 -8
  49. package/dist/esm/limebb-object-chip.entry.js +1 -1
  50. package/dist/esm/limebb-percentage-visualizer.entry.js +3 -3
  51. package/dist/esm/limebb-property-selector.entry.js +1 -1
  52. package/dist/esm/limebb-text-editor.entry.js +5 -7
  53. package/dist/esm/limebb-trend-indicator.entry.js +2 -2
  54. package/dist/esm/{limetype-BCEsb4WT.js → limetype-C4AY5lRw.js} +46 -1
  55. package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
  56. package/dist/lime-crm-building-blocks/p--IuhN2yx.js +1 -0
  57. package/dist/lime-crm-building-blocks/{p-c663afd2.entry.js → p-0cac0e56.entry.js} +1 -1
  58. package/dist/lime-crm-building-blocks/{p-5f1a4341.entry.js → p-34ad8e75.entry.js} +1 -1
  59. package/dist/lime-crm-building-blocks/p-37bab931.entry.js +1 -0
  60. package/dist/lime-crm-building-blocks/p-4163a0c0.entry.js +1 -0
  61. package/dist/lime-crm-building-blocks/p-49edd4fe.entry.js +1 -0
  62. package/dist/lime-crm-building-blocks/p-6PYziigk.js +1 -0
  63. package/dist/lime-crm-building-blocks/p-7a983aca.entry.js +1 -0
  64. package/dist/lime-crm-building-blocks/p-9019ca6f.entry.js +1 -0
  65. package/dist/lime-crm-building-blocks/p-BgAfMcRA.js +1 -0
  66. package/dist/lime-crm-building-blocks/p-BsH0YW6Z.js +1 -0
  67. package/dist/lime-crm-building-blocks/p-CKEnwX6j.js +1 -0
  68. package/dist/lime-crm-building-blocks/p-Ceen0vzd.js +1 -0
  69. package/dist/lime-crm-building-blocks/p-CtcTT7BK.js +1 -0
  70. package/dist/lime-crm-building-blocks/p-aa9b7af3.entry.js +1 -0
  71. package/dist/lime-crm-building-blocks/p-f397b288.entry.js +1 -0
  72. package/dist/types/components/info-tile/info-tile.d.ts +0 -3
  73. package/dist/types/util/explorer-link.d.ts +52 -0
  74. package/dist/types/util/find-filter.d.ts +13 -0
  75. package/dist/types/util/limetype.d.ts +35 -0
  76. package/dist/types/util/localize-record.d.ts +17 -0
  77. package/package.json +2 -2
  78. package/dist/cjs/_Map-BlpAtLvq.js +0 -342
  79. package/dist/cjs/_Uint8Array-C_lvn5HO.js +0 -352
  80. package/dist/components/_Map.js +0 -1
  81. package/dist/components/_getTag.js +0 -1
  82. package/dist/esm/_Map-ByjZfyP_.js +0 -330
  83. package/dist/esm/_Uint8Array-DVXPnoWk.js +0 -345
  84. package/dist/lime-crm-building-blocks/p-25700afb.entry.js +0 -1
  85. package/dist/lime-crm-building-blocks/p-3622d9b7.entry.js +0 -1
  86. package/dist/lime-crm-building-blocks/p-44347a69.entry.js +0 -1
  87. package/dist/lime-crm-building-blocks/p-60a09d6b.entry.js +0 -1
  88. package/dist/lime-crm-building-blocks/p-7cbec456.entry.js +0 -1
  89. package/dist/lime-crm-building-blocks/p-B8RiYkLS.js +0 -1
  90. package/dist/lime-crm-building-blocks/p-BJ8HvfgI.js +0 -1
  91. package/dist/lime-crm-building-blocks/p-BoVsXNfL.js +0 -1
  92. package/dist/lime-crm-building-blocks/p-ByjZfyP_.js +0 -1
  93. package/dist/lime-crm-building-blocks/p-CQ-z_HTt.js +0 -1
  94. package/dist/lime-crm-building-blocks/p-V3xfp9dg.js +0 -1
  95. package/dist/lime-crm-building-blocks/p-e2a6b9d2.entry.js +0 -1
  96. package/dist/lime-crm-building-blocks/p-e70a5298.entry.js +0 -1
  97. package/dist/lime-crm-building-blocks/p-mljVfXwO.js +0 -1
  98. package/dist/lime-crm-building-blocks/p-wbuFLk-j.js +0 -1
  99. package/dist/lime-crm-building-blocks/p-yc--7_7T.js +0 -1
@@ -1,330 +0,0 @@
1
- /** Detect free variable `global` from Node.js. */
2
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
3
-
4
- /** Detect free variable `self`. */
5
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
6
-
7
- /** Used as a reference to the global object. */
8
- var root = freeGlobal || freeSelf || Function('return this')();
9
-
10
- /** Built-in value references. */
11
- var Symbol = root.Symbol;
12
-
13
- /** Used for built-in method references. */
14
- var objectProto$2 = Object.prototype;
15
-
16
- /** Used to check objects for own properties. */
17
- var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
18
-
19
- /**
20
- * Used to resolve the
21
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
22
- * of values.
23
- */
24
- var nativeObjectToString$1 = objectProto$2.toString;
25
-
26
- /** Built-in value references. */
27
- var symToStringTag$1 = Symbol ? Symbol.toStringTag : undefined;
28
-
29
- /**
30
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
31
- *
32
- * @private
33
- * @param {*} value The value to query.
34
- * @returns {string} Returns the raw `toStringTag`.
35
- */
36
- function getRawTag(value) {
37
- var isOwn = hasOwnProperty$1.call(value, symToStringTag$1),
38
- tag = value[symToStringTag$1];
39
-
40
- try {
41
- value[symToStringTag$1] = undefined;
42
- var unmasked = true;
43
- } catch (e) {}
44
-
45
- var result = nativeObjectToString$1.call(value);
46
- if (unmasked) {
47
- if (isOwn) {
48
- value[symToStringTag$1] = tag;
49
- } else {
50
- delete value[symToStringTag$1];
51
- }
52
- }
53
- return result;
54
- }
55
-
56
- /** Used for built-in method references. */
57
- var objectProto$1 = Object.prototype;
58
-
59
- /**
60
- * Used to resolve the
61
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
62
- * of values.
63
- */
64
- var nativeObjectToString = objectProto$1.toString;
65
-
66
- /**
67
- * Converts `value` to a string using `Object.prototype.toString`.
68
- *
69
- * @private
70
- * @param {*} value The value to convert.
71
- * @returns {string} Returns the converted string.
72
- */
73
- function objectToString(value) {
74
- return nativeObjectToString.call(value);
75
- }
76
-
77
- /** `Object#toString` result references. */
78
- var nullTag = '[object Null]',
79
- undefinedTag = '[object Undefined]';
80
-
81
- /** Built-in value references. */
82
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
83
-
84
- /**
85
- * The base implementation of `getTag` without fallbacks for buggy environments.
86
- *
87
- * @private
88
- * @param {*} value The value to query.
89
- * @returns {string} Returns the `toStringTag`.
90
- */
91
- function baseGetTag(value) {
92
- if (value == null) {
93
- return value === undefined ? undefinedTag : nullTag;
94
- }
95
- return (symToStringTag && symToStringTag in Object(value))
96
- ? getRawTag(value)
97
- : objectToString(value);
98
- }
99
-
100
- /**
101
- * Checks if `value` is object-like. A value is object-like if it's not `null`
102
- * and has a `typeof` result of "object".
103
- *
104
- * @static
105
- * @memberOf _
106
- * @since 4.0.0
107
- * @category Lang
108
- * @param {*} value The value to check.
109
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
110
- * @example
111
- *
112
- * _.isObjectLike({});
113
- * // => true
114
- *
115
- * _.isObjectLike([1, 2, 3]);
116
- * // => true
117
- *
118
- * _.isObjectLike(_.noop);
119
- * // => false
120
- *
121
- * _.isObjectLike(null);
122
- * // => false
123
- */
124
- function isObjectLike(value) {
125
- return value != null && typeof value == 'object';
126
- }
127
-
128
- /**
129
- * Checks if `value` is classified as an `Array` object.
130
- *
131
- * @static
132
- * @memberOf _
133
- * @since 0.1.0
134
- * @category Lang
135
- * @param {*} value The value to check.
136
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
137
- * @example
138
- *
139
- * _.isArray([1, 2, 3]);
140
- * // => true
141
- *
142
- * _.isArray(document.body.children);
143
- * // => false
144
- *
145
- * _.isArray('abc');
146
- * // => false
147
- *
148
- * _.isArray(_.noop);
149
- * // => false
150
- */
151
- var isArray = Array.isArray;
152
-
153
- /**
154
- * Checks if `value` is the
155
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
156
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
157
- *
158
- * @static
159
- * @memberOf _
160
- * @since 0.1.0
161
- * @category Lang
162
- * @param {*} value The value to check.
163
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
164
- * @example
165
- *
166
- * _.isObject({});
167
- * // => true
168
- *
169
- * _.isObject([1, 2, 3]);
170
- * // => true
171
- *
172
- * _.isObject(_.noop);
173
- * // => true
174
- *
175
- * _.isObject(null);
176
- * // => false
177
- */
178
- function isObject(value) {
179
- var type = typeof value;
180
- return value != null && (type == 'object' || type == 'function');
181
- }
182
-
183
- /** `Object#toString` result references. */
184
- var asyncTag = '[object AsyncFunction]',
185
- funcTag = '[object Function]',
186
- genTag = '[object GeneratorFunction]',
187
- proxyTag = '[object Proxy]';
188
-
189
- /**
190
- * Checks if `value` is classified as a `Function` object.
191
- *
192
- * @static
193
- * @memberOf _
194
- * @since 0.1.0
195
- * @category Lang
196
- * @param {*} value The value to check.
197
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
198
- * @example
199
- *
200
- * _.isFunction(_);
201
- * // => true
202
- *
203
- * _.isFunction(/abc/);
204
- * // => false
205
- */
206
- function isFunction(value) {
207
- if (!isObject(value)) {
208
- return false;
209
- }
210
- // The use of `Object#toString` avoids issues with the `typeof` operator
211
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
212
- var tag = baseGetTag(value);
213
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
214
- }
215
-
216
- /** Used to detect overreaching core-js shims. */
217
- var coreJsData = root['__core-js_shared__'];
218
-
219
- /** Used to detect methods masquerading as native. */
220
- var maskSrcKey = (function() {
221
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
222
- return uid ? ('Symbol(src)_1.' + uid) : '';
223
- }());
224
-
225
- /**
226
- * Checks if `func` has its source masked.
227
- *
228
- * @private
229
- * @param {Function} func The function to check.
230
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
231
- */
232
- function isMasked(func) {
233
- return !!maskSrcKey && (maskSrcKey in func);
234
- }
235
-
236
- /** Used for built-in method references. */
237
- var funcProto$1 = Function.prototype;
238
-
239
- /** Used to resolve the decompiled source of functions. */
240
- var funcToString$1 = funcProto$1.toString;
241
-
242
- /**
243
- * Converts `func` to its source code.
244
- *
245
- * @private
246
- * @param {Function} func The function to convert.
247
- * @returns {string} Returns the source code.
248
- */
249
- function toSource(func) {
250
- if (func != null) {
251
- try {
252
- return funcToString$1.call(func);
253
- } catch (e) {}
254
- try {
255
- return (func + '');
256
- } catch (e) {}
257
- }
258
- return '';
259
- }
260
-
261
- /**
262
- * Used to match `RegExp`
263
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
264
- */
265
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
266
-
267
- /** Used to detect host constructors (Safari). */
268
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
269
-
270
- /** Used for built-in method references. */
271
- var funcProto = Function.prototype,
272
- objectProto = Object.prototype;
273
-
274
- /** Used to resolve the decompiled source of functions. */
275
- var funcToString = funcProto.toString;
276
-
277
- /** Used to check objects for own properties. */
278
- var hasOwnProperty = objectProto.hasOwnProperty;
279
-
280
- /** Used to detect if a method is native. */
281
- var reIsNative = RegExp('^' +
282
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
283
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
284
- );
285
-
286
- /**
287
- * The base implementation of `_.isNative` without bad shim checks.
288
- *
289
- * @private
290
- * @param {*} value The value to check.
291
- * @returns {boolean} Returns `true` if `value` is a native function,
292
- * else `false`.
293
- */
294
- function baseIsNative(value) {
295
- if (!isObject(value) || isMasked(value)) {
296
- return false;
297
- }
298
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
299
- return pattern.test(toSource(value));
300
- }
301
-
302
- /**
303
- * Gets the value at `key` of `object`.
304
- *
305
- * @private
306
- * @param {Object} [object] The object to query.
307
- * @param {string} key The key of the property to get.
308
- * @returns {*} Returns the property value.
309
- */
310
- function getValue(object, key) {
311
- return object == null ? undefined : object[key];
312
- }
313
-
314
- /**
315
- * Gets the native function at `key` of `object`.
316
- *
317
- * @private
318
- * @param {Object} object The object to query.
319
- * @param {string} key The key of the method to get.
320
- * @returns {*} Returns the function if it's native, else `undefined`.
321
- */
322
- function getNative(object, key) {
323
- var value = getValue(object, key);
324
- return baseIsNative(value) ? value : undefined;
325
- }
326
-
327
- /* Built-in method references that are verified to be native. */
328
- var Map = getNative(root, 'Map');
329
-
330
- export { Map as M, Symbol as S, isArray as a, baseGetTag as b, isFunction as c, isObject as d, freeGlobal as f, getNative as g, isObjectLike as i, root as r, toSource as t };
@@ -1,345 +0,0 @@
1
- import { L as ListCache, M as MapCache } from './_MapCache-C_kVhYUl.js';
2
- import { a as isArray, M as Map, r as root } from './_Map-ByjZfyP_.js';
3
- import { c as isArguments, a as isBuffer, b as isTypedArray, e as baseKeys, i as isArrayLike } from './_getTag-DZlkp9mJ.js';
4
-
5
- /** Used as references for various `Number` constants. */
6
- var MAX_SAFE_INTEGER = 9007199254740991;
7
-
8
- /** Used to detect unsigned integer values. */
9
- var reIsUint = /^(?:0|[1-9]\d*)$/;
10
-
11
- /**
12
- * Checks if `value` is a valid array-like index.
13
- *
14
- * @private
15
- * @param {*} value The value to check.
16
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
17
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
18
- */
19
- function isIndex(value, length) {
20
- var type = typeof value;
21
- length = length == null ? MAX_SAFE_INTEGER : length;
22
-
23
- return !!length &&
24
- (type == 'number' ||
25
- (type != 'symbol' && reIsUint.test(value))) &&
26
- (value > -1 && value % 1 == 0 && value < length);
27
- }
28
-
29
- /**
30
- * The base implementation of `_.times` without support for iteratee shorthands
31
- * or max array length checks.
32
- *
33
- * @private
34
- * @param {number} n The number of times to invoke `iteratee`.
35
- * @param {Function} iteratee The function invoked per iteration.
36
- * @returns {Array} Returns the array of results.
37
- */
38
- function baseTimes(n, iteratee) {
39
- var index = -1,
40
- result = Array(n);
41
-
42
- while (++index < n) {
43
- result[index] = iteratee(index);
44
- }
45
- return result;
46
- }
47
-
48
- /** Used for built-in method references. */
49
- var objectProto$1 = Object.prototype;
50
-
51
- /** Used to check objects for own properties. */
52
- var hasOwnProperty = objectProto$1.hasOwnProperty;
53
-
54
- /**
55
- * Creates an array of the enumerable property names of the array-like `value`.
56
- *
57
- * @private
58
- * @param {*} value The value to query.
59
- * @param {boolean} inherited Specify returning inherited property names.
60
- * @returns {Array} Returns the array of property names.
61
- */
62
- function arrayLikeKeys(value, inherited) {
63
- var isArr = isArray(value),
64
- isArg = !isArr && isArguments(value),
65
- isBuff = !isArr && !isArg && isBuffer(value),
66
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
67
- skipIndexes = isArr || isArg || isBuff || isType,
68
- result = skipIndexes ? baseTimes(value.length, String) : [],
69
- length = result.length;
70
-
71
- for (var key in value) {
72
- if ((hasOwnProperty.call(value, key)) &&
73
- !(skipIndexes && (
74
- // Safari 9 has enumerable `arguments.length` in strict mode.
75
- key == 'length' ||
76
- // Node.js 0.10 has enumerable non-index properties on buffers.
77
- (isBuff && (key == 'offset' || key == 'parent')) ||
78
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
79
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
80
- // Skip index properties.
81
- isIndex(key, length)
82
- ))) {
83
- result.push(key);
84
- }
85
- }
86
- return result;
87
- }
88
-
89
- /**
90
- * Creates an array of the own enumerable property names of `object`.
91
- *
92
- * **Note:** Non-object values are coerced to objects. See the
93
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
94
- * for more details.
95
- *
96
- * @static
97
- * @since 0.1.0
98
- * @memberOf _
99
- * @category Object
100
- * @param {Object} object The object to query.
101
- * @returns {Array} Returns the array of property names.
102
- * @example
103
- *
104
- * function Foo() {
105
- * this.a = 1;
106
- * this.b = 2;
107
- * }
108
- *
109
- * Foo.prototype.c = 3;
110
- *
111
- * _.keys(new Foo);
112
- * // => ['a', 'b'] (iteration order is not guaranteed)
113
- *
114
- * _.keys('hi');
115
- * // => ['0', '1']
116
- */
117
- function keys(object) {
118
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
119
- }
120
-
121
- /**
122
- * Appends the elements of `values` to `array`.
123
- *
124
- * @private
125
- * @param {Array} array The array to modify.
126
- * @param {Array} values The values to append.
127
- * @returns {Array} Returns `array`.
128
- */
129
- function arrayPush(array, values) {
130
- var index = -1,
131
- length = values.length,
132
- offset = array.length;
133
-
134
- while (++index < length) {
135
- array[offset + index] = values[index];
136
- }
137
- return array;
138
- }
139
-
140
- /**
141
- * Removes all key-value entries from the stack.
142
- *
143
- * @private
144
- * @name clear
145
- * @memberOf Stack
146
- */
147
- function stackClear() {
148
- this.__data__ = new ListCache;
149
- this.size = 0;
150
- }
151
-
152
- /**
153
- * Removes `key` and its value from the stack.
154
- *
155
- * @private
156
- * @name delete
157
- * @memberOf Stack
158
- * @param {string} key The key of the value to remove.
159
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
160
- */
161
- function stackDelete(key) {
162
- var data = this.__data__,
163
- result = data['delete'](key);
164
-
165
- this.size = data.size;
166
- return result;
167
- }
168
-
169
- /**
170
- * Gets the stack value for `key`.
171
- *
172
- * @private
173
- * @name get
174
- * @memberOf Stack
175
- * @param {string} key The key of the value to get.
176
- * @returns {*} Returns the entry value.
177
- */
178
- function stackGet(key) {
179
- return this.__data__.get(key);
180
- }
181
-
182
- /**
183
- * Checks if a stack value for `key` exists.
184
- *
185
- * @private
186
- * @name has
187
- * @memberOf Stack
188
- * @param {string} key The key of the entry to check.
189
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
190
- */
191
- function stackHas(key) {
192
- return this.__data__.has(key);
193
- }
194
-
195
- /** Used as the size to enable large array optimizations. */
196
- var LARGE_ARRAY_SIZE = 200;
197
-
198
- /**
199
- * Sets the stack `key` to `value`.
200
- *
201
- * @private
202
- * @name set
203
- * @memberOf Stack
204
- * @param {string} key The key of the value to set.
205
- * @param {*} value The value to set.
206
- * @returns {Object} Returns the stack cache instance.
207
- */
208
- function stackSet(key, value) {
209
- var data = this.__data__;
210
- if (data instanceof ListCache) {
211
- var pairs = data.__data__;
212
- if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
213
- pairs.push([key, value]);
214
- this.size = ++data.size;
215
- return this;
216
- }
217
- data = this.__data__ = new MapCache(pairs);
218
- }
219
- data.set(key, value);
220
- this.size = data.size;
221
- return this;
222
- }
223
-
224
- /**
225
- * Creates a stack cache object to store key-value pairs.
226
- *
227
- * @private
228
- * @constructor
229
- * @param {Array} [entries] The key-value pairs to cache.
230
- */
231
- function Stack(entries) {
232
- var data = this.__data__ = new ListCache(entries);
233
- this.size = data.size;
234
- }
235
-
236
- // Add methods to `Stack`.
237
- Stack.prototype.clear = stackClear;
238
- Stack.prototype['delete'] = stackDelete;
239
- Stack.prototype.get = stackGet;
240
- Stack.prototype.has = stackHas;
241
- Stack.prototype.set = stackSet;
242
-
243
- /**
244
- * A specialized version of `_.filter` for arrays without support for
245
- * iteratee shorthands.
246
- *
247
- * @private
248
- * @param {Array} [array] The array to iterate over.
249
- * @param {Function} predicate The function invoked per iteration.
250
- * @returns {Array} Returns the new filtered array.
251
- */
252
- function arrayFilter(array, predicate) {
253
- var index = -1,
254
- length = array == null ? 0 : array.length,
255
- resIndex = 0,
256
- result = [];
257
-
258
- while (++index < length) {
259
- var value = array[index];
260
- if (predicate(value, index, array)) {
261
- result[resIndex++] = value;
262
- }
263
- }
264
- return result;
265
- }
266
-
267
- /**
268
- * This method returns a new empty array.
269
- *
270
- * @static
271
- * @memberOf _
272
- * @since 4.13.0
273
- * @category Util
274
- * @returns {Array} Returns the new empty array.
275
- * @example
276
- *
277
- * var arrays = _.times(2, _.stubArray);
278
- *
279
- * console.log(arrays);
280
- * // => [[], []]
281
- *
282
- * console.log(arrays[0] === arrays[1]);
283
- * // => false
284
- */
285
- function stubArray() {
286
- return [];
287
- }
288
-
289
- /** Used for built-in method references. */
290
- var objectProto = Object.prototype;
291
-
292
- /** Built-in value references. */
293
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
294
-
295
- /* Built-in method references for those with the same name as other `lodash` methods. */
296
- var nativeGetSymbols = Object.getOwnPropertySymbols;
297
-
298
- /**
299
- * Creates an array of the own enumerable symbols of `object`.
300
- *
301
- * @private
302
- * @param {Object} object The object to query.
303
- * @returns {Array} Returns the array of symbols.
304
- */
305
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
306
- if (object == null) {
307
- return [];
308
- }
309
- object = Object(object);
310
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
311
- return propertyIsEnumerable.call(object, symbol);
312
- });
313
- };
314
-
315
- /**
316
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
317
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
318
- * symbols of `object`.
319
- *
320
- * @private
321
- * @param {Object} object The object to query.
322
- * @param {Function} keysFunc The function to get the keys of `object`.
323
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
324
- * @returns {Array} Returns the array of property names and symbols.
325
- */
326
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
327
- var result = keysFunc(object);
328
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
329
- }
330
-
331
- /**
332
- * Creates an array of own enumerable property names and symbols of `object`.
333
- *
334
- * @private
335
- * @param {Object} object The object to query.
336
- * @returns {Array} Returns the array of property names and symbols.
337
- */
338
- function getAllKeys(object) {
339
- return baseGetAllKeys(object, keys, getSymbols);
340
- }
341
-
342
- /** Built-in value references. */
343
- var Uint8Array = root.Uint8Array;
344
-
345
- export { Stack as S, Uint8Array as U, arrayPush as a, getAllKeys as g, isIndex as i, keys as k };