@extscreen/es-core 2.3.13 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -200,7 +200,7 @@ var ESDeviceModule$1 = new ESDeviceModule();
200
200
  *
201
201
  */
202
202
 
203
- const TAG$9 = 'ESDeviceManager';
203
+ const TAG$8 = 'ESDeviceManager';
204
204
 
205
205
  class ESDeviceManager {
206
206
 
@@ -259,7 +259,7 @@ class ESDeviceManager {
259
259
  ESDeviceModule$1.getDevice().then(
260
260
  (device) => {
261
261
  if (ESLog.isLoggable(ESLog.DEBUG)) {
262
- ESLog.d(TAG$9, '#----------init---------->>>>>' + JSON.stringify(device));
262
+ ESLog.d(TAG$8, '#----------init---------->>>>>' + JSON.stringify(device));
263
263
  }
264
264
  this._device = device;
265
265
 
@@ -312,7 +312,7 @@ class ESDeviceManager {
312
312
  }
313
313
  } catch (e) {
314
314
  if (ESLog.isLoggable(ESLog.DEBUG)) {
315
- ESLog.d(TAG$9, '#----------init---解析--error----->>>>>' + e);
315
+ ESLog.d(TAG$8, '#----------init---解析--error----->>>>>' + e);
316
316
  }
317
317
  }
318
318
  resolve(device);
@@ -320,7 +320,7 @@ class ESDeviceManager {
320
320
  //
321
321
  error => {
322
322
  if (ESLog.isLoggable(ESLog.DEBUG)) {
323
- ESLog.d(TAG$9, '#----------init-----error----->>>>>' + error);
323
+ ESLog.d(TAG$8, '#----------init-----error----->>>>>' + error);
324
324
  }
325
325
  resolve(error);
326
326
  }
@@ -864,7 +864,7 @@ var ESAudioModule$1 = new ESAudioModule();
864
864
  *
865
865
  */
866
866
 
867
- const TAG$8 = 'ESAudioManager';
867
+ const TAG$7 = 'ESAudioManager';
868
868
 
869
869
  class ESAudioManager {
870
870
 
@@ -890,7 +890,7 @@ class ESAudioManager {
890
890
  initPromise() {
891
891
  return new Promise((resolve, reject) => {
892
892
  if (ESLog.isLoggable(ESLog.DEBUG)) {
893
- ESLog.d(TAG$8, '------------init----start----->>>>');
893
+ ESLog.d(TAG$7, '------------init----start----->>>>');
894
894
  }
895
895
  this.getStreamSystemMaxVolume();
896
896
  this.getStreamSystemVolume();
@@ -905,7 +905,7 @@ class ESAudioManager {
905
905
  ESAudioModule$1.getStreamVoiceCallMaxVolume()
906
906
  .then((volume) => {
907
907
  if (ESLog.isLoggable(ESLog.DEBUG)) {
908
- ESLog.d(TAG$8, '-----getStreamVoiceCallMaxVolume--->>>>' + volume);
908
+ ESLog.d(TAG$7, '-----getStreamVoiceCallMaxVolume--->>>>' + volume);
909
909
  }
910
910
  this._voiceCallMaxVolume = volume;
911
911
  });
@@ -919,7 +919,7 @@ class ESAudioManager {
919
919
  ESAudioModule$1.getStreamVoiceCallVolume()
920
920
  .then((volume) => {
921
921
  if (ESLog.isLoggable(ESLog.DEBUG)) {
922
- ESLog.d(TAG$8, '-----getStreamVoiceCallVolume--->>>>' + volume);
922
+ ESLog.d(TAG$7, '-----getStreamVoiceCallVolume--->>>>' + volume);
923
923
  }
924
924
  this._voiceCallVolume = volume;
925
925
  });
@@ -934,7 +934,7 @@ class ESAudioManager {
934
934
  ESAudioModule$1.getStreamSystemMaxVolume()
935
935
  .then((volume) => {
936
936
  if (ESLog.isLoggable(ESLog.DEBUG)) {
937
- ESLog.d(TAG$8, '-----getStreamSystemMaxVolume--->>>>' + volume);
937
+ ESLog.d(TAG$7, '-----getStreamSystemMaxVolume--->>>>' + volume);
938
938
  }
939
939
  this._systemMaxVolume = volume;
940
940
  });
@@ -948,7 +948,7 @@ class ESAudioManager {
948
948
  ESAudioModule$1.getStreamSystemVolume()
949
949
  .then((volume) => {
950
950
  if (ESLog.isLoggable(ESLog.DEBUG)) {
951
- ESLog.d(TAG$8, '-----getStreamSystemVolume--->>>>' + volume);
951
+ ESLog.d(TAG$7, '-----getStreamSystemVolume--->>>>' + volume);
952
952
  }
953
953
  this._systemVolume = volume;
954
954
  });
@@ -963,7 +963,7 @@ class ESAudioManager {
963
963
  ESAudioModule$1.getStreamRingMaxVolume()
964
964
  .then((volume) => {
965
965
  if (ESLog.isLoggable(ESLog.DEBUG)) {
966
- ESLog.d(TAG$8, '-----getStreamRingMaxVolume--->>>>' + volume);
966
+ ESLog.d(TAG$7, '-----getStreamRingMaxVolume--->>>>' + volume);
967
967
  }
968
968
  this._ringMaxVolume = volume;
969
969
  });
@@ -977,7 +977,7 @@ class ESAudioManager {
977
977
  ESAudioModule$1.getStreamRingVolume()
978
978
  .then((volume) => {
979
979
  if (ESLog.isLoggable(ESLog.DEBUG)) {
980
- ESLog.d(TAG$8, '-----getStreamRingVolume--->>>>' + volume);
980
+ ESLog.d(TAG$7, '-----getStreamRingVolume--->>>>' + volume);
981
981
  }
982
982
  this._ringVolume = volume;
983
983
  });
@@ -992,7 +992,7 @@ class ESAudioManager {
992
992
  ESAudioModule$1.getStreamMusicMaxVolume()
993
993
  .then((volume) => {
994
994
  if (ESLog.isLoggable(ESLog.DEBUG)) {
995
- ESLog.d(TAG$8, '-----getStreamMusicMaxVolume--->>>>' + volume);
995
+ ESLog.d(TAG$7, '-----getStreamMusicMaxVolume--->>>>' + volume);
996
996
  }
997
997
  this._musicMaxVolume = volume;
998
998
  });
@@ -1006,7 +1006,7 @@ class ESAudioManager {
1006
1006
  ESAudioModule$1.getStreamMusicVolume()
1007
1007
  .then((volume) => {
1008
1008
  if (ESLog.isLoggable(ESLog.DEBUG)) {
1009
- ESLog.d(TAG$8, '-----getStreamMusicVolume--->>>>' + volume);
1009
+ ESLog.d(TAG$7, '-----getStreamMusicVolume--->>>>' + volume);
1010
1010
  }
1011
1011
  this._musicVolume = volume;
1012
1012
  });
@@ -1021,7 +1021,7 @@ class ESAudioManager {
1021
1021
  ESAudioModule$1.getStreamAlarmMaxVolume()
1022
1022
  .then((volume) => {
1023
1023
  if (ESLog.isLoggable(ESLog.DEBUG)) {
1024
- ESLog.d(TAG$8, '-----getStreamAlarmMaxVolume--->>>>' + volume);
1024
+ ESLog.d(TAG$7, '-----getStreamAlarmMaxVolume--->>>>' + volume);
1025
1025
  }
1026
1026
  this._alarmMaxVolume = volume;
1027
1027
  });
@@ -1035,7 +1035,7 @@ class ESAudioManager {
1035
1035
  ESAudioModule$1.getStreamAlarmVolume()
1036
1036
  .then((volume) => {
1037
1037
  if (ESLog.isLoggable(ESLog.DEBUG)) {
1038
- ESLog.d(TAG$8, '-----getStreamAlarmVolume--->>>>' + volume);
1038
+ ESLog.d(TAG$7, '-----getStreamAlarmVolume--->>>>' + volume);
1039
1039
  }
1040
1040
  this._alarmVolume = volume;
1041
1041
  });
@@ -1050,7 +1050,7 @@ class ESAudioManager {
1050
1050
  ESAudioModule$1.getStreamMaxVolume(streamType)
1051
1051
  .then((volume) => {
1052
1052
  if (ESLog.isLoggable(ESLog.DEBUG)) {
1053
- ESLog.d(TAG$8, streamType + '-----getStreamMaxVolume--->>>>' + volume);
1053
+ ESLog.d(TAG$7, streamType + '-----getStreamMaxVolume--->>>>' + volume);
1054
1054
  }
1055
1055
  });
1056
1056
  }
@@ -1059,7 +1059,7 @@ class ESAudioManager {
1059
1059
  ESAudioModule$1.getStreamVolume(streamType)
1060
1060
  .then((volume) => {
1061
1061
  if (ESLog.isLoggable(ESLog.DEBUG)) {
1062
- ESLog.d(TAG$8, streamType + '-----getStreamVolume--->>>>' + volume);
1062
+ ESLog.d(TAG$7, streamType + '-----getStreamVolume--->>>>' + volume);
1063
1063
  }
1064
1064
  });
1065
1065
  }
@@ -2964,7 +2964,7 @@ class ESBroadcastManager {
2964
2964
 
2965
2965
  var ESBroadcastManager$1 = new ESBroadcastManager();
2966
2966
 
2967
- const TAG$7 = "ESBroadcast";
2967
+ const TAG$6 = "ESBroadcast";
2968
2968
 
2969
2969
  var ESBroadcast = {
2970
2970
  mounted() {
@@ -2991,25 +2991,25 @@ var ESBroadcast = {
2991
2991
  if (this.broadcastReceiverSet) {
2992
2992
  this.broadcastReceiverSet.forEach(function (value, key) {
2993
2993
  if (ESLog.isLoggable(ESLog.DEBUG)) {
2994
- ESLog.d(TAG$7, key + '#-------TraceAction--->>>>>' + value);
2994
+ ESLog.d(TAG$6, key + '#-------TraceAction--->>>>>' + value);
2995
2995
  }
2996
2996
  });
2997
2997
  }
2998
2998
  },
2999
2999
  __onBroadcastReceive(intent) {
3000
3000
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3001
- ESLog.d(TAG$7, '#-------onBroadcastReceive----->>>>>' + JSON.stringify(intent));
3001
+ ESLog.d(TAG$6, '#-------onBroadcastReceive----->>>>>' + JSON.stringify(intent));
3002
3002
  }
3003
3003
  if (!this.broadcastReceiverSet || this.broadcastReceiverSet.size <= 0) {
3004
3004
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3005
- ESLog.d(TAG$7, '#-------onBroadcastReceive---broadcastReceiverSet为空-->>>>>');
3005
+ ESLog.d(TAG$6, '#-------onBroadcastReceive---broadcastReceiverSet为空-->>>>>');
3006
3006
  }
3007
3007
  return;
3008
3008
  }
3009
3009
  //
3010
3010
  else {
3011
3011
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3012
- ESLog.d(TAG$7, '#-------onBroadcastReceive---broadcastReceiverSet不为空-->>>>>');
3012
+ ESLog.d(TAG$6, '#-------onBroadcastReceive---broadcastReceiverSet不为空-->>>>>');
3013
3013
  }
3014
3014
  }
3015
3015
  let action = intent.action;
@@ -3017,7 +3017,7 @@ var ESBroadcast = {
3017
3017
 
3018
3018
  this.broadcastReceiverSet.forEach(function (value, key) {
3019
3019
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3020
- ESLog.d(TAG$7, '#-----onBroadcastReceive--当前注册的广播----->>>>>' + JSON.stringify(key));
3020
+ ESLog.d(TAG$6, '#-----onBroadcastReceive--当前注册的广播----->>>>>' + JSON.stringify(key));
3021
3021
  }
3022
3022
  if (key && key.action && key.action.length > 0) {
3023
3023
  for (let i = 0; i < key.action.length; i++) {
@@ -3031,7 +3031,7 @@ var ESBroadcast = {
3031
3031
 
3032
3032
  if (!enable) {
3033
3033
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3034
- ESLog.d(TAG$7, '#-------onBroadcastReceive---disable-->>>>>');
3034
+ ESLog.d(TAG$6, '#-------onBroadcastReceive---disable-->>>>>');
3035
3035
  }
3036
3036
  return;
3037
3037
  }
@@ -3044,7 +3044,7 @@ var ESBroadcast = {
3044
3044
  },
3045
3045
  };
3046
3046
 
3047
- const TAG$6 = "ESRouter";
3047
+ const TAG$5 = "ESRouter";
3048
3048
 
3049
3049
  /**
3050
3050
  * router按键管理
@@ -3074,12 +3074,12 @@ class ESRouterKeyManager {
3074
3074
  if (keyEvent && keyEvent.action === 0) {
3075
3075
  if (this.isFunction(componentInstance.onKeyDown)) {
3076
3076
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3077
- ESLog.d(TAG$6, '#-------onKeyDown---success------>>>>>');
3077
+ ESLog.d(TAG$5, '#-------onKeyDown---success------>>>>>');
3078
3078
  }
3079
3079
  componentInstance.onKeyDown(keyEvent);
3080
3080
  } else {
3081
3081
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3082
- ESLog.d(TAG$6, '#-------onKeyDown---error------>>>>>');
3082
+ ESLog.d(TAG$5, '#-------onKeyDown---error------>>>>>');
3083
3083
  }
3084
3084
  }
3085
3085
  }
@@ -3087,19 +3087,19 @@ class ESRouterKeyManager {
3087
3087
  else if (keyEvent && keyEvent.action === 1) {
3088
3088
  if (this.isFunction(componentInstance.onKeyUp)) {
3089
3089
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3090
- ESLog.d(TAG$6, '#-------onKeyUp---success------>>>>>');
3090
+ ESLog.d(TAG$5, '#-------onKeyUp---success------>>>>>');
3091
3091
  }
3092
3092
  componentInstance.onKeyUp(keyEvent);
3093
3093
  } else {
3094
3094
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3095
- ESLog.d(TAG$6, '#-------onKeyUp---error------>>>>>');
3095
+ ESLog.d(TAG$5, '#-------onKeyUp---error------>>>>>');
3096
3096
  }
3097
3097
  }
3098
3098
  }
3099
3099
  }
3100
3100
  } else {
3101
3101
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3102
- ESLog.d(TAG$6, '#-------dispatchInstanceKeyEvent-----实例对象为空------>>>>>');
3102
+ ESLog.d(TAG$5, '#-------dispatchInstanceKeyEvent-----实例对象为空------>>>>>');
3103
3103
  }
3104
3104
  }
3105
3105
  }
@@ -3114,17 +3114,17 @@ class ESRouterKeyManager {
3114
3114
  if (componentInstance) {
3115
3115
  if (this.isFunction(componentInstance.onBackPressed)) {
3116
3116
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3117
- ESLog.d(TAG$6, '#-------onBackPressed---success------>>>>>');
3117
+ ESLog.d(TAG$5, '#-------onBackPressed---success------>>>>>');
3118
3118
  }
3119
3119
  componentInstance.onBackPressed();
3120
3120
  } else {
3121
3121
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3122
- ESLog.d(TAG$6, '#-------onBackPressed---error------>>>>>');
3122
+ ESLog.d(TAG$5, '#-------onBackPressed---error------>>>>>');
3123
3123
  }
3124
3124
  }
3125
3125
  } else {
3126
3126
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3127
- ESLog.d(TAG$6, '#-------dispatchInstanceBackPressed-----实例对象为空------>>>>>');
3127
+ ESLog.d(TAG$5, '#-------dispatchInstanceBackPressed-----实例对象为空------>>>>>');
3128
3128
  }
3129
3129
  }
3130
3130
  }
@@ -3149,7 +3149,7 @@ const ES_LIFECYCLE_ON_STOP = 7;
3149
3149
  const ES_LIFECYCLE_ON_SAVE_INSTANCE_SATE = 8;
3150
3150
  const ES_LIFECYCLE_ON_DESTROY = 9;
3151
3151
 
3152
- const TAG$5 = "ESRouter";
3152
+ const TAG$4 = "ESRouter";
3153
3153
 
3154
3154
  /**
3155
3155
  * router生命周期管理
@@ -3227,7 +3227,7 @@ class ESRouterLifecycleManager {
3227
3227
  }
3228
3228
  } else {
3229
3229
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3230
- ESLog.d(TAG$5, '#-------onESRouterLifecycleChanged-----实例对象为空------>>>>>');
3230
+ ESLog.d(TAG$4, '#-------onESRouterLifecycleChanged-----实例对象为空------>>>>>');
3231
3231
  }
3232
3232
  }
3233
3233
  }
@@ -3244,7 +3244,7 @@ class ESRouterLifecycleManager {
3244
3244
  componentInstance.onESNewIntent(params);
3245
3245
  } else {
3246
3246
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3247
- ESLog.d(TAG$5, '#-------onESRouterLifecycleNewIntent-----实例对象为空------>>>>>');
3247
+ ESLog.d(TAG$4, '#-------onESRouterLifecycleNewIntent-----实例对象为空------>>>>>');
3248
3248
  }
3249
3249
  }
3250
3250
  }
@@ -3256,7 +3256,7 @@ class ESRouterLifecycleManager {
3256
3256
 
3257
3257
  var ESRouterLifecycleManager$1 = new ESRouterLifecycleManager();
3258
3258
 
3259
- const TAG$4 = "ESRouter";
3259
+ const TAG$3 = "ESRouter";
3260
3260
 
3261
3261
  var ESRouter = {
3262
3262
 
@@ -3278,7 +3278,7 @@ var ESRouter = {
3278
3278
  //---------------------------返回键--------------------------------
3279
3279
  onESRouterBackPressed() {
3280
3280
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3281
- ESLog.d(TAG$4, '#-------onESRouterBackPressed----->>>>>');
3281
+ ESLog.d(TAG$3, '#-------onESRouterBackPressed----->>>>>');
3282
3282
  }
3283
3283
  let router = this.$router;
3284
3284
  if (router && router.history && router.history.stack
@@ -3290,7 +3290,7 @@ var ESRouter = {
3290
3290
  //----------------------------按键-------------------------------
3291
3291
  onESRouterDispatchKeyEvent(keyEvent) {
3292
3292
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3293
- ESLog.d(TAG$4, '#-------onESRouterDispatchKeyEvent----->>>>>' + keyEvent);
3293
+ ESLog.d(TAG$3, '#-------onESRouterDispatchKeyEvent----->>>>>' + keyEvent);
3294
3294
  }
3295
3295
  let router = this.$router;
3296
3296
  if (router && router.history && router.history.stack
@@ -3303,7 +3303,7 @@ var ESRouter = {
3303
3303
  //---------------------------生命周期--------------------------------
3304
3304
  onESRouterLifecycleChanged(event) {
3305
3305
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3306
- ESLog.d(TAG$4, '#-------onESRouterLifecycleChanged----->>>>>' + event);
3306
+ ESLog.d(TAG$3, '#-------onESRouterLifecycleChanged----->>>>>' + event);
3307
3307
  }
3308
3308
  let router = this.$router;
3309
3309
  if (router && router.history && router.history.stack
@@ -3316,7 +3316,7 @@ var ESRouter = {
3316
3316
  //---------------------------onNewIntent--------------------------------
3317
3317
  onESRouterLifecycleNewIntent(intent) {
3318
3318
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3319
- ESLog.d(TAG$4, '#-------onESRouterLifecycleNewIntent----->>>>>' + intent);
3319
+ ESLog.d(TAG$3, '#-------onESRouterLifecycleNewIntent----->>>>>' + intent);
3320
3320
  }
3321
3321
  let router = this.$router;
3322
3322
  if (router && router.history && router.history.stack
@@ -3675,7 +3675,7 @@ class ES {
3675
3675
 
3676
3676
  var ES$1 = new ES();
3677
3677
 
3678
- const TAG$3 = "ESPlugin";
3678
+ const TAG$2 = "ESPlugin";
3679
3679
 
3680
3680
  var ESPlugin = {
3681
3681
  mounted() {
@@ -3691,7 +3691,7 @@ var ESPlugin = {
3691
3691
  },
3692
3692
  onESPluginStateChanged(status) {
3693
3693
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3694
- ESLog.d(TAG$3, "--------onESPluginStateChanged------>>>>>" + JSON.stringify(status));
3694
+ ESLog.d(TAG$2, "--------onESPluginStateChanged------>>>>>" + JSON.stringify(status));
3695
3695
  }
3696
3696
  if (status.success) {
3697
3697
  if (status.status === 1002) {
@@ -3847,7 +3847,7 @@ class ESFocusManager {
3847
3847
 
3848
3848
  var ESFocusManager$1 = new ESFocusManager();
3849
3849
 
3850
- const TAG$2 = "ESEventBus";
3850
+ const TAG$1 = "ESEventBus";
3851
3851
 
3852
3852
  var ESEventBusEvent = {
3853
3853
  mounted() {
@@ -3859,7 +3859,7 @@ var ESEventBusEvent = {
3859
3859
  methods: {
3860
3860
  onESEventBusEvent(event) {
3861
3861
  if (ESLog.isLoggable(ESLog.DEBUG)) {
3862
- ESLog.d(TAG$2, '#-------onESEventBusEvent----->>>>>' + JSON.stringify(event));
3862
+ ESLog.d(TAG$1, '#-------onESEventBusEvent----->>>>>' + JSON.stringify(event));
3863
3863
  }
3864
3864
  if (event && event.event) {
3865
3865
  let eventName = event.event;
@@ -3870,3213 +3870,175 @@ var ESEventBusEvent = {
3870
3870
  },
3871
3871
  };
3872
3872
 
3873
- const ES_SEEK_BAR_MODE_DISABLED = 0;//
3874
- const ES_SEEK_BAR_MODE_PROGRESS = 1;//
3875
- const ES_SEEK_BAR_MODE_SEEK = 2;//
3876
-
3877
3873
  //
3878
3874
  const ES_MMP_MODE_PRIVATE = 0;
3879
3875
  const ES_MMP_MODE_WORLD_READABLE = 1;
3880
3876
  const ES_MMP_MODE_WORLD_WRITEABLE = 2;
3881
3877
 
3882
3878
  //
3883
-
3884
- const ES_ANIMATION_TYPE_NONE = "none";
3885
-
3886
- const ES_ANIMATION_TYPE_PLAY = "play";
3887
- const ES_ANIMATION_TYPE_PLAY_SEQUENTIALLY = "playSequentially";
3888
- const ES_ANIMATION_TYPE_PLAY_TOGETHER = "playTogether";
3889
-
3890
- const ES_ANIMATION_TYPE_WITH = "with";
3891
- const ES_ANIMATION_TYPE_BEFORE = "before";
3892
- const ES_ANIMATION_TYPE_AFTER = "after";
3893
- const ES_ANIMATION_TYPE_AFTER_DELAY = "afterDelay";
3894
-
3895
- //
3896
- const ES_ANIMATION_VALUE_TYPE_INT = 'ofInt';
3897
- const ES_ANIMATION_VALUE_TYPE_FLOAT = 'ofFloat';
3898
-
3899
- //
3900
- const ES_ANIMATION_PROPERTY_NAME_ALPHA = 'alpha';
3901
- const ES_ANIMATION_PROPERTY_NAME_ROTATION = 'rotation';
3902
-
3903
- const ES_ANIMATION_PROPERTY_NAME_SCALE_X = 'scaleX';
3904
- const ES_ANIMATION_PROPERTY_NAME_SCALE_Y = 'scaleY';
3905
-
3906
- const ES_ANIMATION_PROPERTY_NAME_TRANSLATION_X = 'translationX';
3907
- const ES_ANIMATION_PROPERTY_NAME_TRANSLATION_Y = 'translationY';
3879
+ const ES_NETWORK_INFO_STATE_CONNECTING = 0;
3880
+ const ES_NETWORK_INFO_STATE_CONNECTED = 1;
3881
+ const ES_NETWORK_INFO_STATE_SUSPENDED = 2;
3882
+ const ES_NETWORK_INFO_STATE_DISCONNECTING = 3;
3883
+ const ES_NETWORK_INFO_STATE_DISCONNECTED = 4;
3884
+ const ES_NETWORK_INFO_STATE_UNKNOWN = 5;
3908
3885
 
3909
3886
  //
3887
+ const ES_NETWORK_INFO_TYPE_NONE = -1;
3888
+ const ES_NETWORK_INFO_TYPE_MOBILE = 0;
3889
+ const ES_NETWORK_INFO_TYPE_WIFI = 1;
3890
+ const ES_NETWORK_INFO_TYPE_ETHERNET = 9;
3910
3891
 
3911
- const ES_ANIMATION_REPEAT_MODE_RESTART = 1;
3912
- const ES_ANIMATION_REPEAT_MODE_REVERSE = 2;
3913
- const ES_ANIMATION_REPEAT_MODE_INFINITE = -1;
3914
-
3915
- /**
3916
- * Capitalize a word
3917
- *
3918
- * @param {string} s The word input
3919
- * @returns string
3920
- */
3921
- function capitalize(str) {
3922
- if (typeof str !== 'string') {
3923
- return '';
3924
- }
3925
- return `${str.charAt(0).toUpperCase()}${str.slice(1)}`;
3926
- }
3927
-
3928
- /**
3929
- * Get binding events redirector
3930
- *
3931
- * The function should be calld with `getEventRedirector.call(this, [])`
3932
- * for binding this.
3933
- *
3934
- * @param {string[] | string[][]} events events will be redirect
3935
- * @returns Object
3936
- */
3937
- function getEventRedirector(events) {
3938
- const on = {};
3939
- events.forEach((event) => {
3940
- if (Array.isArray(event)) {
3941
- const [exposedEventName, nativeEventName] = event;
3942
- if (Object.prototype.hasOwnProperty.call(this.$listeners, exposedEventName)) {
3943
- on[event] = this[`on${capitalize(nativeEventName)}`];
3944
- }
3945
- } else if (Object.prototype.hasOwnProperty.call(this.$listeners, event)) {
3946
- on[event] = this[`on${capitalize(event)}`];
3947
- }
3948
- });
3949
- return on;
3950
- }
3951
-
3952
- function ESAnimationViewComponent() {
3953
- Vue.registerElement('AnimationViewComponent', {
3954
- component: {
3955
- name: 'AnimationViewComponent',
3956
- processEventData(event, nativeEventName, nativeEventParams) {
3957
- switch (nativeEventName) {
3958
- case 'onAnimationCancel':
3959
- event.animationId = nativeEventParams.animationId;
3960
- break;
3961
- case 'onAnimationEnd':
3962
- event.animationId = nativeEventParams.animationId;
3963
- event.isReverse = nativeEventParams.isReverse;
3964
- break;
3965
- case 'onAnimationRepeat':
3966
- event.animationId = nativeEventParams.animationId;
3967
- break;
3968
- case 'onAnimationStart':
3969
- event.animationId = nativeEventParams.animationId;
3970
- event.isReverse = nativeEventParams.isReverse;
3971
- break;
3972
- case 'onAnimationPause':
3973
- event.animationId = nativeEventParams.animationId;
3974
- break;
3975
- case 'onAnimationResume':
3976
- event.animationId = nativeEventParams.animationId;
3977
- break;
3978
- case 'onAnimationUpdate':
3979
- event.animationId = nativeEventParams.animationId;
3980
- event.animatedValue = nativeEventParams.animatedValue;
3981
- break;
3982
- }
3983
- return event;
3984
- },
3985
- },
3986
- });
3987
-
3988
- Vue.component('es-animation-view-component', {
3989
- methods: {
3990
- setPivotX(pivotX) {
3991
- Vue.Native.callUIFunction(this.$refs.animationView,
3992
- 'setPivotX', [pivotX], (res) => {
3993
- });
3994
- },
3995
- setPivotY(pivotY) {
3996
- Vue.Native.callUIFunction(this.$refs.animationView,
3997
- 'setPivotY', [pivotY], (res) => {
3998
- });
3999
- },
4000
- resetPivot() {
4001
- Vue.Native.callUIFunction(this.$refs.animationView,
4002
- 'resetPivot', [], (res) => {
4003
- });
4004
- },
4005
- resetAnimators() {
4006
- Vue.Native.callUIFunction(this.$refs.animationView,
4007
- 'resetAnimators', [], (res) => {
4008
- });
4009
- },
4010
- animatorSet(animatorId, duration, listenAnimator) {
4011
- Vue.Native.callUIFunction(this.$refs.animationView,
4012
- 'animatorSet', [animatorId, duration, listenAnimator], (res) => {
4013
- });
4014
- },
4015
- //--------------------------------------------------
4016
- startAnimator(animatorId) {
4017
- Vue.Native.callUIFunction(this.$refs.animationView,
4018
- 'startAnimator', [animatorId], (res) => {
4019
- });
4020
- },
4021
- startAnimatorDelay(animatorId, delay) {
4022
- Vue.Native.callUIFunction(this.$refs.animationView,
4023
- 'startAnimatorDelay', [animatorId, delay], (res) => {
4024
- });
4025
- },
4026
- pauseAnimator(animatorId) {
4027
- Vue.Native.callUIFunction(this.$refs.animationView,
4028
- 'pauseAnimator', [animatorId], (res) => {
4029
- });
4030
- },
4031
- resumeAnimator(animatorId) {
4032
- Vue.Native.callUIFunction(this.$refs.animationView,
4033
- 'resumeAnimator', [animatorId], (res) => {
4034
- });
4035
- },
4036
- cancelAnimator(animatorId) {
4037
- Vue.Native.callUIFunction(this.$refs.animationView,
4038
- 'cancelAnimator', [animatorId], (res) => {
4039
- });
4040
- },
4041
- reverseAnimator(animatorId) {
4042
- Vue.Native.callUIFunction(this.$refs.animationView,
4043
- 'reverseAnimator', [animatorId], (res) => {
4044
- });
4045
- },
4046
- //-----------------------------------------------------------------
4047
- play(animatorSetId, animatorId) {
4048
- Vue.Native.callUIFunction(this.$refs.animationView,
4049
- 'play', [animatorSetId, animatorId], (res) => {
4050
- });
4051
- },
4052
- with(animatorSetId, animatorId) {
4053
- Vue.Native.callUIFunction(this.$refs.animationView,
4054
- 'with', [animatorSetId, animatorId], (res) => {
4055
- });
4056
- },
4057
- before(animatorSetId, animatorId) {
4058
- Vue.Native.callUIFunction(this.$refs.animationView,
4059
- 'before', [animatorSetId, animatorId], (res) => {
4060
- });
4061
- },
4062
- after(animatorSetId, animatorId) {
4063
- Vue.Native.callUIFunction(this.$refs.animationView,
4064
- 'after', [animatorSetId, animatorId], (res) => {
4065
- });
4066
- },
4067
- afterDelay(animatorSetId, delay) {
4068
- Vue.Native.callUIFunction(this.$refs.animationView,
4069
- 'afterDelay', [animatorSetId, delay], (res) => {
4070
- });
4071
- },
4072
- //-----------------------------------------------------------------
4073
- playSequentially1(animatorSetId, animatorId1) {
4074
- Vue.Native.callUIFunction(this.$refs.animationView,
4075
- 'playSequentially1', [animatorSetId, animatorId1], (res) => {
4076
- });
4077
- },
4078
- playSequentially2(animatorSetId, animatorId1, animatorId2) {
4079
- Vue.Native.callUIFunction(this.$refs.animationView,
4080
- 'playSequentially2', [animatorSetId, animatorId1, animatorId2], (res) => {
4081
- });
4082
- },
4083
- playSequentially3(animatorSetId, animatorId1, animatorId2, animatorId3) {
4084
- Vue.Native.callUIFunction(this.$refs.animationView,
4085
- 'playSequentially3', [animatorSetId, animatorId1, animatorId2, animatorId3], (res) => {
4086
- });
4087
- },
4088
- playSequentially4(animatorSetId, animatorId1, animatorId2, animatorId3, animatorId4) {
4089
- Vue.Native.callUIFunction(this.$refs.animationView,
4090
- 'playSequentially4', [animatorSetId, animatorId1, animatorId2, animatorId3, animatorId4], (res) => {
4091
- });
4092
- },
4093
- playSequentially5(animatorSetId, animatorId1, animatorId2, animatorId3, animatorId4, animatorId5) {
4094
- Vue.Native.callUIFunction(this.$refs.animationView,
4095
- 'playSequentially5', [animatorSetId, animatorId1, animatorId2, animatorId3, animatorId4, animatorId5], (res) => {
4096
- });
4097
- },
4098
- //-----------------------------------------------------------------
4099
-
4100
- //-----------------------------------------------------------------
4101
- playTogether1(animatorSetId, animatorId1) {
4102
- Vue.Native.callUIFunction(this.$refs.animationView,
4103
- 'playTogether1', [animatorSetId, animatorId1], (res) => {
4104
- });
4105
- },
4106
- playTogether2(animatorSetId, animatorId1, animatorId2) {
4107
- Vue.Native.callUIFunction(this.$refs.animationView,
4108
- 'playTogether2', [animatorSetId, animatorId1, animatorId2], (res) => {
4109
- });
4110
- },
4111
- playTogether3(animatorSetId, animatorId1, animatorId2, animatorId3) {
4112
- Vue.Native.callUIFunction(this.$refs.animationView,
4113
- 'playTogether3', [animatorSetId, animatorId1, animatorId2, animatorId3], (res) => {
4114
- });
4115
- },
4116
- playTogether4(animatorSetId, animatorId1, animatorId2, animatorId3, animatorId4) {
4117
- Vue.Native.callUIFunction(this.$refs.animationView,
4118
- 'playTogether4', [animatorSetId, animatorId1, animatorId2, animatorId3, animatorId4], (res) => {
4119
- });
4120
- },
4121
- playTogether5(animatorSetId, animatorId1, animatorId2, animatorId3, animatorId4, animatorId5) {
4122
- Vue.Native.callUIFunction(this.$refs.animationView,
4123
- 'playTogether5', [animatorSetId, animatorId1, animatorId2, animatorId3, animatorId4, animatorId5], (res) => {
4124
- });
4125
- },
4126
- //-----------------------------------------------------------------
4127
- objectAnimator(
4128
- id,
4129
- valueType, propertyName,
4130
- duration, repeatMode, repeatCount,
4131
- listenAnimator, listenAnimatorValue, interpolator) {
4132
- Vue.Native.callUIFunction(this.$refs.animationView,
4133
- 'objectAnimator', [
4134
- id,
4135
- valueType, propertyName,
4136
- duration, repeatMode, repeatCount,
4137
- listenAnimator, listenAnimatorValue,
4138
- interpolator],
4139
- (res) => {
4140
- });
4141
- },
4142
-
4143
- objectAnimator1(id,
4144
- valueType, propertyName,
4145
- value1,
4146
- duration, repeatMode, repeatCount,
4147
- listenAnimator, listenAnimatorValue, interpolator) {
4148
- Vue.Native.callUIFunction(this.$refs.animationView,
4149
- 'objectAnimator1', [
4150
- id,
4151
- valueType, propertyName,
4152
- value1,
4153
- duration, repeatMode, repeatCount,
4154
- listenAnimator, listenAnimatorValue,
4155
- interpolator], (res) => {
4156
- });
4157
- },
4158
-
4159
- objectAnimator2(
4160
- id,
4161
- valueType, propertyName,
4162
- value1, value2,
4163
- duration, repeatMode, repeatCount,
4164
- listenAnimator, listenAnimatorValue, interpolator) {
4165
- Vue.Native.callUIFunction(this.$refs.animationView,
4166
- 'objectAnimator2', [
4167
- id,
4168
- valueType, propertyName,
4169
- value1, value2,
4170
- duration, repeatMode, repeatCount,
4171
- listenAnimator, listenAnimatorValue,
4172
- interpolator], (res) => {
4173
- });
4174
- },
4175
-
4176
- objectAnimator3(
4177
- id,
4178
- valueType, propertyName,
4179
- value1, value2, value3,
4180
- duration, repeatMode, repeatCount,
4181
- listenAnimator, listenAnimatorValue, interpolator) {
4182
- Vue.Native.callUIFunction(this.$refs.animationView,
4183
- 'objectAnimator3', [
4184
- id,
4185
- valueType, propertyName,
4186
- value1, value2, value3,
4187
- duration, repeatMode, repeatCount,
4188
- listenAnimator, listenAnimatorValue,
4189
- interpolator], (res) => {
4190
- });
4191
- },
4192
-
4193
- objectAnimator4(
4194
- id,
4195
- valueType, propertyName,
4196
- value1, value2, value3, value4,
4197
- duration, repeatMode, repeatCount,
4198
- listenAnimator, listenAnimatorValue, interpolator) {
4199
- Vue.Native.callUIFunction(this.$refs.animationView,
4200
- 'objectAnimator4', [
4201
- id,
4202
- valueType, propertyName,
4203
- value1, value2, value3, value4,
4204
- duration, repeatMode, repeatCount,
4205
- listenAnimator, listenAnimatorValue,
4206
- interpolator], (res) => {
4207
- });
4208
- },
4209
-
4210
- objectAnimator5(
4211
- id,
4212
- valueType, propertyName,
4213
- value1, value2, value3, value4, value5,
4214
- duration, repeatMode, repeatCount,
4215
- listenAnimator, listenAnimatorValue, interpolator) {
4216
- Vue.Native.callUIFunction(this.$refs.animationView,
4217
- 'objectAnimator5', [
4218
- id,
4219
- valueType, propertyName,
4220
- value1, value2, value3, value4, value5,
4221
- duration, repeatMode, repeatCount,
4222
- listenAnimator, listenAnimatorValue,
4223
- interpolator], (res) => {
4224
- });
4225
- },
4226
-
4227
- objectAnimator6(
4228
- id,
4229
- valueType, propertyName,
4230
- value1, value2, value3, value4, value5, value6,
4231
- duration, repeatMode, repeatCount,
4232
- listenAnimator, listenAnimatorValue, interpolator) {
4233
- Vue.Native.callUIFunction(this.$refs.animationView,
4234
- 'objectAnimator6', [
4235
- id,
4236
- valueType, propertyName,
4237
- value1, value2, value3, value4, value5, value6,
4238
- duration, repeatMode, repeatCount,
4239
- listenAnimator, listenAnimatorValue,
4240
- interpolator], (res) => {
4241
- });
4242
- },
4243
-
4244
- objectAnimator7(
4245
- id,
4246
- valueType, propertyName,
4247
- value1, value2, value3, value4, value5, value6, value7,
4248
- duration, repeatMode, repeatCount,
4249
- listenAnimator, listenAnimatorValue, interpolator) {
4250
- Vue.Native.callUIFunction(this.$refs.animationView,
4251
- 'objectAnimator7', [
4252
- id,
4253
- valueType, propertyName,
4254
- value1, value2, value3, value4, value5, value6, value7,
4255
- duration, repeatMode, repeatCount,
4256
- listenAnimator, listenAnimatorValue,
4257
- interpolator], (res) => {
4258
- });
4259
- },
4260
-
4261
- objectAnimator8(
4262
- id,
4263
- valueType, propertyName,
4264
- value1, value2, value3, value4, value5, value6, value7, value8,
4265
- duration, repeatMode, repeatCount,
4266
- listenAnimator, listenAnimatorValue, interpolator) {
4267
- Vue.Native.callUIFunction(this.$refs.animationView,
4268
- 'objectAnimator8', [
4269
- id,
4270
- valueType, propertyName,
4271
- value1, value2, value3, value4, value5, value6, value7, value8,
4272
- duration, repeatMode, repeatCount,
4273
- listenAnimator, listenAnimatorValue,
4274
- interpolator], (res) => {
4275
- });
4276
- },
4277
-
4278
- objectAnimator9(
4279
- id,
4280
- valueType, propertyName,
4281
- value1, value2, value3, value4, value5, value6, value7, value8, value9,
4282
- duration, repeatMode, repeatCount,
4283
- listenAnimator, listenAnimatorValue, interpolator) {
4284
- Vue.Native.callUIFunction(this.$refs.animationView,
4285
- 'objectAnimator9', [
4286
- id,
4287
- valueType, propertyName,
4288
- value1, value2, value3, value4, value5, value6, value7, value8, value9,
4289
- duration, repeatMode, repeatCount,
4290
- listenAnimator, listenAnimatorValue,
4291
- interpolator], (res) => {
4292
- });
4293
- },
4294
-
4295
- objectAnimator10(
4296
- id,
4297
- valueType, propertyName,
4298
- value1, value2, value3, value4, value5, value6, value7, value8, value9, value10,
4299
- duration, repeatMode, repeatCount,
4300
- listenAnimator, listenAnimatorValue, interpolator) {
4301
- Vue.Native.callUIFunction(this.$refs.animationView,
4302
- 'objectAnimator10', [
4303
- id,
4304
- valueType, propertyName,
4305
- value1, value2, value3, value4, value5, value6, value7, value8, value9, value10,
4306
- duration, repeatMode, repeatCount,
4307
- listenAnimator, listenAnimatorValue,
4308
- interpolator], (res) => {
4309
- });
4310
- },
4311
-
4312
-
4313
- //---------------------------------------
4314
- onAnimationCancel(evt) {
4315
- let id = evt.animationId;
4316
- this.$emit('on-animation-cancel', id);
4317
- },
4318
- onAnimationEnd(evt) {
4319
- let id = evt.animationId;
4320
- let isReverse = evt.isReverse;
4321
- this.$emit('on-animation-end', id, isReverse);
4322
- },
4323
- onAnimationRepeat(evt) {
4324
- let id = evt.animationId;
4325
- this.$emit('on-animation-repeat', id);
4326
- },
4327
- onAnimationStart(evt) {
4328
- let id = evt.animationId;
4329
- let isReverse = evt.isReverse;
4330
- this.$emit('on-animation-start', id, isReverse);
4331
- },
4332
- onAnimationPause(evt) {
4333
- let id = evt.animationId;
4334
- this.$emit('on-animation-pause', id);
4335
- },
4336
- onAnimationResume(evt) {
4337
- let id = evt.animationId;
4338
- this.$emit('on-animation-resume', id);
4339
- },
4340
- onAnimationUpdate(evt) {
4341
- let id = evt.animationId;
4342
- let value = evt.animatedValue;
4343
- this.$emit('on-animation-update', id, value);
4344
- }
4345
- },
4346
-
4347
- render(h) {
4348
- const on = getEventRedirector.call(this, [
4349
- ['on-animation-end', 'animationEnd'],
4350
- ['on-animation-cancel', 'animationCancel'],
4351
- ['on-animation-start', 'animationStart'],
4352
- ['on-animation-repeat', 'animationRepeat'],
4353
- ['on-animation-pause', 'animationPause'],
4354
- ['on-animation-resume', 'animationResume'],
4355
- ['on-animation-update', 'animationUpdate'],
4356
- ]);
4357
- return h('AnimationViewComponent',
4358
- {
4359
- on,
4360
- ref: 'animationView',
4361
- }, this.$slots.default);
4362
- },
4363
- });
4364
- }
4365
-
4366
- const TAG$1 = "ESSeekBar";
3892
+ const TAG = 'ESApplication';
4367
3893
 
4368
- var ESSeekBar = {
4369
- render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('es-seek-bar-view-component',{ref:"es_seek_bar",attrs:{"secondProgress":_vm.secondaryProgress,"secondColor":_vm.secondaryColor,"backgroundColor":_vm.backgroundColor,"color":_vm.primaryColor,"cornerRadius":_vm.cornerRadius,"interceptKeyEvent":_vm.interceptKeyEvent,"listenProgress":_vm.listenProgress,"thumbColor":_vm.thumbColor},on:{"focus":_vm.onSeekBarFocusChanged}})},
4370
- staticRenderFns: [],
4371
- name: 'SeekBar',
4372
- props: {
4373
- secondaryProgress: {
4374
- type: Number,
4375
- default: 0
4376
- },
4377
- cornerRadius: {
4378
- type: Number,
4379
- default: 0
4380
- },
4381
- secondaryColor: {
4382
- type: String,
4383
- default: '#FFFFFF'
4384
- },
4385
- primaryColor: {
4386
- type: String,
4387
- default: '#FFFFFF'
4388
- },
4389
- backgroundColor: {
4390
- type: String,
4391
- default: '#00000000'
4392
- },
4393
- thumbColor: {
4394
- type: String,
4395
- default: '#000000'
4396
- },
4397
- listenProgress: {
4398
- type: Boolean,
4399
- default: false
4400
- },
4401
- interceptKeyEvent: {
4402
- type: Boolean,
4403
- default: true
4404
- },
4405
- emitEventDelay: {
4406
- type: Number,
4407
- default: 100
4408
- },
4409
- onProgressChanged: {
4410
- type: Function,
4411
- default: null
4412
- },
4413
- },
3894
+ var ESApplication = {
3895
+ mixins: [ESRouter, ESEventBusEvent],
4414
3896
  data() {
4415
3897
  return {
4416
- seekCount: 0,
4417
- isSeekBarFocused: false,
4418
- seekBarMode: ES_SEEK_BAR_MODE_PROGRESS,
4419
- progressCallBackTime: 0,
4420
- maxProgress: 0,
4421
- progress: 0,
4422
- }
3898
+ appInitProps: {},
3899
+ appInitUrl: '',
3900
+ appInitParams: {},
3901
+ autoLaunchMainESPage: true,
3902
+ };
3903
+ },
3904
+ mounted() {
3905
+ this._initES();
4423
3906
  },
4424
3907
  methods: {
4425
- show(value) {
4426
- if (ESLog.isLoggable(ESLog.DEBUG)) {
4427
- ESLog.d(TAG$1, '--------show------>>>>>' + value);
4428
- }
4429
- this.$refs.es_seek_bar.show(value);
3908
+ _initES() {
3909
+ Promise.resolve()
3910
+ .then(() => ES$1.init({
3911
+ router: this.$router
3912
+ })
3913
+ )
3914
+ .then((result) => {
3915
+ this._initESApplication();
3916
+ },
3917
+ error => {
3918
+ this._initESApplication();
3919
+ }
3920
+ );
4430
3921
  },
4431
- setProgress(progress) {
4432
- if (this.seekBarMode === ES_SEEK_BAR_MODE_PROGRESS) {
4433
- if (ESLog.isLoggable(ESLog.DEBUG)) {
4434
- ESLog.d(TAG$1, '--------setProgress------>>>>>' + progress);
4435
- }
4436
- this.progress = progress;
4437
- this.$refs.es_seek_bar.setProgress(progress);
4438
- }
3922
+ _initESApplication() {
3923
+ ESLaunchManager$1.setRouteListener(this._routeListener);
3924
+ this._initESAppParams();
4439
3925
  },
4440
- setMaxProgress(maxProgress) {
4441
- if (this.seekBarMode === ES_SEEK_BAR_MODE_PROGRESS) {
4442
- if (ESLog.isLoggable(ESLog.DEBUG)) {
4443
- ESLog.d(TAG$1, '--------setMaxProgress------>>>>>' + maxProgress);
3926
+ _routeListener(url, params) {
3927
+ this.onLaunchESPage(url, params);
3928
+ },
3929
+ _initESAppParams() {
3930
+ //
3931
+ this.appInitProps = ESApp.$options.$superProps;
3932
+ //
3933
+ this.appInitUrl = ESApp.$options.$superProps.url;
3934
+ this.appInitParams = ESApp.$options.$superProps.params;
3935
+
3936
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
3937
+ try {
3938
+ ESLog.d(TAG, `--------initESAppParams--->>>>>`
3939
+ + '\nAppInitUrl:' + this.appInitUrl
3940
+ + '\nAppInitParams:' + JSON.stringify(this.appInitParams)
3941
+ );
3942
+ } catch (e) {
4444
3943
  }
4445
- this.maxProgress = maxProgress;
4446
- this.$refs.es_seek_bar.setMaxProgress(maxProgress);
4447
3944
  }
3945
+
3946
+ if (!this.appInitUrl) {
3947
+ this.appInitUrl = this.$router.options.main;
3948
+ }
3949
+ if (!(this._isRoutePathValid(this.appInitUrl) || this._isRouteNameValid(this.appInitUrl))) {
3950
+ this.appInitUrl = this.$router.options.error;
3951
+ }
3952
+ //
3953
+ this._initESApp();
4448
3954
  },
4449
- resetSeekbar() {
4450
- this.seekBarMode = ES_SEEK_BAR_MODE_PROGRESS;
4451
- this.setMaxProgress(0);
4452
- this.setProgress(0);
4453
- },
4454
- startSeek(forward) {
4455
- if (this.isSeekBarFocused) {
4456
- this.seekBarMode = ES_SEEK_BAR_MODE_SEEK;
4457
- this.$emit("onSeekStart", this.progress);
4458
- this.seekCount += 1;
4459
- let base = 1;
4460
- if (this.seekCount > 20) {
4461
- base = 2;
4462
- } else if (this.seekCount > 50) {
4463
- base = 4;
4464
- } else if (this.seekCount > 100) {
4465
- base = 6;
4466
- }
4467
- let duration = this.maxProgress;
4468
- let seekProgress = Math.floor(duration * 0.01 * base);
4469
- this.progress = this.progress + (forward ? seekProgress : -seekProgress);
4470
-
4471
- if (this.progress > duration) {
4472
- this.progress = duration;
4473
- } else if (this.progress < 0) {
4474
- this.progress = 0;
4475
- }
4476
- this.$refs.es_seek_bar.setProgress(this.progress);
3955
+ _initESApp() {
3956
+ if (this._isFunction(this.onESCreate)) {
3957
+ let result = this.onESCreate(this.appInitProps);
4477
3958
  if (ESLog.isLoggable(ESLog.DEBUG)) {
4478
- ESLog.d(TAG$1, '----Seek----setProgress------>>>>>' + this.progress);
3959
+ ESLog.d(TAG, '---------onESCreate---------->>>>', result);
3960
+ }
3961
+ if (result instanceof Promise) {
3962
+ result.then(
3963
+ (success) => {
3964
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
3965
+ ESLog.d(TAG, '---------onESCreate---Promise---success---->>>>');
3966
+ }
3967
+ this._onESCreated(true);
3968
+ },
3969
+ error => {
3970
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
3971
+ console.log(TAG, '---------onESCreate---Promise---error---->>>>', error);
3972
+ }
3973
+ this._onESCreated(false);
3974
+ }
3975
+ );
4479
3976
  }
4480
- if (this.onProgressChanged) {
4481
- let now = new Date().getTime();
4482
- if (now - this.progressCallBackTime > this.emitEventDelay) {
4483
- this.onProgressChanged(this.progress);
4484
- this.progressCallBackTime = now;
3977
+ //
3978
+ else {
3979
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
3980
+ ESLog.d(TAG, '---------onESCreate--return-Not Promise----->>>>');
4485
3981
  }
3982
+ this._onESCreated(true);
4486
3983
  }
4487
3984
  }
4488
3985
  //
4489
3986
  else {
4490
3987
  if (ESLog.isLoggable(ESLog.DEBUG)) {
4491
- ESLog.d(TAG$1, '--------SeekBarNotFocused------>>>>>');
3988
+ ESLog.d(TAG, '---------onESCreate---Not Function----->>>>');
4492
3989
  }
3990
+ this._onESCreated(true);
4493
3991
  }
4494
3992
  },
4495
- stopSeek() {
4496
- if (ESLog.isLoggable(ESLog.DEBUG)) {
4497
- ESLog.d(TAG$1, '--------stopSeek------>>>>>');
3993
+ _onESCreated(success) {
3994
+ try {
3995
+ this.onESCreated(success);
3996
+ } catch (e) {
3997
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
3998
+ ESLog.d(TAG, '---------onESCreated---error---->>>>');
3999
+ }
4000
+ }
4001
+ if (this.autoLaunchMainESPage) {
4002
+ this.launchMainESPage();
4498
4003
  }
4499
- this.seekCount = 0;
4500
- this.seekBarMode = ES_SEEK_BAR_MODE_PROGRESS;
4501
- this.$emit("onSeekStop", this.progress);
4502
4004
  },
4503
- onSeekBarFocusChanged(e) {
4504
- this.isSeekBarFocused = e.isFocused;
4005
+ launchMainESPage() {//launchESPage
4006
+ let route = {
4007
+ name: this.appInitUrl,
4008
+ params: this.appInitParams,
4009
+ };
4505
4010
  if (ESLog.isLoggable(ESLog.DEBUG)) {
4506
- ESLog.d(TAG$1, '--------onSeekBarFocusChanged------>>>>>' + this.isSeekBarFocused);
4011
+ ESLog.i(TAG, '---------onESCreate---initPage----->>>>', route);
4507
4012
  }
4508
- this.$emit("onFocusChanged", e);
4509
- },
4510
- isFocused() {
4511
- return this.isSeekBarFocused;
4512
- },
4513
- getSeekBarMode() {
4514
- return this.seekBarMode;
4515
- },
4516
- //----------------------------------------------------------
4517
- invalidateSeekBar() {
4518
- this.$refs.es_seek_bar.invalidateSeekBar();
4519
- },
4520
- setFocusable(focusable) {
4521
- this.$refs.es_seek_bar.setFocusable(focusable);
4522
- },
4523
- setClickable(clickable) {
4524
- this.$refs.es_seek_bar.setClickable(clickable);
4525
- },
4526
- requestFocus() {
4527
- this.$refs.es_seek_bar.requestFocus();
4528
- },
4529
- requestLayout() {
4530
- this.$refs.es_seek_bar.requestLayout();
4531
- },
4532
- invalidate() {
4533
- this.$refs.es_seek_bar.invalidate();
4534
- },
4535
- setVisible(visible) {
4536
- this.$refs.es_seek_bar.setVisible(visible);
4537
- },
4538
- setLeftSeekBarVisible(visible) {
4539
- this.$refs.es_seek_bar.setLeftSeekBarVisible(visible);
4013
+ this.$router.push(route);
4540
4014
  },
4541
- setRightSeekBarVisible(visible) {
4542
- this.$refs.es_seek_bar.setRightSeekBarVisible(visible);
4015
+ _isFunction(func) {
4016
+ return Object.prototype.toString.call(func) === '[object Function]';
4543
4017
  },
4544
- setSeekBarMode(mode) {
4545
- this.$refs.es_seek_bar.setSeekBarMode(mode);
4018
+ _isRoutePathValid(path) {
4019
+ if (path !== undefined && path !== '') {
4020
+ let index = this.$router.options.routes.findIndex((item) => item.path === `/${path}`);
4021
+ if (index !== -1) {
4022
+ return true;
4023
+ }
4024
+ }
4025
+ return false;
4546
4026
  },
4547
- setRangeProgress(leftValue, rightValue) {
4548
- this.$refs.es_seek_bar.setRangeProgress(leftValue, rightValue);
4027
+ _isRouteNameValid(name) {
4028
+ if (name !== undefined && name !== '') {
4029
+ let index = this.$router.options.routes.findIndex((item) => item.path === `${name}`);
4030
+ if (index !== -1) {
4031
+ return true;
4032
+ }
4033
+ }
4034
+ return false;
4549
4035
  },
4550
- getProgress() {
4551
- this.$refs.es_seek_bar.getProgress();
4036
+ //---------------------------下面的方法给使用者覆写-----------------------------
4037
+ onESCreated(success) {
4038
+
4552
4039
  },
4553
- getLeftProgress() {
4554
- this.$refs.es_seek_bar.getLeftProgress();
4555
- },
4556
- getRightProgress() {
4557
- this.$refs.es_seek_bar.getRightProgress();
4558
- },
4559
- setRange(min, max, minInterval) {
4560
- this.$refs.es_seek_bar.setRange(min, max, minInterval);
4561
- },
4562
- setGravity(gravity) {
4563
- this.$refs.es_seek_bar.setGravity(gravity);
4564
- },
4565
- setProgressWidth(progressWidth) {
4566
- this.$refs.es_seek_bar.setProgressWidth(progressWidth);
4567
- },
4568
- setProgressHeight(progressHeight) {
4569
- this.$refs.es_seek_bar.setProgressHeight(progressHeight);
4570
- },
4571
- setProgressRadius(progressRadius) {
4572
- this.$refs.es_seek_bar.setProgressRadius(progressRadius);
4573
- },
4574
- setProgressColor(progressColor) {
4575
- this.$refs.es_seek_bar.setProgressColor(progressColor);
4576
- },
4577
- setProgressDefaultColor(defaultProgressColor) {
4578
- this.$refs.es_seek_bar.setProgressDefaultColor(defaultProgressColor);
4579
- },
4580
- setProgressDrawable(progressDrawable) {
4581
- this.$refs.es_seek_bar.setProgressDrawable(progressDrawable);
4582
- },
4583
- setProgressDefaultDrawable(progressDefaultDrawable) {
4584
- this.$refs.es_seek_bar.setProgressDefaultDrawable(progressDefaultDrawable);
4585
- },
4586
- setProgressUrl(progressUrl) {
4587
- this.$refs.es_seek_bar.setProgressUrl(progressUrl);
4588
- },
4589
- setProgressDefaultUrl(progressDefaultUrl) {
4590
- this.$refs.es_seek_bar.setProgressDefaultUrl(progressDefaultUrl);
4591
- },
4592
- showIndicator(showIndicator) {
4593
- this.$refs.es_seek_bar.showIndicator(showIndicator);
4594
- },
4595
- showLeftIndicator(showLeftIndicator) {
4596
- this.$refs.es_seek_bar.showLeftIndicator(showLeftIndicator);
4597
- },
4598
- showRightIndicator(showRightIndicator) {
4599
- this.$refs.es_seek_bar.showRightIndicator(showRightIndicator);
4600
- },
4601
- setIndicatorShowMode(indicatorShowMode) {
4602
- this.$refs.es_seek_bar.setIndicatorShowMode(indicatorShowMode);
4603
- },
4604
- setLeftIndicatorShowMode(indicatorShowMode) {
4605
- this.$refs.es_seek_bar.setLeftIndicatorShowMode(indicatorShowMode);
4606
- },
4607
- setRightIndicatorShowMode(indicatorShowMode) {
4608
- this.$refs.es_seek_bar.setRightIndicatorShowMode(indicatorShowMode);
4609
- },
4610
- setIndicatorWidth(indicatorWidth) {
4611
- this.$refs.es_seek_bar.setIndicatorWidth(indicatorWidth);
4612
- },
4613
- setLeftIndicatorWidth(indicatorWidth) {
4614
- this.$refs.es_seek_bar.setLeftIndicatorWidth(indicatorWidth);
4615
- },
4616
- setRightIndicatorWidth(indicatorWidth) {
4617
- this.$refs.es_seek_bar.setRightIndicatorWidth(indicatorWidth);
4618
- },
4619
- setIndicatorHeight(indicatorHeight) {
4620
- this.$refs.es_seek_bar.setIndicatorHeight(indicatorHeight);
4621
- },
4622
- setLeftIndicatorHeight(indicatorHeight) {
4623
- this.$refs.es_seek_bar.setLeftIndicatorHeight(indicatorHeight);
4624
- },
4625
- setRightIndicatorHeight(indicatorHeight) {
4626
- this.$refs.es_seek_bar.setRightIndicatorHeight(indicatorHeight);
4627
- },
4628
- setIndicatorTextDecimalFormat(formatPattern) {
4629
- this.$refs.es_seek_bar.setIndicatorTextDecimalFormat(formatPattern);
4630
- },
4631
- setLeftIndicatorTextDecimalFormat(formatPattern) {
4632
- this.$refs.es_seek_bar.setLeftIndicatorTextDecimalFormat(formatPattern);
4633
- },
4634
- setRightIndicatorTextDecimalFormat(formatPattern) {
4635
- this.$refs.es_seek_bar.setRightIndicatorTextDecimalFormat(formatPattern);
4636
- },
4637
- setIndicatorTextStringFormat(formatPattern) {
4638
- this.$refs.es_seek_bar.setIndicatorTextStringFormat(formatPattern);
4639
- },
4640
- setLeftIndicatorTextStringFormat(formatPattern) {
4641
- this.$refs.es_seek_bar.setLeftIndicatorTextStringFormat(formatPattern);
4642
- },
4643
- setRightIndicatorTextStringFormat(formatPattern) {
4644
- this.$refs.es_seek_bar.setRightIndicatorTextStringFormat(formatPattern);
4645
- },
4646
- setIndicatorMargin(indicatorMargin) {
4647
- this.$refs.es_seek_bar.setIndicatorMargin(indicatorMargin);
4648
- },
4649
- setLeftIndicatorMargin(indicatorMargin) {
4650
- this.$refs.es_seek_bar.setLeftIndicatorMargin(indicatorMargin);
4651
- },
4652
- setRightIndicatorMargin(indicatorMargin) {
4653
- this.$refs.es_seek_bar.setRightIndicatorMargin(indicatorMargin);
4654
- },
4655
- setIndicatorPaddingBottom(indicatorPaddingBottom) {
4656
- this.$refs.es_seek_bar.setIndicatorPaddingBottom(indicatorPaddingBottom);
4657
- },
4658
- setLeftIndicatorPaddingBottom(indicatorPaddingBottom) {
4659
- this.$refs.es_seek_bar.setLeftIndicatorPaddingBottom(indicatorPaddingBottom);
4660
- },
4661
- setRightIndicatorPaddingBottom(indicatorPaddingBottom) {
4662
- this.$refs.es_seek_bar.setRightIndicatorPaddingBottom(indicatorPaddingBottom);
4663
- },
4664
- setIndicatorPaddingTop(indicatorPaddingTop) {
4665
- this.$refs.es_seek_bar.setIndicatorPaddingTop(indicatorPaddingTop);
4666
- },
4667
- setLeftIndicatorPaddingTop(indicatorPaddingTop) {
4668
- this.$refs.es_seek_bar.setLeftIndicatorPaddingTop(indicatorPaddingTop);
4669
- },
4670
- setRightIndicatorPaddingTop(indicatorPaddingTop) {
4671
- this.$refs.es_seek_bar.setRightIndicatorPaddingTop(indicatorPaddingTop);
4672
- },
4673
- setIndicatorPaddingLeft(indicatorPaddingLeft) {
4674
- this.$refs.es_seek_bar.setIndicatorPaddingLeft(indicatorPaddingLeft);
4675
- },
4676
- setLeftIndicatorPaddingLeft(indicatorPaddingLeft) {
4677
- this.$refs.es_seek_bar.setLeftIndicatorPaddingLeft(indicatorPaddingLeft);
4678
- },
4679
- setRightIndicatorPaddingLeft(indicatorPaddingLeft) {
4680
- this.$refs.es_seek_bar.setRightIndicatorPaddingLeft(indicatorPaddingLeft);
4681
- },
4682
- setIndicatorPaddingRight(indicatorPaddingRight) {
4683
- this.$refs.es_seek_bar.setIndicatorPaddingRight(indicatorPaddingRight);
4684
- },
4685
- setLeftIndicatorPaddingRight(indicatorPaddingRight) {
4686
- this.$refs.es_seek_bar.setLeftIndicatorPaddingRight(indicatorPaddingRight);
4687
- },
4688
- setRightIndicatorPaddingRight(indicatorPaddingRight) {
4689
- this.$refs.es_seek_bar.setRightIndicatorPaddingRight(indicatorPaddingRight);
4690
- },
4691
- setIndicatorBackgroundColor(indicatorBackgroundColor) {
4692
- this.$refs.es_seek_bar.setIndicatorBackgroundColor(indicatorBackgroundColor);
4693
- },
4694
- setLeftIndicatorBackgroundColor(indicatorBackgroundColor) {
4695
- this.$refs.es_seek_bar.setLeftIndicatorBackgroundColor(indicatorBackgroundColor);
4696
- },
4697
- setRightIndicatorBackgroundColor(indicatorBackgroundColor) {
4698
- this.$refs.es_seek_bar.setRightIndicatorBackgroundColor(indicatorBackgroundColor);
4699
- },
4700
- setIndicatorRadius(indicatorRadius) {
4701
- this.$refs.es_seek_bar.setIndicatorRadius(indicatorRadius);
4702
- },
4703
- setLeftIndicatorRadius(indicatorRadius) {
4704
- this.$refs.es_seek_bar.setLeftIndicatorRadius(indicatorRadius);
4705
- },
4706
- setRightIndicatorRadius(indicatorRadius) {
4707
- this.$refs.es_seek_bar.setRightIndicatorRadius(indicatorRadius);
4708
- },
4709
- setIndicatorTextSize(indicatorTextSize) {
4710
- this.$refs.es_seek_bar.setIndicatorTextSize(indicatorTextSize);
4711
- },
4712
- setLeftIndicatorTextSize(indicatorTextSize) {
4713
- this.$refs.es_seek_bar.setLeftIndicatorTextSize(indicatorTextSize);
4714
- },
4715
- setRightIndicatorTextSize(indicatorTextSize) {
4716
- this.$refs.es_seek_bar.setRightIndicatorTextSize(indicatorTextSize);
4717
- },
4718
- setIndicatorTextColor(indicatorTextColor) {
4719
- this.$refs.es_seek_bar.setIndicatorTextColor(indicatorTextColor);
4720
- },
4721
- setLeftIndicatorTextColor(indicatorTextColor) {
4722
- this.$refs.es_seek_bar.setLeftIndicatorTextColor(indicatorTextColor);
4723
- },
4724
- setRightIndicatorTextColor(indicatorTextColor) {
4725
- this.$refs.es_seek_bar.setRightIndicatorTextColor(indicatorTextColor);
4726
- },
4727
- setIndicatorArrowSize(indicatorArrowSize) {
4728
- this.$refs.es_seek_bar.setIndicatorArrowSize(indicatorArrowSize);
4729
- },
4730
- setLeftIndicatorArrowSize(indicatorArrowSize) {
4731
- this.$refs.es_seek_bar.setLeftIndicatorArrowSize(indicatorArrowSize);
4732
- },
4733
- setRightIndicatorArrowSize(indicatorArrowSize) {
4734
- this.$refs.es_seek_bar.setRightIndicatorArrowSize(indicatorArrowSize);
4735
- },
4736
- setIndicatorDrawable(indicatorDrawable) {
4737
- this.$refs.es_seek_bar.setIndicatorDrawable(indicatorDrawable);
4738
- },
4739
- setLeftIndicatorDrawable(leftIndicatorDrawable) {
4740
- this.$refs.es_seek_bar.setLeftIndicatorDrawable(leftIndicatorDrawable);
4741
- },
4742
- setRightIndicatorDrawable(rightIndicatorDrawable) {
4743
- this.$refs.es_seek_bar.setRightIndicatorDrawable(rightIndicatorDrawable);
4744
- },
4745
- setIndicatorUrl(indicatorUrl) {
4746
- this.$refs.es_seek_bar.setIndicatorUrl(indicatorUrl);
4747
- },
4748
- setLeftIndicatorUrl(leftIndicatorUrl) {
4749
- this.$refs.es_seek_bar.setLeftIndicatorUrl(leftIndicatorUrl);
4750
- },
4751
- setRightIndicatorUrl(rightIndicatorUrl) {
4752
- this.$refs.es_seek_bar.setRightIndicatorUrl(rightIndicatorUrl);
4753
- },
4754
- setThumbWidth(thumbWidth) {
4755
- this.$refs.es_seek_bar.setThumbWidth(thumbWidth);
4756
- },
4757
- setLeftThumbWidth(thumbWidth) {
4758
- this.$refs.es_seek_bar.setLeftThumbWidth(thumbWidth);
4759
- },
4760
- setRightThumbWidth(thumbWidth) {
4761
- this.$refs.es_seek_bar.setRightThumbWidth(thumbWidth);
4762
- },
4763
- setThumbHeight(thumbHeight) {
4764
- this.$refs.es_seek_bar.setThumbHeight(thumbHeight);
4765
- },
4766
- setLeftThumbHeight(thumbHeight) {
4767
- this.$refs.es_seek_bar.setLeftThumbHeight(thumbHeight);
4768
- },
4769
- setRightThumbHeight(thumbHeight) {
4770
- this.$refs.es_seek_bar.setRightThumbHeight(thumbHeight);
4771
- },
4772
- scaleThumb() {
4773
- this.$refs.es_seek_bar.scaleThumb();
4774
- },
4775
- scaleLeftThumb() {
4776
- this.$refs.es_seek_bar.scaleLeftThumb();
4777
- },
4778
- scaleRightThumb() {
4779
- this.$refs.es_seek_bar.scaleRightThumb();
4780
- },
4781
- resetThumb() {
4782
- this.$refs.es_seek_bar.resetThumb();
4783
- },
4784
- resetLeftThumb() {
4785
- this.$refs.es_seek_bar.resetLeftThumb();
4786
- },
4787
- resetRightThumb() {
4788
- this.$refs.es_seek_bar.resetRightThumb();
4789
- },
4790
- setThumbScaleRatio(thumbScaleRatio) {
4791
- this.$refs.es_seek_bar.setThumbScaleRatio(thumbScaleRatio);
4792
- },
4793
- setLeftThumbScaleRatio(thumbScaleRatio) {
4794
- this.$refs.es_seek_bar.setLeftThumbScaleRatio(thumbScaleRatio);
4795
- },
4796
- setRightThumbScaleRatio(thumbScaleRatio) {
4797
- this.$refs.es_seek_bar.setRightThumbScaleRatio(thumbScaleRatio);
4798
- },
4799
- setThumbActivate(activate) {
4800
- this.$refs.es_seek_bar.setThumbActivate(activate);
4801
- },
4802
- setLeftThumbActivate(activate) {
4803
- this.$refs.es_seek_bar.setLeftThumbActivate(activate);
4804
- },
4805
- setRightThumbActivate(activate) {
4806
- this.$refs.es_seek_bar.setRightThumbActivate(activate);
4807
- },
4808
- setThumbDrawable(drawable) {
4809
- this.$refs.es_seek_bar.setThumbDrawable(drawable);
4810
- },
4811
- setLeftThumbDrawable(drawable) {
4812
- this.$refs.es_seek_bar.setLeftThumbDrawable(drawable);
4813
- },
4814
- setRightThumbDrawable(drawable) {
4815
- this.$refs.es_seek_bar.setRightThumbDrawable(drawable);
4816
- },
4817
- setThumbUrl(url) {
4818
- this.$refs.es_seek_bar.setThumbUrl(url);
4819
- },
4820
- setLeftThumbUrl(url) {
4821
- this.$refs.es_seek_bar.setLeftThumbUrl(url);
4822
- },
4823
- setRightThumbUrl(url) {
4824
- this.$refs.es_seek_bar.setRightThumbUrl(url);
4825
- },
4826
- setThumbInactivatedDrawable(drawable) {
4827
- this.$refs.es_seek_bar.setThumbInactivatedDrawable(drawable);
4828
- },
4829
- setLeftThumbInactivatedDrawable(drawable) {
4830
- this.$refs.es_seek_bar.setLeftThumbInactivatedDrawable(drawable);
4831
- },
4832
- setRightThumbInactivatedDrawable(drawable) {
4833
- this.$refs.es_seek_bar.setRightThumbInactivatedDrawable(drawable);
4834
- },
4835
- setThumbInactivatedUrl(url) {
4836
- this.$refs.es_seek_bar.setThumbInactivatedUrl(url);
4837
- },
4838
- setLeftThumbInactivatedUrl(url) {
4839
- this.$refs.es_seek_bar.setLeftThumbInactivatedUrl(url);
4840
- },
4841
- setRightThumbInactivatedUrl(url) {
4842
- this.$refs.es_seek_bar.setRightThumbInactivatedUrl(url);
4843
- },
4844
- setTickMarkMode(tickMarkMode) {
4845
- this.$refs.es_seek_bar.setTickMarkMode(tickMarkMode);
4846
- },
4847
- setTickMarkGravity(tickMarkGravity) {
4848
- this.$refs.es_seek_bar.setTickMarkGravity(tickMarkGravity);
4849
- },
4850
- setTickMarkLayoutGravity(tickMarkLayoutGravity) {
4851
- this.$refs.es_seek_bar.setTickMarkLayoutGravity(tickMarkLayoutGravity);
4852
- },
4853
- setTickMarkTextArray(tickMarkTextArray) {
4854
- this.$refs.es_seek_bar.setTickMarkTextArray(tickMarkTextArray);
4855
- },
4856
- setTickMarkTextMargin(tickMarkTextMargin) {
4857
- this.$refs.es_seek_bar.setTickMarkTextMargin(tickMarkTextMargin);
4858
- },
4859
- setTickMarkTextSize(tickMarkTextSize) {
4860
- this.$refs.es_seek_bar.setTickMarkTextSize(tickMarkTextSize);
4861
- },
4862
- setTickMarkTextColor(tickMarkTextColor) {
4863
- this.$refs.es_seek_bar.setTickMarkTextColor(tickMarkTextColor);
4864
- },
4865
- setTickMarkInRangeTextColor(tickMarkInRangeTextColor) {
4866
- this.$refs.es_seek_bar.setTickMarkInRangeTextColor(tickMarkInRangeTextColor);
4867
- },
4868
- setSteps(steps) {
4869
- this.$refs.es_seek_bar.setSteps(steps);
4870
- },
4871
- setStepsWidth(stepsWidth) {
4872
- this.$refs.es_seek_bar.setStepsWidth(stepsWidth);
4873
- },
4874
- setStepsHeight(stepsHeight) {
4875
- this.$refs.es_seek_bar.setStepsHeight(stepsHeight);
4876
- },
4877
- setStepsRadius(stepsRadius) {
4878
- this.$refs.es_seek_bar.setStepsRadius(stepsRadius);
4879
- },
4880
- setStepsColor(stepsColor) {
4881
- this.$refs.es_seek_bar.setStepsColor(stepsColor);
4882
- },
4883
- setStepsAutoBonding(stepsAutoBonding) {
4884
- this.$refs.es_seek_bar.setStepsAutoBonding(stepsAutoBonding);
4885
- },
4886
- setStepsDrawable(drawableArray) {
4887
- this.$refs.es_seek_bar.setStepsDrawable(drawableArray);
4888
- },
4889
- setStepsUrl(urlArray) {
4890
- this.$refs.es_seek_bar.setStepsUrl(urlArray);
4891
- },
4892
- }
4893
- };
4894
-
4895
- function ESSeekBarViewComponent() {
4896
- //
4897
- Vue.component(ESSeekBar.name, ESSeekBar);
4898
- //
4899
- Vue.registerElement('TVSeekBarViewComponent', {
4900
- component: {
4901
- name: 'TVSeekBarViewComponent',
4902
- processEventData(event, nativeEventName, nativeEventParams) {
4903
- switch (nativeEventName) {
4904
- case 'onFocus':
4905
- event.isFocused = nativeEventParams.isFocused;
4906
- break;
4907
- case 'onSeekBarChange':
4908
- event.fromUser = nativeEventParams.fromUser;
4909
- event.progress = nativeEventParams.progress;
4910
- event.leftProgress = nativeEventParams.leftProgress;
4911
- event.rightProgress = nativeEventParams.rightProgress;
4912
- break;
4913
- }
4914
- return event;
4915
- },
4916
- },
4917
- });
4918
-
4919
- Vue.component('es-seek-bar-view-component', {
4920
-
4921
- methods: {
4922
- invalidateSeekBar() {
4923
- Vue.Native.callUIFunction(this.$refs.seekbar,
4924
- 'invalidateSeekBar', [], (res) => {
4925
- });
4926
- },
4927
- setFocusable(focusable) {
4928
- Vue.Native.callUIFunction(this.$refs.seekbar,
4929
- 'setFocusable', [focusable], (res) => {
4930
- });
4931
- },
4932
- setClickable(clickable) {
4933
- Vue.Native.callUIFunction(this.$refs.seekbar,
4934
- 'setClickable', [clickable], (res) => {
4935
- });
4936
- },
4937
- requestFocus() {
4938
- Vue.Native.callUIFunction(this.$refs.seekbar,
4939
- 'requestFocus', [], (res) => {
4940
- });
4941
- },
4942
- requestLayout() {
4943
- Vue.Native.callUIFunction(this.$refs.seekbar,
4944
- 'requestLayout', [], (res) => {
4945
- });
4946
- },
4947
- invalidate() {
4948
- Vue.Native.callUIFunction(this.$refs.seekbar,
4949
- 'invalidate', [], (res) => {
4950
- });
4951
- },
4952
- setVisible(visible) {
4953
- Vue.Native.callUIFunction(this.$refs.seekbar,
4954
- 'setVisible', [visible], (res) => {
4955
- });
4956
- },
4957
- setLeftSeekBarVisible(visible) {
4958
- Vue.Native.callUIFunction(this.$refs.seekbar,
4959
- 'setLeftSeekBarVisible', [visible], (res) => {
4960
- });
4961
- },
4962
- setRightSeekBarVisible(visible) {
4963
- Vue.Native.callUIFunction(this.$refs.seekbar,
4964
- 'setRightSeekBarVisible', [visible], (res) => {
4965
- });
4966
- },
4967
- setSeekBarMode(mode) {
4968
- Vue.Native.callUIFunction(this.$refs.seekbar,
4969
- 'setSeekBarMode', [mode], (res) => {
4970
- });
4971
- },
4972
- setProgress(progress) {
4973
- Vue.Native.callUIFunction(this.$refs.seekbar,
4974
- 'setProgress', [progress], (res) => {
4975
- });
4976
- },
4977
- setRangeProgress(leftValue, rightValue) {
4978
- Vue.Native.callUIFunction(this.$refs.seekbar,
4979
- 'setProgress', [leftValue, rightValue], (res) => {
4980
- });
4981
- },
4982
- getProgress() {
4983
- Vue.Native.callUIFunction(this.$refs.seekbar,
4984
- 'getProgress', [], (progress) => {
4985
- });
4986
- },
4987
- getLeftProgress() {
4988
- Vue.Native.callUIFunction(this.$refs.seekbar,
4989
- 'getLeftProgress', [], (progress) => {
4990
- });
4991
- },
4992
- getRightProgress() {
4993
- Vue.Native.callUIFunction(this.$refs.seekbar,
4994
- 'getRightProgress', [], (progress) => {
4995
- });
4996
- },
4997
- setRange(min, max, minInterval) {
4998
- Vue.Native.callUIFunction(this.$refs.seekbar,
4999
- 'setRange', [min, max, minInterval], (value) => {
5000
- });
5001
- },
5002
- setGravity(gravity) {
5003
- Vue.Native.callUIFunction(this.$refs.seekbar,
5004
- 'setGravity', [gravity], (value) => {
5005
- });
5006
- },
5007
- setProgressWidth(progressWidth) {
5008
- Vue.Native.callUIFunction(this.$refs.seekbar,
5009
- 'setProgressWidth', [progressWidth], (value) => {
5010
- });
5011
- },
5012
- setProgressHeight(progressHeight) {
5013
- Vue.Native.callUIFunction(this.$refs.seekbar,
5014
- 'setProgressHeight', [progressHeight], (value) => {
5015
- });
5016
- },
5017
- setProgressRadius(progressRadius) {
5018
- Vue.Native.callUIFunction(this.$refs.seekbar,
5019
- 'setProgressRadius', [progressRadius], (value) => {
5020
- });
5021
- },
5022
- setProgressColor(progressColor) {
5023
- Vue.Native.callUIFunction(this.$refs.seekbar,
5024
- 'setProgressColor', [progressColor], (value) => {
5025
- });
5026
- },
5027
- setProgressDefaultColor(defaultProgressColor) {
5028
- Vue.Native.callUIFunction(this.$refs.seekbar,
5029
- 'setProgressDefaultColor', [defaultProgressColor], (value) => {
5030
- });
5031
- },
5032
- setProgressDrawable(progressDrawable) {
5033
- Vue.Native.callUIFunction(this.$refs.seekbar,
5034
- 'setProgressDrawable', [progressDrawable], (value) => {
5035
- });
5036
- },
5037
- setProgressDefaultDrawable(progressDefaultDrawable) {
5038
- Vue.Native.callUIFunction(this.$refs.seekbar,
5039
- 'setProgressDefaultDrawable', [progressDefaultDrawable], (value) => {
5040
- });
5041
- },
5042
- setProgressUrl(progressUrl) {
5043
- Vue.Native.callUIFunction(this.$refs.seekbar,
5044
- 'setProgressUrl', [progressUrl], (value) => {
5045
- });
5046
- },
5047
- setProgressDefaultUrl(progressDefaultUrl) {
5048
- Vue.Native.callUIFunction(this.$refs.seekbar,
5049
- 'setProgressDefaultUrl', [progressDefaultUrl], (value) => {
5050
- });
5051
- },
5052
- showIndicator(showIndicator) {
5053
- Vue.Native.callUIFunction(this.$refs.seekbar,
5054
- 'showIndicator', [showIndicator], (value) => {
5055
- });
5056
- },
5057
- showLeftIndicator(showLeftIndicator) {
5058
- Vue.Native.callUIFunction(this.$refs.seekbar,
5059
- 'showLeftIndicator', [showLeftIndicator], (value) => {
5060
- });
5061
- },
5062
- showRightIndicator(showRightIndicator) {
5063
- Vue.Native.callUIFunction(this.$refs.seekbar,
5064
- 'showRightIndicator', [showRightIndicator], (value) => {
5065
- });
5066
- },
5067
- setIndicatorShowMode(indicatorShowMode) {
5068
- Vue.Native.callUIFunction(this.$refs.seekbar,
5069
- 'setIndicatorShowMode', [indicatorShowMode], (value) => {
5070
- });
5071
- },
5072
- setLeftIndicatorShowMode(indicatorShowMode) {
5073
- Vue.Native.callUIFunction(this.$refs.seekbar,
5074
- 'setLeftIndicatorShowMode', [indicatorShowMode], (value) => {
5075
- });
5076
- },
5077
- setRightIndicatorShowMode(indicatorShowMode) {
5078
- Vue.Native.callUIFunction(this.$refs.seekbar,
5079
- 'setRightIndicatorShowMode', [indicatorShowMode], (value) => {
5080
- });
5081
- },
5082
- setIndicatorWidth(indicatorWidth) {
5083
- Vue.Native.callUIFunction(this.$refs.seekbar,
5084
- 'setIndicatorWidth', [indicatorWidth], (value) => {
5085
- });
5086
- },
5087
- setLeftIndicatorWidth(indicatorWidth) {
5088
- Vue.Native.callUIFunction(this.$refs.seekbar,
5089
- 'setLeftIndicatorWidth', [indicatorWidth], (value) => {
5090
- });
5091
- },
5092
- setRightIndicatorWidth(indicatorWidth) {
5093
- Vue.Native.callUIFunction(this.$refs.seekbar,
5094
- 'setRightIndicatorWidth', [indicatorWidth], (value) => {
5095
- });
5096
- },
5097
-
5098
- setIndicatorHeight(indicatorHeight) {
5099
- Vue.Native.callUIFunction(this.$refs.seekbar,
5100
- 'setIndicatorHeight', [indicatorHeight], (value) => {
5101
- });
5102
- },
5103
- setLeftIndicatorHeight(indicatorHeight) {
5104
- Vue.Native.callUIFunction(this.$refs.seekbar,
5105
- 'setLeftIndicatorHeight', [indicatorHeight], (value) => {
5106
- });
5107
- },
5108
- setRightIndicatorHeight(indicatorHeight) {
5109
- Vue.Native.callUIFunction(this.$refs.seekbar,
5110
- 'setRightIndicatorHeight', [indicatorHeight], (value) => {
5111
- });
5112
- },
5113
- setIndicatorTextDecimalFormat(formatPattern) {
5114
- Vue.Native.callUIFunction(this.$refs.seekbar,
5115
- 'setIndicatorTextDecimalFormat', [formatPattern], (value) => {
5116
- });
5117
- },
5118
- setLeftIndicatorTextDecimalFormat(formatPattern) {
5119
- Vue.Native.callUIFunction(this.$refs.seekbar,
5120
- 'setLeftIndicatorTextDecimalFormat', [formatPattern], (value) => {
5121
- });
5122
- },
5123
- setRightIndicatorTextDecimalFormat(formatPattern) {
5124
- Vue.Native.callUIFunction(this.$refs.seekbar,
5125
- 'setRightIndicatorTextDecimalFormat', [formatPattern], (value) => {
5126
- });
5127
- },
5128
- setIndicatorTextStringFormat(formatPattern) {
5129
- Vue.Native.callUIFunction(this.$refs.seekbar,
5130
- 'setIndicatorTextStringFormat', [formatPattern], (value) => {
5131
- });
5132
- },
5133
- setLeftIndicatorTextStringFormat(formatPattern) {
5134
- Vue.Native.callUIFunction(this.$refs.seekbar,
5135
- 'setLeftIndicatorTextStringFormat', [formatPattern], (value) => {
5136
- });
5137
- },
5138
- setRightIndicatorTextStringFormat(formatPattern) {
5139
- Vue.Native.callUIFunction(this.$refs.seekbar,
5140
- 'setRightIndicatorTextStringFormat', [formatPattern], (value) => {
5141
- });
5142
- },
5143
- setIndicatorMargin(indicatorMargin) {
5144
- Vue.Native.callUIFunction(this.$refs.seekbar,
5145
- 'setIndicatorMargin', [indicatorMargin], (value) => {
5146
- });
5147
- },
5148
- setLeftIndicatorMargin(indicatorMargin) {
5149
- Vue.Native.callUIFunction(this.$refs.seekbar,
5150
- 'setLeftIndicatorMargin', [indicatorMargin], (value) => {
5151
- });
5152
- },
5153
- setRightIndicatorMargin(indicatorMargin) {
5154
- Vue.Native.callUIFunction(this.$refs.seekbar,
5155
- 'setRightIndicatorMargin', [indicatorMargin], (value) => {
5156
- });
5157
- },
5158
- setIndicatorPaddingBottom(indicatorPaddingBottom) {
5159
- Vue.Native.callUIFunction(this.$refs.seekbar,
5160
- 'setIndicatorPaddingBottom', [indicatorPaddingBottom], (value) => {
5161
- });
5162
- },
5163
- setLeftIndicatorPaddingBottom(indicatorPaddingBottom) {
5164
- Vue.Native.callUIFunction(this.$refs.seekbar,
5165
- 'setLeftIndicatorPaddingBottom', [indicatorPaddingBottom], (value) => {
5166
- });
5167
- },
5168
- setRightIndicatorPaddingBottom(indicatorPaddingBottom) {
5169
- Vue.Native.callUIFunction(this.$refs.seekbar,
5170
- 'setRightIndicatorPaddingBottom', [indicatorPaddingBottom], (value) => {
5171
- });
5172
- },
5173
- setIndicatorPaddingTop(indicatorPaddingTop) {
5174
- Vue.Native.callUIFunction(this.$refs.seekbar,
5175
- 'setIndicatorPaddingTop', [indicatorPaddingTop], (value) => {
5176
- });
5177
- },
5178
- setLeftIndicatorPaddingTop(indicatorPaddingTop) {
5179
- Vue.Native.callUIFunction(this.$refs.seekbar,
5180
- 'setLeftIndicatorPaddingTop', [indicatorPaddingTop], (value) => {
5181
- });
5182
- },
5183
- setRightIndicatorPaddingTop(indicatorPaddingTop) {
5184
- Vue.Native.callUIFunction(this.$refs.seekbar,
5185
- 'setRightIndicatorPaddingTop', [indicatorPaddingTop], (value) => {
5186
- });
5187
- },
5188
-
5189
- setIndicatorPaddingLeft(indicatorPaddingLeft) {
5190
- Vue.Native.callUIFunction(this.$refs.seekbar,
5191
- 'setIndicatorPaddingLeft', [indicatorPaddingLeft], (value) => {
5192
- });
5193
- },
5194
- setLeftIndicatorPaddingLeft(indicatorPaddingLeft) {
5195
- Vue.Native.callUIFunction(this.$refs.seekbar,
5196
- 'setLeftIndicatorPaddingLeft', [indicatorPaddingLeft], (value) => {
5197
- });
5198
- },
5199
- setRightIndicatorPaddingLeft(indicatorPaddingLeft) {
5200
- Vue.Native.callUIFunction(this.$refs.seekbar,
5201
- 'setRightIndicatorPaddingLeft', [indicatorPaddingLeft], (value) => {
5202
- });
5203
- },
5204
- setIndicatorPaddingRight(indicatorPaddingRight) {
5205
- Vue.Native.callUIFunction(this.$refs.seekbar,
5206
- 'setIndicatorPaddingRight', [indicatorPaddingRight], (value) => {
5207
- });
5208
- },
5209
- setLeftIndicatorPaddingRight(indicatorPaddingRight) {
5210
- Vue.Native.callUIFunction(this.$refs.seekbar,
5211
- 'setLeftIndicatorPaddingRight', [indicatorPaddingRight], (value) => {
5212
- });
5213
- },
5214
- setRightIndicatorPaddingRight(indicatorPaddingRight) {
5215
- Vue.Native.callUIFunction(this.$refs.seekbar,
5216
- 'setRightIndicatorPaddingRight', [indicatorPaddingRight], (value) => {
5217
- });
5218
- },
5219
- setIndicatorBackgroundColor(indicatorBackgroundColor) {
5220
- Vue.Native.callUIFunction(this.$refs.seekbar,
5221
- 'setIndicatorBackgroundColor', [indicatorBackgroundColor], (value) => {
5222
- });
5223
- },
5224
- setLeftIndicatorBackgroundColor(indicatorBackgroundColor) {
5225
- Vue.Native.callUIFunction(this.$refs.seekbar,
5226
- 'setLeftIndicatorBackgroundColor', [indicatorBackgroundColor], (value) => {
5227
- });
5228
- },
5229
- setRightIndicatorBackgroundColor(indicatorBackgroundColor) {
5230
- Vue.Native.callUIFunction(this.$refs.seekbar,
5231
- 'setRightIndicatorBackgroundColor', [indicatorBackgroundColor], (value) => {
5232
- });
5233
- },
5234
- setIndicatorRadius(indicatorRadius) {
5235
- Vue.Native.callUIFunction(this.$refs.seekbar,
5236
- 'setIndicatorRadius', [indicatorRadius], (value) => {
5237
- });
5238
- },
5239
- setLeftIndicatorRadius(indicatorRadius) {
5240
- Vue.Native.callUIFunction(this.$refs.seekbar,
5241
- 'setLeftIndicatorRadius', [indicatorRadius], (value) => {
5242
- });
5243
- },
5244
- setRightIndicatorRadius(indicatorRadius) {
5245
- Vue.Native.callUIFunction(this.$refs.seekbar,
5246
- 'setRightIndicatorRadius', [indicatorRadius], (value) => {
5247
- });
5248
- },
5249
- setIndicatorTextSize(indicatorTextSize) {
5250
- Vue.Native.callUIFunction(this.$refs.seekbar,
5251
- 'setIndicatorTextSize', [indicatorTextSize], (value) => {
5252
- });
5253
- },
5254
- setLeftIndicatorTextSize(indicatorTextSize) {
5255
- Vue.Native.callUIFunction(this.$refs.seekbar,
5256
- 'setLeftIndicatorTextSize', [indicatorTextSize], (value) => {
5257
- });
5258
- },
5259
- setRightIndicatorTextSize(indicatorTextSize) {
5260
- Vue.Native.callUIFunction(this.$refs.seekbar,
5261
- 'setRightIndicatorTextSize', [indicatorTextSize], (value) => {
5262
- });
5263
- },
5264
- setIndicatorTextColor(indicatorTextColor) {
5265
- Vue.Native.callUIFunction(this.$refs.seekbar,
5266
- 'setIndicatorTextColor', [indicatorTextColor], (value) => {
5267
- });
5268
- },
5269
- setLeftIndicatorTextColor(indicatorTextColor) {
5270
- Vue.Native.callUIFunction(this.$refs.seekbar,
5271
- 'setLeftIndicatorTextColor', [indicatorTextColor], (value) => {
5272
- });
5273
- },
5274
- setRightIndicatorTextColor(indicatorTextColor) {
5275
- Vue.Native.callUIFunction(this.$refs.seekbar,
5276
- 'setRightIndicatorTextColor', [indicatorTextColor], (value) => {
5277
- });
5278
- },
5279
- setIndicatorArrowSize(indicatorArrowSize) {
5280
- Vue.Native.callUIFunction(this.$refs.seekbar,
5281
- 'setIndicatorArrowSize', [indicatorArrowSize], (value) => {
5282
- });
5283
- },
5284
- setLeftIndicatorArrowSize(indicatorArrowSize) {
5285
- Vue.Native.callUIFunction(this.$refs.seekbar,
5286
- 'setLeftIndicatorArrowSize', [indicatorArrowSize], (value) => {
5287
- });
5288
- },
5289
- setRightIndicatorArrowSize(indicatorArrowSize) {
5290
- Vue.Native.callUIFunction(this.$refs.seekbar,
5291
- 'setRightIndicatorArrowSize', [indicatorArrowSize], (value) => {
5292
- });
5293
- },
5294
- setIndicatorDrawable(indicatorDrawable) {
5295
- Vue.Native.callUIFunction(this.$refs.seekbar,
5296
- 'setIndicatorDrawable', [indicatorDrawable], (value) => {
5297
- });
5298
- },
5299
- setLeftIndicatorDrawable(leftIndicatorDrawable) {
5300
- Vue.Native.callUIFunction(this.$refs.seekbar,
5301
- 'setLeftIndicatorDrawable', [leftIndicatorDrawable], (value) => {
5302
- });
5303
- },
5304
- setRightIndicatorDrawable(rightIndicatorDrawable) {
5305
- Vue.Native.callUIFunction(this.$refs.seekbar,
5306
- 'setRightIndicatorDrawable', [rightIndicatorDrawable], (value) => {
5307
- });
5308
- },
5309
- setIndicatorUrl(indicatorUrl) {
5310
- Vue.Native.callUIFunction(this.$refs.seekbar,
5311
- 'setIndicatorUrl', [indicatorUrl], (value) => {
5312
- });
5313
- },
5314
- setLeftIndicatorUrl(leftIndicatorUrl) {
5315
- Vue.Native.callUIFunction(this.$refs.seekbar,
5316
- 'setLeftIndicatorUrl', [leftIndicatorUrl], (value) => {
5317
- });
5318
- },
5319
- setRightIndicatorUrl(rightIndicatorUrl) {
5320
- Vue.Native.callUIFunction(this.$refs.seekbar,
5321
- 'setRightIndicatorUrl', [rightIndicatorUrl], (value) => {
5322
- });
5323
- },
5324
- setThumbWidth(thumbWidth) {
5325
- Vue.Native.callUIFunction(this.$refs.seekbar,
5326
- 'setThumbWidth', [thumbWidth], (value) => {
5327
- });
5328
- },
5329
- setLeftThumbWidth(thumbWidth) {
5330
- Vue.Native.callUIFunction(this.$refs.seekbar,
5331
- 'setLeftThumbWidth', [thumbWidth], (value) => {
5332
- });
5333
- },
5334
- setRightThumbWidth(thumbWidth) {
5335
- Vue.Native.callUIFunction(this.$refs.seekbar,
5336
- 'setRightThumbWidth', [thumbWidth], (value) => {
5337
- });
5338
- },
5339
- setThumbHeight(thumbHeight) {
5340
- Vue.Native.callUIFunction(this.$refs.seekbar,
5341
- 'setThumbHeight', [thumbHeight], (value) => {
5342
- });
5343
- },
5344
- setLeftThumbHeight(thumbHeight) {
5345
- Vue.Native.callUIFunction(this.$refs.seekbar,
5346
- 'setLeftThumbHeight', [thumbHeight], (value) => {
5347
- });
5348
- },
5349
- setRightThumbHeight(thumbHeight) {
5350
- Vue.Native.callUIFunction(this.$refs.seekbar,
5351
- 'setRightThumbHeight', [thumbHeight], (value) => {
5352
- });
5353
- },
5354
- scaleThumb() {
5355
- Vue.Native.callUIFunction(this.$refs.seekbar,
5356
- 'scaleThumb', [], (value) => {
5357
- });
5358
- },
5359
- scaleLeftThumb() {
5360
- Vue.Native.callUIFunction(this.$refs.seekbar,
5361
- 'scaleLeftThumb', [], (value) => {
5362
- });
5363
- },
5364
- scaleRightThumb() {
5365
- Vue.Native.callUIFunction(this.$refs.seekbar,
5366
- 'scaleLeftThumb', [], (value) => {
5367
- });
5368
- },
5369
- resetThumb() {
5370
- Vue.Native.callUIFunction(this.$refs.seekbar,
5371
- 'resetThumb', [], (value) => {
5372
- });
5373
- },
5374
- resetLeftThumb() {
5375
- Vue.Native.callUIFunction(this.$refs.seekbar,
5376
- 'resetLeftThumb', [], (value) => {
5377
- });
5378
- },
5379
- resetRightThumb() {
5380
- Vue.Native.callUIFunction(this.$refs.seekbar,
5381
- 'resetRightThumb', [], (value) => {
5382
- });
5383
- },
5384
- setThumbScaleRatio(thumbScaleRatio) {
5385
- Vue.Native.callUIFunction(this.$refs.seekbar,
5386
- 'setThumbScaleRatio', [thumbScaleRatio], (value) => {
5387
- });
5388
- },
5389
- setLeftThumbScaleRatio(thumbScaleRatio) {
5390
- Vue.Native.callUIFunction(this.$refs.seekbar,
5391
- 'setLeftThumbScaleRatio', [thumbScaleRatio], (value) => {
5392
- });
5393
- },
5394
- setRightThumbScaleRatio(thumbScaleRatio) {
5395
- Vue.Native.callUIFunction(this.$refs.seekbar,
5396
- 'setRightThumbScaleRatio', [thumbScaleRatio], (value) => {
5397
- });
5398
- },
5399
- setThumbActivate(activate) {
5400
- Vue.Native.callUIFunction(this.$refs.seekbar,
5401
- 'setThumbActivate', [activate], (value) => {
5402
- });
5403
- },
5404
- setLeftThumbActivate(activate) {
5405
- Vue.Native.callUIFunction(this.$refs.seekbar,
5406
- 'setLeftThumbActivate', [activate], (value) => {
5407
- });
5408
- },
5409
- setRightThumbActivate(activate) {
5410
- Vue.Native.callUIFunction(this.$refs.seekbar,
5411
- 'setRightThumbActivate', [activate], (value) => {
5412
- });
5413
- },
5414
- setThumbDrawable(drawable) {
5415
- Vue.Native.callUIFunction(this.$refs.seekbar,
5416
- 'setThumbDrawable', [drawable], (value) => {
5417
- });
5418
- },
5419
- setLeftThumbDrawable(drawable) {
5420
- Vue.Native.callUIFunction(this.$refs.seekbar,
5421
- 'setLeftThumbDrawable', [drawable], (value) => {
5422
- });
5423
- },
5424
- setRightThumbDrawable(drawable) {
5425
- Vue.Native.callUIFunction(this.$refs.seekbar,
5426
- 'setRightThumbDrawable', [drawable], (value) => {
5427
- });
5428
- },
5429
- setThumbUrl(url) {
5430
- Vue.Native.callUIFunction(this.$refs.seekbar,
5431
- 'setThumbUrl', [url], (value) => {
5432
- });
5433
- },
5434
- setLeftThumbUrl(url) {
5435
- Vue.Native.callUIFunction(this.$refs.seekbar,
5436
- 'setLeftThumbUrl', [url], (value) => {
5437
- });
5438
- },
5439
- setRightThumbUrl(url) {
5440
- Vue.Native.callUIFunction(this.$refs.seekbar,
5441
- 'setRightThumbUrl', [url], (value) => {
5442
- });
5443
- },
5444
- setThumbInactivatedDrawable(drawable) {
5445
- Vue.Native.callUIFunction(this.$refs.seekbar,
5446
- 'setThumbInactivatedDrawable', [drawable], (value) => {
5447
- });
5448
- },
5449
- setLeftThumbInactivatedDrawable(drawable) {
5450
- Vue.Native.callUIFunction(this.$refs.seekbar,
5451
- 'setLeftThumbInactivatedDrawable', [drawable], (value) => {
5452
- });
5453
- },
5454
- setRightThumbInactivatedDrawable(drawable) {
5455
- Vue.Native.callUIFunction(this.$refs.seekbar,
5456
- 'setRightThumbInactivatedDrawable', [drawable], (value) => {
5457
- });
5458
- },
5459
- setThumbInactivatedUrl(url) {
5460
- Vue.Native.callUIFunction(this.$refs.seekbar,
5461
- 'setThumbInactivatedUrl', [url], (value) => {
5462
- });
5463
- },
5464
- setLeftThumbInactivatedUrl(url) {
5465
- Vue.Native.callUIFunction(this.$refs.seekbar,
5466
- 'setLeftThumbInactivatedUrl', [url], (value) => {
5467
- });
5468
- },
5469
- setRightThumbInactivatedUrl(url) {
5470
- Vue.Native.callUIFunction(this.$refs.seekbar,
5471
- 'setRightThumbInactivatedUrl', [url], (value) => {
5472
- });
5473
- },
5474
- setTickMarkMode(tickMarkMode) {
5475
- Vue.Native.callUIFunction(this.$refs.seekbar,
5476
- 'setTickMarkMode', [tickMarkMode], (value) => {
5477
- });
5478
- },
5479
- setTickMarkGravity(tickMarkGravity) {
5480
- Vue.Native.callUIFunction(this.$refs.seekbar,
5481
- 'setTickMarkGravity', [tickMarkGravity], (value) => {
5482
- });
5483
- },
5484
- setTickMarkLayoutGravity(tickMarkLayoutGravity) {
5485
- Vue.Native.callUIFunction(this.$refs.seekbar,
5486
- 'setTickMarkLayoutGravity', [tickMarkLayoutGravity], (value) => {
5487
- });
5488
- },
5489
- setTickMarkTextArray(tickMarkTextArray) {
5490
- Vue.Native.callUIFunction(this.$refs.seekbar,
5491
- 'setTickMarkTextArray', [tickMarkTextArray], (value) => {
5492
- });
5493
- },
5494
- setTickMarkTextMargin(tickMarkTextMargin) {
5495
- Vue.Native.callUIFunction(this.$refs.seekbar,
5496
- 'setTickMarkTextMargin', [tickMarkTextMargin], (value) => {
5497
- });
5498
- },
5499
- setTickMarkTextSize(tickMarkTextSize) {
5500
- Vue.Native.callUIFunction(this.$refs.seekbar,
5501
- 'setTickMarkTextSize', [tickMarkTextSize], (value) => {
5502
- });
5503
- },
5504
- setTickMarkTextColor(tickMarkTextColor) {
5505
- Vue.Native.callUIFunction(this.$refs.seekbar,
5506
- 'setTickMarkTextColor', [tickMarkTextColor], (value) => {
5507
- });
5508
- },
5509
- setTickMarkInRangeTextColor(tickMarkInRangeTextColor) {
5510
- Vue.Native.callUIFunction(this.$refs.seekbar,
5511
- 'setTickMarkInRangeTextColor', [tickMarkInRangeTextColor], (value) => {
5512
- });
5513
- },
5514
- setSteps(steps) {
5515
- Vue.Native.callUIFunction(this.$refs.seekbar,
5516
- 'setSteps', [steps], (value) => {
5517
- });
5518
- },
5519
- setStepsWidth(stepsWidth) {
5520
- Vue.Native.callUIFunction(this.$refs.seekbar,
5521
- 'setStepsWidth', [stepsWidth], (value) => {
5522
- });
5523
- },
5524
- setStepsHeight(stepsHeight) {
5525
- Vue.Native.callUIFunction(this.$refs.seekbar,
5526
- 'setStepsHeight', [stepsHeight], (value) => {
5527
- });
5528
- },
5529
- setStepsRadius(stepsRadius) {
5530
- Vue.Native.callUIFunction(this.$refs.seekbar,
5531
- 'setStepsRadius', [stepsRadius], (value) => {
5532
- });
5533
- },
5534
- setStepsColor(stepsColor) {
5535
- Vue.Native.callUIFunction(this.$refs.seekbar,
5536
- 'setStepsColor', [stepsColor], (value) => {
5537
- });
5538
- },
5539
- setStepsAutoBonding(stepsAutoBonding) {
5540
- Vue.Native.callUIFunction(this.$refs.seekbar,
5541
- 'setStepsAutoBonding', [stepsAutoBonding], (value) => {
5542
- });
5543
- },
5544
- setStepsDrawable(drawableArray) {
5545
- Vue.Native.callUIFunction(this.$refs.seekbar,
5546
- 'setStepsDrawable', [drawableArray], (value) => {
5547
- });
5548
- },
5549
- setStepsUrl(urlArray) {
5550
- Vue.Native.callUIFunction(this.$refs.seekbar,
5551
- 'setStepsUrl', [urlArray], (value) => {
5552
- });
5553
- },
5554
- setMaxProgress(progress) {
5555
- Vue.Native.callUIFunction(this.$refs.seekbar,
5556
- 'setMaxProgress', [progress], (res) => {
5557
- });
5558
- },
5559
- setSecondProgress(progress) {
5560
- Vue.Native.callUIFunction(this.$refs.seekbar,
5561
- 'setSecondProgress', [progress], (res) => {
5562
- });
5563
- },
5564
- show(value) {
5565
- Vue.Native.callUIFunction(this.$refs.seekbar,
5566
- 'show', [value], (res) => {
5567
- });
5568
- },
5569
- onFocusChange(evt) {
5570
- this.$emit('focus', evt);
5571
- },
5572
- onSeekBarChange(evt) {
5573
- this.$emit('seek-change', evt);
5574
- },
5575
-
5576
- },
5577
-
5578
- render(h) {
5579
- const on = getEventRedirector.call(this, [
5580
- ['focus', 'focusChange'],
5581
- ['seek-change', 'seekBarChange'],
5582
- ]);
5583
- return h('TVSeekBarViewComponent',
5584
- {
5585
- on,
5586
- ref: 'seekbar',
5587
- }, this.$slots.default);
5588
- },
5589
- });
5590
- }
5591
-
5592
- var ESProgressBar = {
5593
- render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('es-progress-bar-view-component',{ref:"es_progress_bar",attrs:{"maxProgress":_vm.maxProgress,"progress":_vm.progress,"secondProgress":_vm.secondaryProgress,"backgroundColor":_vm.backgroundColor,"secondColor":_vm.secondaryColor,"cornerRadius":_vm.cornerRadius,"color":_vm.primaryColor}})},
5594
- staticRenderFns: [],
5595
- name: "ProgressBar",
5596
- props: {
5597
- maxProgress: {
5598
- type: Number,
5599
- default: 0
5600
- },
5601
- progress: {
5602
- type: Number,
5603
- default: 0
5604
- },
5605
- secondaryProgress: {
5606
- type: Number,
5607
- default: 0
5608
- },
5609
- primaryColor: {
5610
- type: Object,
5611
- default: {}
5612
- },
5613
- backgroundColor: {
5614
- type: String,
5615
- default: '#00000000'
5616
- },
5617
- secondaryColor: {
5618
- type: String,
5619
- default: '#00000000'
5620
- },
5621
- cornerRadius: {
5622
- type: Number,
5623
- default: 0
5624
- },
5625
- },
5626
- methods: {
5627
- setMaxProgress(progress) {
5628
- this.$refs.es_progress_bar.setMaxProgress(progress);
5629
- },
5630
- setProgress(progress) {
5631
- this.$refs.es_progress_bar.setProgress(progress);
5632
- },
5633
- setSecondProgress(progress) {
5634
- this.$refs.es_progress_bar.setSecondProgress(progress);
5635
- },
5636
- show(value) {
5637
- this.$refs.es_progress_bar.show(value);
5638
- },
5639
- //------------------------------------------------------------
5640
- //----------------------------------------------------------
5641
- invalidateSeekBar() {
5642
- this.$refs.es_progress_bar.invalidateSeekBar();
5643
- },
5644
- setFocusable(focusable) {
5645
- this.$refs.es_progress_bar.setFocusable(focusable);
5646
- },
5647
- setClickable(clickable) {
5648
- this.$refs.es_progress_bar.setClickable(clickable);
5649
- },
5650
- requestFocus() {
5651
- this.$refs.es_progress_bar.requestFocus();
5652
- },
5653
- requestLayout() {
5654
- this.$refs.es_progress_bar.requestLayout();
5655
- },
5656
- invalidate() {
5657
- this.$refs.es_progress_bar.invalidate();
5658
- },
5659
- setVisible(visible) {
5660
- this.$refs.es_progress_bar.setVisible(visible);
5661
- },
5662
- setLeftSeekBarVisible(visible) {
5663
- this.$refs.es_progress_bar.setLeftSeekBarVisible(visible);
5664
- },
5665
- setRightSeekBarVisible(visible) {
5666
- this.$refs.es_progress_bar.setRightSeekBarVisible(visible);
5667
- },
5668
- setSeekBarMode(mode) {
5669
- this.$refs.es_progress_bar.setSeekBarMode(mode);
5670
- },
5671
- setRangeProgress(leftValue, rightValue) {
5672
- this.$refs.es_progress_bar.setRangeProgress(leftValue, rightValue);
5673
- },
5674
- getProgress() {
5675
- this.$refs.es_progress_bar.getProgress();
5676
- },
5677
- getLeftProgress() {
5678
- this.$refs.es_progress_bar.getLeftProgress();
5679
- },
5680
- getRightProgress() {
5681
- this.$refs.es_progress_bar.getRightProgress();
5682
- },
5683
- setRange(min, max, minInterval) {
5684
- this.$refs.es_progress_bar.setRange(min, max, minInterval);
5685
- },
5686
- setGravity(gravity) {
5687
- this.$refs.es_progress_bar.setGravity(gravity);
5688
- },
5689
- setProgressWidth(progressWidth) {
5690
- this.$refs.es_progress_bar.setProgressWidth(progressWidth);
5691
- },
5692
- setProgressHeight(progressHeight) {
5693
- this.$refs.es_progress_bar.setProgressHeight(progressHeight);
5694
- },
5695
- setProgressRadius(progressRadius) {
5696
- this.$refs.es_progress_bar.setProgressRadius(progressRadius);
5697
- },
5698
- setProgressColor(progressColor) {
5699
- this.$refs.es_progress_bar.setProgressColor(progressColor);
5700
- },
5701
- setProgressDefaultColor(defaultProgressColor) {
5702
- this.$refs.es_progress_bar.setProgressDefaultColor(defaultProgressColor);
5703
- },
5704
- setProgressDrawable(progressDrawable) {
5705
- this.$refs.es_progress_bar.setProgressDrawable(progressDrawable);
5706
- },
5707
- setProgressDefaultDrawable(progressDefaultDrawable) {
5708
- this.$refs.es_progress_bar.setProgressDefaultDrawable(progressDefaultDrawable);
5709
- },
5710
- setProgressUrl(progressUrl) {
5711
- this.$refs.es_progress_bar.setProgressUrl(progressUrl);
5712
- },
5713
- setProgressDefaultUrl(progressDefaultUrl) {
5714
- this.$refs.es_progress_bar.setProgressDefaultUrl(progressDefaultUrl);
5715
- },
5716
- showIndicator(showIndicator) {
5717
- this.$refs.es_progress_bar.showIndicator(showIndicator);
5718
- },
5719
- showLeftIndicator(showLeftIndicator) {
5720
- this.$refs.es_progress_bar.showLeftIndicator(showLeftIndicator);
5721
- },
5722
- showRightIndicator(showRightIndicator) {
5723
- this.$refs.es_progress_bar.showRightIndicator(showRightIndicator);
5724
- },
5725
- setIndicatorShowMode(indicatorShowMode) {
5726
- this.$refs.es_progress_bar.setIndicatorShowMode(indicatorShowMode);
5727
- },
5728
- setLeftIndicatorShowMode(indicatorShowMode) {
5729
- this.$refs.es_progress_bar.setLeftIndicatorShowMode(indicatorShowMode);
5730
- },
5731
- setRightIndicatorShowMode(indicatorShowMode) {
5732
- this.$refs.es_progress_bar.setRightIndicatorShowMode(indicatorShowMode);
5733
- },
5734
- setIndicatorWidth(indicatorWidth) {
5735
- this.$refs.es_progress_bar.setIndicatorWidth(indicatorWidth);
5736
- },
5737
- setLeftIndicatorWidth(indicatorWidth) {
5738
- this.$refs.es_progress_bar.setLeftIndicatorWidth(indicatorWidth);
5739
- },
5740
- setRightIndicatorWidth(indicatorWidth) {
5741
- this.$refs.es_progress_bar.setRightIndicatorWidth(indicatorWidth);
5742
- },
5743
- setIndicatorHeight(indicatorHeight) {
5744
- this.$refs.es_progress_bar.setIndicatorHeight(indicatorHeight);
5745
- },
5746
- setLeftIndicatorHeight(indicatorHeight) {
5747
- this.$refs.es_progress_bar.setLeftIndicatorHeight(indicatorHeight);
5748
- },
5749
- setRightIndicatorHeight(indicatorHeight) {
5750
- this.$refs.es_progress_bar.setRightIndicatorHeight(indicatorHeight);
5751
- },
5752
- setIndicatorTextDecimalFormat(formatPattern) {
5753
- this.$refs.es_progress_bar.setIndicatorTextDecimalFormat(formatPattern);
5754
- },
5755
- setLeftIndicatorTextDecimalFormat(formatPattern) {
5756
- this.$refs.es_progress_bar.setLeftIndicatorTextDecimalFormat(formatPattern);
5757
- },
5758
- setRightIndicatorTextDecimalFormat(formatPattern) {
5759
- this.$refs.es_progress_bar.setRightIndicatorTextDecimalFormat(formatPattern);
5760
- },
5761
- setIndicatorTextStringFormat(formatPattern) {
5762
- this.$refs.es_progress_bar.setIndicatorTextStringFormat(formatPattern);
5763
- },
5764
- setLeftIndicatorTextStringFormat(formatPattern) {
5765
- this.$refs.es_progress_bar.setLeftIndicatorTextStringFormat(formatPattern);
5766
- },
5767
- setRightIndicatorTextStringFormat(formatPattern) {
5768
- this.$refs.es_progress_bar.setRightIndicatorTextStringFormat(formatPattern);
5769
- },
5770
- setIndicatorMargin(indicatorMargin) {
5771
- this.$refs.es_progress_bar.setIndicatorMargin(indicatorMargin);
5772
- },
5773
- setLeftIndicatorMargin(indicatorMargin) {
5774
- this.$refs.es_progress_bar.setLeftIndicatorMargin(indicatorMargin);
5775
- },
5776
- setRightIndicatorMargin(indicatorMargin) {
5777
- this.$refs.es_progress_bar.setRightIndicatorMargin(indicatorMargin);
5778
- },
5779
- setIndicatorPaddingBottom(indicatorPaddingBottom) {
5780
- this.$refs.es_progress_bar.setIndicatorPaddingBottom(indicatorPaddingBottom);
5781
- },
5782
- setLeftIndicatorPaddingBottom(indicatorPaddingBottom) {
5783
- this.$refs.es_progress_bar.setLeftIndicatorPaddingBottom(indicatorPaddingBottom);
5784
- },
5785
- setRightIndicatorPaddingBottom(indicatorPaddingBottom) {
5786
- this.$refs.es_progress_bar.setRightIndicatorPaddingBottom(indicatorPaddingBottom);
5787
- },
5788
- setIndicatorPaddingTop(indicatorPaddingTop) {
5789
- this.$refs.es_progress_bar.setIndicatorPaddingTop(indicatorPaddingTop);
5790
- },
5791
- setLeftIndicatorPaddingTop(indicatorPaddingTop) {
5792
- this.$refs.es_progress_bar.setLeftIndicatorPaddingTop(indicatorPaddingTop);
5793
- },
5794
- setRightIndicatorPaddingTop(indicatorPaddingTop) {
5795
- this.$refs.es_progress_bar.setRightIndicatorPaddingTop(indicatorPaddingTop);
5796
- },
5797
- setIndicatorPaddingLeft(indicatorPaddingLeft) {
5798
- this.$refs.es_progress_bar.setIndicatorPaddingLeft(indicatorPaddingLeft);
5799
- },
5800
- setLeftIndicatorPaddingLeft(indicatorPaddingLeft) {
5801
- this.$refs.es_progress_bar.setLeftIndicatorPaddingLeft(indicatorPaddingLeft);
5802
- },
5803
- setRightIndicatorPaddingLeft(indicatorPaddingLeft) {
5804
- this.$refs.es_progress_bar.setRightIndicatorPaddingLeft(indicatorPaddingLeft);
5805
- },
5806
- setIndicatorPaddingRight(indicatorPaddingRight) {
5807
- this.$refs.es_progress_bar.setIndicatorPaddingRight(indicatorPaddingRight);
5808
- },
5809
- setLeftIndicatorPaddingRight(indicatorPaddingRight) {
5810
- this.$refs.es_progress_bar.setLeftIndicatorPaddingRight(indicatorPaddingRight);
5811
- },
5812
- setRightIndicatorPaddingRight(indicatorPaddingRight) {
5813
- this.$refs.es_progress_bar.setRightIndicatorPaddingRight(indicatorPaddingRight);
5814
- },
5815
- setIndicatorBackgroundColor(indicatorBackgroundColor) {
5816
- this.$refs.es_progress_bar.setIndicatorBackgroundColor(indicatorBackgroundColor);
5817
- },
5818
- setLeftIndicatorBackgroundColor(indicatorBackgroundColor) {
5819
- this.$refs.es_progress_bar.setLeftIndicatorBackgroundColor(indicatorBackgroundColor);
5820
- },
5821
- setRightIndicatorBackgroundColor(indicatorBackgroundColor) {
5822
- this.$refs.es_progress_bar.setRightIndicatorBackgroundColor(indicatorBackgroundColor);
5823
- },
5824
- setIndicatorRadius(indicatorRadius) {
5825
- this.$refs.es_progress_bar.setIndicatorRadius(indicatorRadius);
5826
- },
5827
- setLeftIndicatorRadius(indicatorRadius) {
5828
- this.$refs.es_progress_bar.setLeftIndicatorRadius(indicatorRadius);
5829
- },
5830
- setRightIndicatorRadius(indicatorRadius) {
5831
- this.$refs.es_progress_bar.setRightIndicatorRadius(indicatorRadius);
5832
- },
5833
- setIndicatorTextSize(indicatorTextSize) {
5834
- this.$refs.es_progress_bar.setIndicatorTextSize(indicatorTextSize);
5835
- },
5836
- setLeftIndicatorTextSize(indicatorTextSize) {
5837
- this.$refs.es_progress_bar.setLeftIndicatorTextSize(indicatorTextSize);
5838
- },
5839
- setRightIndicatorTextSize(indicatorTextSize) {
5840
- this.$refs.es_progress_bar.setRightIndicatorTextSize(indicatorTextSize);
5841
- },
5842
- setIndicatorTextColor(indicatorTextColor) {
5843
- this.$refs.es_progress_bar.setIndicatorTextColor(indicatorTextColor);
5844
- },
5845
- setLeftIndicatorTextColor(indicatorTextColor) {
5846
- this.$refs.es_progress_bar.setLeftIndicatorTextColor(indicatorTextColor);
5847
- },
5848
- setRightIndicatorTextColor(indicatorTextColor) {
5849
- this.$refs.es_progress_bar.setRightIndicatorTextColor(indicatorTextColor);
5850
- },
5851
- setIndicatorArrowSize(indicatorArrowSize) {
5852
- this.$refs.es_progress_bar.setIndicatorArrowSize(indicatorArrowSize);
5853
- },
5854
- setLeftIndicatorArrowSize(indicatorArrowSize) {
5855
- this.$refs.es_progress_bar.setLeftIndicatorArrowSize(indicatorArrowSize);
5856
- },
5857
- setRightIndicatorArrowSize(indicatorArrowSize) {
5858
- this.$refs.es_progress_bar.setRightIndicatorArrowSize(indicatorArrowSize);
5859
- },
5860
- setIndicatorDrawable(indicatorDrawable) {
5861
- this.$refs.es_progress_bar.setIndicatorDrawable(indicatorDrawable);
5862
- },
5863
- setLeftIndicatorDrawable(leftIndicatorDrawable) {
5864
- this.$refs.es_progress_bar.setLeftIndicatorDrawable(leftIndicatorDrawable);
5865
- },
5866
- setRightIndicatorDrawable(rightIndicatorDrawable) {
5867
- this.$refs.es_progress_bar.setRightIndicatorDrawable(rightIndicatorDrawable);
5868
- },
5869
- setIndicatorUrl(indicatorUrl) {
5870
- this.$refs.es_progress_bar.setIndicatorUrl(indicatorUrl);
5871
- },
5872
- setLeftIndicatorUrl(leftIndicatorUrl) {
5873
- this.$refs.es_progress_bar.setLeftIndicatorUrl(leftIndicatorUrl);
5874
- },
5875
- setRightIndicatorUrl(rightIndicatorUrl) {
5876
- this.$refs.es_progress_bar.setRightIndicatorUrl(rightIndicatorUrl);
5877
- },
5878
- setThumbWidth(thumbWidth) {
5879
- this.$refs.es_progress_bar.setThumbWidth(thumbWidth);
5880
- },
5881
- setLeftThumbWidth(thumbWidth) {
5882
- this.$refs.es_progress_bar.setLeftThumbWidth(thumbWidth);
5883
- },
5884
- setRightThumbWidth(thumbWidth) {
5885
- this.$refs.es_progress_bar.setRightThumbWidth(thumbWidth);
5886
- },
5887
- setThumbHeight(thumbHeight) {
5888
- this.$refs.es_progress_bar.setThumbHeight(thumbHeight);
5889
- },
5890
- setLeftThumbHeight(thumbHeight) {
5891
- this.$refs.es_progress_bar.setLeftThumbHeight(thumbHeight);
5892
- },
5893
- setRightThumbHeight(thumbHeight) {
5894
- this.$refs.es_progress_bar.setRightThumbHeight(thumbHeight);
5895
- },
5896
- scaleThumb() {
5897
- this.$refs.es_progress_bar.scaleThumb();
5898
- },
5899
- scaleLeftThumb() {
5900
- this.$refs.es_progress_bar.scaleLeftThumb();
5901
- },
5902
- scaleRightThumb() {
5903
- this.$refs.es_progress_bar.scaleRightThumb();
5904
- },
5905
- resetThumb() {
5906
- this.$refs.es_progress_bar.resetThumb();
5907
- },
5908
- resetLeftThumb() {
5909
- this.$refs.es_progress_bar.resetLeftThumb();
5910
- },
5911
- resetRightThumb() {
5912
- this.$refs.es_progress_bar.resetRightThumb();
5913
- },
5914
- setThumbScaleRatio(thumbScaleRatio) {
5915
- this.$refs.es_progress_bar.setThumbScaleRatio(thumbScaleRatio);
5916
- },
5917
- setLeftThumbScaleRatio(thumbScaleRatio) {
5918
- this.$refs.es_progress_bar.setLeftThumbScaleRatio(thumbScaleRatio);
5919
- },
5920
- setRightThumbScaleRatio(thumbScaleRatio) {
5921
- this.$refs.es_progress_bar.setRightThumbScaleRatio(thumbScaleRatio);
5922
- },
5923
- setThumbActivate(activate) {
5924
- this.$refs.es_progress_bar.setThumbActivate(activate);
5925
- },
5926
- setLeftThumbActivate(activate) {
5927
- this.$refs.es_progress_bar.setLeftThumbActivate(activate);
5928
- },
5929
- setRightThumbActivate(activate) {
5930
- this.$refs.es_progress_bar.setRightThumbActivate(activate);
5931
- },
5932
- setThumbDrawable(drawable) {
5933
- this.$refs.es_progress_bar.setThumbDrawable(drawable);
5934
- },
5935
- setLeftThumbDrawable(drawable) {
5936
- this.$refs.es_progress_bar.setLeftThumbDrawable(drawable);
5937
- },
5938
- setRightThumbDrawable(drawable) {
5939
- this.$refs.es_progress_bar.setRightThumbDrawable(drawable);
5940
- },
5941
- setThumbUrl(url) {
5942
- this.$refs.es_progress_bar.setThumbUrl(url);
5943
- },
5944
- setLeftThumbUrl(url) {
5945
- this.$refs.es_progress_bar.setLeftThumbUrl(url);
5946
- },
5947
- setRightThumbUrl(url) {
5948
- this.$refs.es_progress_bar.setRightThumbUrl(url);
5949
- },
5950
- setThumbInactivatedDrawable(drawable) {
5951
- this.$refs.es_progress_bar.setThumbInactivatedDrawable(drawable);
5952
- },
5953
- setLeftThumbInactivatedDrawable(drawable) {
5954
- this.$refs.es_progress_bar.setLeftThumbInactivatedDrawable(drawable);
5955
- },
5956
- setRightThumbInactivatedDrawable(drawable) {
5957
- this.$refs.es_progress_bar.setRightThumbInactivatedDrawable(drawable);
5958
- },
5959
- setThumbInactivatedUrl(url) {
5960
- this.$refs.es_progress_bar.setThumbInactivatedUrl(url);
5961
- },
5962
- setLeftThumbInactivatedUrl(url) {
5963
- this.$refs.es_progress_bar.setLeftThumbInactivatedUrl(url);
5964
- },
5965
- setRightThumbInactivatedUrl(url) {
5966
- this.$refs.es_progress_bar.setRightThumbInactivatedUrl(url);
5967
- },
5968
- setTickMarkMode(tickMarkMode) {
5969
- this.$refs.es_progress_bar.setTickMarkMode(tickMarkMode);
5970
- },
5971
- setTickMarkGravity(tickMarkGravity) {
5972
- this.$refs.es_progress_bar.setTickMarkGravity(tickMarkGravity);
5973
- },
5974
- setTickMarkLayoutGravity(tickMarkLayoutGravity) {
5975
- this.$refs.es_progress_bar.setTickMarkLayoutGravity(tickMarkLayoutGravity);
5976
- },
5977
- setTickMarkTextArray(tickMarkTextArray) {
5978
- this.$refs.es_progress_bar.setTickMarkTextArray(tickMarkTextArray);
5979
- },
5980
- setTickMarkTextMargin(tickMarkTextMargin) {
5981
- this.$refs.es_progress_bar.setTickMarkTextMargin(tickMarkTextMargin);
5982
- },
5983
- setTickMarkTextSize(tickMarkTextSize) {
5984
- this.$refs.es_progress_bar.setTickMarkTextSize(tickMarkTextSize);
5985
- },
5986
- setTickMarkTextColor(tickMarkTextColor) {
5987
- this.$refs.es_progress_bar.setTickMarkTextColor(tickMarkTextColor);
5988
- },
5989
- setTickMarkInRangeTextColor(tickMarkInRangeTextColor) {
5990
- this.$refs.es_progress_bar.setTickMarkInRangeTextColor(tickMarkInRangeTextColor);
5991
- },
5992
- setSteps(steps) {
5993
- this.$refs.es_progress_bar.setSteps(steps);
5994
- },
5995
- setStepsWidth(stepsWidth) {
5996
- this.$refs.es_progress_bar.setStepsWidth(stepsWidth);
5997
- },
5998
- setStepsHeight(stepsHeight) {
5999
- this.$refs.es_progress_bar.setStepsHeight(stepsHeight);
6000
- },
6001
- setStepsRadius(stepsRadius) {
6002
- this.$refs.es_progress_bar.setStepsRadius(stepsRadius);
6003
- },
6004
- setStepsColor(stepsColor) {
6005
- this.$refs.es_progress_bar.setStepsColor(stepsColor);
6006
- },
6007
- setStepsAutoBonding(stepsAutoBonding) {
6008
- this.$refs.es_progress_bar.setStepsAutoBonding(stepsAutoBonding);
6009
- },
6010
- setStepsDrawable(drawableArray) {
6011
- this.$refs.es_progress_bar.setStepsDrawable(drawableArray);
6012
- },
6013
- setStepsUrl(urlArray) {
6014
- this.$refs.es_progress_bar.setStepsUrl(urlArray);
6015
- },
6016
- }
6017
- };
6018
-
6019
- function ESProgressBarViewComponent() {
6020
- //
6021
- Vue.component(ESProgressBar.name, ESProgressBar);
6022
-
6023
- Vue.registerElement('TVProgressBarViewComponent', {
6024
- component: {
6025
- name: 'TVProgressBarViewComponent',
6026
- processEventData(event, nativeEventName, nativeEventParams) {
6027
- switch (nativeEventName) {
6028
- case 'onSeekBarChange':
6029
- event.fromUser = nativeEventParams.fromUser;
6030
- event.progress = nativeEventParams.progress;
6031
- event.leftProgress = nativeEventParams.leftProgress;
6032
- event.rightProgress = nativeEventParams.rightProgress;
6033
- break;
6034
- }
6035
- return event;
6036
- },
6037
- },
6038
- });
6039
-
6040
- Vue.component('es-progress-bar-view-component', {
6041
- methods: {
6042
- invalidateSeekBar() {
6043
- Vue.Native.callUIFunction(this.$refs.progressbar,
6044
- 'invalidateSeekBar', [], (res) => {
6045
- });
6046
- },
6047
- setFocusable(focusable) {
6048
- Vue.Native.callUIFunction(this.$refs.progressbar,
6049
- 'setFocusable', [focusable], (res) => {
6050
- });
6051
- },
6052
- setClickable(clickable) {
6053
- Vue.Native.callUIFunction(this.$refs.progressbar,
6054
- 'setClickable', [clickable], (res) => {
6055
- });
6056
- },
6057
- requestFocus() {
6058
- Vue.Native.callUIFunction(this.$refs.progressbar,
6059
- 'requestFocus', [], (res) => {
6060
- });
6061
- },
6062
- requestLayout() {
6063
- Vue.Native.callUIFunction(this.$refs.progressbar,
6064
- 'requestLayout', [], (res) => {
6065
- });
6066
- },
6067
- invalidate() {
6068
- Vue.Native.callUIFunction(this.$refs.progressbar,
6069
- 'invalidate', [], (res) => {
6070
- });
6071
- },
6072
- setVisible(visible) {
6073
- Vue.Native.callUIFunction(this.$refs.progressbar,
6074
- 'setVisible', [visible], (res) => {
6075
- });
6076
- },
6077
- setLeftSeekBarVisible(visible) {
6078
- Vue.Native.callUIFunction(this.$refs.progressbar,
6079
- 'setLeftSeekBarVisible', [visible], (res) => {
6080
- });
6081
- },
6082
- setRightSeekBarVisible(visible) {
6083
- Vue.Native.callUIFunction(this.$refs.progressbar,
6084
- 'setRightSeekBarVisible', [visible], (res) => {
6085
- });
6086
- },
6087
- setSeekBarMode(mode) {
6088
- Vue.Native.callUIFunction(this.$refs.progressbar,
6089
- 'setSeekBarMode', [mode], (res) => {
6090
- });
6091
- },
6092
- setProgress(progress) {
6093
- Vue.Native.callUIFunction(this.$refs.progressbar,
6094
- 'setProgress', [progress], (res) => {
6095
- });
6096
- },
6097
- setRangeProgress(leftValue, rightValue) {
6098
- Vue.Native.callUIFunction(this.$refs.progressbar,
6099
- 'setProgress', [leftValue, rightValue], (res) => {
6100
- });
6101
- },
6102
- getProgress() {
6103
- Vue.Native.callUIFunction(this.$refs.progressbar,
6104
- 'getProgress', [], (progress) => {
6105
- });
6106
- },
6107
- getLeftProgress() {
6108
- Vue.Native.callUIFunction(this.$refs.progressbar,
6109
- 'getLeftProgress', [], (progress) => {
6110
- });
6111
- },
6112
- getRightProgress() {
6113
- Vue.Native.callUIFunction(this.$refs.progressbar,
6114
- 'getRightProgress', [], (progress) => {
6115
- });
6116
- },
6117
- setRange(min, max, minInterval) {
6118
- Vue.Native.callUIFunction(this.$refs.progressbar,
6119
- 'setRange', [min, max, minInterval], (value) => {
6120
- });
6121
- },
6122
- setGravity(gravity) {
6123
- Vue.Native.callUIFunction(this.$refs.progressbar,
6124
- 'setGravity', [gravity], (value) => {
6125
- });
6126
- },
6127
- setProgressWidth(progressWidth) {
6128
- Vue.Native.callUIFunction(this.$refs.progressbar,
6129
- 'setProgressWidth', [progressWidth], (value) => {
6130
- });
6131
- },
6132
- setProgressHeight(progressHeight) {
6133
- Vue.Native.callUIFunction(this.$refs.progressbar,
6134
- 'setProgressHeight', [progressHeight], (value) => {
6135
- });
6136
- },
6137
- setProgressRadius(progressRadius) {
6138
- Vue.Native.callUIFunction(this.$refs.progressbar,
6139
- 'setProgressRadius', [progressRadius], (value) => {
6140
- });
6141
- },
6142
- setProgressColor(progressColor) {
6143
- Vue.Native.callUIFunction(this.$refs.progressbar,
6144
- 'setProgressColor', [progressColor], (value) => {
6145
- });
6146
- },
6147
- setProgressDefaultColor(defaultProgressColor) {
6148
- Vue.Native.callUIFunction(this.$refs.progressbar,
6149
- 'setProgressDefaultColor', [defaultProgressColor], (value) => {
6150
- });
6151
- },
6152
- setProgressDrawable(progressDrawable) {
6153
- Vue.Native.callUIFunction(this.$refs.progressbar,
6154
- 'setProgressDrawable', [progressDrawable], (value) => {
6155
- });
6156
- },
6157
- setProgressDefaultDrawable(progressDefaultDrawable) {
6158
- Vue.Native.callUIFunction(this.$refs.progressbar,
6159
- 'setProgressDefaultDrawable', [progressDefaultDrawable], (value) => {
6160
- });
6161
- },
6162
- setProgressUrl(progressUrl) {
6163
- Vue.Native.callUIFunction(this.$refs.progressbar,
6164
- 'setProgressUrl', [progressUrl], (value) => {
6165
- });
6166
- },
6167
- setProgressDefaultUrl(progressDefaultUrl) {
6168
- Vue.Native.callUIFunction(this.$refs.progressbar,
6169
- 'setProgressDefaultUrl', [progressDefaultUrl], (value) => {
6170
- });
6171
- },
6172
- showIndicator(showIndicator) {
6173
- Vue.Native.callUIFunction(this.$refs.progressbar,
6174
- 'showIndicator', [showIndicator], (value) => {
6175
- });
6176
- },
6177
- showLeftIndicator(showLeftIndicator) {
6178
- Vue.Native.callUIFunction(this.$refs.progressbar,
6179
- 'showLeftIndicator', [showLeftIndicator], (value) => {
6180
- });
6181
- },
6182
- showRightIndicator(showRightIndicator) {
6183
- Vue.Native.callUIFunction(this.$refs.progressbar,
6184
- 'showRightIndicator', [showRightIndicator], (value) => {
6185
- });
6186
- },
6187
- setIndicatorShowMode(indicatorShowMode) {
6188
- Vue.Native.callUIFunction(this.$refs.progressbar,
6189
- 'setIndicatorShowMode', [indicatorShowMode], (value) => {
6190
- });
6191
- },
6192
- setLeftIndicatorShowMode(indicatorShowMode) {
6193
- Vue.Native.callUIFunction(this.$refs.progressbar,
6194
- 'setLeftIndicatorShowMode', [indicatorShowMode], (value) => {
6195
- });
6196
- },
6197
- setRightIndicatorShowMode(indicatorShowMode) {
6198
- Vue.Native.callUIFunction(this.$refs.progressbar,
6199
- 'setRightIndicatorShowMode', [indicatorShowMode], (value) => {
6200
- });
6201
- },
6202
- setIndicatorWidth(indicatorWidth) {
6203
- Vue.Native.callUIFunction(this.$refs.progressbar,
6204
- 'setIndicatorWidth', [indicatorWidth], (value) => {
6205
- });
6206
- },
6207
- setLeftIndicatorWidth(indicatorWidth) {
6208
- Vue.Native.callUIFunction(this.$refs.progressbar,
6209
- 'setLeftIndicatorWidth', [indicatorWidth], (value) => {
6210
- });
6211
- },
6212
- setRightIndicatorWidth(indicatorWidth) {
6213
- Vue.Native.callUIFunction(this.$refs.progressbar,
6214
- 'setRightIndicatorWidth', [indicatorWidth], (value) => {
6215
- });
6216
- },
6217
-
6218
- setIndicatorHeight(indicatorHeight) {
6219
- Vue.Native.callUIFunction(this.$refs.progressbar,
6220
- 'setIndicatorHeight', [indicatorHeight], (value) => {
6221
- });
6222
- },
6223
- setLeftIndicatorHeight(indicatorHeight) {
6224
- Vue.Native.callUIFunction(this.$refs.progressbar,
6225
- 'setLeftIndicatorHeight', [indicatorHeight], (value) => {
6226
- });
6227
- },
6228
- setRightIndicatorHeight(indicatorHeight) {
6229
- Vue.Native.callUIFunction(this.$refs.progressbar,
6230
- 'setRightIndicatorHeight', [indicatorHeight], (value) => {
6231
- });
6232
- },
6233
- setIndicatorTextDecimalFormat(formatPattern) {
6234
- Vue.Native.callUIFunction(this.$refs.progressbar,
6235
- 'setIndicatorTextDecimalFormat', [formatPattern], (value) => {
6236
- });
6237
- },
6238
- setLeftIndicatorTextDecimalFormat(formatPattern) {
6239
- Vue.Native.callUIFunction(this.$refs.progressbar,
6240
- 'setLeftIndicatorTextDecimalFormat', [formatPattern], (value) => {
6241
- });
6242
- },
6243
- setRightIndicatorTextDecimalFormat(formatPattern) {
6244
- Vue.Native.callUIFunction(this.$refs.progressbar,
6245
- 'setRightIndicatorTextDecimalFormat', [formatPattern], (value) => {
6246
- });
6247
- },
6248
- setIndicatorTextStringFormat(formatPattern) {
6249
- Vue.Native.callUIFunction(this.$refs.progressbar,
6250
- 'setIndicatorTextStringFormat', [formatPattern], (value) => {
6251
- });
6252
- },
6253
- setLeftIndicatorTextStringFormat(formatPattern) {
6254
- Vue.Native.callUIFunction(this.$refs.progressbar,
6255
- 'setLeftIndicatorTextStringFormat', [formatPattern], (value) => {
6256
- });
6257
- },
6258
- setRightIndicatorTextStringFormat(formatPattern) {
6259
- Vue.Native.callUIFunction(this.$refs.progressbar,
6260
- 'setRightIndicatorTextStringFormat', [formatPattern], (value) => {
6261
- });
6262
- },
6263
- setIndicatorMargin(indicatorMargin) {
6264
- Vue.Native.callUIFunction(this.$refs.progressbar,
6265
- 'setIndicatorMargin', [indicatorMargin], (value) => {
6266
- });
6267
- },
6268
- setLeftIndicatorMargin(indicatorMargin) {
6269
- Vue.Native.callUIFunction(this.$refs.progressbar,
6270
- 'setLeftIndicatorMargin', [indicatorMargin], (value) => {
6271
- });
6272
- },
6273
- setRightIndicatorMargin(indicatorMargin) {
6274
- Vue.Native.callUIFunction(this.$refs.progressbar,
6275
- 'setRightIndicatorMargin', [indicatorMargin], (value) => {
6276
- });
6277
- },
6278
- setIndicatorPaddingBottom(indicatorPaddingBottom) {
6279
- Vue.Native.callUIFunction(this.$refs.progressbar,
6280
- 'setIndicatorPaddingBottom', [indicatorPaddingBottom], (value) => {
6281
- });
6282
- },
6283
- setLeftIndicatorPaddingBottom(indicatorPaddingBottom) {
6284
- Vue.Native.callUIFunction(this.$refs.progressbar,
6285
- 'setLeftIndicatorPaddingBottom', [indicatorPaddingBottom], (value) => {
6286
- });
6287
- },
6288
- setRightIndicatorPaddingBottom(indicatorPaddingBottom) {
6289
- Vue.Native.callUIFunction(this.$refs.progressbar,
6290
- 'setRightIndicatorPaddingBottom', [indicatorPaddingBottom], (value) => {
6291
- });
6292
- },
6293
- setIndicatorPaddingTop(indicatorPaddingTop) {
6294
- Vue.Native.callUIFunction(this.$refs.progressbar,
6295
- 'setIndicatorPaddingTop', [indicatorPaddingTop], (value) => {
6296
- });
6297
- },
6298
- setLeftIndicatorPaddingTop(indicatorPaddingTop) {
6299
- Vue.Native.callUIFunction(this.$refs.progressbar,
6300
- 'setLeftIndicatorPaddingTop', [indicatorPaddingTop], (value) => {
6301
- });
6302
- },
6303
- setRightIndicatorPaddingTop(indicatorPaddingTop) {
6304
- Vue.Native.callUIFunction(this.$refs.progressbar,
6305
- 'setRightIndicatorPaddingTop', [indicatorPaddingTop], (value) => {
6306
- });
6307
- },
6308
-
6309
- setIndicatorPaddingLeft(indicatorPaddingLeft) {
6310
- Vue.Native.callUIFunction(this.$refs.progressbar,
6311
- 'setIndicatorPaddingLeft', [indicatorPaddingLeft], (value) => {
6312
- });
6313
- },
6314
- setLeftIndicatorPaddingLeft(indicatorPaddingLeft) {
6315
- Vue.Native.callUIFunction(this.$refs.progressbar,
6316
- 'setLeftIndicatorPaddingLeft', [indicatorPaddingLeft], (value) => {
6317
- });
6318
- },
6319
- setRightIndicatorPaddingLeft(indicatorPaddingLeft) {
6320
- Vue.Native.callUIFunction(this.$refs.progressbar,
6321
- 'setRightIndicatorPaddingLeft', [indicatorPaddingLeft], (value) => {
6322
- });
6323
- },
6324
- setIndicatorPaddingRight(indicatorPaddingRight) {
6325
- Vue.Native.callUIFunction(this.$refs.progressbar,
6326
- 'setIndicatorPaddingRight', [indicatorPaddingRight], (value) => {
6327
- });
6328
- },
6329
- setLeftIndicatorPaddingRight(indicatorPaddingRight) {
6330
- Vue.Native.callUIFunction(this.$refs.progressbar,
6331
- 'setLeftIndicatorPaddingRight', [indicatorPaddingRight], (value) => {
6332
- });
6333
- },
6334
- setRightIndicatorPaddingRight(indicatorPaddingRight) {
6335
- Vue.Native.callUIFunction(this.$refs.progressbar,
6336
- 'setRightIndicatorPaddingRight', [indicatorPaddingRight], (value) => {
6337
- });
6338
- },
6339
- setIndicatorBackgroundColor(indicatorBackgroundColor) {
6340
- Vue.Native.callUIFunction(this.$refs.progressbar,
6341
- 'setIndicatorBackgroundColor', [indicatorBackgroundColor], (value) => {
6342
- });
6343
- },
6344
- setLeftIndicatorBackgroundColor(indicatorBackgroundColor) {
6345
- Vue.Native.callUIFunction(this.$refs.progressbar,
6346
- 'setLeftIndicatorBackgroundColor', [indicatorBackgroundColor], (value) => {
6347
- });
6348
- },
6349
- setRightIndicatorBackgroundColor(indicatorBackgroundColor) {
6350
- Vue.Native.callUIFunction(this.$refs.progressbar,
6351
- 'setRightIndicatorBackgroundColor', [indicatorBackgroundColor], (value) => {
6352
- });
6353
- },
6354
- setIndicatorRadius(indicatorRadius) {
6355
- Vue.Native.callUIFunction(this.$refs.progressbar,
6356
- 'setIndicatorRadius', [indicatorRadius], (value) => {
6357
- });
6358
- },
6359
- setLeftIndicatorRadius(indicatorRadius) {
6360
- Vue.Native.callUIFunction(this.$refs.progressbar,
6361
- 'setLeftIndicatorRadius', [indicatorRadius], (value) => {
6362
- });
6363
- },
6364
- setRightIndicatorRadius(indicatorRadius) {
6365
- Vue.Native.callUIFunction(this.$refs.progressbar,
6366
- 'setRightIndicatorRadius', [indicatorRadius], (value) => {
6367
- });
6368
- },
6369
- setIndicatorTextSize(indicatorTextSize) {
6370
- Vue.Native.callUIFunction(this.$refs.progressbar,
6371
- 'setIndicatorTextSize', [indicatorTextSize], (value) => {
6372
- });
6373
- },
6374
- setLeftIndicatorTextSize(indicatorTextSize) {
6375
- Vue.Native.callUIFunction(this.$refs.progressbar,
6376
- 'setLeftIndicatorTextSize', [indicatorTextSize], (value) => {
6377
- });
6378
- },
6379
- setRightIndicatorTextSize(indicatorTextSize) {
6380
- Vue.Native.callUIFunction(this.$refs.progressbar,
6381
- 'setRightIndicatorTextSize', [indicatorTextSize], (value) => {
6382
- });
6383
- },
6384
- setIndicatorTextColor(indicatorTextColor) {
6385
- Vue.Native.callUIFunction(this.$refs.progressbar,
6386
- 'setIndicatorTextColor', [indicatorTextColor], (value) => {
6387
- });
6388
- },
6389
- setLeftIndicatorTextColor(indicatorTextColor) {
6390
- Vue.Native.callUIFunction(this.$refs.progressbar,
6391
- 'setLeftIndicatorTextColor', [indicatorTextColor], (value) => {
6392
- });
6393
- },
6394
- setRightIndicatorTextColor(indicatorTextColor) {
6395
- Vue.Native.callUIFunction(this.$refs.progressbar,
6396
- 'setRightIndicatorTextColor', [indicatorTextColor], (value) => {
6397
- });
6398
- },
6399
- setIndicatorArrowSize(indicatorArrowSize) {
6400
- Vue.Native.callUIFunction(this.$refs.progressbar,
6401
- 'setIndicatorArrowSize', [indicatorArrowSize], (value) => {
6402
- });
6403
- },
6404
- setLeftIndicatorArrowSize(indicatorArrowSize) {
6405
- Vue.Native.callUIFunction(this.$refs.progressbar,
6406
- 'setLeftIndicatorArrowSize', [indicatorArrowSize], (value) => {
6407
- });
6408
- },
6409
- setRightIndicatorArrowSize(indicatorArrowSize) {
6410
- Vue.Native.callUIFunction(this.$refs.progressbar,
6411
- 'setRightIndicatorArrowSize', [indicatorArrowSize], (value) => {
6412
- });
6413
- },
6414
- setIndicatorDrawable(indicatorDrawable) {
6415
- Vue.Native.callUIFunction(this.$refs.progressbar,
6416
- 'setIndicatorDrawable', [indicatorDrawable], (value) => {
6417
- });
6418
- },
6419
- setLeftIndicatorDrawable(leftIndicatorDrawable) {
6420
- Vue.Native.callUIFunction(this.$refs.progressbar,
6421
- 'setLeftIndicatorDrawable', [leftIndicatorDrawable], (value) => {
6422
- });
6423
- },
6424
- setRightIndicatorDrawable(rightIndicatorDrawable) {
6425
- Vue.Native.callUIFunction(this.$refs.progressbar,
6426
- 'setRightIndicatorDrawable', [rightIndicatorDrawable], (value) => {
6427
- });
6428
- },
6429
- setIndicatorUrl(indicatorUrl) {
6430
- Vue.Native.callUIFunction(this.$refs.progressbar,
6431
- 'setIndicatorUrl', [indicatorUrl], (value) => {
6432
- });
6433
- },
6434
- setLeftIndicatorUrl(leftIndicatorUrl) {
6435
- Vue.Native.callUIFunction(this.$refs.progressbar,
6436
- 'setLeftIndicatorUrl', [leftIndicatorUrl], (value) => {
6437
- });
6438
- },
6439
- setRightIndicatorUrl(rightIndicatorUrl) {
6440
- Vue.Native.callUIFunction(this.$refs.progressbar,
6441
- 'setRightIndicatorUrl', [rightIndicatorUrl], (value) => {
6442
- });
6443
- },
6444
- setThumbWidth(thumbWidth) {
6445
- Vue.Native.callUIFunction(this.$refs.progressbar,
6446
- 'setThumbWidth', [thumbWidth], (value) => {
6447
- });
6448
- },
6449
- setLeftThumbWidth(thumbWidth) {
6450
- Vue.Native.callUIFunction(this.$refs.progressbar,
6451
- 'setLeftThumbWidth', [thumbWidth], (value) => {
6452
- });
6453
- },
6454
- setRightThumbWidth(thumbWidth) {
6455
- Vue.Native.callUIFunction(this.$refs.progressbar,
6456
- 'setRightThumbWidth', [thumbWidth], (value) => {
6457
- });
6458
- },
6459
- setThumbHeight(thumbHeight) {
6460
- Vue.Native.callUIFunction(this.$refs.progressbar,
6461
- 'setThumbHeight', [thumbHeight], (value) => {
6462
- });
6463
- },
6464
- setLeftThumbHeight(thumbHeight) {
6465
- Vue.Native.callUIFunction(this.$refs.progressbar,
6466
- 'setLeftThumbHeight', [thumbHeight], (value) => {
6467
- });
6468
- },
6469
- setRightThumbHeight(thumbHeight) {
6470
- Vue.Native.callUIFunction(this.$refs.progressbar,
6471
- 'setRightThumbHeight', [thumbHeight], (value) => {
6472
- });
6473
- },
6474
- scaleThumb() {
6475
- Vue.Native.callUIFunction(this.$refs.progressbar,
6476
- 'scaleThumb', [], (value) => {
6477
- });
6478
- },
6479
- scaleLeftThumb() {
6480
- Vue.Native.callUIFunction(this.$refs.progressbar,
6481
- 'scaleLeftThumb', [], (value) => {
6482
- });
6483
- },
6484
- scaleRightThumb() {
6485
- Vue.Native.callUIFunction(this.$refs.progressbar,
6486
- 'scaleLeftThumb', [], (value) => {
6487
- });
6488
- },
6489
- resetThumb() {
6490
- Vue.Native.callUIFunction(this.$refs.progressbar,
6491
- 'resetThumb', [], (value) => {
6492
- });
6493
- },
6494
- resetLeftThumb() {
6495
- Vue.Native.callUIFunction(this.$refs.progressbar,
6496
- 'resetLeftThumb', [], (value) => {
6497
- });
6498
- },
6499
- resetRightThumb() {
6500
- Vue.Native.callUIFunction(this.$refs.progressbar,
6501
- 'resetRightThumb', [], (value) => {
6502
- });
6503
- },
6504
- setThumbScaleRatio(thumbScaleRatio) {
6505
- Vue.Native.callUIFunction(this.$refs.progressbar,
6506
- 'setThumbScaleRatio', [thumbScaleRatio], (value) => {
6507
- });
6508
- },
6509
- setLeftThumbScaleRatio(thumbScaleRatio) {
6510
- Vue.Native.callUIFunction(this.$refs.progressbar,
6511
- 'setLeftThumbScaleRatio', [thumbScaleRatio], (value) => {
6512
- });
6513
- },
6514
- setRightThumbScaleRatio(thumbScaleRatio) {
6515
- Vue.Native.callUIFunction(this.$refs.progressbar,
6516
- 'setRightThumbScaleRatio', [thumbScaleRatio], (value) => {
6517
- });
6518
- },
6519
- setThumbActivate(activate) {
6520
- Vue.Native.callUIFunction(this.$refs.progressbar,
6521
- 'setThumbActivate', [activate], (value) => {
6522
- });
6523
- },
6524
- setLeftThumbActivate(activate) {
6525
- Vue.Native.callUIFunction(this.$refs.progressbar,
6526
- 'setLeftThumbActivate', [activate], (value) => {
6527
- });
6528
- },
6529
- setRightThumbActivate(activate) {
6530
- Vue.Native.callUIFunction(this.$refs.progressbar,
6531
- 'setRightThumbActivate', [activate], (value) => {
6532
- });
6533
- },
6534
- setThumbDrawable(drawable) {
6535
- Vue.Native.callUIFunction(this.$refs.progressbar,
6536
- 'setThumbDrawable', [drawable], (value) => {
6537
- });
6538
- },
6539
- setLeftThumbDrawable(drawable) {
6540
- Vue.Native.callUIFunction(this.$refs.progressbar,
6541
- 'setLeftThumbDrawable', [drawable], (value) => {
6542
- });
6543
- },
6544
- setRightThumbDrawable(drawable) {
6545
- Vue.Native.callUIFunction(this.$refs.progressbar,
6546
- 'setRightThumbDrawable', [drawable], (value) => {
6547
- });
6548
- },
6549
- setThumbUrl(url) {
6550
- Vue.Native.callUIFunction(this.$refs.progressbar,
6551
- 'setThumbUrl', [url], (value) => {
6552
- });
6553
- },
6554
- setLeftThumbUrl(url) {
6555
- Vue.Native.callUIFunction(this.$refs.progressbar,
6556
- 'setLeftThumbUrl', [url], (value) => {
6557
- });
6558
- },
6559
- setRightThumbUrl(url) {
6560
- Vue.Native.callUIFunction(this.$refs.progressbar,
6561
- 'setRightThumbUrl', [url], (value) => {
6562
- });
6563
- },
6564
- setThumbInactivatedDrawable(drawable) {
6565
- Vue.Native.callUIFunction(this.$refs.progressbar,
6566
- 'setThumbInactivatedDrawable', [drawable], (value) => {
6567
- });
6568
- },
6569
- setLeftThumbInactivatedDrawable(drawable) {
6570
- Vue.Native.callUIFunction(this.$refs.progressbar,
6571
- 'setLeftThumbInactivatedDrawable', [drawable], (value) => {
6572
- });
6573
- },
6574
- setRightThumbInactivatedDrawable(drawable) {
6575
- Vue.Native.callUIFunction(this.$refs.progressbar,
6576
- 'setRightThumbInactivatedDrawable', [drawable], (value) => {
6577
- });
6578
- },
6579
- setThumbInactivatedUrl(url) {
6580
- Vue.Native.callUIFunction(this.$refs.progressbar,
6581
- 'setThumbInactivatedUrl', [url], (value) => {
6582
- });
6583
- },
6584
- setLeftThumbInactivatedUrl(url) {
6585
- Vue.Native.callUIFunction(this.$refs.progressbar,
6586
- 'setLeftThumbInactivatedUrl', [url], (value) => {
6587
- });
6588
- },
6589
- setRightThumbInactivatedUrl(url) {
6590
- Vue.Native.callUIFunction(this.$refs.progressbar,
6591
- 'setRightThumbInactivatedUrl', [url], (value) => {
6592
- });
6593
- },
6594
- setTickMarkMode(tickMarkMode) {
6595
- Vue.Native.callUIFunction(this.$refs.progressbar,
6596
- 'setTickMarkMode', [tickMarkMode], (value) => {
6597
- });
6598
- },
6599
- setTickMarkGravity(tickMarkGravity) {
6600
- Vue.Native.callUIFunction(this.$refs.progressbar,
6601
- 'setTickMarkGravity', [tickMarkGravity], (value) => {
6602
- });
6603
- },
6604
- setTickMarkLayoutGravity(tickMarkLayoutGravity) {
6605
- Vue.Native.callUIFunction(this.$refs.progressbar,
6606
- 'setTickMarkLayoutGravity', [tickMarkLayoutGravity], (value) => {
6607
- });
6608
- },
6609
- setTickMarkTextArray(tickMarkTextArray) {
6610
- Vue.Native.callUIFunction(this.$refs.progressbar,
6611
- 'setTickMarkTextArray', [tickMarkTextArray], (value) => {
6612
- });
6613
- },
6614
- setTickMarkTextMargin(tickMarkTextMargin) {
6615
- Vue.Native.callUIFunction(this.$refs.progressbar,
6616
- 'setTickMarkTextMargin', [tickMarkTextMargin], (value) => {
6617
- });
6618
- },
6619
- setTickMarkTextSize(tickMarkTextSize) {
6620
- Vue.Native.callUIFunction(this.$refs.progressbar,
6621
- 'setTickMarkTextSize', [tickMarkTextSize], (value) => {
6622
- });
6623
- },
6624
- setTickMarkTextColor(tickMarkTextColor) {
6625
- Vue.Native.callUIFunction(this.$refs.progressbar,
6626
- 'setTickMarkTextColor', [tickMarkTextColor], (value) => {
6627
- });
6628
- },
6629
- setTickMarkInRangeTextColor(tickMarkInRangeTextColor) {
6630
- Vue.Native.callUIFunction(this.$refs.progressbar,
6631
- 'setTickMarkInRangeTextColor', [tickMarkInRangeTextColor], (value) => {
6632
- });
6633
- },
6634
- setSteps(steps) {
6635
- Vue.Native.callUIFunction(this.$refs.progressbar,
6636
- 'setSteps', [steps], (value) => {
6637
- });
6638
- },
6639
- setStepsWidth(stepsWidth) {
6640
- Vue.Native.callUIFunction(this.$refs.progressbar,
6641
- 'setStepsWidth', [stepsWidth], (value) => {
6642
- });
6643
- },
6644
- setStepsHeight(stepsHeight) {
6645
- Vue.Native.callUIFunction(this.$refs.progressbar,
6646
- 'setStepsHeight', [stepsHeight], (value) => {
6647
- });
6648
- },
6649
- setStepsRadius(stepsRadius) {
6650
- Vue.Native.callUIFunction(this.$refs.progressbar,
6651
- 'setStepsRadius', [stepsRadius], (value) => {
6652
- });
6653
- },
6654
- setStepsColor(stepsColor) {
6655
- Vue.Native.callUIFunction(this.$refs.progressbar,
6656
- 'setStepsColor', [stepsColor], (value) => {
6657
- });
6658
- },
6659
- setStepsAutoBonding(stepsAutoBonding) {
6660
- Vue.Native.callUIFunction(this.$refs.progressbar,
6661
- 'setStepsAutoBonding', [stepsAutoBonding], (value) => {
6662
- });
6663
- },
6664
- setStepsDrawable(drawableArray) {
6665
- Vue.Native.callUIFunction(this.$refs.progressbar,
6666
- 'setStepsDrawable', [drawableArray], (value) => {
6667
- });
6668
- },
6669
- setStepsUrl(urlArray) {
6670
- Vue.Native.callUIFunction(this.$refs.progressbar,
6671
- 'setStepsUrl', [urlArray], (value) => {
6672
- });
6673
- },
6674
- setMaxProgress(progress) {
6675
- Vue.Native.callUIFunction(this.$refs.progressbar,
6676
- 'setMaxProgress', [progress], (res) => {
6677
- });
6678
- },
6679
- setSecondProgress(progress) {
6680
- Vue.Native.callUIFunction(this.$refs.progressbar,
6681
- 'setSecondProgress', [progress], (res) => {
6682
- });
6683
- },
6684
- show(value) {
6685
- Vue.Native.callUIFunction(this.$refs.progressbar,
6686
- 'show', [value], (res) => {
6687
- });
6688
- },
6689
- onSeekBarChange(evt) {
6690
- this.$emit('seek-change', evt);
6691
- },
6692
- },
6693
- render(h) {
6694
- const on = getEventRedirector.call(this, [
6695
- ['seek-change', 'seekBarChange'],
6696
- ]);
6697
- return h('TVProgressBarViewComponent',
6698
- {
6699
- on,
6700
- ref: 'progressbar'
6701
- }, this.$slots.default
6702
- );
6703
- }
6704
- });
6705
- }
6706
-
6707
- function ESLoadingViewComponent() {
6708
- Vue.registerElement('LoadingViewComponent', {
6709
- component: {
6710
- name: 'LoadingViewComponent'
6711
- },
6712
- });
6713
-
6714
- Vue.component('loading-view', {
6715
-
6716
- render(h) {
6717
- return h('LoadingViewComponent',
6718
- {
6719
- ref: 'LoadingView'
6720
- }, this.$slots.default
6721
- );
6722
- }
6723
- });
6724
- }
6725
-
6726
- function ESTransitionImageViewComponent() {
6727
- Vue.registerElement('TransitionImageComponent', {
6728
- component: {
6729
- name: 'TransitionImageComponent'
6730
- },
6731
- });
6732
-
6733
- Vue.component('img-transition', {
6734
- methods: {
6735
- setNextColor(color) {
6736
- Vue.Native.callUIFunction(this.$refs.transitionImageComponent,
6737
- 'setNextColor', [color], (res) => {
6738
- });
6739
- },
6740
- setNextImage(url) {
6741
- Vue.Native.callUIFunction(this.$refs.transitionImageComponent,
6742
- 'setNextImage', [url], (res) => {
6743
- });
6744
- },
6745
- setTransitionTime(duration) {
6746
- Vue.Native.callUIFunction(this.$refs.transitionImageComponent,
6747
- 'setTransitionTime', [duration], (res) => {
6748
- });
6749
- },
6750
- },
6751
- render(h) {
6752
- return h('TransitionImageComponent',
6753
- {
6754
- ref: 'transitionImageComponent'
6755
- }, this.$slots.default
6756
- );
6757
- }
6758
- });
6759
- }
6760
-
6761
- function ESQRCodeViewComponent() {
6762
- Vue.registerElement('QrCodeComponent', {
6763
- component: {
6764
- name: 'QrCodeComponent'
6765
- },
6766
- });
6767
-
6768
- Vue.component('qr-view', {
6769
-
6770
- render(h) {
6771
- return h('QrCodeComponent',
6772
- {
6773
- ref: 'qrCode'
6774
- }, this.$slots.default
6775
- );
6776
- }
6777
- });
6778
- }
6779
-
6780
- function ESTextViewComponent() {
6781
-
6782
- Vue.registerElement('TextView', {
6783
- component: {
6784
- name: 'TextView',
6785
- },
6786
- });
6787
- Vue.component('text-view', {
6788
- render(h) {
6789
- return h('TextView',
6790
- {
6791
- ref: 'TextView',
6792
- }, this.$slots.default
6793
- );
6794
- },
6795
- });
6796
- }
6797
-
6798
- function ESScrollViewComponent() {
6799
- Vue.registerElement('ScrollView', {
6800
- inheritAttrs: false,
6801
- component: {
6802
- name: 'ScrollView'
6803
- },
6804
- });
6805
-
6806
- Vue.component('scroll-view', {
6807
- methods: {
6808
- scrollTo(x, y, animation) {
6809
- Vue.Native.callUIFunction(this.$refs.scrollView, 'scrollTo', [x, y, animation]);
6810
- },
6811
- },
6812
- render(h) {
6813
- return h('ScrollView',
6814
- {
6815
- ref: 'scrollView'
6816
- }, this.$slots.default
6817
- );
6818
- }
6819
- });
6820
- }
6821
-
6822
- function ESPageRootViewComponent() {
6823
- Vue.registerElement('ESPageRootView', {
6824
- component: {
6825
- name: 'ESPageRootView',
6826
- processEventData(event, nativeEventName, nativeEventParams) {
6827
- switch (nativeEventName) {
6828
- case 'onLifecycleChange':
6829
- event.lifecycle = nativeEventParams;
6830
- break;
6831
- case 'onDispatchKeyEvent':
6832
- event.keyEvent = nativeEventParams;
6833
- break;
6834
- }
6835
- return event;
6836
- },
6837
- },
6838
- });
6839
- Vue.component('page', {
6840
- methods: {
6841
- onLifecycleChange(evt) {
6842
- this.$emit("onLifecycleChange", evt);
6843
- },
6844
- onDispatchKeyEvent(evt) {
6845
- this.$emit("onDispatchKeyEvent", evt);
6846
- },
6847
- },
6848
- render(h) {
6849
- const on = getEventRedirector.call(this, [
6850
- ['onLifecycleChange', 'lifecycleChange'],
6851
- ['onDispatchKeyEvent', 'dispatchKeyEvent'],
6852
- ]);
6853
- return h('ESPageRootView',
6854
- {
6855
- on,
6856
- ref: 'pageRootView',
6857
- }, this.$slots.default
6858
- );
6859
- },
6860
- });
6861
- }
6862
-
6863
- function ESPageRouterViewComponent() {
6864
- Vue.registerElement('ESPageRouterView', {
6865
- component: {
6866
- name: 'ESPageRouterView',
6867
- },
6868
- });
6869
- Vue.component('page-router', {
6870
- render(h) {
6871
- return h('ESPageRouterView',
6872
- {
6873
- ref: 'ESPageRouterView',
6874
- }, this.$slots.default
6875
- );
6876
- },
6877
- methods: {}
6878
- });
6879
- }
6880
-
6881
- function ESSurfaceViewComponent() {
6882
- Vue.registerElement('ESSurfaceViewComponent', {
6883
- component: {
6884
- name: 'ESSurfaceViewComponent',
6885
- processEventData(event, nativeEventName, nativeEventParams) {
6886
- switch (nativeEventName) {
6887
- case 'onFocus':
6888
- event.isFocused = nativeEventParams.isFocused;
6889
- break;
6890
- }
6891
- return event;
6892
- },
6893
- },
6894
- });
6895
-
6896
- Vue.component('es-surface-view-component', {
6897
- methods: {
6898
- onFocusChange(evt) {
6899
- this.$emit('focus', evt);
6900
- },
6901
- },
6902
-
6903
- render(h) {
6904
- const on = getEventRedirector.call(this, [
6905
- ['focus', 'focusChange'],
6906
- ]);
6907
- return h('ESSurfaceViewComponent',
6908
- {
6909
- on,
6910
- ref: 'surfaceView',
6911
- }, this.$slots.default);
6912
- },
6913
- });
6914
- }
6915
-
6916
- //
6917
- const ES_NETWORK_INFO_STATE_CONNECTING = 0;
6918
- const ES_NETWORK_INFO_STATE_CONNECTED = 1;
6919
- const ES_NETWORK_INFO_STATE_SUSPENDED = 2;
6920
- const ES_NETWORK_INFO_STATE_DISCONNECTING = 3;
6921
- const ES_NETWORK_INFO_STATE_DISCONNECTED = 4;
6922
- const ES_NETWORK_INFO_STATE_UNKNOWN = 5;
6923
-
6924
- //
6925
- const ES_NETWORK_INFO_TYPE_NONE = -1;
6926
- const ES_NETWORK_INFO_TYPE_MOBILE = 0;
6927
- const ES_NETWORK_INFO_TYPE_WIFI = 1;
6928
- const ES_NETWORK_INFO_TYPE_ETHERNET = 9;
6929
-
6930
- const TAG = 'ESApplication';
6931
-
6932
- var ESApplication = {
6933
- mixins: [ESRouter, ESEventBusEvent],
6934
- data() {
6935
- return {
6936
- appInitProps: {},
6937
- appInitUrl: '',
6938
- appInitParams: {},
6939
- autoLaunchMainESPage: true,
6940
- };
6941
- },
6942
- mounted() {
6943
- this._initES();
6944
- },
6945
- methods: {
6946
- _initES() {
6947
- Promise.resolve()
6948
- .then(() => ES$1.init({
6949
- router: this.$router
6950
- })
6951
- )
6952
- .then((result) => {
6953
- this._initESApplication();
6954
- },
6955
- error => {
6956
- this._initESApplication();
6957
- }
6958
- );
6959
- },
6960
- _initESApplication() {
6961
- ESLaunchManager$1.setRouteListener(this._routeListener);
6962
- this._initESAppParams();
6963
- },
6964
- _routeListener(url, params) {
6965
- this.onLaunchESPage(url, params);
6966
- },
6967
- _initESAppParams() {
6968
- //
6969
- this.appInitProps = ESApp.$options.$superProps;
6970
- //
6971
- this.appInitUrl = ESApp.$options.$superProps.url;
6972
- this.appInitParams = ESApp.$options.$superProps.params;
6973
-
6974
- if (ESLog.isLoggable(ESLog.DEBUG)) {
6975
- try {
6976
- ESLog.d(TAG, `--------initESAppParams--->>>>>`
6977
- + '\nAppInitUrl:' + this.appInitUrl
6978
- + '\nAppInitParams:' + JSON.stringify(this.appInitParams)
6979
- );
6980
- } catch (e) {
6981
- }
6982
- }
6983
-
6984
- if (!this.appInitUrl) {
6985
- this.appInitUrl = this.$router.options.main;
6986
- }
6987
- if (!(this._isRoutePathValid(this.appInitUrl) || this._isRouteNameValid(this.appInitUrl))) {
6988
- this.appInitUrl = this.$router.options.error;
6989
- }
6990
- //
6991
- this._initESApp();
6992
- },
6993
- _initESApp() {
6994
- if (this._isFunction(this.onESCreate)) {
6995
- let result = this.onESCreate(this.appInitProps);
6996
- if (ESLog.isLoggable(ESLog.DEBUG)) {
6997
- ESLog.d(TAG, '---------onESCreate---------->>>>', result);
6998
- }
6999
- if (result instanceof Promise) {
7000
- result.then(
7001
- (success) => {
7002
- if (ESLog.isLoggable(ESLog.DEBUG)) {
7003
- ESLog.d(TAG, '---------onESCreate---Promise---success---->>>>');
7004
- }
7005
- this._onESCreated(true);
7006
- },
7007
- error => {
7008
- if (ESLog.isLoggable(ESLog.DEBUG)) {
7009
- console.log(TAG, '---------onESCreate---Promise---error---->>>>', error);
7010
- }
7011
- this._onESCreated(false);
7012
- }
7013
- );
7014
- }
7015
- //
7016
- else {
7017
- if (ESLog.isLoggable(ESLog.DEBUG)) {
7018
- ESLog.d(TAG, '---------onESCreate--return-Not Promise----->>>>');
7019
- }
7020
- this._onESCreated(true);
7021
- }
7022
- }
7023
- //
7024
- else {
7025
- if (ESLog.isLoggable(ESLog.DEBUG)) {
7026
- ESLog.d(TAG, '---------onESCreate---Not Function----->>>>');
7027
- }
7028
- this._onESCreated(true);
7029
- }
7030
- },
7031
- _onESCreated(success) {
7032
- try {
7033
- this.onESCreated(success);
7034
- } catch (e) {
7035
- if (ESLog.isLoggable(ESLog.DEBUG)) {
7036
- ESLog.d(TAG, '---------onESCreated---error---->>>>');
7037
- }
7038
- }
7039
- if (this.autoLaunchMainESPage) {
7040
- this.launchMainESPage();
7041
- }
7042
- },
7043
- launchMainESPage() {//launchESPage
7044
- let route = {
7045
- name: this.appInitUrl,
7046
- params: this.appInitParams,
7047
- };
7048
- if (ESLog.isLoggable(ESLog.DEBUG)) {
7049
- ESLog.i(TAG, '---------onESCreate---initPage----->>>>', route);
7050
- }
7051
- this.$router.push(route);
7052
- },
7053
- _isFunction(func) {
7054
- return Object.prototype.toString.call(func) === '[object Function]';
7055
- },
7056
- _isRoutePathValid(path) {
7057
- if (path !== undefined && path !== '') {
7058
- let index = this.$router.options.routes.findIndex((item) => item.path === `/${path}`);
7059
- if (index !== -1) {
7060
- return true;
7061
- }
7062
- }
7063
- return false;
7064
- },
7065
- _isRouteNameValid(name) {
7066
- if (name !== undefined && name !== '') {
7067
- let index = this.$router.options.routes.findIndex((item) => item.path === `${name}`);
7068
- if (index !== -1) {
7069
- return true;
7070
- }
7071
- }
7072
- return false;
7073
- },
7074
- //---------------------------下面的方法给使用者覆写-----------------------------
7075
- onESCreated(success) {
7076
-
7077
- },
7078
- onLaunchESPage(url, params) {
7079
-
4040
+ onLaunchESPage(url, params) {
4041
+
7080
4042
  },
7081
4043
  setAutoLaunchMainESPage(auto) {
7082
4044
  this.autoLaunchMainESPage = auto;
@@ -7268,18 +4230,4 @@ const ES_KEYCODE_ESCAPE = 111;
7268
4230
  const ES_KEYCODE_MENU = 82;
7269
4231
  const ES_KEYCODE_SEARCH = 84;
7270
4232
 
7271
- //
7272
- const ES_ACCELERATE_DECELERATE_INTERPOLATOR = 1;
7273
- const ES_ACCELERATE_INTERPOLATOR = 2;
7274
- const ES_ANTICIPATE_INTERPOLATOR = 3;
7275
- const ES_ANTICIPATE_OVERSHOOT_INTERPOLATOR = 4;
7276
- const ES_BOUNCE_INTERPOLATOR = 5;
7277
- const ES_CYCLE_INTERPOLATOR = 6;
7278
- const ES_DECELERATE_INTERPOLATOR = 7;
7279
- const ES_LINEAR_INTERPOLATOR = 8;
7280
- const ES_OVERSHOOT_INTERPOLATOR = 9;
7281
- const ES_FAST_OUT_LINEAR_IN_INTERPOLATOR = 10;
7282
- const ES_FAST_OUT_SLOW_IN_INTERPOLATOR = 11;
7283
- const ES_PATH_INTERPOLATOR = 12;
7284
-
7285
- export { AUDIO_CONTENT_TYPE_MOVIE, AUDIO_CONTENT_TYPE_MUSIC, AUDIO_CONTENT_TYPE_SONIFICATION, AUDIO_CONTENT_TYPE_SPEECH, AUDIO_CONTENT_TYPE_UNKNOWN, AUDIO_MANAGER_FLAG_ACTIVE_MEDIA_ONLY, AUDIO_MANAGER_FLAG_ALLOW_RINGER_MODES, AUDIO_MANAGER_FLAG_BLUETOOTH_ABS_VOLUME, AUDIO_MANAGER_FLAG_FIXED_VOLUME, AUDIO_MANAGER_FLAG_HDMI_SYSTEM_AUDIO_VOLUME, AUDIO_MANAGER_FLAG_PLAY_SOUND, AUDIO_MANAGER_FLAG_REMOVE_SOUND_AND_VIBRATE, AUDIO_MANAGER_FLAG_SHOW_SILENT_HINT, AUDIO_MANAGER_FLAG_SHOW_UI, AUDIO_MANAGER_FLAG_SHOW_UI_WARNINGS, AUDIO_MANAGER_FLAG_SHOW_VIBRATE_HINT, AUDIO_MANAGER_FLAG_VIBRATE, AUDIO_STREAM_ACCESSIBILITY, AUDIO_STREAM_ALARM, AUDIO_STREAM_ASSISTANT, AUDIO_STREAM_BLUETOOTH_SCO, AUDIO_STREAM_DEFAULT, AUDIO_STREAM_DTMF, AUDIO_STREAM_MUSIC, AUDIO_STREAM_NOTIFICATION, AUDIO_STREAM_RING, AUDIO_STREAM_SYSTEM, AUDIO_STREAM_SYSTEM_ENFORCED, AUDIO_STREAM_TTS, AUDIO_STREAM_VOICE_CALL, AUDIO_USAGE_ALARM, AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY, AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE, AUDIO_USAGE_ASSISTANCE_SONIFICATION, AUDIO_USAGE_ASSISTANT, AUDIO_USAGE_GAME, AUDIO_USAGE_INVALID, AUDIO_USAGE_MEDIA, AUDIO_USAGE_NOTIFICATION, AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED, AUDIO_USAGE_NOTIFICATION_COMMUNICATION_INSTANT, AUDIO_USAGE_NOTIFICATION_COMMUNICATION_REQUEST, AUDIO_USAGE_NOTIFICATION_EVENT, AUDIO_USAGE_NOTIFICATION_RINGTONE, AUDIO_USAGE_UNKNOWN, AUDIO_USAGE_VIRTUAL_SOURCE, AUDIO_USAGE_VOICE_COMMUNICATION, AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING, ES$1 as ES, ESAnimationViewComponent, ESApp, ESAppManager$1 as ESAppManager, ESAppModule$1 as ESAppModule, ESApplication, ESAudioManager$1 as ESAudioManager, ESAudioModule$1 as ESAudioModule, ESBackPress, ESBackPressMixin, ESBroadcast, ESBroadcastManager$1 as ESBroadcastManager, ESDevelopManager$1 as ESDevelopManager, ESDevelopModule$1 as ESDevelopModule, ESDeviceManager$1 as ESDeviceManager, ESDeviceModule$1 as ESDeviceModule, ESDisplayManager$1 as ESDisplayManager, ESEventBus$1 as ESEventBus, ESEventBusEvent, ESFile, ESFileModule$1 as ESFileModule, ESFocusManager$1 as ESFocusManager, ESFocusModule$1 as ESFocusModule, ESKeyEvent, ESKeyEventMixin, ESLaunchManager$1 as ESLaunchManager, ESLoadingViewComponent, ESLocalStorage$1 as ESLocalStorage, ESMMapManager$1 as ESMMapManager, ESMMapModule$1 as ESMMapModule, ESManager$1 as ESManager, ESModule$1 as ESModule, ESNetwork, ESNetworkManager$1 as ESNetworkManager, ESNetworkMixin, ESNetworkModule$1 as ESNetworkModule, ESPage, ESPageLifecycle, ESPageRootViewComponent, ESPageRouterViewComponent, ESPermissionManager$1 as ESPermissionManager, ESPermissionModule$1 as ESPermissionModule, ESPlugin, ESPluginManager$1 as ESPluginManager, ESPluginModule$1 as ESPluginModule, ESPowerManager$1 as ESPowerManager, ESPowerModule$1 as ESPowerModule, ESProgressBarViewComponent, ESQRCodeViewComponent, ESRouter, ESScrollViewComponent, ESSeekBarViewComponent, ESSharedPreferencesManager$1 as ESSharedPreferencesManager, ESSharedPreferencesModule$1 as ESSharedPreferencesModule, ESStorageManager$1 as ESStorageManager, ESStorageModule$1 as ESStorageModule, ESSurfaceViewComponent, ESTextViewComponent, ESToast$1 as ESToast, ToastModule as ESToastModule, ESTransitionImageViewComponent, ESUsbDevice, ESUsbDeviceManager$1 as ESUsbDeviceManager, ESUsbDeviceMixin, ESUsbDeviceModule$1 as ESUsbDeviceModule, ES_ACCELERATE_DECELERATE_INTERPOLATOR, ES_ACCELERATE_INTERPOLATOR, ES_ANIMATION_PROPERTY_NAME_ALPHA, ES_ANIMATION_PROPERTY_NAME_ROTATION, ES_ANIMATION_PROPERTY_NAME_SCALE_X, ES_ANIMATION_PROPERTY_NAME_SCALE_Y, ES_ANIMATION_PROPERTY_NAME_TRANSLATION_X, ES_ANIMATION_PROPERTY_NAME_TRANSLATION_Y, ES_ANIMATION_REPEAT_MODE_INFINITE, ES_ANIMATION_REPEAT_MODE_RESTART, ES_ANIMATION_REPEAT_MODE_REVERSE, ES_ANIMATION_TYPE_AFTER, ES_ANIMATION_TYPE_AFTER_DELAY, ES_ANIMATION_TYPE_BEFORE, ES_ANIMATION_TYPE_NONE, ES_ANIMATION_TYPE_PLAY, ES_ANIMATION_TYPE_PLAY_SEQUENTIALLY, ES_ANIMATION_TYPE_PLAY_TOGETHER, ES_ANIMATION_TYPE_WITH, ES_ANIMATION_VALUE_TYPE_FLOAT, ES_ANIMATION_VALUE_TYPE_INT, ES_ANTICIPATE_INTERPOLATOR, ES_ANTICIPATE_OVERSHOOT_INTERPOLATOR, ES_BOUNCE_INTERPOLATOR, ES_CYCLE_INTERPOLATOR, ES_DECELERATE_INTERPOLATOR, ES_FAST_OUT_LINEAR_IN_INTERPOLATOR, ES_FAST_OUT_SLOW_IN_INTERPOLATOR, ES_KEYCODE_BACK, ES_KEYCODE_DPAD_CENTER, ES_KEYCODE_DPAD_DOWN, ES_KEYCODE_DPAD_LEFT, ES_KEYCODE_DPAD_RIGHT, ES_KEYCODE_DPAD_UP, ES_KEYCODE_ENTER, ES_KEYCODE_ESCAPE, ES_KEYCODE_MENU, ES_KEYCODE_SEARCH, ES_KEY_ACTION_DOWN, ES_KEY_ACTION_UP, ES_LIFECYCLE_ON_CREATE, ES_LIFECYCLE_ON_DESTROY, ES_LIFECYCLE_ON_INITIALIZED, ES_LIFECYCLE_ON_PAUSE, ES_LIFECYCLE_ON_RESTART, ES_LIFECYCLE_ON_RESTORE_INSTANCE_SATE, ES_LIFECYCLE_ON_RESUME, ES_LIFECYCLE_ON_SAVE_INSTANCE_SATE, ES_LIFECYCLE_ON_START, ES_LIFECYCLE_ON_STOP, ES_LIFECYCLE_ON_UNINITIALIZED, ES_LINEAR_INTERPOLATOR, ES_MMP_MODE_PRIVATE, ES_MMP_MODE_WORLD_READABLE, ES_MMP_MODE_WORLD_WRITEABLE, ES_NETWORK_INFO_STATE_CONNECTED, ES_NETWORK_INFO_STATE_CONNECTING, ES_NETWORK_INFO_STATE_DISCONNECTED, ES_NETWORK_INFO_STATE_DISCONNECTING, ES_NETWORK_INFO_STATE_SUSPENDED, ES_NETWORK_INFO_STATE_UNKNOWN, ES_NETWORK_INFO_TYPE_ETHERNET, ES_NETWORK_INFO_TYPE_MOBILE, ES_NETWORK_INFO_TYPE_NONE, ES_NETWORK_INFO_TYPE_WIFI, ES_OVERSHOOT_INTERPOLATOR, ES_PATH_INTERPOLATOR, ES_SDK_VERSION_20, ES_SDK_VERSION_21, ES_SDK_VERSION_22, ES_SDK_VERSION_22_1, ES_SEEK_BAR_MODE_DISABLED, ES_SEEK_BAR_MODE_PROGRESS, ES_SEEK_BAR_MODE_SEEK, KEYCODE_BACK, KEYCODE_DPAD_CENTER, KEYCODE_DPAD_DOWN, KEYCODE_DPAD_LEFT, KEYCODE_DPAD_RIGHT, KEYCODE_DPAD_UP, KEYCODE_ENTER, KEYCODE_ESCAPE, KEYCODE_MENU, KEYCODE_SEARCH, KEY_ACTION_DOWN, KEY_ACTION_UP, Toast$1 as Toast, getESApp, setESApp };
4233
+ export { AUDIO_CONTENT_TYPE_MOVIE, AUDIO_CONTENT_TYPE_MUSIC, AUDIO_CONTENT_TYPE_SONIFICATION, AUDIO_CONTENT_TYPE_SPEECH, AUDIO_CONTENT_TYPE_UNKNOWN, AUDIO_MANAGER_FLAG_ACTIVE_MEDIA_ONLY, AUDIO_MANAGER_FLAG_ALLOW_RINGER_MODES, AUDIO_MANAGER_FLAG_BLUETOOTH_ABS_VOLUME, AUDIO_MANAGER_FLAG_FIXED_VOLUME, AUDIO_MANAGER_FLAG_HDMI_SYSTEM_AUDIO_VOLUME, AUDIO_MANAGER_FLAG_PLAY_SOUND, AUDIO_MANAGER_FLAG_REMOVE_SOUND_AND_VIBRATE, AUDIO_MANAGER_FLAG_SHOW_SILENT_HINT, AUDIO_MANAGER_FLAG_SHOW_UI, AUDIO_MANAGER_FLAG_SHOW_UI_WARNINGS, AUDIO_MANAGER_FLAG_SHOW_VIBRATE_HINT, AUDIO_MANAGER_FLAG_VIBRATE, AUDIO_STREAM_ACCESSIBILITY, AUDIO_STREAM_ALARM, AUDIO_STREAM_ASSISTANT, AUDIO_STREAM_BLUETOOTH_SCO, AUDIO_STREAM_DEFAULT, AUDIO_STREAM_DTMF, AUDIO_STREAM_MUSIC, AUDIO_STREAM_NOTIFICATION, AUDIO_STREAM_RING, AUDIO_STREAM_SYSTEM, AUDIO_STREAM_SYSTEM_ENFORCED, AUDIO_STREAM_TTS, AUDIO_STREAM_VOICE_CALL, AUDIO_USAGE_ALARM, AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY, AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE, AUDIO_USAGE_ASSISTANCE_SONIFICATION, AUDIO_USAGE_ASSISTANT, AUDIO_USAGE_GAME, AUDIO_USAGE_INVALID, AUDIO_USAGE_MEDIA, AUDIO_USAGE_NOTIFICATION, AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED, AUDIO_USAGE_NOTIFICATION_COMMUNICATION_INSTANT, AUDIO_USAGE_NOTIFICATION_COMMUNICATION_REQUEST, AUDIO_USAGE_NOTIFICATION_EVENT, AUDIO_USAGE_NOTIFICATION_RINGTONE, AUDIO_USAGE_UNKNOWN, AUDIO_USAGE_VIRTUAL_SOURCE, AUDIO_USAGE_VOICE_COMMUNICATION, AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING, ES$1 as ES, ESApp, ESAppManager$1 as ESAppManager, ESAppModule$1 as ESAppModule, ESApplication, ESAudioManager$1 as ESAudioManager, ESAudioModule$1 as ESAudioModule, ESBackPress, ESBackPressMixin, ESBroadcast, ESBroadcastManager$1 as ESBroadcastManager, ESDevelopManager$1 as ESDevelopManager, ESDevelopModule$1 as ESDevelopModule, ESDeviceManager$1 as ESDeviceManager, ESDeviceModule$1 as ESDeviceModule, ESDisplayManager$1 as ESDisplayManager, ESEventBus$1 as ESEventBus, ESEventBusEvent, ESFile, ESFileModule$1 as ESFileModule, ESFocusManager$1 as ESFocusManager, ESFocusModule$1 as ESFocusModule, ESKeyEvent, ESKeyEventMixin, ESLaunchManager$1 as ESLaunchManager, ESLocalStorage$1 as ESLocalStorage, ESMMapManager$1 as ESMMapManager, ESMMapModule$1 as ESMMapModule, ESManager$1 as ESManager, ESModule$1 as ESModule, ESNetwork, ESNetworkManager$1 as ESNetworkManager, ESNetworkMixin, ESNetworkModule$1 as ESNetworkModule, ESPage, ESPageLifecycle, ESPermissionManager$1 as ESPermissionManager, ESPermissionModule$1 as ESPermissionModule, ESPlugin, ESPluginManager$1 as ESPluginManager, ESPluginModule$1 as ESPluginModule, ESPowerManager$1 as ESPowerManager, ESPowerModule$1 as ESPowerModule, ESRouter, ESSharedPreferencesManager$1 as ESSharedPreferencesManager, ESSharedPreferencesModule$1 as ESSharedPreferencesModule, ESStorageManager$1 as ESStorageManager, ESStorageModule$1 as ESStorageModule, ESToast$1 as ESToast, ToastModule as ESToastModule, ESUsbDevice, ESUsbDeviceManager$1 as ESUsbDeviceManager, ESUsbDeviceMixin, ESUsbDeviceModule$1 as ESUsbDeviceModule, ES_KEYCODE_BACK, ES_KEYCODE_DPAD_CENTER, ES_KEYCODE_DPAD_DOWN, ES_KEYCODE_DPAD_LEFT, ES_KEYCODE_DPAD_RIGHT, ES_KEYCODE_DPAD_UP, ES_KEYCODE_ENTER, ES_KEYCODE_ESCAPE, ES_KEYCODE_MENU, ES_KEYCODE_SEARCH, ES_KEY_ACTION_DOWN, ES_KEY_ACTION_UP, ES_LIFECYCLE_ON_CREATE, ES_LIFECYCLE_ON_DESTROY, ES_LIFECYCLE_ON_INITIALIZED, ES_LIFECYCLE_ON_PAUSE, ES_LIFECYCLE_ON_RESTART, ES_LIFECYCLE_ON_RESTORE_INSTANCE_SATE, ES_LIFECYCLE_ON_RESUME, ES_LIFECYCLE_ON_SAVE_INSTANCE_SATE, ES_LIFECYCLE_ON_START, ES_LIFECYCLE_ON_STOP, ES_LIFECYCLE_ON_UNINITIALIZED, ES_MMP_MODE_PRIVATE, ES_MMP_MODE_WORLD_READABLE, ES_MMP_MODE_WORLD_WRITEABLE, ES_NETWORK_INFO_STATE_CONNECTED, ES_NETWORK_INFO_STATE_CONNECTING, ES_NETWORK_INFO_STATE_DISCONNECTED, ES_NETWORK_INFO_STATE_DISCONNECTING, ES_NETWORK_INFO_STATE_SUSPENDED, ES_NETWORK_INFO_STATE_UNKNOWN, ES_NETWORK_INFO_TYPE_ETHERNET, ES_NETWORK_INFO_TYPE_MOBILE, ES_NETWORK_INFO_TYPE_NONE, ES_NETWORK_INFO_TYPE_WIFI, ES_SDK_VERSION_20, ES_SDK_VERSION_21, ES_SDK_VERSION_22, ES_SDK_VERSION_22_1, KEYCODE_BACK, KEYCODE_DPAD_CENTER, KEYCODE_DPAD_DOWN, KEYCODE_DPAD_LEFT, KEYCODE_DPAD_RIGHT, KEYCODE_DPAD_UP, KEYCODE_ENTER, KEYCODE_ESCAPE, KEYCODE_MENU, KEYCODE_SEARCH, KEY_ACTION_DOWN, KEY_ACTION_UP, Toast$1 as Toast, getESApp, setESApp };