@equinor/fusion-framework-module-app 1.0.12 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/esm/configurator.js +57 -0
- package/dist/esm/configurator.js.map +1 -0
- package/dist/esm/helpers.js +2 -0
- package/dist/esm/helpers.js.map +1 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/module.js +26 -0
- package/dist/esm/module.js.map +1 -0
- package/dist/esm/provider.js +72 -0
- package/dist/esm/provider.js.map +1 -0
- package/dist/esm/types.js +1 -19
- package/dist/esm/types.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/configurator.d.ts +24 -0
- package/dist/types/helpers.d.ts +2 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/module.d.ts +13 -0
- package/dist/types/provider.d.ts +35 -0
- package/dist/types/types.d.ts +13 -39
- package/package.json +13 -6
- package/src/configurator.ts +75 -0
- package/src/helpers.ts +4 -0
- package/src/index.ts +6 -0
- package/src/module.ts +35 -0
- package/src/provider.ts +121 -0
- package/src/types.ts +13 -44
- package/tsconfig.json +6 -0
- package/TODO.md +0 -5
- package/dist/esm/app-configurator.js +0 -2
- package/dist/esm/app-configurator.js.map +0 -1
- package/dist/esm/app-provider.js +0 -25
- package/dist/esm/app-provider.js.map +0 -1
- package/dist/types/app-configurator.d.ts +0 -0
- package/dist/types/app-provider.d.ts +0 -11
- package/src/app-configurator.ts +0 -0
- package/src/app-provider.ts +0 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.1.2](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-app@1.1.1...@equinor/fusion-framework-module-app@1.1.2) (2022-11-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-app
|
|
9
|
+
|
|
10
|
+
## 1.1.1 (2022-11-02)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-app
|
|
13
|
+
|
|
14
|
+
## 1.1.0 (2022-11-01)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
- **module-app:** initial app module ([ce5aed1](https://github.com/equinor/fusion-framework/commit/ce5aed124431afbe55b9cf11a50a5c8d5499260e))
|
|
19
|
+
|
|
6
20
|
## 1.0.12 (2022-10-27)
|
|
7
21
|
|
|
8
22
|
**Note:** Version bump only for package @equinor/fusion-framework-module-app
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { moduleKey } from './module';
|
|
11
|
+
export class AppConfigurator {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.defaultExpireTime = 1 * 60 * 1000;
|
|
14
|
+
}
|
|
15
|
+
_createHttpClient(init) {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
const http = yield init.requireInstance('http');
|
|
18
|
+
if (http.hasClient(moduleKey)) {
|
|
19
|
+
return http.createClient(moduleKey);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
const serviceDiscovery = yield init.requireInstance('serviceDiscovery');
|
|
23
|
+
return yield serviceDiscovery.createClient('portal');
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
createConfig(args) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const httpClient = yield this._createHttpClient(args);
|
|
30
|
+
const config = {
|
|
31
|
+
getApp: {
|
|
32
|
+
client: {
|
|
33
|
+
fn: ({ appKey }) => httpClient.json$(`/api/apps/${appKey}`),
|
|
34
|
+
},
|
|
35
|
+
key: ({ appKey }) => appKey,
|
|
36
|
+
},
|
|
37
|
+
getApps: {
|
|
38
|
+
client: {
|
|
39
|
+
fn: () => httpClient.json$(`/api/apps`),
|
|
40
|
+
},
|
|
41
|
+
key: () => 'apps',
|
|
42
|
+
},
|
|
43
|
+
getConfig: {
|
|
44
|
+
client: {
|
|
45
|
+
fn: ({ appKey, tag }) => httpClient.json$(`/api/apps/${appKey}/config${tag ? `?tag=${tag}` : ''}`),
|
|
46
|
+
},
|
|
47
|
+
key: (args) => JSON.stringify(args),
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
return this.processConfig(config);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
processConfig(config) {
|
|
54
|
+
return config;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=configurator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator.js","sourceRoot":"","sources":["../../src/configurator.ts"],"names":[],"mappings":";;;;;;;;;AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAiBrC,MAAM,OAAO,eAAe;IAA5B;QAGI,sBAAiB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;IAmDtC,CAAC;IA9CmB,iBAAiB,CAC7B,IAA2D;;YAE3D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;YAEhD,IAAI,IAAI,CAAC,SAAS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OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/helpers.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAwB,CAAK,EAAE,CAAK,EAAW,EAAE,CAC/E,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAsC,MAAM,gBAAgB,CAAC;AACrF,OAAO,EAAE,WAAW,EAAgB,MAAM,YAAY,CAAC;AAEvD,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,EAAa,MAAM,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { AppConfigurator } from './configurator';
|
|
11
|
+
import { AppProvider } from './provider';
|
|
12
|
+
export const moduleKey = 'app';
|
|
13
|
+
export const module = {
|
|
14
|
+
name: moduleKey,
|
|
15
|
+
configure: () => new AppConfigurator(),
|
|
16
|
+
initialize: (args) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
+
const config = yield args.config.createConfig(args);
|
|
18
|
+
const event = yield args.requireInstance('event').catch(() => undefined);
|
|
19
|
+
return new AppProvider({ config, event });
|
|
20
|
+
}),
|
|
21
|
+
dispose: (args) => {
|
|
22
|
+
args.instance.dispose();
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
export default module;
|
|
26
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/module.ts"],"names":[],"mappings":";;;;;;;;;AAGA,OAAO,EAAoB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAgB,MAAM,YAAY,CAAC;AAEvD,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC;AAS/B,MAAM,CAAC,MAAM,MAAM,GAAc;IAC7B,IAAI,EAAE,SAAS;IACf,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,eAAe,EAAE;IACtC,UAAU,EAAE,CAAO,IAAI,EAAE,EAAE;QACvB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACpD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QACzE,OAAO,IAAI,WAAW,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9C,CAAC,CAAA;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,IAAI,CAAC,QAAmC,CAAC,OAAO,EAAE,CAAC;IACxD,CAAC;CACJ,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
+
};
|
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
+
};
|
|
12
|
+
var _AppProvider_appClient, _AppProvider_appsClient, _AppProvider_configClient, _AppProvider_current$, _AppProvider_subscription;
|
|
13
|
+
import { BehaviorSubject, distinctUntilChanged, Observable, pairwise, Subscription, takeWhile, } from 'rxjs';
|
|
14
|
+
import { Query, queryValue } from '@equinor/fusion-observable/query';
|
|
15
|
+
import { compareAppManifest } from './helpers';
|
|
16
|
+
export class AppProvider extends Observable {
|
|
17
|
+
constructor(args) {
|
|
18
|
+
super((observer) => this.current$.subscribe(observer));
|
|
19
|
+
_AppProvider_appClient.set(this, void 0);
|
|
20
|
+
_AppProvider_appsClient.set(this, void 0);
|
|
21
|
+
_AppProvider_configClient.set(this, void 0);
|
|
22
|
+
_AppProvider_current$.set(this, void 0);
|
|
23
|
+
_AppProvider_subscription.set(this, new Subscription());
|
|
24
|
+
const { event, config } = args;
|
|
25
|
+
__classPrivateFieldSet(this, _AppProvider_current$, new BehaviorSubject(undefined), "f");
|
|
26
|
+
__classPrivateFieldSet(this, _AppProvider_appClient, new Query(config.getApp), "f");
|
|
27
|
+
__classPrivateFieldSet(this, _AppProvider_appsClient, new Query(config.getApps), "f");
|
|
28
|
+
__classPrivateFieldSet(this, _AppProvider_configClient, new Query(config.getConfig), "f");
|
|
29
|
+
__classPrivateFieldGet(this, _AppProvider_subscription, "f").add(__classPrivateFieldGet(this, _AppProvider_appClient, "f").complete);
|
|
30
|
+
__classPrivateFieldGet(this, _AppProvider_subscription, "f").add(__classPrivateFieldGet(this, _AppProvider_appsClient, "f").complete);
|
|
31
|
+
__classPrivateFieldGet(this, _AppProvider_subscription, "f").add(__classPrivateFieldGet(this, _AppProvider_configClient, "f").complete);
|
|
32
|
+
__classPrivateFieldGet(this, _AppProvider_subscription, "f").add(this.current$
|
|
33
|
+
.pipe(pairwise(), takeWhile(() => !!event))
|
|
34
|
+
.subscribe(([previous, next]) => {
|
|
35
|
+
event === null || event === void 0 ? void 0 : event.dispatchEvent('onCurrentAppChanged', {
|
|
36
|
+
source: this,
|
|
37
|
+
detail: { previous, next },
|
|
38
|
+
});
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
get current() {
|
|
42
|
+
return __classPrivateFieldGet(this, _AppProvider_current$, "f").value;
|
|
43
|
+
}
|
|
44
|
+
get current$() {
|
|
45
|
+
return __classPrivateFieldGet(this, _AppProvider_current$, "f").pipe(distinctUntilChanged(compareAppManifest));
|
|
46
|
+
}
|
|
47
|
+
getApp(appKey) {
|
|
48
|
+
return queryValue(__classPrivateFieldGet(this, _AppProvider_appClient, "f").query({ appKey }));
|
|
49
|
+
}
|
|
50
|
+
getAllApps() {
|
|
51
|
+
return queryValue(__classPrivateFieldGet(this, _AppProvider_appsClient, "f").query());
|
|
52
|
+
}
|
|
53
|
+
getAppConfig(appKey, tag) {
|
|
54
|
+
return queryValue(__classPrivateFieldGet(this, _AppProvider_configClient, "f").query({ appKey, tag }));
|
|
55
|
+
}
|
|
56
|
+
setCurrentApp(appKey) {
|
|
57
|
+
return new Promise((complete, error) => {
|
|
58
|
+
const query$ = __classPrivateFieldGet(this, _AppProvider_appClient, "f").query({ appKey }, { skipQueue: true });
|
|
59
|
+
__classPrivateFieldGet(this, _AppProvider_subscription, "f").add(queryValue(query$).subscribe({
|
|
60
|
+
next: (x) => __classPrivateFieldGet(this, _AppProvider_current$, "f").next(x),
|
|
61
|
+
error,
|
|
62
|
+
complete,
|
|
63
|
+
}));
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
dispose() {
|
|
67
|
+
__classPrivateFieldGet(this, _AppProvider_subscription, "f").unsubscribe();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
_AppProvider_appClient = new WeakMap(), _AppProvider_appsClient = new WeakMap(), _AppProvider_configClient = new WeakMap(), _AppProvider_current$ = new WeakMap(), _AppProvider_subscription = new WeakMap();
|
|
71
|
+
export default AppProvider;
|
|
72
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACH,eAAe,EACf,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,SAAS,GACZ,MAAM,MAAM,CAAC;AAId,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AASrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAY/C,MAAM,OAAO,WAAY,SAAQ,UAAmC;IAkBhE,YAAY,IAAmE;QAC3E,KAAK,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;QAlB3D,yCAAmD;QACnD,0CAAwC;QAExC,4CAAuE;QAEvE,wCAAoD;QAEpD,oCAAgB,IAAI,YAAY,EAAE,EAAC;QAa/B,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAE/B,uBAAA,IAAI,yBAAa,IAAI,eAAe,CAA0B,SAAS,CAAC,MAAA,CAAC;QAEzE,uBAAA,IAAI,0BAAc,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,CAAC,CAAC;IACzD,CAAC;IAEM,UAAU;QACb,OAAO,UAAU,CAAC,uBAAA,IAAI,+BAAY,CAAC,KAAK,EAAE,CAAC,CAAC;IAChD,CAAC;IAEM,YAAY,CACf,MAAc,EACd,GAAY;QAEZ,OAAO,UAAU,CAAC,uBAAA,IAAI,iCAAc,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;IACjE,CAAC;IAEM,aAAa,CAAC,MAAc;QAC/B,OAAO,IAAI,OAAO,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE;YACnC,MAAM,MAAM,GAAG,uBAAA,IAAI,8BAAW,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YACtE,uBAAA,IAAI,iCAAc,CAAC,GAAG,CAClB,UAAU,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC;gBACzB,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,uBAAA,IAAI,6BAAU,CAAC,IAAI,CAAC,CAAC,CAAC;gBACnC,KAAK;gBACL,QAAQ;aACX,CAAC,CACL,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,OAAO;QACV,uBAAA,IAAI,iCAAc,CAAC,WAAW,EAAE,CAAC;IACrC,CAAC;CACJ;;AAUD,eAAe,WAAW,CAAC"}
|
package/dist/esm/types.js
CHANGED
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
(function (ContextTypes) {
|
|
3
|
-
ContextTypes["Contract"] = "Contract";
|
|
4
|
-
ContextTypes["OrgChart"] = "OrgChart";
|
|
5
|
-
ContextTypes["PDP"] = "PDP";
|
|
6
|
-
ContextTypes["PimsDomain"] = "PimsDomain";
|
|
7
|
-
ContextTypes["Portfolio"] = "Portfolio";
|
|
8
|
-
ContextTypes["Project"] = "Project";
|
|
9
|
-
ContextTypes["ProjectMaster"] = "ProjectMaster";
|
|
10
|
-
ContextTypes["Facility"] = "Facility";
|
|
11
|
-
ContextTypes["TpdPortfolio"] = "TpdPortfolio";
|
|
12
|
-
})(ContextTypes || (ContextTypes = {}));
|
|
13
|
-
export class ContextType {
|
|
14
|
-
constructor(id, isChildType, parentTypeIds = []) {
|
|
15
|
-
this.id = id;
|
|
16
|
-
this.isChildType = isChildType;
|
|
17
|
-
this.parentTypeIds = parentTypeIds;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
export {};
|
|
20
2
|
//# sourceMappingURL=types.js.map
|
package/dist/esm/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
|