@o3r/application 13.3.0-prerelease.7 → 13.4.0-prerelease.5
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.
|
@@ -47,10 +47,10 @@ class OtterApplicationDevtools {
|
|
|
47
47
|
isProduction: isProductionEnvironment(this.document?.body.dataset)
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
51
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
50
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: OtterApplicationDevtools, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
51
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: OtterApplicationDevtools, providedIn: 'root' }); }
|
|
52
52
|
}
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: OtterApplicationDevtools, decorators: [{
|
|
54
54
|
type: Injectable,
|
|
55
55
|
args: [{ providedIn: 'root' }]
|
|
56
56
|
}] });
|
|
@@ -78,10 +78,10 @@ class ApplicationDevtoolsConsoleService {
|
|
|
78
78
|
displayApplicationInfo() {
|
|
79
79
|
console.info('Application info', this.applicationDevtools.getApplicationInformation());
|
|
80
80
|
}
|
|
81
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
82
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
81
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ApplicationDevtoolsConsoleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
82
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ApplicationDevtoolsConsoleService, providedIn: 'root' }); }
|
|
83
83
|
}
|
|
84
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ApplicationDevtoolsConsoleService, decorators: [{
|
|
85
85
|
type: Injectable,
|
|
86
86
|
args: [{
|
|
87
87
|
providedIn: 'root'
|
|
@@ -206,10 +206,10 @@ class ApplicationDevtoolsMessageService {
|
|
|
206
206
|
.catch((err) => this.logger.warn('Visual testing utilities are not available:', err));
|
|
207
207
|
this.sendApplicationInformation();
|
|
208
208
|
}
|
|
209
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
210
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
209
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ApplicationDevtoolsMessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
210
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ApplicationDevtoolsMessageService, providedIn: 'root' }); }
|
|
211
211
|
}
|
|
212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ApplicationDevtoolsMessageService, decorators: [{
|
|
213
213
|
type: Injectable,
|
|
214
214
|
args: [{
|
|
215
215
|
providedIn: 'root'
|
|
@@ -232,16 +232,16 @@ class ApplicationDevtoolsModule {
|
|
|
232
232
|
]
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
236
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
237
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
235
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ApplicationDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
236
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.7", ngImport: i0, type: ApplicationDevtoolsModule }); }
|
|
237
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ApplicationDevtoolsModule, providers: [
|
|
238
238
|
{ provide: OTTER_APPLICATION_DEVTOOLS_OPTIONS, useValue: OTTER_APPLICATION_DEVTOOLS_DEFAULT_OPTIONS },
|
|
239
239
|
ApplicationDevtoolsMessageService,
|
|
240
240
|
ApplicationDevtoolsConsoleService,
|
|
241
241
|
OtterApplicationDevtools
|
|
242
242
|
] }); }
|
|
243
243
|
}
|
|
244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ApplicationDevtoolsModule, decorators: [{
|
|
245
245
|
type: NgModule,
|
|
246
246
|
args: [{
|
|
247
247
|
providers: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/application",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.4.0-prerelease.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"@angular-devkit/schematics": "^20.0.0",
|
|
27
27
|
"@angular/common": "^20.0.0",
|
|
28
28
|
"@angular/core": "^20.0.0",
|
|
29
|
-
"@o3r/core": "
|
|
30
|
-
"@o3r/logger": "
|
|
31
|
-
"@o3r/routing": "
|
|
32
|
-
"@o3r/schematics": "
|
|
33
|
-
"@o3r/testing": "
|
|
29
|
+
"@o3r/core": "13.4.0-prerelease.5",
|
|
30
|
+
"@o3r/logger": "13.4.0-prerelease.5",
|
|
31
|
+
"@o3r/routing": "13.4.0-prerelease.5",
|
|
32
|
+
"@o3r/schematics": "13.4.0-prerelease.5",
|
|
33
|
+
"@o3r/testing": "13.4.0-prerelease.5",
|
|
34
34
|
"@schematics/angular": "^20.0.0",
|
|
35
35
|
"rxjs": "^7.8.1",
|
|
36
36
|
"ts-node": "~10.9.2",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@o3r/schematics": "
|
|
58
|
+
"@o3r/schematics": "13.4.0-prerelease.5",
|
|
59
59
|
"tslib": "^2.6.2"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
@@ -91,6 +91,10 @@
|
|
|
91
91
|
"type": "string",
|
|
92
92
|
"description": "Unique name of the definition in the section (which can be referenced by the rootReference property)"
|
|
93
93
|
},
|
|
94
|
+
"title": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "Title to display to the CMS user"
|
|
97
|
+
},
|
|
94
98
|
"properties": {
|
|
95
99
|
"type": "array",
|
|
96
100
|
"description": "Array of properties of this definition",
|
|
@@ -152,6 +156,17 @@
|
|
|
152
156
|
}
|
|
153
157
|
}
|
|
154
158
|
}
|
|
159
|
+
},
|
|
160
|
+
"dataSources": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"description": "Map of data sources that can be used to populate the choices of enum/string properties",
|
|
163
|
+
"additionalProperties": {
|
|
164
|
+
"type": "array",
|
|
165
|
+
"description": "Array of object to define the data source items",
|
|
166
|
+
"items": {
|
|
167
|
+
"$ref": "#/definitions/choiceItem"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
155
170
|
}
|
|
156
171
|
},
|
|
157
172
|
"definitions": {
|
|
@@ -169,28 +184,15 @@
|
|
|
169
184
|
"description": "Array of object to define the choices for a property",
|
|
170
185
|
"minItems": 1,
|
|
171
186
|
"items": {
|
|
172
|
-
"
|
|
173
|
-
"required": [
|
|
174
|
-
"key",
|
|
175
|
-
"title"
|
|
176
|
-
],
|
|
177
|
-
"properties": {
|
|
178
|
-
"key": {
|
|
179
|
-
"type": "string"
|
|
180
|
-
},
|
|
181
|
-
"title": {
|
|
182
|
-
"type": "string"
|
|
183
|
-
}
|
|
184
|
-
}
|
|
187
|
+
"$ref": "#/definitions/choiceItem"
|
|
185
188
|
}
|
|
186
189
|
},
|
|
187
190
|
"enumProperty": {
|
|
188
191
|
"type": "object",
|
|
189
|
-
"description": "Type of the property (enum)",
|
|
192
|
+
"description": "Type of the property (enum). The enum values can be defined in the choices array or can be fetched from a data source specified in the widget parameter 'dataSource'",
|
|
190
193
|
"required": [
|
|
191
194
|
"valueType",
|
|
192
|
-
"collectionType"
|
|
193
|
-
"choices"
|
|
195
|
+
"collectionType"
|
|
194
196
|
],
|
|
195
197
|
"additionalProperties": false,
|
|
196
198
|
"properties": {
|
|
@@ -322,6 +324,24 @@
|
|
|
322
324
|
}
|
|
323
325
|
}
|
|
324
326
|
}
|
|
327
|
+
},
|
|
328
|
+
"choiceItem": {
|
|
329
|
+
"type": "object",
|
|
330
|
+
"description": "A choice item",
|
|
331
|
+
"properties": {
|
|
332
|
+
"key": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"description": "The key of the choice item"
|
|
335
|
+
},
|
|
336
|
+
"title": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"description": "The title of the choice item"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"required": [
|
|
342
|
+
"key",
|
|
343
|
+
"title"
|
|
344
|
+
]
|
|
325
345
|
}
|
|
326
346
|
}
|
|
327
|
-
}
|
|
347
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-registration.js","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/devtools-registration.ts"],"names":[],"mappings":";;;AAAA,qCAEiB;AACjB,kCAAkC;AAClC,2DAEoC;AACpC,gDAEyB;AAKzB,MAAM,mBAAmB,GAAG,2BAA2B,CAAC;AACxD,MAAM,4BAA4B,GAAG,mCAAmC,CAAC;AACzE,MAAM,4BAA4B,GAAG,mCAAmC,CAAC;AACzE,MAAM,YAAY,GAAW,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAE5I;;;GAGG;AACI,MAAM,gBAAgB,GAAG,CAAC,OAA8B,EAAE,EAAE;IACjE,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,0CAA6B,EAAC;YAC5B,UAAU,EAAE,mBAAmB;YAC/B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,4BAA4B;YACzC,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,CAAC;QACF,IAAA,0CAA6B,EAAC;YAC5B,UAAU,EAAE,mBAAmB;YAC/B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,4BAA4B;YACzC,WA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