@acorex-platform/extension-rtc-core-client 0.0.46 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AXP_INTEGRATION_DOMAIN_PROVIDER } from '@acorex-platform/framework-client/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { Injectable, NgModule } from '@angular/core';
|
|
4
|
-
import { AXP_INTEGRATION_CATEGORY
|
|
5
|
-
import { RootConfig, AXE_RTC_DOMAIN_ID
|
|
4
|
+
import { AXP_INTEGRATION_CATEGORY } from '@acorex-platform/framework-shared/core';
|
|
5
|
+
import { RootConfig, AXE_RTC_DOMAIN_ID } from '@acorex-platform/extension-rtc-core-client/contracts';
|
|
6
6
|
|
|
7
|
-
const I18N
|
|
7
|
+
const I18N = `@${RootConfig.config.i18n}:integration.domain`;
|
|
8
8
|
class AXERtcIntegrationDomainProvider {
|
|
9
9
|
async provide(context) {
|
|
10
10
|
context.register({
|
|
11
11
|
id: AXE_RTC_DOMAIN_ID,
|
|
12
12
|
module: RootConfig.module.name,
|
|
13
|
-
displayName: `${I18N
|
|
14
|
-
description: `${I18N
|
|
13
|
+
displayName: `${I18N}.title`,
|
|
14
|
+
description: `${I18N}.description`,
|
|
15
15
|
icon: RootConfig.module.icon,
|
|
16
16
|
category: AXP_INTEGRATION_CATEGORY.Realtime,
|
|
17
17
|
capabilities: [],
|
|
@@ -26,81 +26,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
26
26
|
type: Injectable
|
|
27
27
|
}] });
|
|
28
28
|
|
|
29
|
-
const I18N = `@${RootConfig.config.i18n}:settings`;
|
|
30
|
-
const INTEGRATIONS_SETTINGS_GROUP = 'integrations';
|
|
31
|
-
class AXERtcSettingsProvider {
|
|
32
|
-
async provide(context) {
|
|
33
|
-
this.registerIntegrationsDomainPanel(context);
|
|
34
|
-
this.registerActiveProviderSetting(context);
|
|
35
|
-
}
|
|
36
|
-
registerIntegrationsDomainPanel(context) {
|
|
37
|
-
if (!context.hasGroup(INTEGRATIONS_SETTINGS_GROUP)) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
const integrations = context.group(INTEGRATIONS_SETTINGS_GROUP);
|
|
41
|
-
if (!integrations) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
integrations
|
|
45
|
-
.addSection('rtc', `${I18N}.integrations.section-title`, `${I18N}.integrations.section-description`)
|
|
46
|
-
.addSetting({
|
|
47
|
-
key: 'RtcExtension:Setting:IntegrationsPanel',
|
|
48
|
-
title: `${I18N}.integrations.connections-panel.title`,
|
|
49
|
-
scope: 'T',
|
|
50
|
-
overridableAt: [],
|
|
51
|
-
isInherited: false,
|
|
52
|
-
widget: {
|
|
53
|
-
type: AXPWidgetsList.Advanced.IntegrationConnectionsPanel,
|
|
54
|
-
layout: { stacked: true },
|
|
55
|
-
options: {
|
|
56
|
-
domainId: AXE_RTC_DOMAIN_ID,
|
|
57
|
-
connectionScope: 'tenant',
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
description: `${I18N}.integrations.connections-panel.description`,
|
|
61
|
-
})
|
|
62
|
-
.endSection();
|
|
63
|
-
}
|
|
64
|
-
registerActiveProviderSetting(context) {
|
|
65
|
-
if (!context.hasGroup(AXP_EXPERIENCE_SETTINGS_GROUP)) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const experience = context.group(AXP_EXPERIENCE_SETTINGS_GROUP);
|
|
69
|
-
if (!experience) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
const widgets = experience.section(AXP_EXPERIENCE_SETTINGS_SECTIONS.Widgets);
|
|
73
|
-
if (!widgets) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
widgets.addSetting({
|
|
77
|
-
key: AXERtcSettingKeys.ActiveProvider,
|
|
78
|
-
title: `${I18N}.provider.active-provider.title`,
|
|
79
|
-
scope: 'T',
|
|
80
|
-
overridableAt: [],
|
|
81
|
-
isInherited: true,
|
|
82
|
-
defaultValue: RTC_PROVIDER_IDS.LiveKit,
|
|
83
|
-
widget: {
|
|
84
|
-
type: AXPWidgetsList.Editors.SelectBox,
|
|
85
|
-
options: {
|
|
86
|
-
dataSource: [{ id: RTC_PROVIDER_IDS.LiveKit, title: 'LiveKit' }],
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
description: `${I18N}.provider.active-provider.description`,
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXERtcSettingsProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
93
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXERtcSettingsProvider }); }
|
|
94
|
-
}
|
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXERtcSettingsProvider, decorators: [{
|
|
96
|
-
type: Injectable
|
|
97
|
-
}] });
|
|
98
|
-
|
|
99
29
|
class AXERtcExtensionModule {
|
|
100
30
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXERtcExtensionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
101
31
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXERtcExtensionModule }); }
|
|
102
32
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXERtcExtensionModule, providers: [
|
|
103
|
-
{ provide: AXP_SETTING_DEFINITION_PROVIDER, useClass: AXERtcSettingsProvider, multi: true },
|
|
104
33
|
{ provide: AXP_INTEGRATION_DOMAIN_PROVIDER, useClass: AXERtcIntegrationDomainProvider, multi: true },
|
|
105
34
|
] }); }
|
|
106
35
|
}
|
|
@@ -108,7 +37,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
108
37
|
type: NgModule,
|
|
109
38
|
args: [{
|
|
110
39
|
providers: [
|
|
111
|
-
{ provide: AXP_SETTING_DEFINITION_PROVIDER, useClass: AXERtcSettingsProvider, multi: true },
|
|
112
40
|
{ provide: AXP_INTEGRATION_DOMAIN_PROVIDER, useClass: AXERtcIntegrationDomainProvider, multi: true },
|
|
113
41
|
],
|
|
114
42
|
}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-extension-rtc-core-client.mjs","sources":["../../../../libs/extensions/rtc/core/client/src/lib/integration/rtc.integration-domain.provider.ts","../../../../libs/extensions/rtc/core/client/src/lib/
|
|
1
|
+
{"version":3,"file":"acorex-platform-extension-rtc-core-client.mjs","sources":["../../../../libs/extensions/rtc/core/client/src/lib/integration/rtc.integration-domain.provider.ts","../../../../libs/extensions/rtc/core/client/src/lib/rtc-extension.module.ts","../../../../libs/extensions/rtc/core/client/src/acorex-platform-extension-rtc-core-client.ts"],"sourcesContent":["import { AXP_INTEGRATION_CATEGORY } from '@acorex-platform/framework-shared/core';\nimport {\n type AXPIntegrationDomainProvider,\n AXPIntegrationDomainProviderContext,\n} from '@acorex-platform/framework-client/common';\nimport { Injectable } from '@angular/core';\nimport {\n AXE_RTC_DOMAIN_ID,\n RootConfig,\n} from '@acorex-platform/extension-rtc-core-client/contracts';\n\nconst I18N = `@${RootConfig.config.i18n}:integration.domain`;\n\n@Injectable()\nexport class AXERtcIntegrationDomainProvider implements AXPIntegrationDomainProvider {\n async provide(context: AXPIntegrationDomainProviderContext): Promise<void> {\n context.register({\n id: AXE_RTC_DOMAIN_ID,\n module: RootConfig.module.name,\n displayName: `${I18N}.title`,\n description: `${I18N}.description`,\n icon: RootConfig.module.icon,\n category: AXP_INTEGRATION_CATEGORY.Realtime,\n capabilities: [],\n settingsGroup: 'integrations',\n sortOrder: 20,\n });\n }\n}\n","import { AXP_INTEGRATION_DOMAIN_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { NgModule } from '@angular/core';\nimport { AXERtcIntegrationDomainProvider } from './integration/rtc.integration-domain.provider';\n\n@NgModule({\n providers: [\n { provide: AXP_INTEGRATION_DOMAIN_PROVIDER, useClass: AXERtcIntegrationDomainProvider, multi: true },\n ],\n})\nexport class AXERtcExtensionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAWA,MAAM,IAAI,GAAG,CAAA,CAAA,EAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,mBAAA,CAAqB;MAG/C,+BAA+B,CAAA;IAC1C,MAAM,OAAO,CAAC,OAA4C,EAAA;QACxD,OAAO,CAAC,QAAQ,CAAC;AACf,YAAA,EAAE,EAAE,iBAAiB;AACrB,YAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;YAC9B,WAAW,EAAE,CAAA,EAAG,IAAI,CAAA,MAAA,CAAQ;YAC5B,WAAW,EAAE,CAAA,EAAG,IAAI,CAAA,YAAA,CAAc;AAClC,YAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;YAC5B,QAAQ,EAAE,wBAAwB,CAAC,QAAQ;AAC3C,YAAA,YAAY,EAAE,EAAE;AAChB,YAAA,aAAa,EAAE,cAAc;AAC7B,YAAA,SAAS,EAAE,EAAE;AACd,SAAA,CAAC;IACJ;8GAbW,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAA/B,+BAA+B,EAAA,CAAA,CAAA;;2FAA/B,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAD3C;;;MCJY,qBAA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