@provoly/dashboard 0.12.3 → 0.12.4

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.
Files changed (47) hide show
  1. package/dataset/style/_o-pry-dataset-detail.scss +11 -2
  2. package/esm2022/dataset/style/css.component.mjs +2 -2
  3. package/esm2022/lib/core/components/upload/upload.component.mjs +1 -1
  4. package/esm2022/pipeline/components/pipeline-list/pipeline-list.component.mjs +1 -7
  5. package/esm2022/pipeline/factory/pipeline-component-factory.service.mjs +5 -5
  6. package/esm2022/pipeline-components/filter/filter.module.mjs +2 -2
  7. package/esm2022/pipeline-components/filter/node-class/filter-node.class.mjs +2 -2
  8. package/esm2022/pipeline-components/input-datasource/input-datasource.module.mjs +2 -2
  9. package/esm2022/pipeline-components/input-datasource/node-class/input-datasourse-node.class.mjs +2 -2
  10. package/esm2022/pipeline-components/noop/noop.module.mjs +2 -2
  11. package/esm2022/pipeline-components/output-dataset/output-dataset.module.mjs +2 -2
  12. package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +2 -2
  13. package/fesm2022/provoly-dashboard-dataset.mjs +2 -2
  14. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  15. package/fesm2022/provoly-dashboard-pipeline-components-filter.mjs +2 -2
  16. package/fesm2022/provoly-dashboard-pipeline-components-filter.mjs.map +1 -1
  17. package/fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs +2 -2
  18. package/fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs.map +1 -1
  19. package/fesm2022/provoly-dashboard-pipeline-components-noop.mjs +1 -1
  20. package/fesm2022/provoly-dashboard-pipeline-components-noop.mjs.map +1 -1
  21. package/fesm2022/provoly-dashboard-pipeline-components-output-dataset.mjs +1 -1
  22. package/fesm2022/provoly-dashboard-pipeline-components-output-dataset.mjs.map +1 -1
  23. package/fesm2022/provoly-dashboard-pipeline.mjs +5 -11
  24. package/fesm2022/provoly-dashboard-pipeline.mjs.map +1 -1
  25. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +1 -1
  26. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
  27. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  28. package/package.json +36 -32
  29. package/pipeline/components/pipeline-list/pipeline-list.component.d.ts +1 -2
  30. package/pipeline/factory/pipeline-component-factory.service.d.ts +1 -2
  31. package/schematics/collection.json +10 -0
  32. package/schematics/ng-add/index.d.ts +3 -0
  33. package/schematics/ng-add/index.js +202 -0
  34. package/schematics/ng-add/index.js.map +1 -0
  35. package/schematics/ng-add/index.spec.d.ts +1 -0
  36. package/schematics/ng-add/index.spec.js +42 -0
  37. package/schematics/ng-add/index.spec.js.map +1 -0
  38. package/schematics/ng-add/schema.d.ts +10 -0
  39. package/schematics/ng-add/schema.js +3 -0
  40. package/schematics/ng-add/schema.js.map +1 -0
  41. package/schematics/ng-add/schema.json +62 -0
  42. package/schematics/utils/file-contents.function.d.ts +2 -0
  43. package/schematics/utils/file-contents.function.js +12 -0
  44. package/schematics/utils/file-contents.function.js.map +1 -0
  45. package/schematics/utils/package-json.interface.d.ts +6 -0
  46. package/schematics/utils/package-json.interface.js +3 -0
  47. package/schematics/utils/package-json.interface.js.map +1 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.12.3",
4
- "type": "module",
3
+ "version": "0.12.4",
4
+ "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "15.x || 16.x",
7
7
  "@angular/cdk": "14.x || 15.x || 16.x",
@@ -97,30 +97,6 @@
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
- },
124
100
  "./components/card": {
125
101
  "types": "./components/card/index.d.ts",
126
102
  "esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
@@ -133,30 +109,54 @@
133
109
  "esm": "./esm2022/components/checkbox/provoly-dashboard-components-checkbox.mjs",
134
110
  "default": "./fesm2022/provoly-dashboard-components-checkbox.mjs"
135
111
  },
