@pdg/react-form 1.2.13 → 1.2.14
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/index.js
CHANGED
|
@@ -11174,7 +11174,7 @@ _PFormTextEditor.apiKey = '';
|
|
|
11174
11174
|
function _temp$m() {
|
|
11175
11175
|
return "PFormTextEditor";
|
|
11176
11176
|
}function PFormAutocomplete(t0) {
|
|
11177
|
-
var $ = compilerRuntime.c(
|
|
11177
|
+
var $ = compilerRuntime.c(254);
|
|
11178
11178
|
var ref = t0.ref,
|
|
11179
11179
|
initVariant = t0.variant,
|
|
11180
11180
|
initSize = t0.size,
|
|
@@ -11215,7 +11215,7 @@ function _temp$m() {
|
|
|
11215
11215
|
onRenderItem = t0.onRenderItem,
|
|
11216
11216
|
onRenderTag = t0.onRenderTag,
|
|
11217
11217
|
onRenderValue = t0.onRenderValue,
|
|
11218
|
-
|
|
11218
|
+
onGetDisplayValue = t0.onGetDisplayValue,
|
|
11219
11219
|
onAddItem = t0.onAddItem,
|
|
11220
11220
|
getOptionDisabled = t0.getOptionDisabled,
|
|
11221
11221
|
onChange = t0.onChange,
|
|
@@ -11712,50 +11712,49 @@ function _temp$m() {
|
|
|
11712
11712
|
componentValue = _useState22[0],
|
|
11713
11713
|
setComponentValue = _useState22[1];
|
|
11714
11714
|
var t29;
|
|
11715
|
-
if ($[67] !== componentValue || $[68] !== computedComponentValue_0
|
|
11715
|
+
if ($[67] !== componentValue || $[68] !== computedComponentValue_0) {
|
|
11716
11716
|
t29 = function t29() {
|
|
11717
11717
|
if (componentValue && computedComponentValue_0 && compare.equal(componentValue, computedComponentValue_0)) ; else {
|
|
11718
|
-
setComponentValue(
|
|
11718
|
+
setComponentValue(computedComponentValue_0);
|
|
11719
11719
|
}
|
|
11720
11720
|
};
|
|
11721
11721
|
$[67] = componentValue;
|
|
11722
11722
|
$[68] = computedComponentValue_0;
|
|
11723
|
-
$[69] =
|
|
11724
|
-
$[70] = t29;
|
|
11723
|
+
$[69] = t29;
|
|
11725
11724
|
} else {
|
|
11726
|
-
t29 = $[
|
|
11725
|
+
t29 = $[69];
|
|
11727
11726
|
}
|
|
11728
11727
|
var t30;
|
|
11729
|
-
if ($[
|
|
11728
|
+
if ($[70] !== computedComponentValue_0) {
|
|
11730
11729
|
t30 = [computedComponentValue_0];
|
|
11731
|
-
$[
|
|
11732
|
-
$[
|
|
11730
|
+
$[70] = computedComponentValue_0;
|
|
11731
|
+
$[71] = t30;
|
|
11733
11732
|
} else {
|
|
11734
|
-
t30 = $[
|
|
11733
|
+
t30 = $[71];
|
|
11735
11734
|
}
|
|
11736
11735
|
reactHook.useChanged(t29, t30);
|
|
11737
11736
|
var t31;
|
|
11738
|
-
if ($[
|
|
11737
|
+
if ($[72] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
11739
11738
|
t31 = function t31() {
|
|
11740
11739
|
setIsOnGetItemLoading(true);
|
|
11741
11740
|
};
|
|
11742
|
-
$[
|
|
11741
|
+
$[72] = t31;
|
|
11743
11742
|
} else {
|
|
11744
|
-
t31 = $[
|
|
11743
|
+
t31 = $[72];
|
|
11745
11744
|
}
|
|
11746
11745
|
var showOnGetItemLoading = t31;
|
|
11747
11746
|
var t32;
|
|
11748
|
-
if ($[
|
|
11747
|
+
if ($[73] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
11749
11748
|
t32 = function t32() {
|
|
11750
11749
|
setIsOnGetItemLoading(false);
|
|
11751
11750
|
};
|
|
11752
|
-
$[
|
|
11751
|
+
$[73] = t32;
|
|
11753
11752
|
} else {
|
|
11754
|
-
t32 = $[
|
|
11753
|
+
t32 = $[73];
|
|
11755
11754
|
}
|
|
11756
11755
|
var hideOnGetItemLoading = t32;
|
|
11757
11756
|
var t33;
|
|
11758
|
-
if ($[
|
|
11757
|
+
if ($[74] !== async || $[75] !== onLoadItemsRef || $[76] !== setItems) {
|
|
11759
11758
|
t33 = function t33() {
|
|
11760
11759
|
if (!async && onLoadItemsRef.current) {
|
|
11761
11760
|
showOnGetItemLoading();
|
|
@@ -11765,44 +11764,44 @@ function _temp$m() {
|
|
|
11765
11764
|
});
|
|
11766
11765
|
}
|
|
11767
11766
|
};
|
|
11768
|
-
$[
|
|
11769
|
-
$[
|
|
11770
|
-
$[
|
|
11771
|
-
$[
|
|
11767
|
+
$[74] = async;
|
|
11768
|
+
$[75] = onLoadItemsRef;
|
|
11769
|
+
$[76] = setItems;
|
|
11770
|
+
$[77] = t33;
|
|
11772
11771
|
} else {
|
|
11773
|
-
t33 = $[
|
|
11772
|
+
t33 = $[77];
|
|
11774
11773
|
}
|
|
11775
11774
|
var t34;
|
|
11776
|
-
if ($[
|
|
11775
|
+
if ($[78] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
11777
11776
|
t34 = [];
|
|
11778
|
-
$[
|
|
11777
|
+
$[78] = t34;
|
|
11779
11778
|
} else {
|
|
11780
|
-
t34 = $[
|
|
11779
|
+
t34 = $[78];
|
|
11781
11780
|
}
|
|
11782
11781
|
reactHook.useEventEffect(t33, t34);
|
|
11783
11782
|
var t35;
|
|
11784
|
-
if ($[
|
|
11783
|
+
if ($[79] !== getFinalValueRef || $[80] !== updateValue || $[81] !== valueRef) {
|
|
11785
11784
|
t35 = function t35() {
|
|
11786
11785
|
updateValue(getFinalValueRef.current(valueRef.current));
|
|
11787
11786
|
};
|
|
11788
|
-
$[
|
|
11789
|
-
$[
|
|
11790
|
-
$[
|
|
11791
|
-
$[
|
|
11787
|
+
$[79] = getFinalValueRef;
|
|
11788
|
+
$[80] = updateValue;
|
|
11789
|
+
$[81] = valueRef;
|
|
11790
|
+
$[82] = t35;
|
|
11792
11791
|
} else {
|
|
11793
|
-
t35 = $[
|
|
11792
|
+
t35 = $[82];
|
|
11794
11793
|
}
|
|
11795
11794
|
var t36;
|
|
11796
|
-
if ($[
|
|
11795
|
+
if ($[83] !== multiple) {
|
|
11797
11796
|
t36 = [multiple];
|
|
11798
|
-
$[
|
|
11799
|
-
$[
|
|
11797
|
+
$[83] = multiple;
|
|
11798
|
+
$[84] = t36;
|
|
11800
11799
|
} else {
|
|
11801
|
-
t36 = $[
|
|
11800
|
+
t36 = $[84];
|
|
11802
11801
|
}
|
|
11803
11802
|
reactHook.useFirstSkipEffect(t35, t36);
|
|
11804
11803
|
var t37;
|
|
11805
|
-
if ($[
|
|
11804
|
+
if ($[85] !== async || $[86] !== onAsyncLoadValueItemRef || $[87] !== setItems || $[88] !== valueItem || $[89] !== value_2) {
|
|
11806
11805
|
t37 = function t37() {
|
|
11807
11806
|
if (async && onAsyncLoadValueItemRef.current) {
|
|
11808
11807
|
if (value_2 != null) {
|
|
@@ -11823,28 +11822,28 @@ function _temp$m() {
|
|
|
11823
11822
|
}
|
|
11824
11823
|
}
|
|
11825
11824
|
};
|
|
11826
|
-
$[
|
|
11827
|
-
$[
|
|
11828
|
-
$[
|
|
11829
|
-
$[
|
|
11830
|
-
$[
|
|
11831
|
-
$[
|
|
11825
|
+
$[85] = async;
|
|
11826
|
+
$[86] = onAsyncLoadValueItemRef;
|
|
11827
|
+
$[87] = setItems;
|
|
11828
|
+
$[88] = valueItem;
|
|
11829
|
+
$[89] = value_2;
|
|
11830
|
+
$[90] = t37;
|
|
11832
11831
|
} else {
|
|
11833
|
-
t37 = $[
|
|
11832
|
+
t37 = $[90];
|
|
11834
11833
|
}
|
|
11835
11834
|
var t38;
|
|
11836
|
-
if ($[
|
|
11835
|
+
if ($[91] !== async || $[92] !== valueItem || $[93] !== value_2) {
|
|
11837
11836
|
t38 = [async, value_2, valueItem];
|
|
11838
|
-
$[
|
|
11839
|
-
$[
|
|
11840
|
-
$[
|
|
11841
|
-
$[
|
|
11837
|
+
$[91] = async;
|
|
11838
|
+
$[92] = valueItem;
|
|
11839
|
+
$[93] = value_2;
|
|
11840
|
+
$[94] = t38;
|
|
11842
11841
|
} else {
|
|
11843
|
-
t38 = $[
|
|
11842
|
+
t38 = $[94];
|
|
11844
11843
|
}
|
|
11845
11844
|
reactHook.useEventEffect(t37, t38);
|
|
11846
11845
|
var t39;
|
|
11847
|
-
if ($[
|
|
11846
|
+
if ($[95] !== async || $[96] !== asyncTimeoutRef || $[97] !== componentValue || $[98] !== inputValue || $[99] !== onLoadItems || $[100] !== setAsyncTimeout || $[101] !== setItems) {
|
|
11848
11847
|
t39 = function t39() {
|
|
11849
11848
|
if (async && onLoadItems) {
|
|
11850
11849
|
reactHook.clearTimeoutRef(asyncTimeoutRef);
|
|
@@ -11884,231 +11883,231 @@ function _temp$m() {
|
|
|
11884
11883
|
}
|
|
11885
11884
|
}
|
|
11886
11885
|
};
|
|
11887
|
-
$[
|
|
11888
|
-
$[
|
|
11889
|
-
$[
|
|
11890
|
-
$[
|
|
11891
|
-
$[
|
|
11892
|
-
$[
|
|
11893
|
-
$[
|
|
11894
|
-
$[
|
|
11886
|
+
$[95] = async;
|
|
11887
|
+
$[96] = asyncTimeoutRef;
|
|
11888
|
+
$[97] = componentValue;
|
|
11889
|
+
$[98] = inputValue;
|
|
11890
|
+
$[99] = onLoadItems;
|
|
11891
|
+
$[100] = setAsyncTimeout;
|
|
11892
|
+
$[101] = setItems;
|
|
11893
|
+
$[102] = t39;
|
|
11895
11894
|
} else {
|
|
11896
|
-
t39 = $[
|
|
11895
|
+
t39 = $[102];
|
|
11897
11896
|
}
|
|
11898
11897
|
var t40;
|
|
11899
|
-
if ($[
|
|
11898
|
+
if ($[103] !== async || $[104] !== inputValue) {
|
|
11900
11899
|
t40 = [async, inputValue];
|
|
11901
|
-
$[
|
|
11902
|
-
$[
|
|
11903
|
-
$[
|
|
11900
|
+
$[103] = async;
|
|
11901
|
+
$[104] = inputValue;
|
|
11902
|
+
$[105] = t40;
|
|
11904
11903
|
} else {
|
|
11905
|
-
t40 = $[
|
|
11904
|
+
t40 = $[105];
|
|
11906
11905
|
}
|
|
11907
11906
|
reactHook.useEventEffect(t39, t40);
|
|
11908
11907
|
var t41;
|
|
11909
|
-
if ($[
|
|
11908
|
+
if ($[106] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
11910
11909
|
t41 = function t41() {
|
|
11911
11910
|
var _textFieldRef$current;
|
|
11912
11911
|
(_textFieldRef$current = textFieldRef.current) === null || _textFieldRef$current === void 0 || _textFieldRef$current.focus();
|
|
11913
11912
|
};
|
|
11914
|
-
$[
|
|
11913
|
+
$[106] = t41;
|
|
11915
11914
|
} else {
|
|
11916
|
-
t41 = $[
|
|
11915
|
+
t41 = $[106];
|
|
11917
11916
|
}
|
|
11918
11917
|
var focus = t41;
|
|
11919
11918
|
var t42;
|
|
11920
|
-
if ($[
|
|
11919
|
+
if ($[107] !== name) {
|
|
11921
11920
|
t42 = function t42() {
|
|
11922
11921
|
return name;
|
|
11923
11922
|
};
|
|
11924
|
-
$[
|
|
11925
|
-
$[
|
|
11923
|
+
$[107] = name;
|
|
11924
|
+
$[108] = t42;
|
|
11926
11925
|
} else {
|
|
11927
|
-
t42 = $[
|
|
11926
|
+
t42 = $[108];
|
|
11928
11927
|
}
|
|
11929
11928
|
var t43;
|
|
11930
|
-
if ($[
|
|
11929
|
+
if ($[109] !== getFinalValueRef || $[110] !== initValueRef) {
|
|
11931
11930
|
t43 = function t43() {
|
|
11932
11931
|
return getFinalValueRef.current(initValueRef.current);
|
|
11933
11932
|
};
|
|
11934
|
-
$[
|
|
11935
|
-
$[
|
|
11936
|
-
$[
|
|
11933
|
+
$[109] = getFinalValueRef;
|
|
11934
|
+
$[110] = initValueRef;
|
|
11935
|
+
$[111] = t43;
|
|
11937
11936
|
} else {
|
|
11938
|
-
t43 = $[
|
|
11937
|
+
t43 = $[111];
|
|
11939
11938
|
}
|
|
11940
11939
|
var t44;
|
|
11941
|
-
if ($[
|
|
11940
|
+
if ($[112] !== initValueRef || $[113] !== updateValue) {
|
|
11942
11941
|
t44 = function t44() {
|
|
11943
11942
|
return updateValue(initValueRef.current);
|
|
11944
11943
|
};
|
|
11945
|
-
$[
|
|
11946
|
-
$[
|
|
11947
|
-
$[
|
|
11944
|
+
$[112] = initValueRef;
|
|
11945
|
+
$[113] = updateValue;
|
|
11946
|
+
$[114] = t44;
|
|
11948
11947
|
} else {
|
|
11949
|
-
t44 = $[
|
|
11948
|
+
t44 = $[114];
|
|
11950
11949
|
}
|
|
11951
11950
|
var t45;
|
|
11952
|
-
if ($[
|
|
11951
|
+
if ($[115] !== valueRef) {
|
|
11953
11952
|
t45 = function t45() {
|
|
11954
11953
|
return valueRef.current;
|
|
11955
11954
|
};
|
|
11956
|
-
$[
|
|
11957
|
-
$[
|
|
11955
|
+
$[115] = valueRef;
|
|
11956
|
+
$[116] = t45;
|
|
11958
11957
|
} else {
|
|
11959
|
-
t45 = $[
|
|
11958
|
+
t45 = $[116];
|
|
11960
11959
|
}
|
|
11961
11960
|
var t46;
|
|
11962
|
-
if ($[
|
|
11961
|
+
if ($[117] !== updateValue) {
|
|
11963
11962
|
t46 = function t46(newValue_4) {
|
|
11964
11963
|
return updateValue(newValue_4);
|
|
11965
11964
|
};
|
|
11966
|
-
$[
|
|
11967
|
-
$[
|
|
11965
|
+
$[117] = updateValue;
|
|
11966
|
+
$[118] = t46;
|
|
11968
11967
|
} else {
|
|
11969
|
-
t46 = $[
|
|
11968
|
+
t46 = $[118];
|
|
11970
11969
|
}
|
|
11971
11970
|
var t47;
|
|
11972
|
-
if ($[
|
|
11971
|
+
if ($[119] !== dataRef) {
|
|
11973
11972
|
t47 = function t47() {
|
|
11974
11973
|
return dataRef.current;
|
|
11975
11974
|
};
|
|
11976
|
-
$[
|
|
11977
|
-
$[
|
|
11975
|
+
$[119] = dataRef;
|
|
11976
|
+
$[120] = t47;
|
|
11978
11977
|
} else {
|
|
11979
|
-
t47 = $[
|
|
11978
|
+
t47 = $[120];
|
|
11980
11979
|
}
|
|
11981
11980
|
var t48;
|
|
11982
|
-
if ($[
|
|
11981
|
+
if ($[121] !== setData) {
|
|
11983
11982
|
t48 = function t48(data_0) {
|
|
11984
11983
|
return setData(data_0);
|
|
11985
11984
|
};
|
|
11986
|
-
$[
|
|
11987
|
-
$[
|
|
11985
|
+
$[121] = setData;
|
|
11986
|
+
$[122] = t48;
|
|
11988
11987
|
} else {
|
|
11989
|
-
t48 = $[
|
|
11988
|
+
t48 = $[122];
|
|
11990
11989
|
}
|
|
11991
11990
|
var t49;
|
|
11992
|
-
if ($[
|
|
11991
|
+
if ($[123] !== exceptValue) {
|
|
11993
11992
|
t49 = function t49() {
|
|
11994
11993
|
return !!exceptValue;
|
|
11995
11994
|
};
|
|
11996
|
-
$[
|
|
11997
|
-
$[
|
|
11995
|
+
$[123] = exceptValue;
|
|
11996
|
+
$[124] = t49;
|
|
11998
11997
|
} else {
|
|
11999
|
-
t49 = $[
|
|
11998
|
+
t49 = $[124];
|
|
12000
11999
|
}
|
|
12001
12000
|
var t50;
|
|
12002
|
-
if ($[
|
|
12001
|
+
if ($[125] !== disabled) {
|
|
12003
12002
|
t50 = function t50() {
|
|
12004
12003
|
return !!disabled;
|
|
12005
12004
|
};
|
|
12006
|
-
$[
|
|
12007
|
-
$[
|
|
12005
|
+
$[125] = disabled;
|
|
12006
|
+
$[126] = t50;
|
|
12008
12007
|
} else {
|
|
12009
|
-
t50 = $[
|
|
12008
|
+
t50 = $[126];
|
|
12010
12009
|
}
|
|
12011
12010
|
var t51;
|
|
12012
|
-
if ($[
|
|
12011
|
+
if ($[127] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
12013
12012
|
t51 = function t51(disabled_0) {
|
|
12014
12013
|
return setDisabled(disabled_0);
|
|
12015
12014
|
};
|
|
12016
|
-
$[
|
|
12015
|
+
$[127] = t51;
|
|
12017
12016
|
} else {
|
|
12018
|
-
t51 = $[
|
|
12017
|
+
t51 = $[127];
|
|
12019
12018
|
}
|
|
12020
12019
|
var t52;
|
|
12021
|
-
if ($[
|
|
12020
|
+
if ($[128] !== hidden) {
|
|
12022
12021
|
t52 = function t52() {
|
|
12023
12022
|
return !!hidden;
|
|
12024
12023
|
};
|
|
12025
|
-
$[
|
|
12026
|
-
$[
|
|
12024
|
+
$[128] = hidden;
|
|
12025
|
+
$[129] = t52;
|
|
12027
12026
|
} else {
|
|
12028
|
-
t52 = $[
|
|
12027
|
+
t52 = $[129];
|
|
12029
12028
|
}
|
|
12030
12029
|
var t53;
|
|
12031
|
-
if ($[
|
|
12030
|
+
if ($[130] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
12032
12031
|
t53 = function t53(hidden_0) {
|
|
12033
12032
|
return setHidden(hidden_0);
|
|
12034
12033
|
};
|
|
12035
|
-
$[
|
|
12034
|
+
$[130] = t53;
|
|
12036
12035
|
} else {
|
|
12037
|
-
t53 = $[
|
|
12036
|
+
t53 = $[130];
|
|
12038
12037
|
}
|
|
12039
12038
|
var t54;
|
|
12040
|
-
if ($[
|
|
12039
|
+
if ($[131] !== validate || $[132] !== valueRef) {
|
|
12041
12040
|
t54 = function t54() {
|
|
12042
12041
|
return validate(valueRef.current);
|
|
12043
12042
|
};
|
|
12044
|
-
$[
|
|
12045
|
-
$[
|
|
12046
|
-
$[
|
|
12043
|
+
$[131] = validate;
|
|
12044
|
+
$[132] = valueRef;
|
|
12045
|
+
$[133] = t54;
|
|
12047
12046
|
} else {
|
|
12048
|
-
t54 = $[
|
|
12047
|
+
t54 = $[133];
|
|
12049
12048
|
}
|
|
12050
12049
|
var t55;
|
|
12051
|
-
if ($[
|
|
12050
|
+
if ($[134] !== formValueSeparator) {
|
|
12052
12051
|
t55 = function t55() {
|
|
12053
12052
|
return formValueSeparator;
|
|
12054
12053
|
};
|
|
12055
|
-
$[
|
|
12056
|
-
$[
|
|
12054
|
+
$[134] = formValueSeparator;
|
|
12055
|
+
$[135] = t55;
|
|
12057
12056
|
} else {
|
|
12058
|
-
t55 = $[
|
|
12057
|
+
t55 = $[135];
|
|
12059
12058
|
}
|
|
12060
12059
|
var t56;
|
|
12061
|
-
if ($[
|
|
12060
|
+
if ($[136] !== formValueSort) {
|
|
12062
12061
|
t56 = function t56() {
|
|
12063
12062
|
return !!formValueSort;
|
|
12064
12063
|
};
|
|
12065
|
-
$[
|
|
12066
|
-
$[
|
|
12064
|
+
$[136] = formValueSort;
|
|
12065
|
+
$[137] = t56;
|
|
12067
12066
|
} else {
|
|
12068
|
-
t56 = $[
|
|
12067
|
+
t56 = $[137];
|
|
12069
12068
|
}
|
|
12070
12069
|
var t57;
|
|
12071
|
-
if ($[
|
|
12070
|
+
if ($[138] !== itemsRef) {
|
|
12072
12071
|
t57 = function t57() {
|
|
12073
12072
|
return itemsRef.current;
|
|
12074
12073
|
};
|
|
12075
|
-
$[
|
|
12076
|
-
$[
|
|
12074
|
+
$[138] = itemsRef;
|
|
12075
|
+
$[139] = t57;
|
|
12077
12076
|
} else {
|
|
12078
|
-
t57 = $[
|
|
12077
|
+
t57 = $[139];
|
|
12079
12078
|
}
|
|
12080
12079
|
var t58;
|
|
12081
|
-
if ($[
|
|
12080
|
+
if ($[140] !== multiple) {
|
|
12082
12081
|
t58 = function t58() {
|
|
12083
12082
|
return !!multiple;
|
|
12084
12083
|
};
|
|
12085
|
-
$[
|
|
12086
|
-
$[
|
|
12084
|
+
$[140] = multiple;
|
|
12085
|
+
$[141] = t58;
|
|
12087
12086
|
} else {
|
|
12088
|
-
t58 = $[
|
|
12087
|
+
t58 = $[141];
|
|
12089
12088
|
}
|
|
12090
12089
|
var t59;
|
|
12091
|
-
if ($[
|
|
12090
|
+
if ($[142] !== loadingRef) {
|
|
12092
12091
|
t59 = function t59() {
|
|
12093
12092
|
return !!loadingRef.current;
|
|
12094
12093
|
};
|
|
12095
|
-
$[
|
|
12096
|
-
$[
|
|
12094
|
+
$[142] = loadingRef;
|
|
12095
|
+
$[143] = t59;
|
|
12097
12096
|
} else {
|
|
12098
|
-
t59 = $[
|
|
12097
|
+
t59 = $[143];
|
|
12099
12098
|
}
|
|
12100
12099
|
var t60;
|
|
12101
|
-
if ($[
|
|
12100
|
+
if ($[144] !== setLoading) {
|
|
12102
12101
|
t60 = function t60(loading_0) {
|
|
12103
12102
|
return setLoading(loading_0);
|
|
12104
12103
|
};
|
|
12105
|
-
$[
|
|
12106
|
-
$[
|
|
12104
|
+
$[144] = setLoading;
|
|
12105
|
+
$[145] = t60;
|
|
12107
12106
|
} else {
|
|
12108
|
-
t60 = $[
|
|
12107
|
+
t60 = $[145];
|
|
12109
12108
|
}
|
|
12110
12109
|
var t61;
|
|
12111
|
-
if ($[
|
|
12110
|
+
if ($[146] !== async || $[147] !== onLoadItemsRef || $[148] !== setItems) {
|
|
12112
12111
|
t61 = function t61() {
|
|
12113
12112
|
if (!async && onLoadItemsRef.current) {
|
|
12114
12113
|
showOnGetItemLoading();
|
|
@@ -12119,15 +12118,15 @@ function _temp$m() {
|
|
|
12119
12118
|
});
|
|
12120
12119
|
}
|
|
12121
12120
|
};
|
|
12122
|
-
$[
|
|
12123
|
-
$[
|
|
12124
|
-
$[
|
|
12125
|
-
$[
|
|
12121
|
+
$[146] = async;
|
|
12122
|
+
$[147] = onLoadItemsRef;
|
|
12123
|
+
$[148] = setItems;
|
|
12124
|
+
$[149] = t61;
|
|
12126
12125
|
} else {
|
|
12127
|
-
t61 = $[
|
|
12126
|
+
t61 = $[149];
|
|
12128
12127
|
}
|
|
12129
12128
|
var t62;
|
|
12130
|
-
if ($[
|
|
12129
|
+
if ($[150] !== setErrorErrorHelperText || $[151] !== setItems || $[152] !== t42 || $[153] !== t43 || $[154] !== t44 || $[155] !== t45 || $[156] !== t46 || $[157] !== t47 || $[158] !== t48 || $[159] !== t49 || $[160] !== t50 || $[161] !== t52 || $[162] !== t54 || $[163] !== t55 || $[164] !== t56 || $[165] !== t57 || $[166] !== t58 || $[167] !== t59 || $[168] !== t60 || $[169] !== t61) {
|
|
12131
12130
|
t62 = {
|
|
12132
12131
|
getType: _temp4,
|
|
12133
12132
|
getName: t42,
|
|
@@ -12156,56 +12155,56 @@ function _temp$m() {
|
|
|
12156
12155
|
reloadItems: t61,
|
|
12157
12156
|
setInputValue: setInputValue
|
|
12158
12157
|
};
|
|
12159
|
-
$[
|
|
12160
|
-
$[
|
|
12161
|
-
$[
|
|
12162
|
-
$[
|
|
12163
|
-
$[
|
|
12164
|
-
$[
|
|
12165
|
-
$[
|
|
12166
|
-
$[
|
|
12167
|
-
$[
|
|
12168
|
-
$[
|
|
12169
|
-
$[
|
|
12170
|
-
$[
|
|
12171
|
-
$[
|
|
12172
|
-
$[
|
|
12173
|
-
$[
|
|
12174
|
-
$[
|
|
12175
|
-
$[
|
|
12176
|
-
$[
|
|
12177
|
-
$[
|
|
12178
|
-
$[
|
|
12179
|
-
$[
|
|
12180
|
-
} else {
|
|
12181
|
-
t62 = $[
|
|
12158
|
+
$[150] = setErrorErrorHelperText;
|
|
12159
|
+
$[151] = setItems;
|
|
12160
|
+
$[152] = t42;
|
|
12161
|
+
$[153] = t43;
|
|
12162
|
+
$[154] = t44;
|
|
12163
|
+
$[155] = t45;
|
|
12164
|
+
$[156] = t46;
|
|
12165
|
+
$[157] = t47;
|
|
12166
|
+
$[158] = t48;
|
|
12167
|
+
$[159] = t49;
|
|
12168
|
+
$[160] = t50;
|
|
12169
|
+
$[161] = t52;
|
|
12170
|
+
$[162] = t54;
|
|
12171
|
+
$[163] = t55;
|
|
12172
|
+
$[164] = t56;
|
|
12173
|
+
$[165] = t57;
|
|
12174
|
+
$[166] = t58;
|
|
12175
|
+
$[167] = t59;
|
|
12176
|
+
$[168] = t60;
|
|
12177
|
+
$[169] = t61;
|
|
12178
|
+
$[170] = t62;
|
|
12179
|
+
} else {
|
|
12180
|
+
t62 = $[170];
|
|
12182
12181
|
}
|
|
12183
12182
|
var commands = t62;
|
|
12184
12183
|
var t63;
|
|
12185
|
-
if ($[
|
|
12184
|
+
if ($[171] !== id || $[172] !== onAddValueItem) {
|
|
12186
12185
|
t63 = function t63(commands_0) {
|
|
12187
12186
|
return onAddValueItem(id, commands_0);
|
|
12188
12187
|
};
|
|
12189
|
-
$[
|
|
12190
|
-
$[
|
|
12191
|
-
$[
|
|
12188
|
+
$[171] = id;
|
|
12189
|
+
$[172] = onAddValueItem;
|
|
12190
|
+
$[173] = t63;
|
|
12192
12191
|
} else {
|
|
12193
|
-
t63 = $[
|
|
12192
|
+
t63 = $[173];
|
|
12194
12193
|
}
|
|
12195
12194
|
var t64;
|
|
12196
|
-
if ($[
|
|
12195
|
+
if ($[174] !== id || $[175] !== onRemoveValueItem) {
|
|
12197
12196
|
t64 = function t64() {
|
|
12198
12197
|
return onRemoveValueItem(id);
|
|
12199
12198
|
};
|
|
12200
|
-
$[
|
|
12201
|
-
$[
|
|
12202
|
-
$[
|
|
12199
|
+
$[174] = id;
|
|
12200
|
+
$[175] = onRemoveValueItem;
|
|
12201
|
+
$[176] = t64;
|
|
12203
12202
|
} else {
|
|
12204
|
-
t64 = $[
|
|
12203
|
+
t64 = $[176];
|
|
12205
12204
|
}
|
|
12206
12205
|
reactHook.useForwardRef(ref, commands, t63, t64);
|
|
12207
12206
|
var t65;
|
|
12208
|
-
if ($[
|
|
12207
|
+
if ($[177] !== getFinalValueRef || $[178] !== multiple || $[179] !== name || $[180] !== onAddItem || $[181] !== onRequestSearchSubmit || $[182] !== onValueChangeByUser || $[183] !== updateValue || $[184] !== valueRef) {
|
|
12209
12208
|
t65 = function t65(componentValue_0, reason, details) {
|
|
12210
12209
|
var go = function go() {
|
|
12211
12210
|
var newValue_5 = undefined;
|
|
@@ -12249,21 +12248,21 @@ function _temp$m() {
|
|
|
12249
12248
|
go();
|
|
12250
12249
|
}
|
|
12251
12250
|
};
|
|
12252
|
-
$[
|
|
12253
|
-
$[
|
|
12254
|
-
$[
|
|
12255
|
-
$[
|
|
12256
|
-
$[
|
|
12257
|
-
$[
|
|
12258
|
-
$[
|
|
12259
|
-
$[
|
|
12260
|
-
$[
|
|
12251
|
+
$[177] = getFinalValueRef;
|
|
12252
|
+
$[178] = multiple;
|
|
12253
|
+
$[179] = name;
|
|
12254
|
+
$[180] = onAddItem;
|
|
12255
|
+
$[181] = onRequestSearchSubmit;
|
|
12256
|
+
$[182] = onValueChangeByUser;
|
|
12257
|
+
$[183] = updateValue;
|
|
12258
|
+
$[184] = valueRef;
|
|
12259
|
+
$[185] = t65;
|
|
12261
12260
|
} else {
|
|
12262
|
-
t65 = $[
|
|
12261
|
+
t65 = $[185];
|
|
12263
12262
|
}
|
|
12264
12263
|
var handleChange = t65;
|
|
12265
12264
|
var t66;
|
|
12266
|
-
if ($[
|
|
12265
|
+
if ($[186] !== getOptionDisabled) {
|
|
12267
12266
|
t66 = function t66(option) {
|
|
12268
12267
|
if (getOptionDisabled) {
|
|
12269
12268
|
return option.disabled || getOptionDisabled(option);
|
|
@@ -12271,74 +12270,85 @@ function _temp$m() {
|
|
|
12271
12270
|
return !!option.disabled;
|
|
12272
12271
|
}
|
|
12273
12272
|
};
|
|
12274
|
-
$[
|
|
12275
|
-
$[
|
|
12273
|
+
$[186] = getOptionDisabled;
|
|
12274
|
+
$[187] = t66;
|
|
12276
12275
|
} else {
|
|
12277
|
-
t66 = $[
|
|
12276
|
+
t66 = $[187];
|
|
12278
12277
|
}
|
|
12279
12278
|
var handleGetOptionDisabled = t66;
|
|
12280
|
-
var
|
|
12281
|
-
if ($[
|
|
12282
|
-
|
|
12279
|
+
var _style;
|
|
12280
|
+
if ($[188] !== hidden || $[189] !== initStyle || $[190] !== width) {
|
|
12281
|
+
_style = _objectSpread2({
|
|
12283
12282
|
minWidth: 120
|
|
12284
12283
|
}, initStyle);
|
|
12285
12284
|
if (hidden) {
|
|
12286
|
-
|
|
12285
|
+
_style.display = "none";
|
|
12287
12286
|
}
|
|
12288
12287
|
if (width != null) {
|
|
12289
|
-
|
|
12288
|
+
_style.width = width;
|
|
12290
12289
|
}
|
|
12291
|
-
$[
|
|
12292
|
-
$[
|
|
12293
|
-
$[
|
|
12294
|
-
$[
|
|
12290
|
+
$[188] = hidden;
|
|
12291
|
+
$[189] = initStyle;
|
|
12292
|
+
$[190] = width;
|
|
12293
|
+
$[191] = _style;
|
|
12295
12294
|
} else {
|
|
12296
|
-
|
|
12295
|
+
_style = $[191];
|
|
12297
12296
|
}
|
|
12297
|
+
var style = _style;
|
|
12298
12298
|
var t67;
|
|
12299
|
-
if ($[193] !==
|
|
12300
|
-
t67 =
|
|
12301
|
-
$[
|
|
12299
|
+
if ($[192] !== componentValue || $[193] !== onGetDisplayValue) {
|
|
12300
|
+
t67 = onGetDisplayValue ? onGetDisplayValue(componentValue) : componentValue;
|
|
12301
|
+
$[192] = componentValue;
|
|
12302
|
+
$[193] = onGetDisplayValue;
|
|
12302
12303
|
$[194] = t67;
|
|
12303
12304
|
} else {
|
|
12304
12305
|
t67 = $[194];
|
|
12305
12306
|
}
|
|
12307
|
+
var displayValue = t67;
|
|
12306
12308
|
var t68;
|
|
12307
|
-
if ($[195] !==
|
|
12308
|
-
t68 =
|
|
12309
|
-
$[195] =
|
|
12309
|
+
if ($[195] !== items) {
|
|
12310
|
+
t68 = items || [];
|
|
12311
|
+
$[195] = items;
|
|
12310
12312
|
$[196] = t68;
|
|
12311
12313
|
} else {
|
|
12312
12314
|
t68 = $[196];
|
|
12313
12315
|
}
|
|
12314
|
-
var t69
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
|
|
12318
|
-
|
|
12319
|
-
|
|
12316
|
+
var t69;
|
|
12317
|
+
if ($[197] !== className) {
|
|
12318
|
+
t69 = classNames(className, "PFormValueItem", "PFormAutocomplete");
|
|
12319
|
+
$[197] = className;
|
|
12320
|
+
$[198] = t69;
|
|
12321
|
+
} else {
|
|
12322
|
+
t69 = $[198];
|
|
12323
|
+
}
|
|
12324
|
+
var t70 = !width && fullWidth;
|
|
12325
|
+
var t71 = displayValue;
|
|
12326
|
+
var t72 = loading || isOnGetItemLoading;
|
|
12327
|
+
var t73;
|
|
12328
|
+
if ($[199] !== handleChange) {
|
|
12329
|
+
t73 = function t73(e, value_4, reason_0, details_0) {
|
|
12320
12330
|
return handleChange(value_4, reason_0, details_0);
|
|
12321
12331
|
};
|
|
12322
|
-
$[
|
|
12323
|
-
$[
|
|
12332
|
+
$[199] = handleChange;
|
|
12333
|
+
$[200] = t73;
|
|
12324
12334
|
} else {
|
|
12325
|
-
|
|
12335
|
+
t73 = $[200];
|
|
12326
12336
|
}
|
|
12327
|
-
var
|
|
12328
|
-
if ($[
|
|
12329
|
-
|
|
12337
|
+
var t74;
|
|
12338
|
+
if ($[201] !== onRenderItem) {
|
|
12339
|
+
t74 = function t74(props, option_1) {
|
|
12330
12340
|
return /*#__PURE__*/React.createElement("li", _extends({}, props, {
|
|
12331
12341
|
key: "".concat(option_1.value)
|
|
12332
12342
|
}), onRenderItem ? onRenderItem(option_1) : option_1.label);
|
|
12333
12343
|
};
|
|
12334
|
-
$[
|
|
12335
|
-
$[
|
|
12344
|
+
$[201] = onRenderItem;
|
|
12345
|
+
$[202] = t74;
|
|
12336
12346
|
} else {
|
|
12337
|
-
|
|
12347
|
+
t74 = $[202];
|
|
12338
12348
|
}
|
|
12339
|
-
var
|
|
12340
|
-
if ($[
|
|
12341
|
-
|
|
12349
|
+
var t75;
|
|
12350
|
+
if ($[203] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
12351
|
+
t75 = function t75(event, newInputValue, reason_1) {
|
|
12342
12352
|
if (reason_1 === "input") {
|
|
12343
12353
|
setInputValue(newInputValue);
|
|
12344
12354
|
} else {
|
|
@@ -12347,13 +12357,13 @@ function _temp$m() {
|
|
|
12347
12357
|
}
|
|
12348
12358
|
}
|
|
12349
12359
|
};
|
|
12350
|
-
$[
|
|
12360
|
+
$[203] = t75;
|
|
12351
12361
|
} else {
|
|
12352
|
-
|
|
12362
|
+
t75 = $[203];
|
|
12353
12363
|
}
|
|
12354
|
-
var
|
|
12355
|
-
if ($[
|
|
12356
|
-
|
|
12364
|
+
var t76;
|
|
12365
|
+
if ($[204] !== multiple || $[205] !== onRenderTag || $[206] !== onRenderValue || $[207] !== size || $[208] !== variant) {
|
|
12366
|
+
t76 = multiple ? function (value_5, getItemProps) {
|
|
12357
12367
|
if (Array.isArray(value_5)) {
|
|
12358
12368
|
return value_5.map(function (option_2, index) {
|
|
12359
12369
|
return /*#__PURE__*/React.createElement(material.Chip, _extends({
|
|
@@ -12387,18 +12397,18 @@ function _temp$m() {
|
|
|
12387
12397
|
index: 0
|
|
12388
12398
|
})), onRenderValue(value_6));
|
|
12389
12399
|
} : undefined;
|
|
12390
|
-
$[
|
|
12391
|
-
$[
|
|
12392
|
-
$[
|
|
12393
|
-
$[
|
|
12394
|
-
$[
|
|
12395
|
-
$[
|
|
12400
|
+
$[204] = multiple;
|
|
12401
|
+
$[205] = onRenderTag;
|
|
12402
|
+
$[206] = onRenderValue;
|
|
12403
|
+
$[207] = size;
|
|
12404
|
+
$[208] = variant;
|
|
12405
|
+
$[209] = t76;
|
|
12396
12406
|
} else {
|
|
12397
|
-
|
|
12407
|
+
t76 = $[209];
|
|
12398
12408
|
}
|
|
12399
|
-
var
|
|
12400
|
-
if ($[
|
|
12401
|
-
|
|
12409
|
+
var t77;
|
|
12410
|
+
if ($[210] !== autoFocus || $[211] !== color || $[212] !== disabled || $[213] !== error || $[214] !== errorHelperText || $[215] !== focused || $[216] !== helperText || $[217] !== isOnGetItemLoading || $[218] !== label || $[219] !== labelIcon || $[220] !== labelShrink || $[221] !== loading || $[222] !== name || $[223] !== onBlurRef || $[224] !== onFocusRef || $[225] !== placeholder || $[226] !== readOnly || $[227] !== required || $[228] !== size || $[229] !== variant) {
|
|
12411
|
+
t77 = function t77(params) {
|
|
12402
12412
|
var _params$inputProps;
|
|
12403
12413
|
var slotProps = {
|
|
12404
12414
|
input: _objectSpread2(_objectSpread2({}, params.InputProps), {}, {
|
|
@@ -12449,85 +12459,85 @@ function _temp$m() {
|
|
|
12449
12459
|
noFormValueItem: true
|
|
12450
12460
|
}));
|
|
12451
12461
|
};
|
|
12452
|
-
$[
|
|
12453
|
-
$[
|
|
12454
|
-
$[
|
|
12455
|
-
$[
|
|
12456
|
-
$[
|
|
12457
|
-
$[
|
|
12458
|
-
$[
|
|
12459
|
-
$[
|
|
12460
|
-
$[
|
|
12461
|
-
$[
|
|
12462
|
-
$[
|
|
12463
|
-
$[
|
|
12464
|
-
$[
|
|
12465
|
-
$[
|
|
12466
|
-
$[
|
|
12467
|
-
$[
|
|
12468
|
-
$[
|
|
12469
|
-
$[
|
|
12470
|
-
$[
|
|
12471
|
-
$[
|
|
12472
|
-
$[
|
|
12462
|
+
$[210] = autoFocus;
|
|
12463
|
+
$[211] = color;
|
|
12464
|
+
$[212] = disabled;
|
|
12465
|
+
$[213] = error;
|
|
12466
|
+
$[214] = errorHelperText;
|
|
12467
|
+
$[215] = focused;
|
|
12468
|
+
$[216] = helperText;
|
|
12469
|
+
$[217] = isOnGetItemLoading;
|
|
12470
|
+
$[218] = label;
|
|
12471
|
+
$[219] = labelIcon;
|
|
12472
|
+
$[220] = labelShrink;
|
|
12473
|
+
$[221] = loading;
|
|
12474
|
+
$[222] = name;
|
|
12475
|
+
$[223] = onBlurRef;
|
|
12476
|
+
$[224] = onFocusRef;
|
|
12477
|
+
$[225] = placeholder;
|
|
12478
|
+
$[226] = readOnly;
|
|
12479
|
+
$[227] = required;
|
|
12480
|
+
$[228] = size;
|
|
12481
|
+
$[229] = variant;
|
|
12482
|
+
$[230] = t77;
|
|
12473
12483
|
} else {
|
|
12474
|
-
|
|
12484
|
+
t77 = $[230];
|
|
12475
12485
|
}
|
|
12476
|
-
var
|
|
12477
|
-
if ($[
|
|
12478
|
-
|
|
12479
|
-
options:
|
|
12480
|
-
className:
|
|
12486
|
+
var t78;
|
|
12487
|
+
if ($[231] !== disableClearable || $[232] !== disablePortal || $[233] !== disabled || $[234] !== getLimitTagsText || $[235] !== handleGetOptionDisabled || $[236] !== limitTags || $[237] !== loadingText || $[238] !== multiple || $[239] !== noOptionsText || $[240] !== openOnFocus || $[241] !== readOnly || $[242] !== style || $[243] !== sx || $[244] !== t68 || $[245] !== t69 || $[246] !== t70 || $[247] !== t71 || $[248] !== t72 || $[249] !== t73 || $[250] !== t74 || $[251] !== t76 || $[252] !== t77) {
|
|
12488
|
+
t78 = /*#__PURE__*/React.createElement(material.Autocomplete, {
|
|
12489
|
+
options: t68,
|
|
12490
|
+
className: t69,
|
|
12481
12491
|
sx: sx,
|
|
12482
12492
|
multiple: multiple,
|
|
12483
|
-
fullWidth:
|
|
12493
|
+
fullWidth: t70,
|
|
12484
12494
|
openOnFocus: openOnFocus,
|
|
12485
12495
|
disableClearable: disableClearable,
|
|
12486
12496
|
disablePortal: disablePortal,
|
|
12487
12497
|
noOptionsText: noOptionsText,
|
|
12488
|
-
value:
|
|
12498
|
+
value: t71,
|
|
12489
12499
|
style: style,
|
|
12490
12500
|
isOptionEqualToValue: _temp6,
|
|
12491
12501
|
getOptionDisabled: handleGetOptionDisabled,
|
|
12492
12502
|
disabled: disabled,
|
|
12493
12503
|
readOnly: readOnly,
|
|
12494
|
-
loading:
|
|
12504
|
+
loading: t72,
|
|
12495
12505
|
loadingText: loadingText,
|
|
12496
12506
|
limitTags: limitTags,
|
|
12497
12507
|
getLimitTagsText: getLimitTagsText,
|
|
12498
|
-
onChange:
|
|
12499
|
-
renderOption:
|
|
12500
|
-
onInputChange:
|
|
12501
|
-
renderValue:
|
|
12502
|
-
renderInput:
|
|
12508
|
+
onChange: t73,
|
|
12509
|
+
renderOption: t74,
|
|
12510
|
+
onInputChange: t75,
|
|
12511
|
+
renderValue: t76,
|
|
12512
|
+
renderInput: t77
|
|
12503
12513
|
});
|
|
12504
|
-
$[
|
|
12505
|
-
$[
|
|
12506
|
-
$[
|
|
12507
|
-
$[
|
|
12508
|
-
$[
|
|
12509
|
-
$[
|
|
12510
|
-
$[
|
|
12511
|
-
$[
|
|
12512
|
-
$[
|
|
12513
|
-
$[
|
|
12514
|
-
$[
|
|
12515
|
-
$[
|
|
12516
|
-
$[
|
|
12517
|
-
$[
|
|
12518
|
-
$[
|
|
12519
|
-
$[
|
|
12520
|
-
$[
|
|
12521
|
-
$[
|
|
12522
|
-
$[
|
|
12523
|
-
$[
|
|
12524
|
-
$[
|
|
12525
|
-
$[
|
|
12526
|
-
$[
|
|
12527
|
-
} else {
|
|
12528
|
-
|
|
12514
|
+
$[231] = disableClearable;
|
|
12515
|
+
$[232] = disablePortal;
|
|
12516
|
+
$[233] = disabled;
|
|
12517
|
+
$[234] = getLimitTagsText;
|
|
12518
|
+
$[235] = handleGetOptionDisabled;
|
|
12519
|
+
$[236] = limitTags;
|
|
12520
|
+
$[237] = loadingText;
|
|
12521
|
+
$[238] = multiple;
|
|
12522
|
+
$[239] = noOptionsText;
|
|
12523
|
+
$[240] = openOnFocus;
|
|
12524
|
+
$[241] = readOnly;
|
|
12525
|
+
$[242] = style;
|
|
12526
|
+
$[243] = sx;
|
|
12527
|
+
$[244] = t68;
|
|
12528
|
+
$[245] = t69;
|
|
12529
|
+
$[246] = t70;
|
|
12530
|
+
$[247] = t71;
|
|
12531
|
+
$[248] = t72;
|
|
12532
|
+
$[249] = t73;
|
|
12533
|
+
$[250] = t74;
|
|
12534
|
+
$[251] = t76;
|
|
12535
|
+
$[252] = t77;
|
|
12536
|
+
$[253] = t78;
|
|
12537
|
+
} else {
|
|
12538
|
+
t78 = $[253];
|
|
12529
12539
|
}
|
|
12530
|
-
return
|
|
12540
|
+
return t78;
|
|
12531
12541
|
}
|
|
12532
12542
|
function _temp6(option_0, value_3) {
|
|
12533
12543
|
return option_0.value === value_3.value;
|