zartui 3.1.1 → 3.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.
package/lib/zartui.cjs.js CHANGED
@@ -11555,9 +11555,16 @@ function resize(img, {
11555
11555
  }
11556
11556
  return image2Canvas(img, inputType, orientation, targetWidth, targetHeight);
11557
11557
  }
11558
+ var __defProp$3 = Object.defineProperty;
11559
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11560
+ var __publicField$3 = (obj, key, value) => {
11561
+ __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
11562
+ return value;
11563
+ };
11558
11564
  class ResizeOptions {
11559
11565
  // 最大边长
11560
11566
  constructor(maxSideLength) {
11567
+ __publicField$3(this, "maxSideLength");
11561
11568
  if (!isDef(maxSideLength)) {
11562
11569
  this.maxSideLength = MAX_SIDE_LENGTH;
11563
11570
  } else {
@@ -11570,9 +11577,16 @@ class ResizeOptions {
11570
11577
  }
11571
11578
  }
11572
11579
  }
11580
+ var __defProp$2 = Object.defineProperty;
11581
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11582
+ var __publicField$2 = (obj, key, value) => {
11583
+ __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
11584
+ return value;
11585
+ };
11573
11586
  class CompressOptions {
11574
11587
  constructor(photoFileSizeLimit) {
11575
- this.checkOrientation = true;
11588
+ __publicField$2(this, "photoFileSizeLimit");
11589
+ __publicField$2(this, "checkOrientation", true);
11576
11590
  if (!isDef(photoFileSizeLimit)) {
11577
11591
  this.photoFileSizeLimit = PHOTO_FILE_SIZE_LIMIT;
11578
11592
  } else {
@@ -11594,6 +11608,12 @@ const parseDecimal = (obj, defaultValue) => {
11594
11608
  }
11595
11609
  return result;
11596
11610
  };
11611
+ var __defProp$1 = Object.defineProperty;
11612
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11613
+ var __publicField$1 = (obj, key, value) => {
11614
+ __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
11615
+ return value;
11616
+ };
11597
11617
  const clamp = (value, min, max) => Math.min(Math.max(value, min), max);
11598
11618
  const subString = (str, startIndex, length) => {
11599
11619
  if (!isDef(length)) {
@@ -11758,6 +11778,8 @@ class TextScanner {
11758
11778
  * @param text
11759
11779
  */
11760
11780
  constructor(text) {
11781
+ __publicField$1(this, "text");
11782
+ __publicField$1(this, "cursor");
11761
11783
  this.text = text;
11762
11784
  this.cursor = 0;
11763
11785
  }
@@ -12245,12 +12267,22 @@ function checkWatermarkConfigSupported(watermarkConfigString) {
12245
12267
  }
12246
12268
  return true;
12247
12269
  }
12270
+ var __defProp = Object.defineProperty;
12271
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12272
+ var __publicField = (obj, key, value) => {
12273
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
12274
+ return value;
12275
+ };
12248
12276
  const DEFAULT_JPEG_QUALITY = 0.8;
12249
12277
  const MIN_JPEG_QUALITY = 0.1;
12250
12278
  const JPEG_QUALITY_STEP = 0.05;
12251
12279
  class ImageProcessor {
12252
12280
  // 压缩图片的配置
12253
12281
  constructor(file, resizeOptions, watermarkOptions, compressOptions) {
12282
+ __publicField(this, "file");
12283
+ __publicField(this, "resizeOptions");
12284
+ __publicField(this, "watermarkOptions");
12285
+ __publicField(this, "compressOptions");
12254
12286
  this.file = file;
12255
12287
  this.resizeOptions = resizeOptions;
12256
12288
  this.watermarkOptions = watermarkOptions;
@@ -18139,7 +18171,7 @@ const Lazyload = {
18139
18171
  });
18140
18172
  }
18141
18173
  };
18142
- const version = "3.1.1";
18174
+ const version = "3.1.3";
18143
18175
  function install(app) {
18144
18176
  const components = [
18145
18177
  ActionSheet,
package/lib/zartui.es.js CHANGED
@@ -11553,9 +11553,16 @@ function resize(img, {
11553
11553
  }
11554
11554
  return image2Canvas(img, inputType, orientation, targetWidth, targetHeight);
11555
11555
  }
11556
+ var __defProp$3 = Object.defineProperty;
11557
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11558
+ var __publicField$3 = (obj, key, value) => {
11559
+ __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
11560
+ return value;
11561
+ };
11556
11562
  class ResizeOptions {
11557
11563
  // 最大边长
11558
11564
  constructor(maxSideLength) {
11565
+ __publicField$3(this, "maxSideLength");
11559
11566
  if (!isDef(maxSideLength)) {
11560
11567
  this.maxSideLength = MAX_SIDE_LENGTH;
11561
11568
  } else {
@@ -11568,9 +11575,16 @@ class ResizeOptions {
11568
11575
  }
11569
11576
  }
11570
11577
  }
11578
+ var __defProp$2 = Object.defineProperty;
11579
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11580
+ var __publicField$2 = (obj, key, value) => {
11581
+ __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
11582
+ return value;
11583
+ };
11571
11584
  class CompressOptions {
11572
11585
  constructor(photoFileSizeLimit) {
11573
- this.checkOrientation = true;
11586
+ __publicField$2(this, "photoFileSizeLimit");
11587
+ __publicField$2(this, "checkOrientation", true);
11574
11588
  if (!isDef(photoFileSizeLimit)) {
11575
11589
  this.photoFileSizeLimit = PHOTO_FILE_SIZE_LIMIT;
11576
11590
  } else {
@@ -11592,6 +11606,12 @@ const parseDecimal = (obj, defaultValue) => {
11592
11606
  }
11593
11607
  return result;
11594
11608
  };
11609
+ var __defProp$1 = Object.defineProperty;
11610
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11611
+ var __publicField$1 = (obj, key, value) => {
11612
+ __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
11613
+ return value;
11614
+ };
11595
11615
  const clamp = (value, min, max) => Math.min(Math.max(value, min), max);
11596
11616
  const subString = (str, startIndex, length) => {
11597
11617
  if (!isDef(length)) {
@@ -11756,6 +11776,8 @@ class TextScanner {
11756
11776
  * @param text
11757
11777
  */
11758
11778
  constructor(text) {
11779
+ __publicField$1(this, "text");
11780
+ __publicField$1(this, "cursor");
11759
11781
  this.text = text;
11760
11782
  this.cursor = 0;
11761
11783
  }
@@ -12243,12 +12265,22 @@ function checkWatermarkConfigSupported(watermarkConfigString) {
12243
12265
  }
12244
12266
  return true;
12245
12267
  }
12268
+ var __defProp = Object.defineProperty;
12269
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12270
+ var __publicField = (obj, key, value) => {
12271
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
12272
+ return value;
12273
+ };
12246
12274
  const DEFAULT_JPEG_QUALITY = 0.8;
12247
12275
  const MIN_JPEG_QUALITY = 0.1;
12248
12276
  const JPEG_QUALITY_STEP = 0.05;
12249
12277
  class ImageProcessor {
12250
12278
  // 压缩图片的配置
12251
12279
  constructor(file, resizeOptions, watermarkOptions, compressOptions) {
12280
+ __publicField(this, "file");
12281
+ __publicField(this, "resizeOptions");
12282
+ __publicField(this, "watermarkOptions");
12283
+ __publicField(this, "compressOptions");
12252
12284
  this.file = file;
12253
12285
  this.resizeOptions = resizeOptions;
12254
12286
  this.watermarkOptions = watermarkOptions;
@@ -18137,7 +18169,7 @@ const Lazyload = {
18137
18169
  });
18138
18170
  }
18139
18171
  };
18140
- const version = "3.1.1";
18172
+ const version = "3.1.3";
18141
18173
  function install(app) {
18142
18174
  const components = [
18143
18175
  ActionSheet,
package/lib/zartui.js CHANGED
@@ -11790,9 +11790,16 @@
11790
11790
  }
11791
11791
  return image2Canvas(img, inputType, orientation, targetWidth, targetHeight);
11792
11792
  }
11793
+ var __defProp$3 = Object.defineProperty;
11794
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11795
+ var __publicField$3 = (obj, key, value) => {
11796
+ __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
11797
+ return value;
11798
+ };
11793
11799
  class ResizeOptions {
11794
11800
  // 最大边长
11795
11801
  constructor(maxSideLength) {
11802
+ __publicField$3(this, "maxSideLength");
11796
11803
  if (!isDef(maxSideLength)) {
11797
11804
  this.maxSideLength = MAX_SIDE_LENGTH;
11798
11805
  } else {
@@ -11805,9 +11812,16 @@
11805
11812
  }
11806
11813
  }
11807
11814
  }
11815
+ var __defProp$2 = Object.defineProperty;
11816
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11817
+ var __publicField$2 = (obj, key, value) => {
11818
+ __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
11819
+ return value;
11820
+ };
11808
11821
  class CompressOptions {
11809
11822
  constructor(photoFileSizeLimit) {
11810
- this.checkOrientation = true;
11823
+ __publicField$2(this, "photoFileSizeLimit");
11824
+ __publicField$2(this, "checkOrientation", true);
11811
11825
  if (!isDef(photoFileSizeLimit)) {
11812
11826
  this.photoFileSizeLimit = PHOTO_FILE_SIZE_LIMIT;
11813
11827
  } else {
@@ -11911,6 +11925,12 @@
11911
11925
  );
11912
11926
  return formatResult;
11913
11927
  }
11928
+ var __defProp$1 = Object.defineProperty;
11929
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11930
+ var __publicField$1 = (obj, key, value) => {
11931
+ __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
11932
+ return value;
11933
+ };
11914
11934
  const clamp = (value, min, max) => Math.min(Math.max(value, min), max);
11915
11935
  const subString = (str, startIndex, length) => {
11916
11936
  if (!isDef(length)) {
@@ -12075,6 +12095,8 @@
12075
12095
  * @param text
12076
12096
  */
12077
12097
  constructor(text) {
12098
+ __publicField$1(this, "text");
12099
+ __publicField$1(this, "cursor");
12078
12100
  this.text = text;
12079
12101
  this.cursor = 0;
12080
12102
  }
@@ -12562,12 +12584,22 @@
12562
12584
  }
12563
12585
  return true;
12564
12586
  }
12587
+ var __defProp = Object.defineProperty;
12588
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12589
+ var __publicField = (obj, key, value) => {
12590
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
12591
+ return value;
12592
+ };
12565
12593
  const DEFAULT_JPEG_QUALITY = 0.8;
12566
12594
  const MIN_JPEG_QUALITY = 0.1;
12567
12595
  const JPEG_QUALITY_STEP = 0.05;
12568
12596
  class ImageProcessor {
12569
12597
  // 压缩图片的配置
12570
12598
  constructor(file, resizeOptions, watermarkOptions, compressOptions) {
12599
+ __publicField(this, "file");
12600
+ __publicField(this, "resizeOptions");
12601
+ __publicField(this, "watermarkOptions");
12602
+ __publicField(this, "compressOptions");
12571
12603
  this.file = file;
12572
12604
  this.resizeOptions = resizeOptions;
12573
12605
  this.watermarkOptions = watermarkOptions;
@@ -19757,7 +19789,7 @@
19757
19789
  });
19758
19790
  }
19759
19791
  };
19760
- const version = "3.1.1";
19792
+ const version = "3.1.3";
19761
19793
  function install(app) {
19762
19794
  const components = [
19763
19795
  ActionSheet,