136
- "./components/expand-panel": {
137
- "types": "./components/expand-panel/index.d.ts",
138
- "esm2022": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
139
- "esm": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
140
- "default": "./fesm2022/provoly-dashboard-components-expand-panel.mjs"
141
- },
142
112
  "./components/filter": {
143
113
  "types": "./components/filter/index.d.ts",
144
114
  "esm2022": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
145
115
  "esm": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
146
116
  "default": "./fesm2022/provoly-dashboard-components-filter.mjs"
147
117
  },
118
+ "./components/expand-panel": {
119
+ "types": "./components/expand-panel/index.d.ts",
120
+ "esm2022": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
121
+ "esm": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
122
+ "default": "./fesm2022/provoly-dashboard-components-expand-panel.mjs"
123
+ },
148
124
  "./components/sinceDate": {
149
125
  "types": "./components/sinceDate/index.d.ts",
150
126
  "esm2022": "./esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs",
151
127
  "esm": "./esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs",
152
128
  "default": "./fesm2022/provoly-dashboard-components-sinceDate.mjs"
153
129
  },
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
+ },
154
136
  "./components/stepper": {
155
137
  "types": "./components/stepper/index.d.ts",
156
138
  "esm2022": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
157
139
  "esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
158
140
  "default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
159
141
  },
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",
@@ -260,6 +260,10 @@
260
260
  "default": "./fesm2022/provoly-dashboard-widgets-widget-tile.mjs"
261
261
  }
262
262
  },
263
+ "schematics": "./schematics/collection.json",
264
+ "ng-add": {
265
+ "save": true
266
+ },
263
267
  "module": "fesm2022/provoly-dashboard.mjs",
264
268
  "typings": "index.d.ts",
265
269
  "sideEffects": false
