@extscreen/es-core 1.0.19 → 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +77 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -440,6 +440,18 @@ class ESDeviceManager {
440
440
  getBuildSDKVersion() {
441
441
  return this._buildSDKVersion;
442
442
  }
443
+
444
+ getDensity() {
445
+ return this._density;
446
+ }
447
+
448
+ getDensityDpi() {
449
+ return this._densityDpi;
450
+ }
451
+
452
+ getScaledDensity() {
453
+ return this._scaledDensity;
454
+ }
443
455
  }
444
456
 
445
457
  var ESDeviceManager$1 = new ESDeviceManager();
@@ -510,6 +522,68 @@ var ESNetworkManager$1 = new ESNetworkManager();
510
522
 
511
523
  class ESToastModule {
512
524
 
525
+ make() {
526
+ Vue.Native.callNative('ToastModule', "make");
527
+ }
528
+
529
+ setMode(mode) {
530
+ Vue.Native.callNative('ToastModule', "setMode", mode);
531
+ }
532
+
533
+ setGravity(gravity, xOffset, yOffset) {
534
+ Vue.Native.callNative('ToastModule', "setGravity", gravity, xOffset, yOffset);
535
+ }
536
+
537
+ setBackgroundColor(backgroundColor) {
538
+ Vue.Native.callNative('ToastModule', "setBgColor", backgroundColor);
539
+ }
540
+
541
+ setTextColor(textColor) {
542
+ Vue.Native.callNative('ToastModule', "setTextColor", textColor);
543
+ }
544
+
545
+ setTextSize(textSize) {
546
+ Vue.Native.callNative('ToastModule', "setTextSize", textSize);
547
+ }
548
+
549
+ setLongDuration(isLong) {
550
+ Vue.Native.callNative('ToastModule', "setLongDuration", isLong);
551
+ }
552
+
553
+ setNotUseSystemToast() {
554
+ Vue.Native.callNative('ToastModule', "setNotUseSystemToast");
555
+ }
556
+
557
+ show(text) {
558
+ Vue.Native.callNative('ToastModule', "show", text);
559
+ }
560
+
561
+ cancel() {
562
+ Vue.Native.callNative('ToastModule', "cancel");
563
+ }
564
+
565
+ setBackground(url) {
566
+ Vue.Native.callNative('ToastModule', "setBackground", {url: url});
567
+ }
568
+
569
+ setLeftIcon(url) {
570
+ Vue.Native.callNative('ToastModule', "setLeftIcon", {url: url});
571
+ }
572
+
573
+ setTopIcon(url) {
574
+ Vue.Native.callNative('ToastModule', "setTopIcon", {url: url});
575
+ }
576
+
577
+ setRightIcon(url) {
578
+ Vue.Native.callNative('ToastModule', "setRightIcon", {url: url});
579
+ }
580
+
581
+ setBottomIcon(url) {
582
+ Vue.Native.callNative('ToastModule', "setBottomIcon", {url: url});
583
+ }
584
+
585
+
586
+ //----------------------------------------------------------------------------------
513
587
  showToast(message) {
514
588
  Vue.Native.callNative('ToastModule', "showToast", message);
515
589
  }
@@ -2179,7 +2253,7 @@ function ESLoadingViewComponent() {
2179
2253
  },
2180
2254
  });
2181
2255
 
2182
- Vue.component('es-loading-view-component', {
2256
+ Vue.component('loading-view', {
2183
2257
 
2184
2258
  render(h) {
2185
2259
  return h('LoadingViewComponent',
@@ -2198,7 +2272,7 @@ function ESTransitionImageViewComponent() {
2198
2272
  },
2199
2273
  });
2200
2274
 
2201
- Vue.component('es-transition-image-view-component', {
2275
+ Vue.component('img-transition', {
2202
2276
  methods: {
2203
2277
  setNextColor(color) {
2204
2278
  Vue.Native.callUIFunction(this.$refs.transitionImageComponent,
@@ -2233,7 +2307,7 @@ function ESQRCodeViewComponent() {
2233
2307
  },
2234
2308
  });
2235
2309
 
2236
- Vue.component('es-qr-code-view-component', {
2310
+ Vue.component('qr-view', {
2237
2311
 
2238
2312
  render(h) {
2239
2313
  return h('QrCodeComponent',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extscreen/es-core",
3
- "version": "1.0.19",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {