@olympeio/runtime-node 9.1.3 → 9.2.0
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/import/olympe.dm/datamodel/00_bootstrap.newInst.json +1 -1
- package/import/olympe.dm/datamodel/00_bootstrap.newRel.json +1 -1
- package/import/olympe.dm/datamodel/05_permission_schema.updateInst.json +1 -1
- package/import/olympe.dm/datamodel/06_structure.newInst.json +1 -1
- package/import/olympe.sc/datamodel/01_language.newInst.json +1 -1
- package/import/olympe.sc/datamodel/01_language.newRel.json +1 -1
- package/index.js +810 -802
- package/package.json +1 -1
- package/types/base.d.ts +1 -1
- package/types/cloud.d.ts +18 -0
- package/types/runtime.d.ts +7 -0
package/package.json
CHANGED
package/types/base.d.ts
CHANGED
|
@@ -304,7 +304,7 @@ export abstract class CloudObject implements HasTag {
|
|
|
304
304
|
* Inverse relation of {@link modelRel} between a model and its instances
|
|
305
305
|
* Equivalent to `modelRel.getInverse()`
|
|
306
306
|
*/
|
|
307
|
-
static
|
|
307
|
+
static instancesRel: Relation<CloudObject, CloudObject>;
|
|
308
308
|
/**
|
|
309
309
|
* Model `CloudObjects` can inherit relations and properties
|
|
310
310
|
* from another `CloudObject` model to mimic their behaviour.
|
package/types/cloud.d.ts
CHANGED
|
@@ -297,6 +297,24 @@ export class WorkflowObjectState extends CloudObject {
|
|
|
297
297
|
static currentObjectRel: Relation<WorkflowObjectState, CloudObject>;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
+
// -------------------------
|
|
301
|
+
// -- Theme data types --
|
|
302
|
+
// -------------------------
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Theme object describing the main visual properties used by components
|
|
306
|
+
*/
|
|
307
|
+
export class Theme extends CloudObject {
|
|
308
|
+
static nameProp: Property<string>;
|
|
309
|
+
static primaryColorProp: Property<string>;
|
|
310
|
+
static secondaryColorProp: Property<string>;
|
|
311
|
+
static errorColorProp: Property<string>;
|
|
312
|
+
static warningColorProp: Property<string>;
|
|
313
|
+
static infoColorProp: Property<string>;
|
|
314
|
+
static successColorProp: Property<string>;
|
|
315
|
+
static fontFamilyProp: Property<string>;
|
|
316
|
+
}
|
|
317
|
+
|
|
300
318
|
// ---------------------------
|
|
301
319
|
// -- Database transactions --
|
|
302
320
|
// ---------------------------
|
package/types/runtime.d.ts
CHANGED
|
@@ -133,6 +133,13 @@ export class BrickContext extends Context {
|
|
|
133
133
|
*/
|
|
134
134
|
getParent(): BrickContext | null;
|
|
135
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Return the closest parent of a given type
|
|
138
|
+
*
|
|
139
|
+
* @param modelTag tag of the "type" of context you want to find in the parent tree
|
|
140
|
+
*/
|
|
141
|
+
getClosest(modelTag: Tag): BrickContext | null;
|
|
142
|
+
|
|
136
143
|
/**
|
|
137
144
|
* Listen to the creation of the context with the specified id.
|
|
138
145
|
* Executes the callback when that context becomes accessible by this current context.
|