@limetech/lime-crm-building-blocks 1.120.1 → 1.122.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.
- package/CHANGELOG.md +15 -0
- package/dist/cjs/{_MapCache-De1Fwe0H.js → _MapCache-DHOVMBKi.js} +341 -3
- package/dist/cjs/{_getTag-CdUodI28.js → _Uint8Array-CXHKqIsu.js} +375 -30
- package/dist/cjs/{_baseIsEqual-BtwicGmu.js → _baseIsEqual-Ba8g_ag_.js} +11 -13
- package/dist/cjs/{_defineProperty-eImBwVFM.js → _defineProperty-Bl_qu8Vn.js} +2 -2
- package/dist/cjs/{get-BRGtX379.js → get-D1lIKhWp.js} +6 -7
- package/dist/cjs/{isSymbol-D8S28StA.js → isSymbol-BJj6FNl6.js} +2 -2
- package/dist/cjs/limebb-component-config.cjs.entry.js +3 -4
- package/dist/cjs/limebb-dashboard-widget.cjs.entry.js +1 -1
- package/dist/cjs/limebb-info-tile.cjs.entry.js +134 -135
- package/dist/cjs/limebb-lime-query-filter-builder_3.cjs.entry.js +5 -7
- package/dist/cjs/limebb-locale-picker.cjs.entry.js +18 -20
- package/dist/cjs/limebb-object-chip.cjs.entry.js +1 -1
- package/dist/cjs/limebb-property-selector.cjs.entry.js +1 -1
- package/dist/cjs/limebb-text-editor.cjs.entry.js +23 -25
- package/dist/cjs/{limetype-TVwQ2eby.js → limetype-C7_hrzhN.js} +46 -0
- package/dist/collection/components/dashboard-widget/dashboard-widget.css +7 -0
- package/dist/collection/components/info-tile/info-tile.js +30 -67
- package/dist/collection/components/text-editor/text-editor.js +1 -1
- package/dist/collection/util/explorer-link.js +68 -0
- package/dist/collection/util/find-filter.js +16 -0
- package/dist/collection/util/limetype.js +45 -0
- package/dist/collection/util/localize-record.js +21 -0
- package/dist/components/_MapCache.js +1 -1
- package/dist/components/_Uint8Array.js +1 -1
- package/dist/components/_baseIsEqual.js +1 -1
- package/dist/components/_defineProperty.js +1 -1
- package/dist/components/get.js +1 -1
- package/dist/components/isSymbol.js +1 -1
- package/dist/components/limebb-dashboard-widget.js +1 -1
- package/dist/components/limebb-info-tile.js +1 -1
- package/dist/components/limebb-locale-picker.js +1 -1
- package/dist/components/limebb-text-editor.js +1 -1
- package/dist/components/limetype-field.js +1 -1
- package/dist/components/limetype.js +1 -1
- package/dist/esm/{_MapCache-C_kVhYUl.js → _MapCache-BgAfMcRA.js} +329 -2
- package/dist/esm/{_getTag-DZlkp9mJ.js → _Uint8Array-CUI8uY-p.js} +351 -11
- package/dist/esm/{_baseIsEqual-DB13O4pD.js → _baseIsEqual-C-Mrg4RA.js} +2 -4
- package/dist/esm/{_defineProperty-DSmG08hO.js → _defineProperty-DZ483KPn.js} +1 -1
- package/dist/esm/{get-Bo260bSC.js → get-Cq4rshNg.js} +2 -3
- package/dist/esm/{isSymbol-Ci8cASb6.js → isSymbol-_IkM6xCs.js} +1 -1
- package/dist/esm/limebb-component-config.entry.js +3 -4
- package/dist/esm/limebb-dashboard-widget.entry.js +1 -1
- package/dist/esm/limebb-info-tile.entry.js +135 -136
- package/dist/esm/limebb-lime-query-filter-builder_3.entry.js +4 -6
- package/dist/esm/limebb-locale-picker.entry.js +6 -8
- package/dist/esm/limebb-object-chip.entry.js +1 -1
- package/dist/esm/limebb-property-selector.entry.js +1 -1
- package/dist/esm/limebb-text-editor.entry.js +5 -7
- package/dist/esm/{limetype-BCEsb4WT.js → limetype-C4AY5lRw.js} +46 -1
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/p--IuhN2yx.js +1 -0
- package/dist/lime-crm-building-blocks/{p-c663afd2.entry.js → p-0cac0e56.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-5f1a4341.entry.js → p-34ad8e75.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-37bab931.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-4163a0c0.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-49edd4fe.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-d153e06d.entry.js → p-61791842.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-6PYziigk.js +1 -0
- package/dist/lime-crm-building-blocks/p-7a983aca.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-BgAfMcRA.js +1 -0
- package/dist/lime-crm-building-blocks/p-BsH0YW6Z.js +1 -0
- package/dist/lime-crm-building-blocks/p-CKEnwX6j.js +1 -0
- package/dist/lime-crm-building-blocks/p-Ceen0vzd.js +1 -0
- package/dist/lime-crm-building-blocks/p-CtcTT7BK.js +1 -0
- package/dist/lime-crm-building-blocks/p-aa9b7af3.entry.js +1 -0
- package/dist/types/components/info-tile/info-tile.d.ts +0 -3
- package/dist/types/util/explorer-link.d.ts +52 -0
- package/dist/types/util/find-filter.d.ts +13 -0
- package/dist/types/util/limetype.d.ts +35 -0
- package/dist/types/util/localize-record.d.ts +17 -0
- package/package.json +1 -1
- package/dist/cjs/_Map-BlpAtLvq.js +0 -342
- package/dist/cjs/_Uint8Array-C_lvn5HO.js +0 -352
- package/dist/components/_Map.js +0 -1
- package/dist/components/_getTag.js +0 -1
- package/dist/esm/_Map-ByjZfyP_.js +0 -330
- package/dist/esm/_Uint8Array-DVXPnoWk.js +0 -345
- package/dist/lime-crm-building-blocks/p-25700afb.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-44347a69.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-60a09d6b.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-B8RiYkLS.js +0 -1
- package/dist/lime-crm-building-blocks/p-BJ8HvfgI.js +0 -1
- package/dist/lime-crm-building-blocks/p-BoVsXNfL.js +0 -1
- package/dist/lime-crm-building-blocks/p-ByjZfyP_.js +0 -1
- package/dist/lime-crm-building-blocks/p-CQ-z_HTt.js +0 -1
- package/dist/lime-crm-building-blocks/p-V3xfp9dg.js +0 -1
- package/dist/lime-crm-building-blocks/p-e2a6b9d2.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-e70a5298.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-mljVfXwO.js +0 -1
- package/dist/lime-crm-building-blocks/p-wbuFLk-j.js +0 -1
- package/dist/lime-crm-building-blocks/p-yc--7_7T.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [1.122.0](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.121.0...v1.122.0) (2026-05-06)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* **dashboard-widget:** inherit header background on slotted navigation buttons ([4720f6e](https://github.com/Lundalogik/lime-crm-building-blocks/commit/4720f6e3e31a0c15d7cecface2768988ebe19c2b))
|
|
7
|
+
|
|
8
|
+
## [1.121.0](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.120.1...v1.121.0) (2026-05-06)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
* **util:** add explorer-link and limetype relation helpers ([1cee92b](https://github.com/Lundalogik/lime-crm-building-blocks/commit/1cee92bdd96a9801d81e7464b4f44670d1d3a3a5))
|
|
14
|
+
* **util:** add filter-set widget helpers ([58e60a4](https://github.com/Lundalogik/lime-crm-building-blocks/commit/58e60a4ce361e87a45a51eb7c8bfb16c69edd661))
|
|
15
|
+
|
|
1
16
|
## [1.120.1](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.120.0...v1.120.1) (2026-05-05)
|
|
2
17
|
|
|
3
18
|
### Bug Fixes
|
|
@@ -1,6 +1,330 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/** Detect free variable `global` from Node.js. */
|
|
4
|
+
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
5
|
+
|
|
6
|
+
/** Detect free variable `self`. */
|
|
7
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
8
|
+
|
|
9
|
+
/** Used as a reference to the global object. */
|
|
10
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
|
11
|
+
|
|
12
|
+
/** Built-in value references. */
|
|
13
|
+
var Symbol = root.Symbol;
|
|
14
|
+
|
|
15
|
+
/** Used for built-in method references. */
|
|
16
|
+
var objectProto$4 = Object.prototype;
|
|
17
|
+
|
|
18
|
+
/** Used to check objects for own properties. */
|
|
19
|
+
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Used to resolve the
|
|
23
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
24
|
+
* of values.
|
|
25
|
+
*/
|
|
26
|
+
var nativeObjectToString$1 = objectProto$4.toString;
|
|
27
|
+
|
|
28
|
+
/** Built-in value references. */
|
|
29
|
+
var symToStringTag$1 = Symbol ? Symbol.toStringTag : undefined;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
33
|
+
*
|
|
34
|
+
* @private
|
|
35
|
+
* @param {*} value The value to query.
|
|
36
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
37
|
+
*/
|
|
38
|
+
function getRawTag(value) {
|
|
39
|
+
var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
|
|
40
|
+
tag = value[symToStringTag$1];
|
|
41
|
+
|
|
42
|
+
try {
|
|
43
|
+
value[symToStringTag$1] = undefined;
|
|
44
|
+
var unmasked = true;
|
|
45
|
+
} catch (e) {}
|
|
46
|
+
|
|
47
|
+
var result = nativeObjectToString$1.call(value);
|
|
48
|
+
if (unmasked) {
|
|
49
|
+
if (isOwn) {
|
|
50
|
+
value[symToStringTag$1] = tag;
|
|
51
|
+
} else {
|
|
52
|
+
delete value[symToStringTag$1];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return result;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Used for built-in method references. */
|
|
59
|
+
var objectProto$3 = Object.prototype;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Used to resolve the
|
|
63
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
64
|
+
* of values.
|
|
65
|
+
*/
|
|
66
|
+
var nativeObjectToString = objectProto$3.toString;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
70
|
+
*
|
|
71
|
+
* @private
|
|
72
|
+
* @param {*} value The value to convert.
|
|
73
|
+
* @returns {string} Returns the converted string.
|
|
74
|
+
*/
|
|
75
|
+
function objectToString(value) {
|
|
76
|
+
return nativeObjectToString.call(value);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** `Object#toString` result references. */
|
|
80
|
+
var nullTag = '[object Null]',
|
|
81
|
+
undefinedTag = '[object Undefined]';
|
|
82
|
+
|
|
83
|
+
/** Built-in value references. */
|
|
84
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
88
|
+
*
|
|
89
|
+
* @private
|
|
90
|
+
* @param {*} value The value to query.
|
|
91
|
+
* @returns {string} Returns the `toStringTag`.
|
|
92
|
+
*/
|
|
93
|
+
function baseGetTag(value) {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
96
|
+
}
|
|
97
|
+
return (symToStringTag && symToStringTag in Object(value))
|
|
98
|
+
? getRawTag(value)
|
|
99
|
+
: objectToString(value);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
104
|
+
* and has a `typeof` result of "object".
|
|
105
|
+
*
|
|
106
|
+
* @static
|
|
107
|
+
* @memberOf _
|
|
108
|
+
* @since 4.0.0
|
|
109
|
+
* @category Lang
|
|
110
|
+
* @param {*} value The value to check.
|
|
111
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
112
|
+
* @example
|
|
113
|
+
*
|
|
114
|
+
* _.isObjectLike({});
|
|
115
|
+
* // => true
|
|
116
|
+
*
|
|
117
|
+
* _.isObjectLike([1, 2, 3]);
|
|
118
|
+
* // => true
|
|
119
|
+
*
|
|
120
|
+
* _.isObjectLike(_.noop);
|
|
121
|
+
* // => false
|
|
122
|
+
*
|
|
123
|
+
* _.isObjectLike(null);
|
|
124
|
+
* // => false
|
|
125
|
+
*/
|
|
126
|
+
function isObjectLike(value) {
|
|
127
|
+
return value != null && typeof value == 'object';
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Checks if `value` is classified as an `Array` object.
|
|
132
|
+
*
|
|
133
|
+
* @static
|
|
134
|
+
* @memberOf _
|
|
135
|
+
* @since 0.1.0
|
|
136
|
+
* @category Lang
|
|
137
|
+
* @param {*} value The value to check.
|
|
138
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
139
|
+
* @example
|
|
140
|
+
*
|
|
141
|
+
* _.isArray([1, 2, 3]);
|
|
142
|
+
* // => true
|
|
143
|
+
*
|
|
144
|
+
* _.isArray(document.body.children);
|
|
145
|
+
* // => false
|
|
146
|
+
*
|
|
147
|
+
* _.isArray('abc');
|
|
148
|
+
* // => false
|
|
149
|
+
*
|
|
150
|
+
* _.isArray(_.noop);
|
|
151
|
+
* // => false
|
|
152
|
+
*/
|
|
153
|
+
var isArray = Array.isArray;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Checks if `value` is the
|
|
157
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
158
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
159
|
+
*
|
|
160
|
+
* @static
|
|
161
|
+
* @memberOf _
|
|
162
|
+
* @since 0.1.0
|
|
163
|
+
* @category Lang
|
|
164
|
+
* @param {*} value The value to check.
|
|
165
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
166
|
+
* @example
|
|
167
|
+
*
|
|
168
|
+
* _.isObject({});
|
|
169
|
+
* // => true
|
|
170
|
+
*
|
|
171
|
+
* _.isObject([1, 2, 3]);
|
|
172
|
+
* // => true
|
|
173
|
+
*
|
|
174
|
+
* _.isObject(_.noop);
|
|
175
|
+
* // => true
|
|
176
|
+
*
|
|
177
|
+
* _.isObject(null);
|
|
178
|
+
* // => false
|
|
179
|
+
*/
|
|
180
|
+
function isObject(value) {
|
|
181
|
+
var type = typeof value;
|
|
182
|
+
return value != null && (type == 'object' || type == 'function');
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** `Object#toString` result references. */
|
|
186
|
+
var asyncTag = '[object AsyncFunction]',
|
|
187
|
+
funcTag = '[object Function]',
|
|
188
|
+
genTag = '[object GeneratorFunction]',
|
|
189
|
+
proxyTag = '[object Proxy]';
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Checks if `value` is classified as a `Function` object.
|
|
193
|
+
*
|
|
194
|
+
* @static
|
|
195
|
+
* @memberOf _
|
|
196
|
+
* @since 0.1.0
|
|
197
|
+
* @category Lang
|
|
198
|
+
* @param {*} value The value to check.
|
|
199
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
200
|
+
* @example
|
|
201
|
+
*
|
|
202
|
+
* _.isFunction(_);
|
|
203
|
+
* // => true
|
|
204
|
+
*
|
|
205
|
+
* _.isFunction(/abc/);
|
|
206
|
+
* // => false
|
|
207
|
+
*/
|
|
208
|
+
function isFunction(value) {
|
|
209
|
+
if (!isObject(value)) {
|
|
210
|
+
return false;
|
|
211
|
+
}
|
|
212
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
213
|
+
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
214
|
+
var tag = baseGetTag(value);
|
|
215
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/** Used to detect overreaching core-js shims. */
|
|
219
|
+
var coreJsData = root['__core-js_shared__'];
|
|
220
|
+
|
|
221
|
+
/** Used to detect methods masquerading as native. */
|
|
222
|
+
var maskSrcKey = (function() {
|
|
223
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
224
|
+
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
225
|
+
}());
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Checks if `func` has its source masked.
|
|
229
|
+
*
|
|
230
|
+
* @private
|
|
231
|
+
* @param {Function} func The function to check.
|
|
232
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
233
|
+
*/
|
|
234
|
+
function isMasked(func) {
|
|
235
|
+
return !!maskSrcKey && (maskSrcKey in func);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/** Used for built-in method references. */
|
|
239
|
+
var funcProto$1 = Function.prototype;
|
|
240
|
+
|
|
241
|
+
/** Used to resolve the decompiled source of functions. */
|
|
242
|
+
var funcToString$1 = funcProto$1.toString;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Converts `func` to its source code.
|
|
246
|
+
*
|
|
247
|
+
* @private
|
|
248
|
+
* @param {Function} func The function to convert.
|
|
249
|
+
* @returns {string} Returns the source code.
|
|
250
|
+
*/
|
|
251
|
+
function toSource(func) {
|
|
252
|
+
if (func != null) {
|
|
253
|
+
try {
|
|
254
|
+
return funcToString$1.call(func);
|
|
255
|
+
} catch (e) {}
|
|
256
|
+
try {
|
|
257
|
+
return (func + '');
|
|
258
|
+
} catch (e) {}
|
|
259
|
+
}
|
|
260
|
+
return '';
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Used to match `RegExp`
|
|
265
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
266
|
+
*/
|
|
267
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
268
|
+
|
|
269
|
+
/** Used to detect host constructors (Safari). */
|
|
270
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
271
|
+
|
|
272
|
+
/** Used for built-in method references. */
|
|
273
|
+
var funcProto = Function.prototype,
|
|
274
|
+
objectProto$2 = Object.prototype;
|
|
275
|
+
|
|
276
|
+
/** Used to resolve the decompiled source of functions. */
|
|
277
|
+
var funcToString = funcProto.toString;
|
|
278
|
+
|
|
279
|
+
/** Used to check objects for own properties. */
|
|
280
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
281
|
+
|
|
282
|
+
/** Used to detect if a method is native. */
|
|
283
|
+
var reIsNative = RegExp('^' +
|
|
284
|
+
funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
|
|
285
|
+
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
286
|
+
);
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
290
|
+
*
|
|
291
|
+
* @private
|
|
292
|
+
* @param {*} value The value to check.
|
|
293
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
294
|
+
* else `false`.
|
|
295
|
+
*/
|
|
296
|
+
function baseIsNative(value) {
|
|
297
|
+
if (!isObject(value) || isMasked(value)) {
|
|
298
|
+
return false;
|
|
299
|
+
}
|
|
300
|
+
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
301
|
+
return pattern.test(toSource(value));
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Gets the value at `key` of `object`.
|
|
306
|
+
*
|
|
307
|
+
* @private
|
|
308
|
+
* @param {Object} [object] The object to query.
|
|
309
|
+
* @param {string} key The key of the property to get.
|
|
310
|
+
* @returns {*} Returns the property value.
|
|
311
|
+
*/
|
|
312
|
+
function getValue(object, key) {
|
|
313
|
+
return object == null ? undefined : object[key];
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Gets the native function at `key` of `object`.
|
|
318
|
+
*
|
|
319
|
+
* @private
|
|
320
|
+
* @param {Object} object The object to query.
|
|
321
|
+
* @param {string} key The key of the method to get.
|
|
322
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
323
|
+
*/
|
|
324
|
+
function getNative(object, key) {
|
|
325
|
+
var value = getValue(object, key);
|
|
326
|
+
return baseIsNative(value) ? value : undefined;
|
|
327
|
+
}
|
|
4
328
|
|
|
5
329
|
/**
|
|
6
330
|
* Performs a
|
|
@@ -39,7 +363,7 @@ function eq(value, other) {
|
|
|
39
363
|
}
|
|
40
364
|
|
|
41
365
|
/* Built-in method references that are verified to be native. */
|
|
42
|
-
var nativeCreate =
|
|
366
|
+
var nativeCreate = getNative(Object, 'create');
|
|
43
367
|
|
|
44
368
|
/**
|
|
45
369
|
* Removes all key-value entries from the hash.
|
|
@@ -300,6 +624,9 @@ ListCache.prototype.get = listCacheGet;
|
|
|
300
624
|
ListCache.prototype.has = listCacheHas;
|
|
301
625
|
ListCache.prototype.set = listCacheSet;
|
|
302
626
|
|
|
627
|
+
/* Built-in method references that are verified to be native. */
|
|
628
|
+
var Map = getNative(root, 'Map');
|
|
629
|
+
|
|
303
630
|
/**
|
|
304
631
|
* Removes all key-value entries from the map.
|
|
305
632
|
*
|
|
@@ -311,7 +638,7 @@ function mapCacheClear() {
|
|
|
311
638
|
this.size = 0;
|
|
312
639
|
this.__data__ = {
|
|
313
640
|
'hash': new Hash,
|
|
314
|
-
'map': new (
|
|
641
|
+
'map': new (Map || ListCache),
|
|
315
642
|
'string': new Hash
|
|
316
643
|
};
|
|
317
644
|
}
|
|
@@ -431,5 +758,16 @@ MapCache.prototype.has = mapCacheHas;
|
|
|
431
758
|
MapCache.prototype.set = mapCacheSet;
|
|
432
759
|
|
|
433
760
|
exports.ListCache = ListCache;
|
|
761
|
+
exports.Map = Map;
|
|
434
762
|
exports.MapCache = MapCache;
|
|
763
|
+
exports.Symbol = Symbol;
|
|
764
|
+
exports.baseGetTag = baseGetTag;
|
|
435
765
|
exports.eq = eq;
|
|
766
|
+
exports.freeGlobal = freeGlobal;
|
|
767
|
+
exports.getNative = getNative;
|
|
768
|
+
exports.isArray = isArray;
|
|
769
|
+
exports.isFunction = isFunction;
|
|
770
|
+
exports.isObject = isObject;
|
|
771
|
+
exports.isObjectLike = isObjectLike;
|
|
772
|
+
exports.root = root;
|
|
773
|
+
exports.toSource = toSource;
|