@provoly/dashboard 0.12.4 → 0.12.6
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/assets/svgs/datasource.svg +4 -0
- package/assets/svgs/datasources.svg +4 -0
- package/assets/svgs/loader.svg +13 -0
- package/esm2022/lib/core/i18n/en.translations.mjs +3 -2
- package/esm2022/lib/core/i18n/fr.translations.mjs +3 -2
- package/esm2022/lib/dashboard/components/dashboard.component.mjs +4 -3
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +3 -2
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +4 -3
- package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +19 -2
- package/esm2022/lib/dashboard/store/dashboard.selectors.mjs +4 -2
- package/esm2022/toolbox/components/save-view/save-view.component.mjs +3 -3
- package/fesm2022/provoly-dashboard-toolbox.mjs +2 -2
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +32 -8
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/i18n/en.translations.d.ts +1 -0
- package/lib/core/i18n/fr.translations.d.ts +1 -0
- package/lib/dashboard/components/dashboard.component.d.ts +1 -0
- package/lib/dashboard/store/dashboard.actions.d.ts +3 -2
- package/lib/dashboard/store/dashboard.effects.d.ts +1 -0
- package/lib/dashboard/store/dashboard.reducers.d.ts +1 -0
- package/lib/dashboard/store/dashboard.selectors.d.ts +16 -0
- package/package.json +31 -31
- package/schematics/ng-add/index.js +58 -19
- package/schematics/ng-add/index.js.map +1 -1
- package/styles-theme/components-theme/_o-dashboard.theme.scss +12 -0
- package/styles-theme/main-theme.scss +1 -0
|
@@ -26,6 +26,7 @@ export declare class DashboardComponent extends SubscriptionnerDirective impleme
|
|
|
26
26
|
separators$: Observable<WidgetLayout[]>;
|
|
27
27
|
nonFillerWidgets$: Observable<number>;
|
|
28
28
|
widgetsInstances: Array<BaseWidgetComponent>;
|
|
29
|
+
loading$: Observable<boolean>;
|
|
29
30
|
set staticDashboard(window: DashboardManifest);
|
|
30
31
|
CloseOnDragOut: boolean;
|
|
31
32
|
gridRef: ElementRef;
|
|
@@ -208,11 +208,12 @@ export declare const DashboardActions: {
|
|
|
208
208
|
}) => {
|
|
209
209
|
manifests: ManifestDescription[];
|
|
210
210
|
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) received manifests list">>;
|
|
211
|
-
fetchStaticManifest: import("@ngrx/store").ActionCreator<"[Dashboard] fetching staticManifest", (props: {
|
|
211
|
+
fetchStaticManifest: import("@ngrx/store").ActionCreator<"[Dashboard] (bus) fetching staticManifest", (props: {
|
|
212
212
|
id: string;
|
|
213
213
|
}) => {
|
|
214
214
|
id: string;
|
|
215
|
-
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] fetching staticManifest">>;
|
|
215
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) fetching staticManifest">>;
|
|
216
|
+
endLoading: import("@ngrx/store").ActionCreator<"[Dashboard] end loading", () => import("@ngrx/store/src/models").TypedAction<"[Dashboard] end loading">>;
|
|
216
217
|
updateStaticManifest: import("@ngrx/store").ActionCreator<"[Dashboard] (bus) received staticManifest", (props: {
|
|
217
218
|
staticManifest: GlobalManifest;
|
|
218
219
|
}) => {
|
|
@@ -53,6 +53,7 @@ export declare class DashboardEffects {
|
|
|
53
53
|
fetchStaticManifest$: import("rxjs").Observable<{
|
|
54
54
|
staticManifest: GlobalManifest;
|
|
55
55
|
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) received staticManifest">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
56
|
+
fetchStaticManifestLoading$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dashboard] end loading">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
56
57
|
loadAndActivateManifest$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) follow manifest route"> | ({
|
|
57
58
|
tenants?: string[] | undefined;
|
|
58
59
|
manifest: GlobalManifest;
|
|
@@ -15,6 +15,7 @@ export declare const DashboardSelectors: {
|
|
|
15
15
|
list: import("../../core/model/manifest.interface").ManifestDescription[];
|
|
16
16
|
currentId: string;
|
|
17
17
|
staticManifest: GlobalManifest;
|
|
18
|
+
loading: boolean;
|
|
18
19
|
}) => number>;
|
|
19
20
|
currentManifestId: MemoizedSelector<object, string, (s1: {
|
|
20
21
|
sender: string;
|
|
@@ -23,6 +24,7 @@ export declare const DashboardSelectors: {
|
|
|
23
24
|
list: import("../../core/model/manifest.interface").ManifestDescription[];
|
|
24
25
|
currentId: string;
|
|
25
26
|
staticManifest: GlobalManifest;
|
|
27
|
+
loading: boolean;
|
|
26
28
|
}) => string>;
|
|
27
29
|
globalManifest: MemoizedSelector<object, {
|
|
28
30
|
windows: DashboardManifest[];
|
|
@@ -38,6 +40,7 @@ export declare const DashboardSelectors: {
|
|
|
38
40
|
list: import("../../core/model/manifest.interface").ManifestDescription[];
|
|
39
41
|
currentId: string;
|
|
40
42
|
staticManifest: GlobalManifest;
|
|
43
|
+
loading: boolean;
|
|
41
44
|
}) => {
|
|
42
45
|
windows: DashboardManifest[];
|
|
43
46
|
refreshRates?: {
|
|
@@ -82,6 +85,7 @@ export declare const DashboardSelectors: {
|
|
|
82
85
|
list: import("../../core/model/manifest.interface").ManifestDescription[];
|
|
83
86
|
currentId: string;
|
|
84
87
|
staticManifest: GlobalManifest;
|
|
88
|
+
loading: boolean;
|
|
85
89
|
}) => import("../../core/model/manifest.interface").ManifestDescription[]>;
|
|
86
90
|
gridLayout: MemoizedSelector<object, DashboardGridLayout, (s1: DashboardManifest) => DashboardGridLayout>;
|
|
87
91
|
tenants: MemoizedSelector<object, string[], (s1: {
|
|
@@ -91,6 +95,7 @@ export declare const DashboardSelectors: {
|
|
|
91
95
|
list: import("../../core/model/manifest.interface").ManifestDescription[];
|
|
92
96
|
currentId: string;
|
|
93
97
|
staticManifest: GlobalManifest;
|
|
98
|
+
loading: boolean;
|
|
94
99
|
}) => string[]>;
|
|
95
100
|
resultSets: MemoizedSelector<object, ResultSets, (s1: {
|
|
96
101
|
resultSets: ResultSets;
|
|
@@ -290,6 +295,7 @@ export declare const DashboardSelectors: {
|
|
|
290
295
|
list: import("../../core/model/manifest.interface").ManifestDescription[];
|
|
291
296
|
currentId: string;
|
|
292
297
|
staticManifest: GlobalManifest;
|
|
298
|
+
loading: boolean;
|
|
293
299
|
}, s2: number) => number[]>;
|
|
294
300
|
dashboard: MemoizedSelector<object, {
|
|
295
301
|
params: DashboardCellParams;
|
|
@@ -320,6 +326,7 @@ export declare const DashboardSelectors: {
|
|
|
320
326
|
list: import("../../core/model/manifest.interface").ManifestDescription[];
|
|
321
327
|
currentId: string;
|
|
322
328
|
staticManifest: GlobalManifest;
|
|
329
|
+
loading: boolean;
|
|
323
330
|
}) => {
|
|
324
331
|
windows: DashboardManifest[];
|
|
325
332
|
refreshRates?: {
|
|
@@ -328,6 +335,15 @@ export declare const DashboardSelectors: {
|
|
|
328
335
|
locked?: boolean | undefined;
|
|
329
336
|
filters?: Filter[] | undefined;
|
|
330
337
|
}>;
|
|
338
|
+
loading: MemoizedSelector<object, boolean, (s1: {
|
|
339
|
+
sender: string;
|
|
340
|
+
tenants: string[];
|
|
341
|
+
manifest: GlobalManifest;
|
|
342
|
+
list: import("../../core/model/manifest.interface").ManifestDescription[];
|
|
343
|
+
currentId: string;
|
|
344
|
+
staticManifest: GlobalManifest;
|
|
345
|
+
loading: boolean;
|
|
346
|
+
}) => boolean>;
|
|
331
347
|
quickOrder: MemoizedSelector<object, {
|
|
332
348
|
[id: string]: ResultOrder | undefined;
|
|
333
349
|
}, (s1: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/dashboard",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "15.x || 16.x",
|
|
@@ -97,6 +97,30 @@
|
|
|
97
97
|
"esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
|
|
98
98
|
"default": "./fesm2022/provoly-dashboard-toolbox.mjs"
|
|
99
99
|
},
|
|
100
|
+
"./filters/date": {
|
|
101
|
+
"types": "./filters/date/index.d.ts",
|
|
102
|
+
"esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
103
|
+
"esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
104
|
+
"default": "./fesm2022/provoly-dashboard-filters-date.mjs"
|
|
105
|
+
},
|
|
106
|
+
"./filters/list": {
|
|
107
|
+
"types": "./filters/list/index.d.ts",
|
|
108
|
+
"esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
109
|
+
"esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
110
|
+
"default": "./fesm2022/provoly-dashboard-filters-list.mjs"
|
|
111
|
+
},
|
|
112
|
+
"./filters/number": {
|
|
113
|
+
"types": "./filters/number/index.d.ts",
|
|
114
|
+
"esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
115
|
+
"esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
116
|
+
"default": "./fesm2022/provoly-dashboard-filters-number.mjs"
|
|
117
|
+
},
|
|
118
|
+
"./filters/text": {
|
|
119
|
+
"types": "./filters/text/index.d.ts",
|
|
120
|
+
"esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
121
|
+
"esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
122
|
+
"default": "./fesm2022/provoly-dashboard-filters-text.mjs"
|
|
123
|
+
},
|
|
100
124
|
"./components/card": {
|
|
101
125
|
"types": "./components/card/index.d.ts",
|
|
102
126
|
"esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
|
|
@@ -109,54 +133,30 @@
|
|
|
109
133
|
"esm": "./esm2022/components/checkbox/provoly-dashboard-components-checkbox.mjs",
|
|
110
134
|
"default": "./fesm2022/provoly-dashboard-components-checkbox.mjs"
|
|
111
135
|
},
|
|
112
|
-
"./components/filter": {
|
|
113
|
-
"types": "./components/filter/index.d.ts",
|
|
114
|
-
"esm2022": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
|
|
115
|
-
"esm": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
|
|
116
|
-
"default": "./fesm2022/provoly-dashboard-components-filter.mjs"
|
|
117
|
-
},
|
|
118
136
|
"./components/expand-panel": {
|
|
119
137
|
"types": "./components/expand-panel/index.d.ts",
|
|
120
138
|
"esm2022": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
|
|
121
139
|
"esm": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
|
|
122
140
|
"default": "./fesm2022/provoly-dashboard-components-expand-panel.mjs"
|
|
123
141
|
},
|
|
142
|
+
"./components/filter": {
|
|
143
|
+
"types": "./components/filter/index.d.ts",
|
|
144
|
+
"esm2022": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
|
|
145
|
+
"esm": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
|
|
146
|
+
"default": "./fesm2022/provoly-dashboard-components-filter.mjs"
|
|
147
|
+
},
|
|
124
148
|
"./components/sinceDate": {
|
|
125
149
|
"types": "./components/sinceDate/index.d.ts",
|
|
126
150
|
"esm2022": "./esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs",
|
|
127
151
|
"esm": "./esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs",
|
|
128
152
|
"default": "./fesm2022/provoly-dashboard-components-sinceDate.mjs"
|
|
129
153
|
},
|
|
130
|
-
"./filters/date": {
|
|
131
|
-
"types": "./filters/date/index.d.ts",
|
|
132
|
-
"esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
133
|
-
"esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
134
|
-
"default": "./fesm2022/provoly-dashboard-filters-date.mjs"
|
|
135
|
-
},
|
|
136
154
|
"./components/stepper": {
|
|
137
155
|
"types": "./components/stepper/index.d.ts",
|
|
138
156
|
"esm2022": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
|
|
139
157
|
"esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
|
|
140
158
|
"default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
|
|
141
159
|
},
|
|
142
|
-
"./filters/list": {
|
|
143
|
-
"types": "./filters/list/index.d.ts",
|
|
144
|
-
"esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
145
|
-
"esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
146
|
-
"default": "./fesm2022/provoly-dashboard-filters-list.mjs"
|
|
147
|
-
},
|
|
148
|
-
"./filters/number": {
|
|
149
|
-
"types": "./filters/number/index.d.ts",
|
|
150
|
-
"esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
151
|
-
"esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
152
|
-
"default": "./fesm2022/provoly-dashboard-filters-number.mjs"
|
|
153
|
-
},
|
|
154
|
-
"./filters/text": {
|
|
155
|
-
"types": "./filters/text/index.d.ts",
|
|
156
|
-
"esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
157
|
-
"esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
158
|
-
"default": "./fesm2022/provoly-dashboard-filters-text.mjs"
|
|
159
|
-
},
|
|
160
160
|
"./pipeline-components/filter": {
|
|
161
161
|
"types": "./pipeline-components/filter/index.d.ts",
|
|
162
162
|
"esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
|
|
@@ -13,22 +13,22 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
13
13
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
14
14
|
const utility_1 = require("@schematics/angular/utility");
|
|
15
15
|
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
16
|
-
const file_contents_function_1 = require("../utils/file-contents.function");
|
|
17
16
|
function projectSetup(options) {
|
|
18
17
|
return (tree, context) => __awaiter(this, void 0, void 0, function* () {
|
|
19
18
|
context.logger.info('Adding @provoly/dashboard to project');
|
|
20
19
|
addDependencies(tree, options);
|
|
21
20
|
context.logger.info('Plan node install');
|
|
22
21
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
23
|
-
|
|
22
|
+
const modifications = [];
|
|
23
|
+
modifications.push(addProvolyForRoot(options, context, tree));
|
|
24
|
+
modifications.push(...addPipelinesImport(options, context, tree));
|
|
25
|
+
return (0, schematics_1.chain)(modifications.filter((modif) => !!modif));
|
|
24
26
|
});
|
|
25
27
|
}
|
|
26
28
|
exports.default = projectSetup;
|
|
27
29
|
function addDependencies(tree, options) {
|
|
28
30
|
console.log('Adding provoly dependencies');
|
|
29
|
-
const packageJson = JSON.parse((0, file_contents_function_1.getFileContent)(tree, '/package.json'));
|
|
30
31
|
const dependencies = [
|
|
31
|
-
{ type: dependencies_1.NodeDependencyType.Default, version: packageJson.version, name: '@provoly/dashboard' },
|
|
32
32
|
{ type: dependencies_1.NodeDependencyType.Default, version: '^9.0.0', name: 'uuid' },
|
|
33
33
|
{ type: dependencies_1.NodeDependencyType.Default, version: '^3.1.3', name: 'fast-deep-equal' },
|
|
34
34
|
{ type: dependencies_1.NodeDependencyType.Default, version: '^1.2.3', name: 'css-element-queries' },
|
|
@@ -36,6 +36,7 @@ function addDependencies(tree, options) {
|
|
|
36
36
|
{ type: dependencies_1.NodeDependencyType.Dev, version: '^9.0.0', name: '@types/uuid' }
|
|
37
37
|
];
|
|
38
38
|
if (options.widgets.includes('widget-map')) {
|
|
39
|
+
console.log('...Adding provoly dependencies for map');
|
|
39
40
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^7.0.0', name: 'ol' });
|
|
40
41
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^4.1.0', name: 'ol-layerswitcher' });
|
|
41
42
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^10.6.0', name: 'ol-mapbox-style' });
|
|
@@ -49,11 +50,13 @@ function addDependencies(tree, options) {
|
|
|
49
50
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Dev, version: '^3.4.1', name: '@types/shpjs' });
|
|
50
51
|
}
|
|
51
52
|
if (options.widgets.includes('widget-aggregated-chart')) {
|
|
53
|
+
console.log('...Adding provoly dependencies for charts');
|
|
52
54
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^5.21.0', name: 'vega' });
|
|
53
55
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^6.20.5', name: 'vega-embed' });
|
|
54
56
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^5.2.0', name: 'vega-lite' });
|
|
55
57
|
}
|
|
56
58
|
if (options.widgets.includes('widget-graph')) {
|
|
59
|
+
console.log('...Adding provoly dependencies for graphs');
|
|
57
60
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^3.0.0', name: 'd3-drag' });
|
|
58
61
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^3.0.0', name: 'd3-force' });
|
|
59
62
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^3.0.0', name: 'd3-selection' });
|
|
@@ -64,6 +67,7 @@ function addDependencies(tree, options) {
|
|
|
64
67
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Dev, version: '^0.7.47', name: '@types/dagre' });
|
|
65
68
|
}
|
|
66
69
|
if (options.pipeline) {
|
|
70
|
+
console.log('...Adding provoly dependencies for pipelines');
|
|
67
71
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^0.7.10', name: 'litegraph.js' });
|
|
68
72
|
}
|
|
69
73
|
dependencies.forEach((d) => {
|
|
@@ -145,18 +149,17 @@ function provolyUrls(options, context) {
|
|
|
145
149
|
return JSON.stringify(urlOptions);
|
|
146
150
|
}
|
|
147
151
|
function addProvolyForRoot(options, context, tree) {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return (0, utility_1.addRootImport)(options.projectName, ({ code, external }) => code `${external(pryImportModule, '@provoly/dashboard')}.forRoot(
|
|
152
|
+
context.logger.info('Adding provoly module import');
|
|
153
|
+
const pryImportModule = 'PryDashboardModule';
|
|
154
|
+
try {
|
|
155
|
+
const modulePath = 'src/app/app.module.ts';
|
|
156
|
+
if (!tree.exists(modulePath)) {
|
|
157
|
+
throw new schematics_1.SchematicsException(`Module file ${modulePath} doesn't exist.`);
|
|
158
|
+
}
|
|
159
|
+
const recorder = tree.beginUpdate(modulePath);
|
|
160
|
+
tree.commitUpdate(recorder);
|
|
161
|
+
// Add an import `MyLibModule` from `provoly/dashboard` to the root of the user's project.
|
|
162
|
+
return (0, utility_1.addRootImport)(options.projectName, ({ code, external }) => code `${external(pryImportModule, '@provoly/dashboard')}.forRoot(
|
|
160
163
|
${widgetImports(options, context, external)},
|
|
161
164
|
${provolyUrls(options, context)},
|
|
162
165
|
{
|
|
@@ -192,11 +195,47 @@ function addProvolyForRoot(options, context, tree) {
|
|
|
192
195
|
},
|
|
193
196
|
[]
|
|
194
197
|
)`);
|
|
198
|
+
}
|
|
199
|
+
catch (e) {
|
|
200
|
+
context.logger.info('Project module not found: You have to manually add Provoly import');
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function addPipelinesImport(options, context, tree) {
|
|
205
|
+
if (options.pipeline) {
|
|
206
|
+
context.logger.info('Adding pipeline import');
|
|
207
|
+
const modules = [
|
|
208
|
+
{
|
|
209
|
+
name: 'PryPipelineModule',
|
|
210
|
+
path: '@provoly/dashboard/pipeline'
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'PryPipelineInputDatasetDefinitionModule',
|
|
214
|
+
path: '@provoly/dashboard/pipeline-components/input-datasource'
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: 'PryPipelineOutputDatasetDefinitionModule',
|
|
218
|
+
path: '@provoly/dashboard/pipeline'
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: 'PryPipelineFilterModule',
|
|
222
|
+
path: '@provoly/dashboard/pipeline-components/output-dataset'
|
|
223
|
+
}
|
|
224
|
+
];
|
|
225
|
+
try {
|
|
226
|
+
const modulePath = 'src/app/app.module.ts';
|
|
227
|
+
if (!tree.exists(modulePath)) {
|
|
228
|
+
throw new schematics_1.SchematicsException(`Module file ${modulePath} doesn't exist.`);
|
|
229
|
+
}
|
|
230
|
+
const recorder = tree.beginUpdate(modulePath);
|
|
231
|
+
tree.commitUpdate(recorder);
|
|
232
|
+
// Add an import `MyLibModule` from `provoly/dashboard` to the root of the user's project.
|
|
233
|
+
return modules.map((module) => (0, utility_1.addRootImport)(options.projectName, ({ code, external }) => code `${external(module.name, module.path)}`));
|
|
195
234
|
}
|
|
196
235
|
catch (e) {
|
|
197
|
-
context.logger.info('
|
|
198
|
-
return;
|
|
236
|
+
context.logger.info('Cannot automatically add pipelines imports.');
|
|
199
237
|
}
|
|
200
|
-
}
|
|
238
|
+
}
|
|
239
|
+
return [];
|
|
201
240
|
}
|
|
202
241
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/provoly/dashboard/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/provoly/dashboard/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAsG;AACtG,4DAA0E;AA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AAM,OAAO,GAAG;YACd;gBACE,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,6BAA6B;aACpC;YACD;gBACE,IAAI,EAAE,yCAAyC;gBAC/C,IAAI,EAAE,yDAAyD;aAChE;YACD;gBACE,IAAI,EAAE,0CAA0C;gBAChD,IAAI,EAAE,6BAA6B;aACpC;YACD;gBACE,IAAI,EAAE,yBAAyB;gBAC/B,IAAI,EAAE,uDAAuD;aAC9D;SACF,CAAC;QAEF,IAAI;YACF,MAAM,UAAU,GAAG,uBAAuB,CAAC;YAC3C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE;gBAC5B,MAAM,IAAI,gCAAmB,CAAC,eAAe,UAAU,iBAAiB,CAAC,CAAC;aAC3E;YACD,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;YAC9C,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YAE5B,0FAA0F;YAC1F,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAC5B,IAAA,uBAAa,EAAC,OAAO,CAAC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CACxG,CAAC;SACH;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;SACpE;KACF;IACD,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
/* Organisms */
|
|
37
37
|
@use 'components-theme/o-card.theme' as *;
|
|
38
38
|
@use 'components-theme/o-catalog.theme' as *;
|
|
39
|
+
@use 'components-theme/o-dashboard.theme' as *;
|
|
39
40
|
@use 'components-theme/o-date-picker.theme' as *;
|
|
40
41
|
@use 'components-theme/o-datasources.theme' as *;
|
|
41
42
|
@use 'components-theme/o-draggable-menu.theme' as *;
|