@@ -1,4 +1,4 @@
1
- import { ConnectedPosition, Overlay } from '@angular/cdk/overlay';
1
+ import { Overlay } from '@angular/cdk/overlay';
2
2
  import { ElementRef, TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import { Store } from '@ngrx/store';
4
4
  import { ViewMode } from '@provoly/dashboard';
@@ -26,7 +26,6 @@ export declare class PryPipelineListComponent {
26
26
  ViewMode: typeof ViewMode;
27
27
  private confirmExecutionRef?;
28
28
  constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef);
29
- readonly connectedPosition: ConnectedPosition;
30
29
  toggleMoreDropdown($event: any, index: number, transfo: PryTransfo): void;
31
30
  closeDropdown(): void;
32
31
  toggleState(selectedTransfo: PryTransfo): void;
@@ -1,9 +1,8 @@
1
- import { InjectionToken, Type } from '@angular/core';
1
+ import { Type } from '@angular/core';
2
2
  import { BehaviorSubject, Observable } from 'rxjs';
3
3
  import { PipelinePropertiesPanelComponent } from '../components/pipeline-properties-panel.component';
4
4
  import { BaseNode } from '../node-class/base-node.class';
5
5
  import * as i0 from "@angular/core";
6
- export declare const PIPELINE_COMPONENT_MODULES: InjectionToken<string>;
7
6
  export interface PipelineComponentDefinition {
8
7
  type: string;
9
8
  label: string;
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "../../../../node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Add @provoly/dashboard to the project.",
6
+ "factory": "./ng-add/index",
7
+ "schema": "./ng-add/schema.json"
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,3 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { ProjectSetupOptions } from './schema';
3
+ export default function projectSetup(options: ProjectSetupOptions): Rule;
@@ -0,0 +1,202 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const schematics_1 = require("@angular-devkit/schematics");
13
+ const tasks_1 = require("@angular-devkit/schematics/tasks");
14
+ const utility_1 = require("@schematics/angular/utility");
15
+ const dependencies_1 = require("@schematics/angular/utility/dependencies");
16
+ const file_contents_function_1 = require("../utils/file-contents.function");
17
+ function projectSetup(options) {
18
+ return (tree, context) => __awaiter(this, void 0, void 0, function* () {
19
+ context.logger.info('Adding @provoly/dashboard to project');
20
+ addDependencies(tree, options);
21
+ context.logger.info('Plan node install');
22
+ context.addTask(new tasks_1.NodePackageInstallTask());
23
+ return addProvolyForRoot(options, context, tree);
24
+ });
25
+ }
26
+ exports.default = projectSetup;
27
+ function addDependencies(tree, options) {
28
+ console.log('Adding provoly dependencies');
29
+ const packageJson = JSON.parse((0, file_contents_function_1.getFileContent)(tree, '/package.json'));
30
+ const dependencies = [
31
+ { type: dependencies_1.NodeDependencyType.Default, version: packageJson.version, name: '@provoly/dashboard' },
32
+ { type: dependencies_1.NodeDependencyType.Default, version: '^9.0.0', name: 'uuid' },
33
+ { type: dependencies_1.NodeDependencyType.Default, version: '^3.1.3', name: 'fast-deep-equal' },
34
+ { type: dependencies_1.NodeDependencyType.Default, version: '^1.2.3', name: 'css-element-queries' },
35
+ { type: dependencies_1.NodeDependencyType.Default, version: '^6.0.0', name: 'buffer' },
36
+ { type: dependencies_1.NodeDependencyType.Dev, version: '^9.0.0', name: '@types/uuid' }
37
+ ];
38
+ if (options.widgets.includes('widget-map')) {
39
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^7.0.0', name: 'ol' });
40
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^4.1.0', name: 'ol-layerswitcher' });
41
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^10.6.0', name: 'ol-mapbox-style' });
42
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^10.6.0', name: 'ol-mapbox-style' });
43
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^2.9.0', name: 'proj4' });
44
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^4.0.2', name: 'shpjs' });
45
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^0.0.1', name: 'geojson-to-kml' });
46
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^3.7.1', name: 'jszip' });
47
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Dev, version: '^6.5.3', name: '@types/ol' });
48
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Dev, version: '^2.5.2', name: '@types/proj4' });
49
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Dev, version: '^3.4.1', name: '@types/shpjs' });
50
+ }
51
+ if (options.widgets.includes('widget-aggregated-chart')) {
52
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^5.21.0', name: 'vega' });
53
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^6.20.5', name: 'vega-embed' });
54
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^5.2.0', name: 'vega-lite' });
55
+ }
56
+ if (options.widgets.includes('widget-graph')) {
57
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^3.0.0', name: 'd3-drag' });
58
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^3.0.0', name: 'd3-force' });
59
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^3.0.0', name: 'd3-selection' });
60
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Dev, version: '^3.0.1', name: '@types/d3-dispatch' });
61
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Dev, version: '^3.0.1', name: '@types/d3-drag' });
62
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Dev, version: '^3.0.3', name: '@types/d3-force' });
63
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Dev, version: '^3.0.0', name: '@types/d3-timer' });
64
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Dev, version: '^0.7.47', name: '@types/dagre' });
65
+ }
66
+ if (options.pipeline) {
67
+ dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^0.7.10', name: 'litegraph.js' });
68
+ }
69
+ dependencies.forEach((d) => {
70
+ (0, dependencies_1.addPackageJsonDependency)(tree, d);
71
+ });
72
+ }
73
+ function widgetImports(options, context, external) {
74
+ context.logger.info('...Building widgets imports');
75
+ const definitions = [
76
+ {
77
+ name: 'widget-aggregated-chart',
78
+ path: '@provoly/dashboard/widgets/widget-aggregated-chart',
79
+ moduleName: 'WidgetAggregatedChartModule',
80
+ type: 'chart'
81
+ },
82
+ {
83
+ name: 'widget-detail',
84
+ path: '@provoly/dashboard/widgets/widget-detail',
85
+ moduleName: 'WidgetDetailModule',
86
+ type: 'detail'
87
+ },
88
+ {
89
+ name: 'widget-graph',
90
+ path: '@provoly/dashboard/widgets/widget-graph',
91
+ moduleName: 'WidgetGraphModule',
92
+ type: 'graph'
93
+ },
94
+ {
95
+ name: 'widget-iframe',
96
+ path: '@provoly/dashboard/widgets/widget-iframe',
97
+ moduleName: 'WidgetIframeModule',
98
+ type: 'iframe'
99
+ },
100
+ {
101
+ name: 'widget-image',
102
+ path: '@provoly/dashboard/widgets/widget-image',
103
+ moduleName: 'WidgetImageModule',
104
+ type: 'image'
105
+ },
106
+ { name: 'widget-map', path: '@provoly/dashboard/widgets/widget-map', moduleName: 'WidgetMapModule', type: 'map' },
107
+ {
108
+ name: 'widget-table',
109
+ path: '@provoly/dashboard/widgets/widget-table',
110
+ moduleName: 'WidgetTableModule',
111
+ type: 'table'
112
+ },
113
+ {
114
+ name: 'widget-template',
115
+ path: '@provoly/dashboard/widgets/widget-template',
116
+ moduleName: 'WidgetTemplateModule',
117
+ type: 'template'
118
+ },
119
+ {
120
+ name: 'widget-tile',
121
+ path: '@provoly/dashboard/widgets/widget-tile',
122
+ moduleName: 'WidgetTileModule',
123
+ type: 'tile'
124
+ }
125
+ ];
126
+ let imports = [];
127
+ definitions.forEach((definition) => {
128
+ if (options.widgets.includes(definition.name)) {
129
+ imports.push(definition.type +
130
+ ':' +
131
+ `{ name: '${definition.type}', load: () => import('${definition.path}').then((module) => ${external('widgetLoader', '@provoly/dashboard')}(module, '${definition.moduleName}')) }`);
132
+ }
133
+ });
134
+ return '{' + imports.join(',') + '}';
135
+ }
136
+ function provolyUrls(options, context) {
137
+ context.logger.info('...Building url options');
138
+ const urlOptions = {};
139
+ ['pryUrl', 'path', 'mapUrl', 'wsUrl', 'geoServerUrl'].forEach((option) => {
140
+ var _a;
141
+ if (options[option]) {
142
+ urlOptions[option] = (_a = options[option]) !== null && _a !== void 0 ? _a : '';
143
+ }
144
+ });
145
+ return JSON.stringify(urlOptions);
146
+ }
147
+ function addProvolyForRoot(options, context, tree) {
148
+ return __awaiter(this, void 0, void 0, function* () {
149
+ context.logger.info('Adding provoly module import');
150
+ const pryImportModule = 'PryDashboardModule';
151
+ try {
152
+ const modulePath = 'src/app/app.module.ts';
153
+ if (!tree.exists(modulePath)) {
154
+ throw new schematics_1.SchematicsException(`Module file ${modulePath} doesn't exist.`);
155
+ }
156
+ const recorder = tree.beginUpdate(modulePath);
157
+ tree.commitUpdate(recorder);
158
+ // Add an import `MyLibModule` from `provoly/dashboard` to the root of the user's project.
159
+ return (0, utility_1.addRootImport)(options.projectName, ({ code, external }) => code `${external(pryImportModule, '@provoly/dashboard')}.forRoot(
160
+ ${widgetImports(options, context, external)},
161
+ ${provolyUrls(options, context)},
162
+ {
163
+ attribute: {
164
+ name: 'attribute',
165
+ load: () =>
166
+ import('@provoly/dashboard/tooltips/attribute').then((module) =>
167
+ ${external('tooltipLoader', '@provoly/dashboard')}(module, 'PryAttributeTooltipModule')
168
+ )
169
+ }
170
+ },
171
+ {
172
+ text: {
173
+ name: 'text',
174
+ load: () =>
175
+ import('@provoly/dashboard/filters/text').then((module) => ${external('filterLoader', '@provoly/dashboard')}(module, 'PryTextFilterModule'))
176
+ },
177
+ date: {
178
+ name: 'date',
179
+ load: () =>
180
+ import('@provoly/dashboard/filters/date').then((module) => ${external('filterLoader', '@provoly/dashboard')}(module, 'PryDateFilterModule'))
181
+ },
182
+ list: {
183
+ name: 'list',
184
+ load: () =>
185
+ import('@provoly/dashboard/filters/list').then((module) => ${external('filterLoader', '@provoly/dashboard')}(module, 'PryListFilterModule'))
186
+ },
187
+ number: {
188
+ name: 'number',
189
+ load: () =>
190
+ import('@provoly/dashboard/filters/number').then((module) => ${external('filterLoader', '@provoly/dashboard')}(module, 'PryNumberFilterModule'))
191
+ }
192
+ },
193
+ []
194
+ )`);
195
+ }
196
+ catch (e) {
197
+ context.logger.info('Project module not found: You have to manually add Provoly import');
198
+ return;
199
+ }
200
+ });
201
+ }
202
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/provoly/dashboard/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AC,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,IAAA,uBAAa,EAClB,OAAO,CAAC,WAAW,EACnB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA,GAAG,QAAQ,CAAC,eAAe,EAAE,oBAAoB,CAAC;QAC5E,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC;QACzC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC;;;;;;gBAMrB,QAAQ,CAAC,eAAe,EAAE,oBAAoB,CAAC;;;;;;;;yEAQU,QAAQ,CACnE,cAAc,EACd,oBAAoB,CACrB;;;;;yEAK4D,QAAQ,CACnE,cAAc,EACd,oBAAoB,CACrB;;;;;yEAK4D,QAAQ,CACnE,cAAc,EACd,oBAAoB,CACrB;;;;;2EAK8D,QAAQ,CACrE,cAAc,EACd,oBAAoB,CACrB;;;;MAIP,CACD,CAAC;SACH;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,mEAAmE,CAAC,CAAC;YACzF,OAAO;SACR;IACH,CAAC;CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const schematics_1 = require("@angular-devkit/schematics");
13
+ const testing_1 = require("@angular-devkit/schematics/testing");
14
+ const path = require("path");
15
+ const file_contents_function_1 = require("../utils/file-contents.function");
16
+ const schematicName = 'ng-add';
17
+ describe(schematicName, () => {
18
+ const runner = new testing_1.SchematicTestRunner('schematics', path.join(__dirname, '../collection.json'));
19
+ let tree;
20
+ beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
21
+ tree = yield runner.runExternalSchematic('@schematics/angular', 'ng-new', { name: 'test-project', version: '0.0.0', directory: '.' }, new testing_1.UnitTestTree(schematics_1.Tree.empty()));
22
+ }));
23
+ it('should add main dependencies', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ yield runner.runSchematic(schematicName, { widgets: [], pipeline: false, projectName: 'test-project' }, tree);
25
+ const packageJson = JSON.parse((0, file_contents_function_1.getFileContent)(tree, '/package.json'));
26
+ expect(packageJson.dependencies['@provoly/dashboard']).toBe(packageJson.version);
27
+ expect(packageJson.dependencies['uuid']).toBe('^9.0.0');
28
+ expect(packageJson.devDependencies['@types/uuid']).toBe('^9.0.0');
29
+ expect(packageJson.dependencies['ol']).toBe(undefined);
30
+ expect(runner.tasks.some((task) => task.name === 'node-package')).toBe(true);
31
+ }));
32
+ it('should add specific dependencies', () => __awaiter(void 0, void 0, void 0, function* () {
33
+ yield runner.runSchematic(schematicName, { widgets: ['widget-map'], pipeline: false, projectName: 'test-project' }, tree);
34
+ const packageJson = JSON.parse((0, file_contents_function_1.getFileContent)(tree, '/package.json'));
35
+ expect(packageJson.dependencies['@provoly/dashboard']).toBe(packageJson.version);
36
+ expect(packageJson.dependencies['uuid']).toBe('^9.0.0');
37
+ expect(packageJson.devDependencies['@types/uuid']).toBe('^9.0.0');
38
+ expect(packageJson.dependencies['ol']).toBe('^7.0.0');
39
+ expect(runner.tasks.some((task) => task.name === 'node-package')).toBe(true);
40
+ }));
41
+ });
42
+ //# sourceMappingURL=index.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../projects/provoly/dashboard/schematics/ng-add/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAkD;AAClD,gEAAuF;AACvF,6BAA6B;AAC7B,4EAAiE;AAIjE,MAAM,aAAa,GAAG,QAAQ,CAAC;AAC/B,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC,CAAC;IACjG,IAAI,IAAkB,CAAC;IAEvB,UAAU,CAAC,GAAS,EAAE;QACpB,IAAI,GAAG,MAAM,MAAM,CAAC,oBAAoB,CACtC,qBAAqB,EACrB,QAAQ,EACR,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,EAC1D,IAAI,sBAAY,CAAC,iBAAI,CAAC,KAAK,EAAE,CAAC,CAC/B,CAAC;IACJ,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,GAAS,EAAE;QAC5C,MAAM,MAAM,CAAC,YAAY,CACvB,aAAa,EACb,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,EAAyB,EACpF,IAAI,CACL,CAAC;QAEF,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,uCAAc,EAAC,IAAI,EAAE,eAAe,CAAC,CAAgB,CAAC;QAErF,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACjF,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,CAA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C,IAAI,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/E,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export interface ProjectSetupOptions {
2
+ projectName: string;
3
+ widgets: string[];
4
+ pipeline: boolean;
5
+ pryUrl?: string;
6
+ path?: string;
7
+ mapUrl?: string;
8
+ wsUrl?: string;
9
+ geoServerUrl?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../projects/provoly/dashboard/schematics/ng-add/schema.ts"],"names":[],"mappings":""}
@@ -0,0 +1,62 @@
1
+ {
2
+ "title": "Setup the project for @provoly/dashboard use",
3
+ "properties": {
4
+ "projectName": {
5
+ "type": "string",
6
+ "x-prompt": "What is your project name ? (leave blank for manual addition)",
7
+ "default": ""
8
+ },
9
+ "widgets": {
10
+ "type": "array",
11
+ "description": "Widgets",
12
+ "x-prompt": {
13
+ "type": "list",
14
+ "message": "Which widgets would you like to include ?",
15
+ "multiselect": true,
16
+ "items": [
17
+ "widget-aggregated-chart",
18
+ "widget-detail",
19
+ "widget-graph",
20
+ "widget-iframe",
21
+ "widget-image",
22
+ "widget-map",
23
+ "widget-table",
24
+ "widget-template",
25
+ "widget-tile"
26
+ ]
27
+ },
28
+ "default": []
29
+ },
30
+ "pipeline": {
31
+ "type": "boolean",
32
+ "description": "Using pipelines",
33
+ "x-prompt": "Do you want to include pipelines ?",
34
+ "default": false
35
+ },
36
+ "pryUrl": {
37
+ "type": "string",
38
+ "x-prompt": "What is your backend url ? (blank for none)",
39
+ "default": ""
40
+ },
41
+ "path": {
42
+ "type": "string",
43
+ "x-prompt": "Want a simple path for dashboards ? (blank for none, else route)",
44
+ "default": ""
45
+ },
46
+ "mapUrl": {
47
+ "type": "string",
48
+ "x-prompt": "What is your map server url ? (blank for none)",
49
+ "default": ""
50
+ },
51
+ "wsServerUrl": {
52
+ "type": "string",
53
+ "x-prompt": "What is your websocket server url ? (blank for none)",
54
+ "default": ""
55
+ },
56
+ "geoServerUrl": {
57
+ "type": "string",
58
+ "x-prompt": "What is your geoserver url ? (for geolayers - blank for none)",
59
+ "default": ""
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@angular-devkit/schematics';
2
+ export declare function getFileContent(tree: Tree, filePath: string): string;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFileContent = void 0;
4
+ function getFileContent(tree, filePath) {
5
+ const contentBuffer = tree.read(filePath);
6
+ if (!contentBuffer) {
7
+ throw new Error(`Cannot read "${filePath}" because it does not exist.`);
8
+ }
9
+ return contentBuffer.toString();
10
+ }
11
+ exports.getFileContent = getFileContent;
12
+ //# sourceMappingURL=file-contents.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-contents.function.js","sourceRoot":"","sources":["../../../../../projects/provoly/dashboard/schematics/utils/file-contents.function.ts"],"names":[],"mappings":";;;AAEA,SAAgB,cAAc,CAAC,IAAU,EAAE,QAAgB;IACzD,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAE1C,IAAI,CAAC,aAAa,EAAE;QAClB,MAAM,IAAI,KAAK,CAAC,gBAAgB,QAAQ,8BAA8B,CAAC,CAAC;KACzE;IAED,OAAO,aAAa,CAAC,QAAQ,EAAE,CAAC;AAClC,CAAC;AARD,wCAQC"}
@@ -0,0 +1,6 @@
1
+ export interface PackageJson {
2
+ version: string;
3
+ dependencies: Record<string, string>;
4
+ devDependencies: Record<string, string>;
5
+ peerDependencies: Record<string, string>;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=package-json.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-json.interface.js","sourceRoot":"","sources":["../../../../../projects/provoly/dashboard/schematics/utils/package-json.interface.ts"],"names":[],"mappings":""}