shineout 3.3.0-beta.2 → 3.3.0-beta.3
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/cjs/index.js +1 -1
- package/dist/shineout.js +160 -33
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
476
476
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
477
477
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
478
478
|
var _default = exports.default = {
|
|
479
|
-
version: '3.3.0-beta.
|
|
479
|
+
version: '3.3.0-beta.3'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -6439,16 +6439,16 @@ __webpack_require__.d(color_namespaceObject, {
|
|
|
6439
6439
|
});
|
|
6440
6440
|
|
|
6441
6441
|
// NAMESPACE OBJECT: ./src/utils/flat.ts
|
|
6442
|
-
var
|
|
6443
|
-
__webpack_require__.r(
|
|
6444
|
-
__webpack_require__.d(
|
|
6445
|
-
flatten: function() { return
|
|
6442
|
+
var utils_flat_namespaceObject = {};
|
|
6443
|
+
__webpack_require__.r(utils_flat_namespaceObject);
|
|
6444
|
+
__webpack_require__.d(utils_flat_namespaceObject, {
|
|
6445
|
+
flatten: function() { return flat_flatten; },
|
|
6446
6446
|
flattenArray: function() { return flat_flattenArray; },
|
|
6447
6447
|
getSthByName: function() { return getSthByName; },
|
|
6448
|
-
insertPoint: function() { return
|
|
6449
|
-
insertValue: function() { return
|
|
6448
|
+
insertPoint: function() { return utils_flat_insertPoint; },
|
|
6449
|
+
insertValue: function() { return flat_insertValue; },
|
|
6450
6450
|
removeSthByName: function() { return removeSthByName; },
|
|
6451
|
-
spliceValue: function() { return
|
|
6451
|
+
spliceValue: function() { return flat_spliceValue; },
|
|
6452
6452
|
unflatten: function() { return unflatten; }
|
|
6453
6453
|
});
|
|
6454
6454
|
|
|
@@ -6555,7 +6555,7 @@ __webpack_require__.d(src_utils_namespaceObject, {
|
|
|
6555
6555
|
detect: function() { return detect_namespaceObject; },
|
|
6556
6556
|
doc: function() { return dom_document_namespaceObject; },
|
|
6557
6557
|
element: function() { return dom_element_namespaceObject; },
|
|
6558
|
-
flat: function() { return
|
|
6558
|
+
flat: function() { return utils_flat_namespaceObject; },
|
|
6559
6559
|
func: function() { return utils_func_namespaceObject; },
|
|
6560
6560
|
hash: function() { return hash_createHash; },
|
|
6561
6561
|
is: function() { return utils_is_namespaceObject; },
|
|
@@ -11960,7 +11960,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11960
11960
|
};
|
|
11961
11961
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11962
11962
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11963
|
-
/* harmony default export */ var version = ('3.3.0-beta.
|
|
11963
|
+
/* harmony default export */ var version = ('3.3.0-beta.3');
|
|
11964
11964
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11965
11965
|
|
|
11966
11966
|
|
|
@@ -22442,7 +22442,7 @@ var sliderStyle = {
|
|
|
22442
22442
|
'&::before': {
|
|
22443
22443
|
content: '""',
|
|
22444
22444
|
display: 'block',
|
|
22445
|
-
backgroundColor:
|
|
22445
|
+
backgroundColor: src.sliderScaleLineBackgroundColor
|
|
22446
22446
|
},
|
|
22447
22447
|
'$wrapper:not($vertical) &': {
|
|
22448
22448
|
marginTop: src.sliderScaleMarginY,
|
|
@@ -27467,9 +27467,9 @@ function $getKey(gen, d, index) {
|
|
|
27467
27467
|
if (typeof gen === 'function') return gen(d, index);
|
|
27468
27468
|
return index;
|
|
27469
27469
|
}
|
|
27470
|
-
function getKey(gen, d, index) {
|
|
27470
|
+
function getKey(gen, d, index, ignoreError) {
|
|
27471
27471
|
var key = $getKey(gen, d, index);
|
|
27472
|
-
if (typeof key !== 'string' && typeof key !== 'number') {
|
|
27472
|
+
if (typeof key !== 'string' && typeof key !== 'number' && !ignoreError) {
|
|
27473
27473
|
console.error(new Error("keygen result expect a string or a number, get '".concat(typeof_default()(key), "'")));
|
|
27474
27474
|
}
|
|
27475
27475
|
return key;
|
|
@@ -44649,6 +44649,90 @@ var Provider = function Provider(props) {
|
|
|
44649
44649
|
})
|
|
44650
44650
|
});
|
|
44651
44651
|
};
|
|
44652
|
+
;// CONCATENATED MODULE: ../hooks/src/utils/flat.ts
|
|
44653
|
+
|
|
44654
|
+
|
|
44655
|
+
|
|
44656
|
+
function flat_insertPoint(name) {
|
|
44657
|
+
var reg = /(\[\d+\])/gi;
|
|
44658
|
+
return name.replace(reg, function (s, m, i) {
|
|
44659
|
+
return s.replace(m, i === 0 ? m : ".".concat(m));
|
|
44660
|
+
});
|
|
44661
|
+
}
|
|
44662
|
+
function flatten(data, skipArray) {
|
|
44663
|
+
if (is_isEmpty(data)) return data;
|
|
44664
|
+
var result = {};
|
|
44665
|
+
function recurse(cur, prop) {
|
|
44666
|
+
if (Object(cur) !== cur || typeof cur === 'function' || cur instanceof Date || cur instanceof Error || skipArray && Array.isArray(cur)) {
|
|
44667
|
+
if (!(cur === undefined && /\[\d+\]$/.test(prop))) {
|
|
44668
|
+
result[prop] = cur;
|
|
44669
|
+
}
|
|
44670
|
+
} else if (Array.isArray(cur)) {
|
|
44671
|
+
if (cur.length === 0) {
|
|
44672
|
+
result[prop] = [];
|
|
44673
|
+
} else {
|
|
44674
|
+
for (var i = 0, l = cur.length; i < l; i++) {
|
|
44675
|
+
recurse(cur[i], prop ? "".concat(prop, "[").concat(i, "]") : "[".concat(i, "]"));
|
|
44676
|
+
}
|
|
44677
|
+
}
|
|
44678
|
+
} else {
|
|
44679
|
+
var empty = true;
|
|
44680
|
+
if (typeof_default()(cur) === 'object') {
|
|
44681
|
+
// eslint-disable-next-line
|
|
44682
|
+
for (var p in cur) {
|
|
44683
|
+
empty = false;
|
|
44684
|
+
recurse(cur[p], prop ? "".concat(prop, ".").concat(p) : p);
|
|
44685
|
+
}
|
|
44686
|
+
if (empty) {
|
|
44687
|
+
result[prop] = {};
|
|
44688
|
+
}
|
|
44689
|
+
}
|
|
44690
|
+
}
|
|
44691
|
+
}
|
|
44692
|
+
recurse(data, '');
|
|
44693
|
+
return result;
|
|
44694
|
+
}
|
|
44695
|
+
function insertValue(obj, name, index, value) {
|
|
44696
|
+
Object.keys(obj).filter(function (n) {
|
|
44697
|
+
return n.indexOf("".concat(name, "[")) === 0;
|
|
44698
|
+
}).sort().reverse().forEach(function (n) {
|
|
44699
|
+
// const reg = new RegExp(`${name}\\[(\\d+)\\]`)
|
|
44700
|
+
var reg = new RegExp("".concat(name.replace(/\[/g, '\\[').replace(/\]/g, '\\]'), "\\[(\\d+)\\]"));
|
|
44701
|
+
var match = reg.exec(n);
|
|
44702
|
+
var i = parseInt(match[1], 10);
|
|
44703
|
+
if (i < index) return;
|
|
44704
|
+
var newName = n.replace(reg, "".concat(name, "[").concat(i + 1, "]"));
|
|
44705
|
+
if (obj[n]) obj[newName] = obj[n];
|
|
44706
|
+
delete obj[n];
|
|
44707
|
+
});
|
|
44708
|
+
var newValue = flatten(defineProperty_default()({}, "".concat(name, "[").concat(index, "]"), value));
|
|
44709
|
+
Object.keys(newValue).forEach(function (k) {
|
|
44710
|
+
if (newValue[k] !== undefined) obj[k] = newValue[k];
|
|
44711
|
+
});
|
|
44712
|
+
}
|
|
44713
|
+
function spliceValue(obj, name, index) {
|
|
44714
|
+
var names = Object.keys(obj).filter(function (n) {
|
|
44715
|
+
return n === name || n.indexOf("".concat(name, "[")) === 0;
|
|
44716
|
+
}).sort();
|
|
44717
|
+
names.forEach(function (n) {
|
|
44718
|
+
if (n === name && !Array.isArray(obj[name])) return;
|
|
44719
|
+
if (n === name && Array.isArray(obj[name])) {
|
|
44720
|
+
obj[name].splice(index, 1);
|
|
44721
|
+
return;
|
|
44722
|
+
}
|
|
44723
|
+
var reg = new RegExp("".concat(name.replace(/\[/g, '\\[').replace(/\]/g, '\\]'), "\\[(\\d+)\\]"));
|
|
44724
|
+
var match = reg.exec(n);
|
|
44725
|
+
var i = parseInt(match[1], 10);
|
|
44726
|
+
if (i < index) return;
|
|
44727
|
+
if (i === index) {
|
|
44728
|
+
delete obj[n];
|
|
44729
|
+
return;
|
|
44730
|
+
}
|
|
44731
|
+
var newName = n.replace(reg, "".concat(name, "[").concat(i - 1, "]"));
|
|
44732
|
+
obj[newName] = obj[n];
|
|
44733
|
+
delete obj[n];
|
|
44734
|
+
});
|
|
44735
|
+
}
|
|
44652
44736
|
;// CONCATENATED MODULE: ../hooks/src/components/use-form/use-form.ts
|
|
44653
44737
|
|
|
44654
44738
|
|
|
@@ -44659,6 +44743,7 @@ var Provider = function Provider(props) {
|
|
|
44659
44743
|
|
|
44660
44744
|
|
|
44661
44745
|
|
|
44746
|
+
|
|
44662
44747
|
var globalKey = '__global__&&@@';
|
|
44663
44748
|
|
|
44664
44749
|
|
|
@@ -44731,6 +44816,15 @@ var useForm = function useForm(props) {
|
|
|
44731
44816
|
update();
|
|
44732
44817
|
});
|
|
44733
44818
|
};
|
|
44819
|
+
var updateFieldsets = use_persist_fn(function (name) {
|
|
44820
|
+
var na = "".concat(name, "[");
|
|
44821
|
+
var no = "".concat(name, ".");
|
|
44822
|
+
context.names.forEach(function (key) {
|
|
44823
|
+
if (key.startsWith(na) || key.startsWith(no)) {
|
|
44824
|
+
update(key);
|
|
44825
|
+
}
|
|
44826
|
+
});
|
|
44827
|
+
});
|
|
44734
44828
|
var handleSubmitError = function handleSubmitError(err) {
|
|
44735
44829
|
onError === null || onError === void 0 || onError(err);
|
|
44736
44830
|
if (!props.scrollToError) return;
|
|
@@ -44848,6 +44942,14 @@ var useForm = function useForm(props) {
|
|
|
44848
44942
|
context.errors[name] = e;
|
|
44849
44943
|
update(name);
|
|
44850
44944
|
});
|
|
44945
|
+
var insertError = use_persist_fn(function (name, index, error) {
|
|
44946
|
+
insertValue(context.errors, name, index, error);
|
|
44947
|
+
updateFieldsets(name);
|
|
44948
|
+
});
|
|
44949
|
+
var spliceError = use_persist_fn(function (name, index) {
|
|
44950
|
+
spliceValue(context.errors, name, index);
|
|
44951
|
+
updateFieldsets(name);
|
|
44952
|
+
});
|
|
44851
44953
|
var submit = use_persist_fn(function () {
|
|
44852
44954
|
var withValidate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
44853
44955
|
if (disabled) return;
|
|
@@ -44904,6 +45006,17 @@ var useForm = function useForm(props) {
|
|
|
44904
45006
|
other === null || other === void 0 || (_other$onSubmit = other.onSubmit) === null || _other$onSubmit === void 0 || _other$onSubmit.call(other, e);
|
|
44905
45007
|
};
|
|
44906
45008
|
};
|
|
45009
|
+
var validateFieldset = function validateFieldset(name) {
|
|
45010
|
+
var na = "".concat(name, "[");
|
|
45011
|
+
var no = "".concat(name, ".");
|
|
45012
|
+
var fields = [];
|
|
45013
|
+
context.names.forEach(function (key) {
|
|
45014
|
+
if (key.startsWith(na) || key.startsWith(no)) {
|
|
45015
|
+
fields.push(key);
|
|
45016
|
+
}
|
|
45017
|
+
});
|
|
45018
|
+
validateFields(fields).catch(function () {});
|
|
45019
|
+
};
|
|
44907
45020
|
var getDefaultValue = function getDefaultValue() {
|
|
44908
45021
|
var v = utils_immer_produce(defaultValue, function (draft) {
|
|
44909
45022
|
Object.keys(context.defaultValues).forEach(function (key) {
|
|
@@ -45009,7 +45122,10 @@ var useForm = function useForm(props) {
|
|
|
45009
45122
|
setError: setError,
|
|
45010
45123
|
getErrors: getErrors,
|
|
45011
45124
|
clearValidate: clearValidate,
|
|
45012
|
-
validateFields: validateFields
|
|
45125
|
+
validateFields: validateFields,
|
|
45126
|
+
validateFieldset: validateFieldset,
|
|
45127
|
+
insertError: insertError,
|
|
45128
|
+
spliceError: spliceError
|
|
45013
45129
|
});
|
|
45014
45130
|
var formConfig = external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo(function () {
|
|
45015
45131
|
return {
|
|
@@ -45355,7 +45471,8 @@ var useFormFieldSet = function useFormFieldSet(props) {
|
|
|
45355
45471
|
ProviderValue: ProviderValue,
|
|
45356
45472
|
error: error,
|
|
45357
45473
|
value: value,
|
|
45358
|
-
onChange: onChange
|
|
45474
|
+
onChange: onChange,
|
|
45475
|
+
name: name
|
|
45359
45476
|
};
|
|
45360
45477
|
};
|
|
45361
45478
|
/* harmony default export */ var use_form_fieldset = (useFormFieldSet);
|
|
@@ -45372,6 +45489,7 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
45372
45489
|
ids: []
|
|
45373
45490
|
}),
|
|
45374
45491
|
context = _React$useRef.current;
|
|
45492
|
+
var formFunc = useFormFunc();
|
|
45375
45493
|
var getValidateProps = usePersistFn(function () {
|
|
45376
45494
|
return props;
|
|
45377
45495
|
});
|
|
@@ -45385,16 +45503,16 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
45385
45503
|
}),
|
|
45386
45504
|
Provider = _useFormFieldSet.Provider,
|
|
45387
45505
|
ProviderValue = _useFormFieldSet.ProviderValue,
|
|
45388
|
-
value = _useFormFieldSet.value,
|
|
45389
45506
|
error = _useFormFieldSet.error,
|
|
45390
|
-
_onChange = _useFormFieldSet.onChange
|
|
45507
|
+
_onChange = _useFormFieldSet.onChange,
|
|
45508
|
+
name = _useFormFieldSet.name;
|
|
45391
45509
|
if (typeof children !== 'function') {
|
|
45392
45510
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
|
|
45393
45511
|
value: ProviderValue,
|
|
45394
45512
|
children: children
|
|
45395
45513
|
});
|
|
45396
45514
|
}
|
|
45397
|
-
var valueArr =
|
|
45515
|
+
var valueArr = (formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name)) || [];
|
|
45398
45516
|
valueArr = Array.isArray(valueArr) ? valueArr : [valueArr];
|
|
45399
45517
|
var result = [];
|
|
45400
45518
|
if (valueArr.length === 0 && valueArr && empty) {
|
|
@@ -45405,6 +45523,7 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
45405
45523
|
});
|
|
45406
45524
|
_onChange(newValue);
|
|
45407
45525
|
context.ids.push(generateUUID());
|
|
45526
|
+
formFunc === null || formFunc === void 0 || formFunc.insertError(name, 0);
|
|
45408
45527
|
})
|
|
45409
45528
|
}, 'empty'));
|
|
45410
45529
|
}
|
|
@@ -45426,31 +45545,39 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
45426
45545
|
index: i,
|
|
45427
45546
|
error: errorList,
|
|
45428
45547
|
onChange: function onChange(val) {
|
|
45429
|
-
var
|
|
45548
|
+
var oldValue = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name);
|
|
45549
|
+
var newValue = form_fieldset_produce(oldValue, function (draft) {
|
|
45430
45550
|
draft[i] = val;
|
|
45431
45551
|
});
|
|
45432
45552
|
_onChange(newValue);
|
|
45553
|
+
formFunc === null || formFunc === void 0 || formFunc.validateFieldset("".concat(name, "[").concat(i, "]"));
|
|
45433
45554
|
},
|
|
45434
45555
|
onInsert: function onInsert(val) {
|
|
45435
|
-
var
|
|
45556
|
+
var oldValue = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name);
|
|
45557
|
+
var newValue = form_fieldset_produce(oldValue, function (draft) {
|
|
45436
45558
|
draft.splice(i, 0, val);
|
|
45437
45559
|
});
|
|
45438
45560
|
_onChange(newValue);
|
|
45439
45561
|
context.ids.splice(i, 0, generateUUID());
|
|
45562
|
+
formFunc === null || formFunc === void 0 || formFunc.insertError(name, i);
|
|
45440
45563
|
},
|
|
45441
45564
|
onAppend: function onAppend(val) {
|
|
45442
|
-
var
|
|
45565
|
+
var oldValue = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name);
|
|
45566
|
+
var newValue = form_fieldset_produce(oldValue, function (draft) {
|
|
45443
45567
|
draft.splice(i + 1, 0, val);
|
|
45444
45568
|
});
|
|
45445
45569
|
_onChange(newValue);
|
|
45446
45570
|
context.ids.splice(i + 1, 0, generateUUID());
|
|
45571
|
+
formFunc === null || formFunc === void 0 || formFunc.insertError(name, i + 1);
|
|
45447
45572
|
},
|
|
45448
45573
|
onRemove: function onRemove() {
|
|
45449
|
-
var
|
|
45574
|
+
var oldValue = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name);
|
|
45575
|
+
var newValue = form_fieldset_produce(oldValue, function (draft) {
|
|
45450
45576
|
draft.splice(i, 1);
|
|
45451
45577
|
});
|
|
45452
45578
|
_onChange(newValue);
|
|
45453
45579
|
context.ids.splice(i, 1);
|
|
45580
|
+
formFunc === null || formFunc === void 0 || formFunc.spliceError(name, i);
|
|
45454
45581
|
}
|
|
45455
45582
|
})
|
|
45456
45583
|
}, ids[i]));
|
|
@@ -50075,7 +50202,7 @@ function Select(props0) {
|
|
|
50075
50202
|
optionListRef: optionListRef,
|
|
50076
50203
|
onOptionClick: handleOptionClick
|
|
50077
50204
|
};
|
|
50078
|
-
|
|
50205
|
+
|
|
50079
50206
|
// 自定义列
|
|
50080
50207
|
if ('columns' in props && typeof columns === 'number' && columns >= 1 || columns === -1) {
|
|
50081
50208
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(list_columns, objectSpread2_default()({
|
|
@@ -51639,7 +51766,7 @@ var MenuItem = function MenuItem(props) {
|
|
|
51639
51766
|
}
|
|
51640
51767
|
}) : null;
|
|
51641
51768
|
var item = render_render(props.renderItem, props.dataItem, props.index);
|
|
51642
|
-
var link = props.linkKey ? getKey(props.linkKey, props.dataItem, props.index) : undefined;
|
|
51769
|
+
var link = props.linkKey ? getKey(props.linkKey, props.dataItem, props.index, true) : undefined;
|
|
51643
51770
|
var title = null;
|
|
51644
51771
|
if (isLink(item)) {
|
|
51645
51772
|
var mergeClass = classnames_default()(classes === null || classes === void 0 ? void 0 : classes.title, item.props && item.props.className);
|
|
@@ -61620,13 +61747,13 @@ function fade(color) {
|
|
|
61620
61747
|
|
|
61621
61748
|
|
|
61622
61749
|
|
|
61623
|
-
function
|
|
61750
|
+
function utils_flat_insertPoint(name) {
|
|
61624
61751
|
var reg = /(\[\d+\])/gi;
|
|
61625
61752
|
return name.replace(reg, function (s, m, i) {
|
|
61626
61753
|
return s.replace(m, i === 0 ? m : ".".concat(m));
|
|
61627
61754
|
});
|
|
61628
61755
|
}
|
|
61629
|
-
function
|
|
61756
|
+
function flat_flatten(data, skipArray) {
|
|
61630
61757
|
if (utils_is_isEmpty(data)) return data;
|
|
61631
61758
|
var result = {};
|
|
61632
61759
|
function recurse(cur, prop) {
|
|
@@ -61675,7 +61802,7 @@ function unflatten(rawdata) {
|
|
|
61675
61802
|
|
|
61676
61803
|
// eslint-disable-next-line
|
|
61677
61804
|
Object.keys(data).sort().forEach(function (p) {
|
|
61678
|
-
var pathWithPoint =
|
|
61805
|
+
var pathWithPoint = utils_flat_insertPoint(p);
|
|
61679
61806
|
cur = result;
|
|
61680
61807
|
prop = '';
|
|
61681
61808
|
last = 0;
|
|
@@ -61691,7 +61818,7 @@ function unflatten(rawdata) {
|
|
|
61691
61818
|
});
|
|
61692
61819
|
return result[''];
|
|
61693
61820
|
}
|
|
61694
|
-
function
|
|
61821
|
+
function flat_insertValue(obj, name, index, value) {
|
|
61695
61822
|
Object.keys(obj).filter(function (n) {
|
|
61696
61823
|
return n.indexOf("".concat(name, "[")) === 0;
|
|
61697
61824
|
}).sort().reverse().forEach(function (n) {
|
|
@@ -61704,12 +61831,12 @@ function insertValue(obj, name, index, value) {
|
|
|
61704
61831
|
if (obj[n]) obj[newName] = obj[n];
|
|
61705
61832
|
delete obj[n];
|
|
61706
61833
|
});
|
|
61707
|
-
var newValue =
|
|
61834
|
+
var newValue = flat_flatten(defineProperty_default()({}, "".concat(name, "[").concat(index, "]"), value));
|
|
61708
61835
|
Object.keys(newValue).forEach(function (k) {
|
|
61709
61836
|
if (newValue[k] !== undefined) obj[k] = newValue[k];
|
|
61710
61837
|
});
|
|
61711
61838
|
}
|
|
61712
|
-
function
|
|
61839
|
+
function flat_spliceValue(obj, name, index) {
|
|
61713
61840
|
var names = Object.keys(obj).filter(function (n) {
|
|
61714
61841
|
return n === name || n.indexOf("".concat(name, "[")) === 0;
|
|
61715
61842
|
}).sort();
|
|
@@ -61740,7 +61867,7 @@ var isNameWithPath = function isNameWithPath(name, path) {
|
|
|
61740
61867
|
var getSthByName = function getSthByName(name, source) {
|
|
61741
61868
|
if (source[name]) return source[name];
|
|
61742
61869
|
var result = unflatten(source);
|
|
61743
|
-
name =
|
|
61870
|
+
name = utils_flat_insertPoint(name);
|
|
61744
61871
|
name.split('.').forEach(function (n) {
|
|
61745
61872
|
var match = /^\[(\d+)\]$/.exec(n);
|
|
61746
61873
|
// eslint-disable-next-line
|
|
@@ -61755,7 +61882,7 @@ var getSthByName = function getSthByName(name, source) {
|
|
|
61755
61882
|
var removeSthByName = function removeSthByName(name, source) {
|
|
61756
61883
|
var match = /(.*)\[(\d+)\]$/.exec(name);
|
|
61757
61884
|
if (match) {
|
|
61758
|
-
|
|
61885
|
+
flat_spliceValue(source, match[1], parseInt(match[2], 10));
|
|
61759
61886
|
} else {
|
|
61760
61887
|
Object.keys(source).forEach(function (n) {
|
|
61761
61888
|
if (isNameWithPath(n, name)) delete source[n];
|
|
@@ -61947,7 +62074,7 @@ var objects_deepMerge = function deepMerge() {
|
|
|
61947
62074
|
return dest;
|
|
61948
62075
|
};
|
|
61949
62076
|
function objects_pathGenerator(raw) {
|
|
61950
|
-
var path =
|
|
62077
|
+
var path = utils_flat_insertPoint(raw);
|
|
61951
62078
|
var reg = /^\[(\d+)\]$/;
|
|
61952
62079
|
var pathModeValues = objects_objectValues(objects_PATH_MODE);
|
|
61953
62080
|
var index = 0;
|
|
@@ -63173,7 +63300,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
63173
63300
|
|
|
63174
63301
|
|
|
63175
63302
|
/* harmony default export */ var src_0 = ({
|
|
63176
|
-
version: '3.3.0-beta.
|
|
63303
|
+
version: '3.3.0-beta.3'
|
|
63177
63304
|
});
|
|
63178
63305
|
}();
|
|
63179
63306
|
/******/ return __webpack_exports__;
|