@extscreen/es-core 10000.0.5 → 10000.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +82 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1762,15 +1762,12 @@ class ESLaunchManager {
|
|
1762
1762
|
_ESRouter = null;
|
1763
1763
|
_ESRouterEnabled = true;
|
1764
1764
|
|
1765
|
-
init() {
|
1765
|
+
init(router) {
|
1766
|
+
this._ESRouter = router;
|
1766
1767
|
this._ESRouterEnabled = this.isESRouterSupported();
|
1767
1768
|
return Promise.resolve();
|
1768
1769
|
}
|
1769
1770
|
|
1770
|
-
setESRouter(ESRouter) {
|
1771
|
-
this._ESRouter = ESRouter;
|
1772
|
-
}
|
1773
|
-
|
1774
1771
|
setESRouterEnabled(enabled) {
|
1775
1772
|
this._ESRouterEnabled = enabled && this.isESRouterSupported();
|
1776
1773
|
}
|
@@ -1830,13 +1827,18 @@ var ESLaunchManager$1 = new ESLaunchManager();
|
|
1830
1827
|
|
1831
1828
|
class ES {
|
1832
1829
|
|
1833
|
-
init() {
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1830
|
+
init(configuration) {
|
1831
|
+
if (configuration) {
|
1832
|
+
return Promise.resolve()
|
1833
|
+
.then(() => ESDeviceManager$1.init())
|
1834
|
+
.then(() => ESDevelopManager$1.init())
|
1835
|
+
.then(() => ESDisplayManager$1.init())
|
1836
|
+
.then(() => ESManager$1.init())
|
1837
|
+
.then(() => ESNetworkManager$1.init())
|
1838
|
+
.then(() => ESLaunchManager$1.init(configuration.router))
|
1839
|
+
} else {
|
1840
|
+
return Promise.reject('configuration can not be null!')
|
1841
|
+
}
|
1840
1842
|
}
|
1841
1843
|
}
|
1842
1844
|
|
@@ -2318,7 +2320,7 @@ function ESAnimationViewComponent() {
|
|
2318
2320
|
['on-animation-cancel', 'animationCancel'],
|
2319
2321
|
['on-animation-start', 'animationStart'],
|
2320
2322
|
['on-animation-repeat', 'animationRepeat'],
|
2321
|
-
['on-animation-pause', '
|
2323
|
+
['on-animation-pause', 'animationPause'],
|
2322
2324
|
['on-animation-resume', 'animationResume'],
|
2323
2325
|
['on-animation-update', 'animationUpdate'],
|
2324
2326
|
]);
|
@@ -2526,6 +2528,72 @@ function ESTextViewComponent() {
|
|
2526
2528
|
});
|
2527
2529
|
}
|
2528
2530
|
|
2531
|
+
function ESPageRootViewComponent() {
|
2532
|
+
Vue.registerElement('ESPageRootView', {
|
2533
|
+
component: {
|
2534
|
+
name: 'ESPageRootView',
|
2535
|
+
processEventData(event, nativeEventName, nativeEventParams) {
|
2536
|
+
switch (nativeEventName) {
|
2537
|
+
case 'onLifecycleChanged':
|
2538
|
+
event.lifecycle = nativeEventParams;
|
2539
|
+
break;
|
2540
|
+
case 'onDispatchKeyEvent':
|
2541
|
+
event.keyEvent = nativeEventParams;
|
2542
|
+
break;
|
2543
|
+
case 'onNewIntent':
|
2544
|
+
event.intent = nativeEventParams;
|
2545
|
+
break;
|
2546
|
+
}
|
2547
|
+
return event;
|
2548
|
+
},
|
2549
|
+
},
|
2550
|
+
});
|
2551
|
+
Vue.component('page', {
|
2552
|
+
methods: {
|
2553
|
+
onLifecycleChanged(evt) {
|
2554
|
+
this.$emit("onLifecycleChanged", evt);
|
2555
|
+
},
|
2556
|
+
onDispatchKeyEvent(evt) {
|
2557
|
+
this.$emit("onDispatchKeyEvent", evt);
|
2558
|
+
},
|
2559
|
+
onNewIntent(evt) {
|
2560
|
+
this.$emit("onNewIntent", evt);
|
2561
|
+
}
|
2562
|
+
},
|
2563
|
+
render(h) {
|
2564
|
+
const on = getEventRedirector.call(this, [
|
2565
|
+
['onLifecycleChanged', 'lifecycleChanged'],
|
2566
|
+
['onDispatchKeyEvent', 'dispatchKeyEvent'],
|
2567
|
+
['onNewIntent', 'newIntent'],
|
2568
|
+
]);
|
2569
|
+
return h('ESPageRootView',
|
2570
|
+
{
|
2571
|
+
on,
|
2572
|
+
ref: 'pageRootView',
|
2573
|
+
}, this.$slots.default
|
2574
|
+
);
|
2575
|
+
},
|
2576
|
+
});
|
2577
|
+
}
|
2578
|
+
|
2579
|
+
function ESPageRouterViewComponent() {
|
2580
|
+
Vue.registerElement('ESPageRouterView', {
|
2581
|
+
component: {
|
2582
|
+
name: 'ESPageRouterView',
|
2583
|
+
},
|
2584
|
+
});
|
2585
|
+
Vue.component('page-router', {
|
2586
|
+
render(h) {
|
2587
|
+
return h('ESPageRouterView',
|
2588
|
+
{
|
2589
|
+
ref: 'ESPageRouterView',
|
2590
|
+
}, this.$slots.default
|
2591
|
+
);
|
2592
|
+
},
|
2593
|
+
methods: {}
|
2594
|
+
});
|
2595
|
+
}
|
2596
|
+
|
2529
2597
|
//
|
2530
2598
|
const ES_NETWORK_INFO_STATE_CONNECTING = 0;
|
2531
2599
|
const ES_NETWORK_INFO_STATE_CONNECTED = 1;
|
@@ -2793,4 +2861,4 @@ const ES_FAST_OUT_LINEAR_IN_INTERPOLATOR = 10;
|
|
2793
2861
|
const ES_FAST_OUT_SLOW_IN_INTERPOLATOR = 11;
|
2794
2862
|
const ES_PATH_INTERPOLATOR = 12;
|
2795
2863
|
|
2796
|
-
export { AUDIO_CONTENT_TYPE_MOVIE, AUDIO_CONTENT_TYPE_MUSIC, AUDIO_CONTENT_TYPE_SONIFICATION, AUDIO_CONTENT_TYPE_SPEECH, AUDIO_CONTENT_TYPE_UNKNOWN, 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, ESAppModule$1 as ESAppModule, ESAudioModule$1 as ESAudioModule, ESBackPressMixin, ESDevelopManager$1 as ESDevelopManager, ESDevelopModule$1 as ESDevelopModule, ESDeviceManager$1 as ESDeviceManager, ESDeviceModule$1 as ESDeviceModule, ESDisplayManager$1 as ESDisplayManager, ESFile, ESFileModule$1 as ESFileModule, ESKeyEventMixin, ESLaunchManager$1 as ESLaunchManager, ESLifecycleMixin, ESLoadingViewComponent, ESMMapManager$1 as ESMMapManager, ESMMapModule$1 as ESMMapModule, ESManager$1 as ESManager, ESModule$1 as ESModule, ESNetworkManager$1 as ESNetworkManager, ESNetworkMixin, ESNetworkModule$1 as ESNetworkModule, ESPermissionModule$1 as ESPermissionModule, ESPowerModule$1 as ESPowerModule, ESProgressBarViewComponent, ESQRCodeViewComponent, ESSeekBarViewComponent, ESSharedPreferencesModule$1 as ESSharedPreferencesModule, ESStorageModule$1 as ESStorageModule, ESTextViewComponent, ESToast$1 as ESToast, ToastModule as ESToastModule, ESTransitionImageViewComponent, 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_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, 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, getESApp, setESApp };
|
2864
|
+
export { AUDIO_CONTENT_TYPE_MOVIE, AUDIO_CONTENT_TYPE_MUSIC, AUDIO_CONTENT_TYPE_SONIFICATION, AUDIO_CONTENT_TYPE_SPEECH, AUDIO_CONTENT_TYPE_UNKNOWN, 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, ESAppModule$1 as ESAppModule, ESAudioModule$1 as ESAudioModule, ESBackPressMixin, ESDevelopManager$1 as ESDevelopManager, ESDevelopModule$1 as ESDevelopModule, ESDeviceManager$1 as ESDeviceManager, ESDeviceModule$1 as ESDeviceModule, ESDisplayManager$1 as ESDisplayManager, ESFile, ESFileModule$1 as ESFileModule, ESKeyEventMixin, ESLaunchManager$1 as ESLaunchManager, ESLifecycleMixin, ESLoadingViewComponent, ESMMapManager$1 as ESMMapManager, ESMMapModule$1 as ESMMapModule, ESManager$1 as ESManager, ESModule$1 as ESModule, ESNetworkManager$1 as ESNetworkManager, ESNetworkMixin, ESNetworkModule$1 as ESNetworkModule, ESPageRootViewComponent, ESPageRouterViewComponent, ESPermissionModule$1 as ESPermissionModule, ESPowerModule$1 as ESPowerModule, ESProgressBarViewComponent, ESQRCodeViewComponent, ESSeekBarViewComponent, ESSharedPreferencesModule$1 as ESSharedPreferencesModule, ESStorageModule$1 as ESStorageModule, ESTextViewComponent, ESToast$1 as ESToast, ToastModule as ESToastModule, ESTransitionImageViewComponent, 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_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, 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, getESApp, setESApp };
|