@wfrog/vc-ui 1.11.9 → 1.11.11
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/dist/es/chunk/Bw0Rhd-r.mjs +110 -0
- package/dist/es/chunk/CqTdDZkE.mjs +31 -0
- package/dist/es/chunk/{DAnWZLYj.mjs → CzWfBa_8.mjs} +96 -2
- package/dist/es/chunk/D229kQ56.mjs +28 -0
- package/dist/es/chunk/{Cxx_YWUC.mjs → DcouM6gM.mjs} +6 -548
- package/dist/es/chunk/Fo0dZYnz.mjs +128 -0
- package/dist/es/chunk/KanuIcmc.mjs +412 -0
- package/dist/es/chunk/{B71xEPfK.mjs → uuUHUjSk.mjs} +4 -35
- package/dist/es/components/backbottom/backbottom.mjs +3 -2
- package/dist/es/components/button/button.mjs +4 -5
- package/dist/es/components/choice/choice.mjs +4 -4
- package/dist/es/components/choice/index.css +1 -1
- package/dist/es/components/color-switch/color-switch.mjs +73 -1046
- package/dist/es/components/color-switch/index.css +1 -1
- package/dist/es/components/cropper/cropper.mjs +11 -117
- package/dist/es/components/cropper/index.css +1 -1
- package/dist/es/components/currency/currency.mjs +4 -5
- package/dist/es/components/daterange-picker/daterange-picker.mjs +8 -6253
- package/dist/es/components/dialog/dialog.mjs +7 -400
- package/dist/es/components/dialog/index.css +1 -1
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +10 -11
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +4 -3
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +9 -1374
- package/dist/es/components/dialog-upload-images/index.css +1 -1
- package/dist/es/components/drag-verify/drag-verify.mjs +3 -2
- package/dist/es/components/drawer/drawer.mjs +10 -352
- package/dist/es/components/drawer/index.css +1 -1
- package/dist/es/components/easy-pagination/easy-pagination.mjs +3 -2
- package/dist/es/components/explorer/explorer.mjs +3 -3
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +5 -7
- package/dist/es/components/explorer-column-table/index.css +1 -1
- package/dist/es/components/explorer-container/explorer-container.d.ts +1 -1
- package/dist/es/components/explorer-container/explorer-container.mjs +4 -3
- package/dist/es/components/explorer-filter/explorer-filter.mjs +5 -4
- package/dist/es/components/explorer-footer/explorer-footer.mjs +4 -8
- package/dist/es/components/explorer-form/explorer-form.mjs +4 -3
- package/dist/es/components/explorer-list/explorer-list.mjs +5 -4
- package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +4 -3
- package/dist/es/components/explorer-panel/explorer-panel.mjs +3 -3
- package/dist/es/components/explorer-query/explorer-query.mjs +9 -2201
- package/dist/es/components/explorer-query/index.css +1 -1
- package/dist/es/components/explorer-table/explorer-table.mjs +20 -24
- package/dist/es/components/explorer-table/index.css +16 -9
- package/dist/es/components/explorer-tools/explorer-tools.mjs +13 -264
- package/dist/es/components/explorer-tools/index.css +1 -1
- package/dist/es/components/explorer-tree/explorer-tree.mjs +4 -5
- package/dist/es/components/icon-picker/icon-picker.mjs +8 -12
- package/dist/es/components/image/image.mjs +4 -4
- package/dist/es/components/info-tooltip/info-tooltip.mjs +336 -4
- package/dist/es/components/input/input.mjs +3 -2
- package/dist/es/components/input-number/input-number.mjs +3 -3
- package/dist/es/components/pca-picker/index.css +1 -1
- package/dist/es/components/pca-picker/pca-picker.mjs +443 -601
- package/dist/es/components/screenfull/screenfull.mjs +4 -3
- package/dist/es/components/scrollbar/scrollbar.mjs +3 -2
- package/dist/es/components/select/select.mjs +3 -5
- package/dist/es/components/single-player/index.css +1 -1
- package/dist/es/components/single-player/single-player.mjs +10 -1087
- package/dist/es/components/splitter/splitter.mjs +3 -3
- package/dist/es/components/splitter-panel/splitter-panel.mjs +3 -3
- package/dist/es/components/switch/index.css +1 -1
- package/dist/es/components/switch/switch.mjs +9 -395
- package/dist/es/components/tags/tags.mjs +7 -9
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +3 -3
- package/dist/es/components/thousand-input/thousand-input.mjs +33 -1
- package/dist/es/components/tinymce/tinymce.mjs +4 -3
- package/dist/es/components/transfer/transfer.mjs +3 -4
- package/dist/es/components/transfer-panel/transfer-panel.mjs +5 -4
- package/dist/es/components/tree-picker/popover-cascader.css +1 -1
- package/dist/es/components/tree-picker/tree-picker.mjs +5 -10
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +29 -49
- package/package.json +1 -1
- package/dist/es/chunk/B-rxnVJv.mjs +0 -3
- package/dist/es/chunk/B5HpgPRt.mjs +0 -69
- package/dist/es/chunk/BBhZKpIc.mjs +0 -2179
- package/dist/es/chunk/BDcsaNYa.mjs +0 -59
- package/dist/es/chunk/BTSSEFfD.mjs +0 -319
- package/dist/es/chunk/BTpNRPQW.mjs +0 -55
- package/dist/es/chunk/BVBK1U57.mjs +0 -96
- package/dist/es/chunk/Bc6yUGLs.mjs +0 -45
- package/dist/es/chunk/BjVI1XMz.mjs +0 -40
- package/dist/es/chunk/BlzQCBDu.mjs +0 -5741
- package/dist/es/chunk/BpJKnxlF.mjs +0 -476
- package/dist/es/chunk/Brp-qSBw.mjs +0 -2003
- package/dist/es/chunk/BunQI8Jb.mjs +0 -390
- package/dist/es/chunk/C0XgBrDz.mjs +0 -775
- package/dist/es/chunk/C0pTANRX.mjs +0 -109
- package/dist/es/chunk/CBMjhoFP.mjs +0 -101
- package/dist/es/chunk/CBiNtNvQ.mjs +0 -242
- package/dist/es/chunk/CBlJeNBO.mjs +0 -890
- package/dist/es/chunk/CCVL_Zj-.mjs +0 -427
- package/dist/es/chunk/CEl4MyfJ.mjs +0 -252
- package/dist/es/chunk/CJK5_jsA.mjs +0 -53
- package/dist/es/chunk/CKOcwq5V.mjs +0 -44
- package/dist/es/chunk/COs9dJZa.mjs +0 -66
- package/dist/es/chunk/CPt6MxJW.mjs +0 -375
- package/dist/es/chunk/CVqW0jzp.mjs +0 -107
- package/dist/es/chunk/CccIsEqA.mjs +0 -128
- package/dist/es/chunk/CjLR27-a.mjs +0 -582
- package/dist/es/chunk/CoGexPPD.mjs +0 -2192
- package/dist/es/chunk/CsLIbnzG.mjs +0 -64
- package/dist/es/chunk/Ct6q2FXg.mjs +0 -5
- package/dist/es/chunk/Cuq5meQh.mjs +0 -184
- package/dist/es/chunk/CvYIOfT1.mjs +0 -23
- package/dist/es/chunk/CxHJBf4l.mjs +0 -31
- package/dist/es/chunk/CzdaOBtA.mjs +0 -66
- package/dist/es/chunk/D0QTifnI.mjs +0 -54
- package/dist/es/chunk/D1QnA2iT.mjs +0 -229
- package/dist/es/chunk/D3AvJlVX.mjs +0 -188
- package/dist/es/chunk/D9Lr0Bzb.mjs +0 -1136
- package/dist/es/chunk/DCkPv0hy.mjs +0 -29
- package/dist/es/chunk/DRwwUUhy.mjs +0 -49
- package/dist/es/chunk/DX-2VRY2.mjs +0 -836
- package/dist/es/chunk/DZ2oTFad.mjs +0 -687
- package/dist/es/chunk/D_bou1py.mjs +0 -55
- package/dist/es/chunk/Da199A5L.mjs +0 -314
- package/dist/es/chunk/DbhQlaOz.mjs +0 -94
- package/dist/es/chunk/Dgu95mOy.mjs +0 -237
- package/dist/es/chunk/DhGOsWxx.mjs +0 -6
- package/dist/es/chunk/Dm_Sj5aH.mjs +0 -487
- package/dist/es/chunk/Dmi-1GRO.mjs +0 -163
- package/dist/es/chunk/DodoD9a9.mjs +0 -52
- package/dist/es/chunk/DrrVDcwm.mjs +0 -955
- package/dist/es/chunk/Du_zJ1Fz.mjs +0 -49
- package/dist/es/chunk/DxxbB5jY.mjs +0 -34
- package/dist/es/chunk/Gk1J52Yw.mjs +0 -207
- package/dist/es/chunk/NsldgdCh.mjs +0 -704
- package/dist/es/chunk/V6KjsUQN.mjs +0 -35
- package/dist/es/chunk/eEsLFV3s.mjs +0 -76
- package/dist/es/chunk/fqiLhk0V.mjs +0 -2065
- package/dist/es/chunk/nxVM7re4.mjs +0 -35
- package/dist/es/chunk/s7HLrANj.mjs +0 -215
- package/dist/es/chunk/vPhxogl3.mjs +0 -19
- package/dist/es/components/icon/icon2.mjs +0 -27
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
import { b as buildProps } from './Gk1J52Yw.mjs';
|
|
2
|
-
import { j as defineProperty, S as Symbol$1, f as isArray, g as isArguments, k as arrayPush, l as castPath, t as toKey, m as isLength, c as isIndex, n as baseGet, o as baseSet } from './Cxx_YWUC.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This method returns the first argument it receives.
|
|
6
|
-
*
|
|
7
|
-
* @static
|
|
8
|
-
* @since 0.1.0
|
|
9
|
-
* @memberOf _
|
|
10
|
-
* @category Util
|
|
11
|
-
* @param {*} value Any value.
|
|
12
|
-
* @returns {*} Returns `value`.
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* var object = { 'a': 1 };
|
|
16
|
-
*
|
|
17
|
-
* console.log(_.identity(object) === object);
|
|
18
|
-
* // => true
|
|
19
|
-
*/
|
|
20
|
-
function identity(value) {
|
|
21
|
-
return value;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
26
|
-
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
27
|
-
*
|
|
28
|
-
* @private
|
|
29
|
-
* @param {Function} func The function to invoke.
|
|
30
|
-
* @param {*} thisArg The `this` binding of `func`.
|
|
31
|
-
* @param {Array} args The arguments to invoke `func` with.
|
|
32
|
-
* @returns {*} Returns the result of `func`.
|
|
33
|
-
*/
|
|
34
|
-
function apply(func, thisArg, args) {
|
|
35
|
-
switch (args.length) {
|
|
36
|
-
case 0: return func.call(thisArg);
|
|
37
|
-
case 1: return func.call(thisArg, args[0]);
|
|
38
|
-
case 2: return func.call(thisArg, args[0], args[1]);
|
|
39
|
-
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
|
40
|
-
}
|
|
41
|
-
return func.apply(thisArg, args);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
45
|
-
var HOT_COUNT = 800,
|
|
46
|
-
HOT_SPAN = 16;
|
|
47
|
-
|
|
48
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
49
|
-
var nativeNow = Date.now;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Creates a function that'll short out and invoke `identity` instead
|
|
53
|
-
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
|
|
54
|
-
* milliseconds.
|
|
55
|
-
*
|
|
56
|
-
* @private
|
|
57
|
-
* @param {Function} func The function to restrict.
|
|
58
|
-
* @returns {Function} Returns the new shortable function.
|
|
59
|
-
*/
|
|
60
|
-
function shortOut(func) {
|
|
61
|
-
var count = 0,
|
|
62
|
-
lastCalled = 0;
|
|
63
|
-
|
|
64
|
-
return function() {
|
|
65
|
-
var stamp = nativeNow(),
|
|
66
|
-
remaining = HOT_SPAN - (stamp - lastCalled);
|
|
67
|
-
|
|
68
|
-
lastCalled = stamp;
|
|
69
|
-
if (remaining > 0) {
|
|
70
|
-
if (++count >= HOT_COUNT) {
|
|
71
|
-
return arguments[0];
|
|
72
|
-
}
|
|
73
|
-
} else {
|
|
74
|
-
count = 0;
|
|
75
|
-
}
|
|
76
|
-
return func.apply(undefined, arguments);
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Creates a function that returns `value`.
|
|
82
|
-
*
|
|
83
|
-
* @static
|
|
84
|
-
* @memberOf _
|
|
85
|
-
* @since 2.4.0
|
|
86
|
-
* @category Util
|
|
87
|
-
* @param {*} value The value to return from the new function.
|
|
88
|
-
* @returns {Function} Returns the new constant function.
|
|
89
|
-
* @example
|
|
90
|
-
*
|
|
91
|
-
* var objects = _.times(2, _.constant({ 'a': 1 }));
|
|
92
|
-
*
|
|
93
|
-
* console.log(objects);
|
|
94
|
-
* // => [{ 'a': 1 }, { 'a': 1 }]
|
|
95
|
-
*
|
|
96
|
-
* console.log(objects[0] === objects[1]);
|
|
97
|
-
* // => true
|
|
98
|
-
*/
|
|
99
|
-
function constant(value) {
|
|
100
|
-
return function() {
|
|
101
|
-
return value;
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* The base implementation of `setToString` without support for hot loop shorting.
|
|
107
|
-
*
|
|
108
|
-
* @private
|
|
109
|
-
* @param {Function} func The function to modify.
|
|
110
|
-
* @param {Function} string The `toString` result.
|
|
111
|
-
* @returns {Function} Returns `func`.
|
|
112
|
-
*/
|
|
113
|
-
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
114
|
-
return defineProperty(func, 'toString', {
|
|
115
|
-
'configurable': true,
|
|
116
|
-
'enumerable': false,
|
|
117
|
-
'value': constant(string),
|
|
118
|
-
'writable': true
|
|
119
|
-
});
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Sets the `toString` method of `func` to return `string`.
|
|
124
|
-
*
|
|
125
|
-
* @private
|
|
126
|
-
* @param {Function} func The function to modify.
|
|
127
|
-
* @param {Function} string The `toString` result.
|
|
128
|
-
* @returns {Function} Returns `func`.
|
|
129
|
-
*/
|
|
130
|
-
var setToString = shortOut(baseSetToString);
|
|
131
|
-
|
|
132
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
133
|
-
var nativeMax = Math.max;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* A specialized version of `baseRest` which transforms the rest array.
|
|
137
|
-
*
|
|
138
|
-
* @private
|
|
139
|
-
* @param {Function} func The function to apply a rest parameter to.
|
|
140
|
-
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
141
|
-
* @param {Function} transform The rest array transform.
|
|
142
|
-
* @returns {Function} Returns the new function.
|
|
143
|
-
*/
|
|
144
|
-
function overRest(func, start, transform) {
|
|
145
|
-
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
|
|
146
|
-
return function() {
|
|
147
|
-
var args = arguments,
|
|
148
|
-
index = -1,
|
|
149
|
-
length = nativeMax(args.length - start, 0),
|
|
150
|
-
array = Array(length);
|
|
151
|
-
|
|
152
|
-
while (++index < length) {
|
|
153
|
-
array[index] = args[start + index];
|
|
154
|
-
}
|
|
155
|
-
index = -1;
|
|
156
|
-
var otherArgs = Array(start + 1);
|
|
157
|
-
while (++index < start) {
|
|
158
|
-
otherArgs[index] = args[index];
|
|
159
|
-
}
|
|
160
|
-
otherArgs[start] = transform(array);
|
|
161
|
-
return apply(func, this, otherArgs);
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/** Built-in value references. */
|
|
166
|
-
var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : undefined;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Checks if `value` is a flattenable `arguments` object or array.
|
|
170
|
-
*
|
|
171
|
-
* @private
|
|
172
|
-
* @param {*} value The value to check.
|
|
173
|
-
* @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
|
|
174
|
-
*/
|
|
175
|
-
function isFlattenable(value) {
|
|
176
|
-
return isArray(value) || isArguments(value) ||
|
|
177
|
-
!!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* The base implementation of `_.flatten` with support for restricting flattening.
|
|
182
|
-
*
|
|
183
|
-
* @private
|
|
184
|
-
* @param {Array} array The array to flatten.
|
|
185
|
-
* @param {number} depth The maximum recursion depth.
|
|
186
|
-
* @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
|
|
187
|
-
* @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
|
|
188
|
-
* @param {Array} [result=[]] The initial result value.
|
|
189
|
-
* @returns {Array} Returns the new flattened array.
|
|
190
|
-
*/
|
|
191
|
-
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
192
|
-
var index = -1,
|
|
193
|
-
length = array.length;
|
|
194
|
-
|
|
195
|
-
predicate || (predicate = isFlattenable);
|
|
196
|
-
result || (result = []);
|
|
197
|
-
|
|
198
|
-
while (++index < length) {
|
|
199
|
-
var value = array[index];
|
|
200
|
-
if (depth > 0 && predicate(value)) {
|
|
201
|
-
if (depth > 1) {
|
|
202
|
-
// Recursively flatten arrays (susceptible to call stack limits).
|
|
203
|
-
baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
204
|
-
} else {
|
|
205
|
-
arrayPush(result, value);
|
|
206
|
-
}
|
|
207
|
-
} else {
|
|
208
|
-
result[result.length] = value;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
return result;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Flattens `array` a single level deep.
|
|
216
|
-
*
|
|
217
|
-
* @static
|
|
218
|
-
* @memberOf _
|
|
219
|
-
* @since 0.1.0
|
|
220
|
-
* @category Array
|
|
221
|
-
* @param {Array} array The array to flatten.
|
|
222
|
-
* @returns {Array} Returns the new flattened array.
|
|
223
|
-
* @example
|
|
224
|
-
*
|
|
225
|
-
* _.flatten([1, [2, [3, [4]], 5]]);
|
|
226
|
-
* // => [1, 2, [3, [4]], 5]
|
|
227
|
-
*/
|
|
228
|
-
function flatten(array) {
|
|
229
|
-
var length = array == null ? 0 : array.length;
|
|
230
|
-
return length ? baseFlatten(array, 1) : [];
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* A specialized version of `baseRest` which flattens the rest array.
|
|
235
|
-
*
|
|
236
|
-
* @private
|
|
237
|
-
* @param {Function} func The function to apply a rest parameter to.
|
|
238
|
-
* @returns {Function} Returns the new function.
|
|
239
|
-
*/
|
|
240
|
-
function flatRest(func) {
|
|
241
|
-
return setToString(overRest(func, undefined, flatten), func + '');
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* The base implementation of `_.hasIn` without support for deep paths.
|
|
246
|
-
*
|
|
247
|
-
* @private
|
|
248
|
-
* @param {Object} [object] The object to query.
|
|
249
|
-
* @param {Array|string} key The key to check.
|
|
250
|
-
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
251
|
-
*/
|
|
252
|
-
function baseHasIn(object, key) {
|
|
253
|
-
return object != null && key in Object(object);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Checks if `path` exists on `object`.
|
|
258
|
-
*
|
|
259
|
-
* @private
|
|
260
|
-
* @param {Object} object The object to query.
|
|
261
|
-
* @param {Array|string} path The path to check.
|
|
262
|
-
* @param {Function} hasFunc The function to check properties.
|
|
263
|
-
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
264
|
-
*/
|
|
265
|
-
function hasPath(object, path, hasFunc) {
|
|
266
|
-
path = castPath(path, object);
|
|
267
|
-
|
|
268
|
-
var index = -1,
|
|
269
|
-
length = path.length,
|
|
270
|
-
result = false;
|
|
271
|
-
|
|
272
|
-
while (++index < length) {
|
|
273
|
-
var key = toKey(path[index]);
|
|
274
|
-
if (!(result = object != null && hasFunc(object, key))) {
|
|
275
|
-
break;
|
|
276
|
-
}
|
|
277
|
-
object = object[key];
|
|
278
|
-
}
|
|
279
|
-
if (result || ++index != length) {
|
|
280
|
-
return result;
|
|
281
|
-
}
|
|
282
|
-
length = object == null ? 0 : object.length;
|
|
283
|
-
return !!length && isLength(length) && isIndex(key, length) &&
|
|
284
|
-
(isArray(object) || isArguments(object));
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Checks if `path` is a direct or inherited property of `object`.
|
|
289
|
-
*
|
|
290
|
-
* @static
|
|
291
|
-
* @memberOf _
|
|
292
|
-
* @since 4.0.0
|
|
293
|
-
* @category Object
|
|
294
|
-
* @param {Object} object The object to query.
|
|
295
|
-
* @param {Array|string} path The path to check.
|
|
296
|
-
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
297
|
-
* @example
|
|
298
|
-
*
|
|
299
|
-
* var object = _.create({ 'a': _.create({ 'b': 2 }) });
|
|
300
|
-
*
|
|
301
|
-
* _.hasIn(object, 'a');
|
|
302
|
-
* // => true
|
|
303
|
-
*
|
|
304
|
-
* _.hasIn(object, 'a.b');
|
|
305
|
-
* // => true
|
|
306
|
-
*
|
|
307
|
-
* _.hasIn(object, ['a', 'b']);
|
|
308
|
-
* // => true
|
|
309
|
-
*
|
|
310
|
-
* _.hasIn(object, 'b');
|
|
311
|
-
* // => false
|
|
312
|
-
*/
|
|
313
|
-
function hasIn(object, path) {
|
|
314
|
-
return object != null && hasPath(object, path, baseHasIn);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* The base implementation of `_.pickBy` without support for iteratee shorthands.
|
|
319
|
-
*
|
|
320
|
-
* @private
|
|
321
|
-
* @param {Object} object The source object.
|
|
322
|
-
* @param {string[]} paths The property paths to pick.
|
|
323
|
-
* @param {Function} predicate The function invoked per property.
|
|
324
|
-
* @returns {Object} Returns the new object.
|
|
325
|
-
*/
|
|
326
|
-
function basePickBy(object, paths, predicate) {
|
|
327
|
-
var index = -1,
|
|
328
|
-
length = paths.length,
|
|
329
|
-
result = {};
|
|
330
|
-
|
|
331
|
-
while (++index < length) {
|
|
332
|
-
var path = paths[index],
|
|
333
|
-
value = baseGet(object, path);
|
|
334
|
-
|
|
335
|
-
if (predicate(value, path)) {
|
|
336
|
-
baseSet(result, castPath(path, object), value);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
return result;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* The base implementation of `_.pick` without support for individual
|
|
344
|
-
* property identifiers.
|
|
345
|
-
*
|
|
346
|
-
* @private
|
|
347
|
-
* @param {Object} object The source object.
|
|
348
|
-
* @param {string[]} paths The property paths to pick.
|
|
349
|
-
* @returns {Object} Returns the new object.
|
|
350
|
-
*/
|
|
351
|
-
function basePick(object, paths) {
|
|
352
|
-
return basePickBy(object, paths, function(value, path) {
|
|
353
|
-
return hasIn(object, path);
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* Creates an object composed of the picked `object` properties.
|
|
359
|
-
*
|
|
360
|
-
* @static
|
|
361
|
-
* @since 0.1.0
|
|
362
|
-
* @memberOf _
|
|
363
|
-
* @category Object
|
|
364
|
-
* @param {Object} object The source object.
|
|
365
|
-
* @param {...(string|string[])} [paths] The property paths to pick.
|
|
366
|
-
* @returns {Object} Returns the new object.
|
|
367
|
-
* @example
|
|
368
|
-
*
|
|
369
|
-
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
370
|
-
*
|
|
371
|
-
* _.pick(object, ['a', 'c']);
|
|
372
|
-
* // => { 'a': 1, 'c': 3 }
|
|
373
|
-
*/
|
|
374
|
-
var pick = flatRest(function(object, paths) {
|
|
375
|
-
return object == null ? {} : basePick(object, paths);
|
|
376
|
-
});
|
|
377
|
-
|
|
378
|
-
const ariaProps = buildProps({
|
|
379
|
-
ariaLabel: String,
|
|
380
|
-
ariaOrientation: {
|
|
381
|
-
type: String,
|
|
382
|
-
values: ["horizontal", "vertical", "undefined"]
|
|
383
|
-
},
|
|
384
|
-
ariaControls: String
|
|
385
|
-
});
|
|
386
|
-
const useAriaProps = (arias) => {
|
|
387
|
-
return pick(ariaProps, arias);
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
export { flatRest as a, baseFlatten as b, hasIn as c, flatten as f, hasPath as h, identity as i, overRest as o, pick as p, setToString as s, useAriaProps as u };
|