@erpsquad/common 1.10.11 → 1.10.12
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/chunks/{CssBaseline-Ba0wbudi.js → CssBaseline-CaG36t1j.js} +2 -2
- package/dist/chunks/{CssBaseline-Ba0wbudi.js.map → CssBaseline-CaG36t1j.js.map} +1 -1
- package/dist/chunks/{CssBaseline-qnbPrAjr.esm.js → CssBaseline-GdktO2pw.esm.js} +2 -2
- package/dist/chunks/{CssBaseline-qnbPrAjr.esm.js.map → CssBaseline-GdktO2pw.esm.js.map} +1 -1
- package/dist/chunks/{android-12-switch-Co1-sM3a.esm.js → android-12-switch-CmTlHqzZ.esm.js} +13 -13
- package/dist/chunks/{android-12-switch-Co1-sM3a.esm.js.map → android-12-switch-CmTlHqzZ.esm.js.map} +1 -1
- package/dist/chunks/{android-12-switch-DRV67SLg.js → android-12-switch-QbNrLcJ5.js} +13 -13
- package/dist/chunks/{android-12-switch-DRV67SLg.js.map → android-12-switch-QbNrLcJ5.js.map} +1 -1
- package/dist/chunks/{apiHelper-gxUrse_j.esm.js → apiHelper-0m5piQqF.esm.js} +6 -6
- package/dist/chunks/{apiHelper-gxUrse_j.esm.js.map → apiHelper-0m5piQqF.esm.js.map} +1 -1
- package/dist/chunks/{apiHelper-8K4t1nbo.js → apiHelper-CK8OhEUv.js} +6 -6
- package/dist/chunks/{apiHelper-8K4t1nbo.js.map → apiHelper-CK8OhEUv.js.map} +1 -1
- package/dist/chunks/{appbar-Br7-Ty75.js → appbar-DhZRcO79.js} +7 -7
- package/dist/chunks/{appbar-Br7-Ty75.js.map → appbar-DhZRcO79.js.map} +1 -1
- package/dist/chunks/{appbar-DN-sBu_D.esm.js → appbar-jwyLUzHp.esm.js} +7 -7
- package/dist/chunks/{appbar-DN-sBu_D.esm.js.map → appbar-jwyLUzHp.esm.js.map} +1 -1
- package/dist/chunks/{arrow-up-Cz4A_O0J.esm.js → arrow-up-Bp6K1xq8.esm.js} +2 -2
- package/dist/chunks/{arrow-up-Cz4A_O0J.esm.js.map → arrow-up-Bp6K1xq8.esm.js.map} +1 -1
- package/dist/chunks/{arrow-up-BC9MfTDu.js → arrow-up-DL3NGhTM.js} +2 -2
- package/dist/chunks/{arrow-up-BC9MfTDu.js.map → arrow-up-DL3NGhTM.js.map} +1 -1
- package/dist/chunks/{dashboard-CmeL1xk8.esm.js → dashboard-D-jCCLFt.esm.js} +2 -2
- package/dist/chunks/{dashboard-CmeL1xk8.esm.js.map → dashboard-D-jCCLFt.esm.js.map} +1 -1
- package/dist/chunks/{dashboard-DZujrViq.js → dashboard-MOyqxPUY.js} +2 -2
- package/dist/chunks/{dashboard-DZujrViq.js.map → dashboard-MOyqxPUY.js.map} +1 -1
- package/dist/chunks/{default-data-BnQ1UFnR.js → default-data-C_390oGn.js} +12 -12
- package/dist/chunks/{default-data-BnQ1UFnR.js.map → default-data-C_390oGn.js.map} +1 -1
- package/dist/chunks/{default-data-Bw8FG8QM.esm.js → default-data-CfWWR300.esm.js} +12 -12
- package/dist/chunks/{default-data-Bw8FG8QM.esm.js.map → default-data-CfWWR300.esm.js.map} +1 -1
- package/dist/chunks/{document-D7m0P_S2.js → document-BFgGr8K0.js} +2 -2
- package/dist/chunks/{document-D7m0P_S2.js.map → document-BFgGr8K0.js.map} +1 -1
- package/dist/chunks/{document-DKQMhgnk.esm.js → document-zEiaIfTI.esm.js} +2 -2
- package/dist/chunks/{document-DKQMhgnk.esm.js.map → document-zEiaIfTI.esm.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-DBro79hr.esm.js → form-builder-deconversion--L0SCbSE.esm.js} +3 -3
- package/dist/chunks/{form-builder-deconversion-DBro79hr.esm.js.map → form-builder-deconversion--L0SCbSE.esm.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-DHEmDVSG.js → form-builder-deconversion-BDKiVY14.js} +3 -3
- package/dist/chunks/{form-builder-deconversion-DHEmDVSG.js.map → form-builder-deconversion-BDKiVY14.js.map} +1 -1
- package/dist/chunks/{fullScreen-C4NRh2lh.esm.js → fullScreen-LwKF0Wcm.esm.js} +3 -3
- package/dist/chunks/{fullScreen-C4NRh2lh.esm.js.map → fullScreen-LwKF0Wcm.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-DFr77Xsw.js → fullScreen-twu05Zih.js} +3 -3
- package/dist/chunks/{fullScreen-DFr77Xsw.js.map → fullScreen-twu05Zih.js.map} +1 -1
- package/dist/chunks/{identifier-B8P9ZGxG.js → identifier-BTBl-PeG.js} +74 -67
- package/dist/chunks/{identifier-B8P9ZGxG.js.map → identifier-BTBl-PeG.js.map} +1 -1
- package/dist/chunks/{identifier-u4E_J1of.esm.js → identifier-DOIuZkWc.esm.js} +74 -67
- package/dist/chunks/{identifier-u4E_J1of.esm.js.map → identifier-DOIuZkWc.esm.js.map} +1 -1
- package/dist/chunks/{languageContext-CsSaAsO4.js → languageContext-DNk-Xb1X.js} +2 -2
- package/dist/chunks/{languageContext-CsSaAsO4.js.map → languageContext-DNk-Xb1X.js.map} +1 -1
- package/dist/chunks/{languageContext-YZSA8Vf8.esm.js → languageContext-DiyXk1ct.esm.js} +2 -2
- package/dist/chunks/{languageContext-YZSA8Vf8.esm.js.map → languageContext-DiyXk1ct.esm.js.map} +1 -1
- package/dist/chunks/{migration-utils-COUVncTl.js → migration-utils-C_LTTPYb.js} +3 -3
- package/dist/chunks/{migration-utils-COUVncTl.js.map → migration-utils-C_LTTPYb.js.map} +1 -1
- package/dist/chunks/{migration-utils-CDFyW-3I.esm.js → migration-utils-tJMzKUsy.esm.js} +3 -3
- package/dist/chunks/{migration-utils-CDFyW-3I.esm.js.map → migration-utils-tJMzKUsy.esm.js.map} +1 -1
- package/dist/chunks/{notification-Dr_nE2Dc.esm.js → notification-BkYKSve7.esm.js} +2 -2
- package/dist/chunks/{notification-Dr_nE2Dc.esm.js.map → notification-BkYKSve7.esm.js.map} +1 -1
- package/dist/chunks/{notification-lAbbtOBF.js → notification-mmnVEZtt.js} +2 -2
- package/dist/chunks/{notification-lAbbtOBF.js.map → notification-mmnVEZtt.js.map} +1 -1
- package/dist/chunks/{page-context-DAof2pOQ.esm.js → page-context-Cnr2ZeHV.esm.js} +3 -3
- package/dist/chunks/{page-context-DAof2pOQ.esm.js.map → page-context-Cnr2ZeHV.esm.js.map} +1 -1
- package/dist/chunks/{page-context-D1bSKATz.js → page-context-DWkmgit5.js} +3 -3
- package/dist/chunks/{page-context-D1bSKATz.js.map → page-context-DWkmgit5.js.map} +1 -1
- package/dist/chunks/{sidebar-CTn-nSpk.js → sidebar-Be8tRMuJ.js} +7 -7
- package/dist/chunks/{sidebar-CTn-nSpk.js.map → sidebar-Be8tRMuJ.js.map} +1 -1
- package/dist/chunks/{sidebar-CSX2S5NL.esm.js → sidebar-URo-Ugma.esm.js} +7 -7
- package/dist/chunks/{sidebar-CSX2S5NL.esm.js.map → sidebar-URo-Ugma.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-CXu3WmH_.js → sidebarScreen-BiOLZtd_.js} +4 -4
- package/dist/chunks/{sidebarScreen-CXu3WmH_.js.map → sidebarScreen-BiOLZtd_.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-BcVYvEKG.esm.js → sidebarScreen-DchkvJ0r.esm.js} +4 -4
- package/dist/chunks/{sidebarScreen-BcVYvEKG.esm.js.map → sidebarScreen-DchkvJ0r.esm.js.map} +1 -1
- package/dist/chunks/{theme-impl-BgGLJiHC.js → theme-impl-B-jAlah0.js} +3 -3
- package/dist/chunks/{theme-impl-BgGLJiHC.js.map → theme-impl-B-jAlah0.js.map} +1 -1
- package/dist/chunks/{theme-impl-B5ncd0_-.esm.js → theme-impl-DiwS-WWR.esm.js} +3 -3
- package/dist/chunks/{theme-impl-B5ncd0_-.esm.js.map → theme-impl-DiwS-WWR.esm.js.map} +1 -1
- package/dist/chunks/{themeSelector-Y7FIaMIK.esm.js → themeSelector-C9iyIueK.esm.js} +2 -2
- package/dist/chunks/{themeSelector-Y7FIaMIK.esm.js.map → themeSelector-C9iyIueK.esm.js.map} +1 -1
- package/dist/chunks/{themeSelector-CkbUQSqY.js → themeSelector-Cpzcr0j7.js} +2 -2
- package/dist/chunks/{themeSelector-CkbUQSqY.js.map → themeSelector-Cpzcr0j7.js.map} +1 -1
- package/dist/chunks/{tick-CRp4S9uN.esm.js → tick-CdbM5wXS.esm.js} +2 -2
- package/dist/chunks/{tick-CRp4S9uN.esm.js.map → tick-CdbM5wXS.esm.js.map} +1 -1
- package/dist/chunks/{tick-By8O3yMK.js → tick-D0uXfgm_.js} +2 -2
- package/dist/chunks/{tick-By8O3yMK.js.map → tick-D0uXfgm_.js.map} +1 -1
- package/dist/chunks/{toggle-switch-cUD3eGwN.js → toggle-switch-C2GpPNpX.js} +2 -2
- package/dist/chunks/{toggle-switch-cUD3eGwN.js.map → toggle-switch-C2GpPNpX.js.map} +1 -1
- package/dist/chunks/{toggle-switch-BHNFcNhi.esm.js → toggle-switch-DiErs4or.esm.js} +2 -2
- package/dist/chunks/{toggle-switch-BHNFcNhi.esm.js.map → toggle-switch-DiErs4or.esm.js.map} +1 -1
- package/dist/chunks/{trash-CUP1jXNo.js → trash-CJyhARBA.js} +2 -2
- package/dist/chunks/{trash-CUP1jXNo.js.map → trash-CJyhARBA.js.map} +1 -1
- package/dist/chunks/{trash-jodcm4T5.esm.js → trash-COwV7lxA.esm.js} +2 -2
- package/dist/chunks/{trash-jodcm4T5.esm.js.map → trash-COwV7lxA.esm.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-D00qlYvK.esm.js → uom-field-wrapper-BzVzCvAa.esm.js} +20 -18
- package/dist/chunks/uom-field-wrapper-BzVzCvAa.esm.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-y_CRMTek.js → uom-field-wrapper-DJwrpP7O.js} +19 -17
- package/dist/chunks/uom-field-wrapper-DJwrpP7O.js.map +1 -0
- package/dist/chunks/{useAccountSetting-DHl__SuY.esm.js → useAccountSetting-BQ5piMue.esm.js} +2 -2
- package/dist/chunks/{useAccountSetting-DHl__SuY.esm.js.map → useAccountSetting-BQ5piMue.esm.js.map} +1 -1
- package/dist/chunks/{useAccountSetting-DPLca3-A.js → useAccountSetting-CUspIaW-.js} +2 -2
- package/dist/chunks/{useAccountSetting-DPLca3-A.js.map → useAccountSetting-CUspIaW-.js.map} +1 -1
- package/dist/chunks/{useAuth-CvOvpFeW.esm.js → useAuth-C-3iW-8X.esm.js} +3 -3
- package/dist/chunks/{useAuth-CvOvpFeW.esm.js.map → useAuth-C-3iW-8X.esm.js.map} +1 -1
- package/dist/chunks/{useAuth-BeJvQGbT.js → useAuth-Yr6hG7pu.js} +3 -3
- package/dist/chunks/{useAuth-BeJvQGbT.js.map → useAuth-Yr6hG7pu.js.map} +1 -1
- package/dist/chunks/{useLangauge-DefQLNzN.js → useLangauge-CCz6ZvDN.js} +2 -2
- package/dist/chunks/{useLangauge-DefQLNzN.js.map → useLangauge-CCz6ZvDN.js.map} +1 -1
- package/dist/chunks/{useLangauge-CGkrC5u9.esm.js → useLangauge-VBzM6AFW.esm.js} +2 -2
- package/dist/chunks/{useLangauge-CGkrC5u9.esm.js.map → useLangauge-VBzM6AFW.esm.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-C_zZ-Yo7.js → useReduxIntegration-BCVXu6FN.js} +3 -3
- package/dist/chunks/{useReduxIntegration-C_zZ-Yo7.js.map → useReduxIntegration-BCVXu6FN.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-CGMt-mLL.esm.js → useReduxIntegration-DFf-QPFH.esm.js} +3 -3
- package/dist/chunks/{useReduxIntegration-CGMt-mLL.esm.js.map → useReduxIntegration-DFf-QPFH.esm.js.map} +1 -1
- package/dist/components/index.esm.js +14 -14
- package/dist/components/index.js +14 -14
- package/dist/contexts/index.esm.js +3 -3
- package/dist/contexts/index.js +3 -3
- package/dist/hooks/index.esm.js +5 -5
- package/dist/hooks/index.js +5 -5
- package/dist/icons/index.esm.js +7 -7
- package/dist/icons/index.js +7 -7
- package/dist/index.esm.js +23 -23
- package/dist/index.js +23 -23
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/theme/index.esm.js +2 -2
- package/dist/theme/index.js +2 -2
- package/dist/utils/index.esm.js +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/views/index.esm.js +7 -7
- package/dist/views/index.js +6 -6
- package/package.json +1 -1
- package/dist/chunks/uom-field-wrapper-D00qlYvK.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-y_CRMTek.js.map +0 -1
|
@@ -421,70 +421,77 @@ function requireReactPropTypesSecret() {
|
|
|
421
421
|
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
422
422
|
return ReactPropTypesSecret_1;
|
|
423
423
|
}
|
|
424
|
-
var has
|
|
424
|
+
var has;
|
|
425
425
|
var hasRequiredHas;
|
|
426
426
|
function requireHas() {
|
|
427
|
-
if (hasRequiredHas) return has
|
|
427
|
+
if (hasRequiredHas) return has;
|
|
428
428
|
hasRequiredHas = 1;
|
|
429
|
-
has
|
|
430
|
-
return has
|
|
431
|
-
}
|
|
432
|
-
var
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
var
|
|
438
|
-
printWarning = function(text) {
|
|
439
|
-
var message = "Warning: " + text;
|
|
440
|
-
if (typeof console !== "undefined") {
|
|
441
|
-
console.error(message);
|
|
442
|
-
}
|
|
443
|
-
try {
|
|
444
|
-
throw new Error(message);
|
|
445
|
-
} catch (x) {
|
|
446
|
-
}
|
|
429
|
+
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
430
|
+
return has;
|
|
431
|
+
}
|
|
432
|
+
var checkPropTypes_1;
|
|
433
|
+
var hasRequiredCheckPropTypes;
|
|
434
|
+
function requireCheckPropTypes() {
|
|
435
|
+
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
436
|
+
hasRequiredCheckPropTypes = 1;
|
|
437
|
+
var printWarning = function() {
|
|
447
438
|
};
|
|
448
|
-
}
|
|
449
|
-
function checkPropTypes(typeSpecs, values2, location, componentName, getStack) {
|
|
450
439
|
if (process.env.NODE_ENV !== "production") {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
440
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
441
|
+
var loggedTypeFailures = {};
|
|
442
|
+
var has2 = requireHas();
|
|
443
|
+
printWarning = function(text) {
|
|
444
|
+
var message = "Warning: " + text;
|
|
445
|
+
if (typeof console !== "undefined") {
|
|
446
|
+
console.error(message);
|
|
447
|
+
}
|
|
448
|
+
try {
|
|
449
|
+
throw new Error(message);
|
|
450
|
+
} catch (x) {
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
function checkPropTypes(typeSpecs, values2, location, componentName, getStack) {
|
|
455
|
+
if (process.env.NODE_ENV !== "production") {
|
|
456
|
+
for (var typeSpecName in typeSpecs) {
|
|
457
|
+
if (has2(typeSpecs, typeSpecName)) {
|
|
458
|
+
var error;
|
|
459
|
+
try {
|
|
460
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
461
|
+
var err = Error(
|
|
462
|
+
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
463
|
+
);
|
|
464
|
+
err.name = "Invariant Violation";
|
|
465
|
+
throw err;
|
|
466
|
+
}
|
|
467
|
+
error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
468
|
+
} catch (ex) {
|
|
469
|
+
error = ex;
|
|
470
|
+
}
|
|
471
|
+
if (error && !(error instanceof Error)) {
|
|
472
|
+
printWarning(
|
|
473
|
+
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
474
|
+
);
|
|
475
|
+
}
|
|
476
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
477
|
+
loggedTypeFailures[error.message] = true;
|
|
478
|
+
var stack = getStack ? getStack() : "";
|
|
479
|
+
printWarning(
|
|
480
|
+
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
458
481
|
);
|
|
459
|
-
err.name = "Invariant Violation";
|
|
460
|
-
throw err;
|
|
461
482
|
}
|
|
462
|
-
error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
463
|
-
} catch (ex) {
|
|
464
|
-
error = ex;
|
|
465
|
-
}
|
|
466
|
-
if (error && !(error instanceof Error)) {
|
|
467
|
-
printWarning(
|
|
468
|
-
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
469
|
-
);
|
|
470
|
-
}
|
|
471
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
472
|
-
loggedTypeFailures[error.message] = true;
|
|
473
|
-
var stack = getStack ? getStack() : "";
|
|
474
|
-
printWarning(
|
|
475
|
-
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
476
|
-
);
|
|
477
483
|
}
|
|
478
484
|
}
|
|
479
485
|
}
|
|
480
486
|
}
|
|
487
|
+
checkPropTypes.resetWarningCache = function() {
|
|
488
|
+
if (process.env.NODE_ENV !== "production") {
|
|
489
|
+
loggedTypeFailures = {};
|
|
490
|
+
}
|
|
491
|
+
};
|
|
492
|
+
checkPropTypes_1 = checkPropTypes;
|
|
493
|
+
return checkPropTypes_1;
|
|
481
494
|
}
|
|
482
|
-
checkPropTypes.resetWarningCache = function() {
|
|
483
|
-
if (process.env.NODE_ENV !== "production") {
|
|
484
|
-
loggedTypeFailures = {};
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
|
-
var checkPropTypes_1 = checkPropTypes;
|
|
488
495
|
var factoryWithTypeCheckers;
|
|
489
496
|
var hasRequiredFactoryWithTypeCheckers;
|
|
490
497
|
function requireFactoryWithTypeCheckers() {
|
|
@@ -493,12 +500,12 @@ function requireFactoryWithTypeCheckers() {
|
|
|
493
500
|
var ReactIs = requireReactIs();
|
|
494
501
|
var assign2 = requireObjectAssign();
|
|
495
502
|
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
496
|
-
var
|
|
497
|
-
var
|
|
498
|
-
var
|
|
503
|
+
var has2 = requireHas();
|
|
504
|
+
var checkPropTypes = requireCheckPropTypes();
|
|
505
|
+
var printWarning = function() {
|
|
499
506
|
};
|
|
500
507
|
if (process.env.NODE_ENV !== "production") {
|
|
501
|
-
|
|
508
|
+
printWarning = function(text) {
|
|
502
509
|
var message = "Warning: " + text;
|
|
503
510
|
if (typeof console !== "undefined") {
|
|
504
511
|
console.error(message);
|
|
@@ -575,7 +582,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
575
582
|
var cacheKey = componentName + ":" + propName;
|
|
576
583
|
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
577
584
|
manualPropTypeWarningCount < 3) {
|
|
578
|
-
|
|
585
|
+
printWarning(
|
|
579
586
|
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
580
587
|
);
|
|
581
588
|
manualPropTypeCallCache[cacheKey] = true;
|
|
@@ -674,11 +681,11 @@ function requireFactoryWithTypeCheckers() {
|
|
|
674
681
|
if (!Array.isArray(expectedValues)) {
|
|
675
682
|
if (process.env.NODE_ENV !== "production") {
|
|
676
683
|
if (arguments.length > 1) {
|
|
677
|
-
|
|
684
|
+
printWarning(
|
|
678
685
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
679
686
|
);
|
|
680
687
|
} else {
|
|
681
|
-
|
|
688
|
+
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
|
682
689
|
}
|
|
683
690
|
}
|
|
684
691
|
return emptyFunctionThatReturnsNull;
|
|
@@ -712,7 +719,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
712
719
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
|
713
720
|
}
|
|
714
721
|
for (var key in propValue) {
|
|
715
|
-
if (
|
|
722
|
+
if (has2(propValue, key)) {
|
|
716
723
|
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
717
724
|
if (error instanceof Error) {
|
|
718
725
|
return error;
|
|
@@ -725,13 +732,13 @@ function requireFactoryWithTypeCheckers() {
|
|
|
725
732
|
}
|
|
726
733
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
727
734
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
728
|
-
process.env.NODE_ENV !== "production" ?
|
|
735
|
+
process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
729
736
|
return emptyFunctionThatReturnsNull;
|
|
730
737
|
}
|
|
731
738
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
732
739
|
var checker = arrayOfTypeCheckers[i];
|
|
733
740
|
if (typeof checker !== "function") {
|
|
734
|
-
|
|
741
|
+
printWarning(
|
|
735
742
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
|
736
743
|
);
|
|
737
744
|
return emptyFunctionThatReturnsNull;
|
|
@@ -745,7 +752,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
745
752
|
if (checkerResult == null) {
|
|
746
753
|
return null;
|
|
747
754
|
}
|
|
748
|
-
if (checkerResult.data &&
|
|
755
|
+
if (checkerResult.data && has2(checkerResult.data, "expectedType")) {
|
|
749
756
|
expectedTypes.push(checkerResult.data.expectedType);
|
|
750
757
|
}
|
|
751
758
|
}
|
|
@@ -799,7 +806,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
799
806
|
var allKeys = assign2({}, props[propName], shapeTypes);
|
|
800
807
|
for (var key in allKeys) {
|
|
801
808
|
var checker = shapeTypes[key];
|
|
802
|
-
if (
|
|
809
|
+
if (has2(shapeTypes, key) && typeof checker !== "function") {
|
|
803
810
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
804
811
|
}
|
|
805
812
|
if (!checker) {
|
|
@@ -921,8 +928,8 @@ function requireFactoryWithTypeCheckers() {
|
|
|
921
928
|
}
|
|
922
929
|
return propValue.constructor.name;
|
|
923
930
|
}
|
|
924
|
-
ReactPropTypes.checkPropTypes =
|
|
925
|
-
ReactPropTypes.resetWarningCache =
|
|
931
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
932
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
926
933
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
927
934
|
return ReactPropTypes;
|
|
928
935
|
};
|
|
@@ -4211,4 +4218,4 @@ export {
|
|
|
4211
4218
|
internal_processStyles as y,
|
|
4212
4219
|
resolveProps as z
|
|
4213
4220
|
};
|
|
4214
|
-
//# sourceMappingURL=identifier-
|
|
4221
|
+
//# sourceMappingURL=identifier-DOIuZkWc.esm.js.map
|