@mcurros2/microm 1.1.329-0 → 1.1.331-0

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
@@ -2861,6 +2861,8 @@ parcelRegister("bFPBM", function(module, exports) {
2861
2861
 
2862
2862
  $parcel$export(module.exports, "Entity", function () { return $25d98cad8f492c11$export$bc644a473284d944; });
2863
2863
 
2864
+ var $iKzSR = parcelRequire("iKzSR");
2865
+
2864
2866
  var $dR9Si = parcelRequire("dR9Si");
2865
2867
 
2866
2868
  var $5Sq1V = parcelRequire("5Sq1V");
@@ -2872,9 +2874,10 @@ class $25d98cad8f492c11$export$bc644a473284d944 {
2872
2874
  get def() {
2873
2875
  return this.#def;
2874
2876
  }
2875
- constructor(client, def, parentKeys = {}){
2877
+ constructor(client, def, parentKeys = {}, setParentKeys = true){
2876
2878
  this.#def = def;
2877
2879
  this.parentKeys = parentKeys;
2880
+ if (setParentKeys) $iKzSR.setValues(this.def.columns, parentKeys, null, true, true);
2878
2881
  this.API = new (0, $dR9Si.EntityAPI)(client, this.#def.name, this.#def.columns);
2879
2882
  this.Form = null;
2880
2883
  this.Title = this.def.name;
@@ -38044,11 +38047,14 @@ const $8cba51256aebea2d$export$9e8d6341d22c7058 = {
38044
38047
  function $8cba51256aebea2d$export$a2bc9feb52ac7227(props) {
38045
38048
  const { client: client, fileProcessColumn: fileProcessColumn, labels: labels, initialImageURL: initialImageURL, parentFormAPI: parentFormAPI, fileGUIDColumn: fileGUIDColumn, maxFileSize: maxFileSize } = (0, $b4te3$mantinecore.useComponentDefaultProps)('AvatarUploader', $8cba51256aebea2d$export$9e8d6341d22c7058, props);
38046
38049
  const imageFileUploadOpen = (0, $3Utni.useFilesUploadForm)();
38050
+ const fileSizeProps = maxFileSize === undefined ? {} : {
38051
+ maxIndividualFileSize: maxFileSize,
38052
+ maxTotalFilesSize: maxFileSize
38053
+ };
38047
38054
  const { deleteFile: deleteFile } = (0, $4eryA.useFileUpload)({
38048
38055
  client: client,
38049
38056
  maxFilesCount: 1,
38050
- maxIndividualFileSize: maxFileSize,
38051
- maxTotalFilesSize: maxFileSize,
38057
+ ...fileSizeProps,
38052
38058
  fileProcessColumn: fileProcessColumn
38053
38059
  });
38054
38060
  const [imageURL, setImageURL] = (0, $b4te3$react.useState)(initialImageURL);
@@ -38089,7 +38095,8 @@ function $8cba51256aebea2d$export$a2bc9feb52ac7227(props) {
38089
38095
  ]
38090
38096
  },
38091
38097
  filesUploadFormProps: {
38092
- maxFilesCount: 1
38098
+ maxFilesCount: 1,
38099
+ ...fileSizeProps
38093
38100
  }
38094
38101
  });
38095
38102
  }, [
@@ -38097,7 +38104,8 @@ function $8cba51256aebea2d$export$a2bc9feb52ac7227(props) {
38097
38104
  fileGUIDColumn,
38098
38105
  fileProcessColumn,
38099
38106
  imageFileUploadOpen,
38100
- labels?.modalTitle
38107
+ labels?.modalTitle,
38108
+ maxFileSize
38101
38109
  ]);
38102
38110
  const handleDeleteFile = async (file_id, fileGUID)=>{
38103
38111
  await deleteFile(file_id, fileGUID);