barsa-novin-ray-core 2.1.2 → 2.1.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.
|
@@ -1828,7 +1828,7 @@ function isImage(type) {
|
|
|
1828
1828
|
return false;
|
|
1829
1829
|
}
|
|
1830
1830
|
type = type.toLowerCase();
|
|
1831
|
-
return ['img', 'png', 'jpeg', 'jpg', 'gif', 'bmp', 'tiff', 'image'].indexOf(type) > -1;
|
|
1831
|
+
return ['img', 'png', 'jpeg', 'jpg', 'gif', 'bmp', 'tiff', 'image', 'jfif'].indexOf(type) > -1;
|
|
1832
1832
|
}
|
|
1833
1833
|
function GetAllColumnsSorted(context) {
|
|
1834
1834
|
const allColumns = BarsaApi.Common.Util.TryGetValue(context, 'Setting.View.Columns', []).filter((c) => c.Name !== 'Id' && c.Name !== '$StyleIndex' && !c.Hidden);
|
|
@@ -4917,18 +4917,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4917
4917
|
|
|
4918
4918
|
class CanUploadFilePipe {
|
|
4919
4919
|
constructor() { }
|
|
4920
|
-
transform(
|
|
4920
|
+
transform(fileCount, maxFileCount = 1, disable = false, readonly = false
|
|
4921
4921
|
// fileCount: number
|
|
4922
4922
|
) {
|
|
4923
4923
|
let canUpload = true;
|
|
4924
4924
|
if (disable || readonly) {
|
|
4925
4925
|
canUpload = false;
|
|
4926
4926
|
}
|
|
4927
|
-
|
|
4928
|
-
if (value) {
|
|
4929
|
-
existFilesCount = value.filter((c) => !c.IsDeleted).length;
|
|
4930
|
-
}
|
|
4931
|
-
if (maxFileCount !== 0 && maxFileCount <= existFilesCount) {
|
|
4927
|
+
if (maxFileCount !== 0 && fileCount && maxFileCount <= fileCount) {
|
|
4932
4928
|
canUpload = false;
|
|
4933
4929
|
}
|
|
4934
4930
|
return canUpload;
|