@itcase/forms 1.0.68 → 1.0.69
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/itcase-forms.cjs.js
CHANGED
|
@@ -1205,9 +1205,10 @@ async function getFileByURL(url) {
|
|
|
1205
1205
|
// Remove double quotes
|
|
1206
1206
|
let filename = dirtyFilename?.substring(1).slice(0, -1);
|
|
1207
1207
|
if (!filename) {
|
|
1208
|
-
|
|
1209
|
-
const
|
|
1210
|
-
|
|
1208
|
+
filename = url.split('/').at(-1);
|
|
1209
|
+
// const typeParts = blobObject.type.split('/')
|
|
1210
|
+
// const fileType = typeParts[typeParts.length - 1]
|
|
1211
|
+
// filename = `${new Date().getTime()}.${fileType}`
|
|
1211
1212
|
}
|
|
1212
1213
|
return new File([blobObject], filename, {
|
|
1213
1214
|
type: blobObject.type
|
|
@@ -2001,10 +2002,11 @@ function getDefaultValue(options, selectValue) {
|
|
|
2001
2002
|
}
|
|
2002
2003
|
const SelectField = /*#__PURE__*/React__default.default.memo(function SelectField(props) {
|
|
2003
2004
|
const {
|
|
2004
|
-
classNameGroupItem,
|
|
2005
|
-
fieldProps,
|
|
2006
2005
|
isDisabled,
|
|
2007
2006
|
isRequired,
|
|
2007
|
+
classNameGroupItem,
|
|
2008
|
+
fieldProps,
|
|
2009
|
+
initialValue,
|
|
2008
2010
|
name,
|
|
2009
2011
|
options,
|
|
2010
2012
|
selectProps,
|
|
@@ -2014,7 +2016,8 @@ const SelectField = /*#__PURE__*/React__default.default.memo(function SelectFiel
|
|
|
2014
2016
|
onInputChange
|
|
2015
2017
|
} = props;
|
|
2016
2018
|
return /*#__PURE__*/React__default.default.createElement(reactFinalForm.Field, {
|
|
2017
|
-
name: name
|
|
2019
|
+
name: name,
|
|
2020
|
+
initialValue: initialValue
|
|
2018
2021
|
}, function Render({
|
|
2019
2022
|
input,
|
|
2020
2023
|
meta
|
package/dist/itcase-forms.esm.js
CHANGED
|
@@ -1191,9 +1191,10 @@ async function getFileByURL(url) {
|
|
|
1191
1191
|
// Remove double quotes
|
|
1192
1192
|
let filename = dirtyFilename?.substring(1).slice(0, -1);
|
|
1193
1193
|
if (!filename) {
|
|
1194
|
-
|
|
1195
|
-
const
|
|
1196
|
-
|
|
1194
|
+
filename = url.split('/').at(-1);
|
|
1195
|
+
// const typeParts = blobObject.type.split('/')
|
|
1196
|
+
// const fileType = typeParts[typeParts.length - 1]
|
|
1197
|
+
// filename = `${new Date().getTime()}.${fileType}`
|
|
1197
1198
|
}
|
|
1198
1199
|
return new File([blobObject], filename, {
|
|
1199
1200
|
type: blobObject.type
|
|
@@ -1987,10 +1988,11 @@ function getDefaultValue(options, selectValue) {
|
|
|
1987
1988
|
}
|
|
1988
1989
|
const SelectField = /*#__PURE__*/React.memo(function SelectField(props) {
|
|
1989
1990
|
const {
|
|
1990
|
-
classNameGroupItem,
|
|
1991
|
-
fieldProps,
|
|
1992
1991
|
isDisabled,
|
|
1993
1992
|
isRequired,
|
|
1993
|
+
classNameGroupItem,
|
|
1994
|
+
fieldProps,
|
|
1995
|
+
initialValue,
|
|
1994
1996
|
name,
|
|
1995
1997
|
options,
|
|
1996
1998
|
selectProps,
|
|
@@ -2000,7 +2002,8 @@ const SelectField = /*#__PURE__*/React.memo(function SelectField(props) {
|
|
|
2000
2002
|
onInputChange
|
|
2001
2003
|
} = props;
|
|
2002
2004
|
return /*#__PURE__*/React.createElement(Field, {
|
|
2003
|
-
name: name
|
|
2005
|
+
name: name,
|
|
2006
|
+
initialValue: initialValue
|
|
2004
2007
|
}, function Render({
|
|
2005
2008
|
input,
|
|
2006
2009
|
meta
|