@mat3ra/ade 2026.5.23-0 → 2026.5.29-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.
Files changed (78) hide show
  1. package/dist/js/Application.d.ts +23 -0
  2. package/dist/js/Application.js +37 -0
  3. package/dist/js/Executable.d.ts +20 -0
  4. package/dist/js/Executable.js +35 -0
  5. package/dist/js/Flavor.d.ts +17 -0
  6. package/dist/js/Flavor.js +38 -0
  7. package/dist/js/Template.d.ts +16 -0
  8. package/dist/js/Template.js +29 -0
  9. package/dist/js/generated/ApplicationSchemaMixin.d.ts +5 -0
  10. package/dist/js/generated/ApplicationSchemaMixin.js +63 -0
  11. package/dist/js/generated/ExecutableSchemaMixin.d.ts +5 -0
  12. package/dist/js/generated/ExecutableSchemaMixin.js +27 -0
  13. package/dist/js/generated/FlavorSchemaMixin.d.ts +5 -0
  14. package/dist/js/generated/FlavorSchemaMixin.js +33 -0
  15. package/dist/js/generated/TemplateSchemaMixin.d.ts +5 -0
  16. package/dist/js/generated/TemplateSchemaMixin.js +39 -0
  17. package/dist/js/index.d.ts +1 -14
  18. package/dist/js/index.js +14 -29
  19. package/dist/js/typeUtils.d.ts +5 -0
  20. package/dist/js/typeUtils.js +2 -0
  21. package/dist/js/types.d.ts +6 -6
  22. package/dist/js/types.js +12 -0
  23. package/package.json +8 -14
  24. package/src/js/Application.ts +64 -0
  25. package/src/js/Executable.ts +64 -0
  26. package/src/js/Flavor.ts +54 -0
  27. package/src/js/Template.ts +43 -0
  28. package/src/js/generated/ApplicationSchemaMixin.ts +77 -0
  29. package/src/js/generated/ExecutableSchemaMixin.ts +42 -0
  30. package/src/js/generated/FlavorSchemaMixin.ts +42 -0
  31. package/src/js/generated/TemplateSchemaMixin.ts +52 -0
  32. package/src/js/index.ts +1 -32
  33. package/src/js/typeUtils.ts +5 -0
  34. package/src/js/types.ts +6 -14
  35. package/dist/js/ApplicationRegistry.d.ts +0 -57
  36. package/dist/js/ApplicationRegistry.js +0 -171
  37. package/dist/js/application.d.ts +0 -9
  38. package/dist/js/application.js +0 -13
  39. package/dist/js/applicationMixin.d.ts +0 -23
  40. package/dist/js/applicationMixin.js +0 -47
  41. package/dist/js/context/ContextProvider.d.ts +0 -50
  42. package/dist/js/context/ContextProvider.js +0 -98
  43. package/dist/js/context/ContextProviderJinja.d.ts +0 -10
  44. package/dist/js/context/ContextProviderJinja.js +0 -13
  45. package/dist/js/context/ContextProviderRegistryContainer.d.ts +0 -24
  46. package/dist/js/context/ContextProviderRegistryContainer.js +0 -30
  47. package/dist/js/context/JSONSchemaDataProvider.d.ts +0 -7
  48. package/dist/js/context/JSONSchemaDataProvider.js +0 -16
  49. package/dist/js/context/JSONSchemaFormDataProvider.d.ts +0 -18
  50. package/dist/js/context/JSONSchemaFormDataProvider.js +0 -40
  51. package/dist/js/context/JinjaContextProvider.d.ts +0 -10
  52. package/dist/js/context/JinjaContextProvider.js +0 -13
  53. package/dist/js/executable.d.ts +0 -8
  54. package/dist/js/executable.js +0 -12
  55. package/dist/js/executableMixin.d.ts +0 -22
  56. package/dist/js/executableMixin.js +0 -28
  57. package/dist/js/flavor.d.ts +0 -9
  58. package/dist/js/flavor.js +0 -12
  59. package/dist/js/flavorMixin.d.ts +0 -21
  60. package/dist/js/flavorMixin.js +0 -51
  61. package/dist/js/template.d.ts +0 -8
  62. package/dist/js/template.js +0 -10
  63. package/dist/js/templateMixin.d.ts +0 -39
  64. package/dist/js/templateMixin.js +0 -162
  65. package/src/js/ApplicationRegistry.ts +0 -250
  66. package/src/js/application.ts +0 -25
  67. package/src/js/applicationMixin.ts +0 -85
  68. package/src/js/context/ContextProvider.ts +0 -155
  69. package/src/js/context/ContextProviderRegistryContainer.ts +0 -41
  70. package/src/js/context/JSONSchemaDataProvider.ts +0 -11
  71. package/src/js/context/JSONSchemaFormDataProvider.ts +0 -43
  72. package/src/js/context/JinjaContextProvider.ts +0 -16
  73. package/src/js/executable.ts +0 -14
  74. package/src/js/executableMixin.ts +0 -49
  75. package/src/js/flavor.ts +0 -19
  76. package/src/js/flavorMixin.ts +0 -77
  77. package/src/js/template.ts +0 -17
  78. package/src/js/templateMixin.ts +0 -243
@@ -0,0 +1,23 @@
1
+ import { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
2
+ import { type Defaultable } from "@mat3ra/code/dist/js/entity/mixins/DefaultableMixin";
3
+ import { HashedEntity } from "@mat3ra/code/dist/js/entity/mixins/HashedEntityMixin";
4
+ import { type NamedEntity } from "@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin";
5
+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types";
6
+ import type { JSONSchema } from "@mat3ra/esse/dist/js/esse/utils";
7
+ import type { ApplicationSchema } from "@mat3ra/esse/dist/js/types";
8
+ import { type ApplicationSchemaMixin } from "./generated/ApplicationSchemaMixin";
9
+ export type DefaultApplicationConfig = Pick<ApplicationSchema, "name" | "shortName" | "version" | "summary" | "build">;
10
+ interface Application extends ApplicationSchemaMixin, NamedEntity, Defaultable, HashedEntity {
11
+ }
12
+ declare class Application extends InMemoryEntity implements ApplicationSchema {
13
+ constructor(data?: Partial<ApplicationSchema>);
14
+ static get jsonSchema(): JSONSchema;
15
+ static createDefault: () => Application;
16
+ toJSON: () => ApplicationSchema & AnyObject;
17
+ getHashObject(): {
18
+ name: string;
19
+ version: string;
20
+ build: string;
21
+ };
22
+ }
23
+ export default Application;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const entity_1 = require("@mat3ra/code/dist/js/entity");
7
+ const DefaultableMixin_1 = require("@mat3ra/code/dist/js/entity/mixins/DefaultableMixin");
8
+ const HashedEntityMixin_1 = require("@mat3ra/code/dist/js/entity/mixins/HashedEntityMixin");
9
+ const NamedEntityMixin_1 = require("@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin");
10
+ const JSONSchemasInterface_1 = __importDefault(require("@mat3ra/esse/dist/js/esse/JSONSchemasInterface"));
11
+ const ApplicationSchemaMixin_1 = require("./generated/ApplicationSchemaMixin");
12
+ class Application extends entity_1.InMemoryEntity {
13
+ constructor(data = {}) {
14
+ super({
15
+ ...data,
16
+ });
17
+ }
18
+ static get jsonSchema() {
19
+ const schema = JSONSchemasInterface_1.default.getSchemaById("software/application");
20
+ if (schema === undefined) {
21
+ throw new Error('JSONSchemasInterface: missing schema id "software/application"');
22
+ }
23
+ return schema;
24
+ }
25
+ getHashObject() {
26
+ return {
27
+ name: this.name,
28
+ version: this.version,
29
+ build: this.build,
30
+ };
31
+ }
32
+ }
33
+ (0, NamedEntityMixin_1.namedEntityMixin)(Application.prototype);
34
+ (0, DefaultableMixin_1.defaultableEntityMixin)(Application);
35
+ (0, ApplicationSchemaMixin_1.applicationSchemaMixin)(Application.prototype);
36
+ (0, HashedEntityMixin_1.hashedEntityMixin)(Application.prototype);
37
+ exports.default = Application;
@@ -0,0 +1,20 @@
1
+ import { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
2
+ import { type Defaultable } from "@mat3ra/code/dist/js/entity/mixins/DefaultableMixin";
3
+ import { type NamedEntity } from "@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin";
4
+ import type { RuntimeItemsInMemoryEntity } from "@mat3ra/code/dist/js/generated/RuntimeItemsSchemaMixin";
5
+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types";
6
+ import type { JSONSchema } from "@mat3ra/esse/dist/js/esse/utils";
7
+ import type { ExecutableSchema } from "@mat3ra/esse/dist/js/types";
8
+ import { type ExecutableSchemaMixin } from "./generated/ExecutableSchemaMixin";
9
+ import type { PartialBy } from "./typeUtils";
10
+ /** Input for {@link Executable}: runtime item lists default to empty when omitted. */
11
+ export type ExecutableConstructorData = PartialBy<ExecutableSchema, "monitors" | "results" | "postProcessors" | "preProcessors">;
12
+ interface Executable extends ExecutableSchemaMixin, RuntimeItemsInMemoryEntity, NamedEntity, Defaultable {
13
+ }
14
+ declare class Executable extends InMemoryEntity implements ExecutableSchema {
15
+ constructor(data: ExecutableConstructorData);
16
+ static get jsonSchema(): JSONSchema;
17
+ static createDefault: () => Executable;
18
+ toJSON: () => ExecutableSchema & AnyObject;
19
+ }
20
+ export default Executable;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const entity_1 = require("@mat3ra/code/dist/js/entity");
7
+ const DefaultableMixin_1 = require("@mat3ra/code/dist/js/entity/mixins/DefaultableMixin");
8
+ const NamedEntityMixin_1 = require("@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin");
9
+ const RuntimeItemsMixin_1 = require("@mat3ra/code/dist/js/entity/mixins/RuntimeItemsMixin");
10
+ const JSONSchemasInterface_1 = __importDefault(require("@mat3ra/esse/dist/js/esse/JSONSchemasInterface"));
11
+ const ExecutableSchemaMixin_1 = require("./generated/ExecutableSchemaMixin");
12
+ class Executable extends entity_1.InMemoryEntity {
13
+ constructor(data) {
14
+ var _a, _b, _c, _d;
15
+ super({
16
+ ...data,
17
+ monitors: (_a = data.monitors) !== null && _a !== void 0 ? _a : [],
18
+ results: (_b = data.results) !== null && _b !== void 0 ? _b : [],
19
+ postProcessors: (_c = data.postProcessors) !== null && _c !== void 0 ? _c : [],
20
+ preProcessors: (_d = data.preProcessors) !== null && _d !== void 0 ? _d : [],
21
+ });
22
+ }
23
+ static get jsonSchema() {
24
+ const schema = JSONSchemasInterface_1.default.getSchemaById("software/executable");
25
+ if (schema === undefined) {
26
+ throw new Error('JSONSchemasInterface: missing schema id "software/executable"');
27
+ }
28
+ return schema;
29
+ }
30
+ }
31
+ (0, NamedEntityMixin_1.namedEntityMixin)(Executable.prototype);
32
+ (0, DefaultableMixin_1.defaultableEntityMixin)(Executable);
33
+ (0, RuntimeItemsMixin_1.runtimeItemsMixin)(Executable.prototype);
34
+ (0, ExecutableSchemaMixin_1.executableSchemaMixin)(Executable.prototype);
35
+ exports.default = Executable;
@@ -0,0 +1,17 @@
1
+ import { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
2
+ import { type Defaultable } from "@mat3ra/code/dist/js/entity/mixins/DefaultableMixin";
3
+ import { type NamedEntity } from "@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin";
4
+ import type { RuntimeItemsInMemoryEntity } from "@mat3ra/code/dist/js/generated/RuntimeItemsSchemaMixin";
5
+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types";
6
+ import type { JSONSchema } from "@mat3ra/esse/dist/js/esse/utils";
7
+ import type { FlavorSchema } from "@mat3ra/esse/dist/js/types";
8
+ import { type FlavorSchemaMixin } from "./generated/FlavorSchemaMixin";
9
+ interface Flavor extends FlavorSchemaMixin, RuntimeItemsInMemoryEntity, NamedEntity, Defaultable {
10
+ }
11
+ declare class Flavor extends InMemoryEntity implements FlavorSchema {
12
+ constructor(data?: Partial<FlavorSchema>);
13
+ static get jsonSchema(): JSONSchema;
14
+ static createDefault: () => Flavor;
15
+ toJSON: () => FlavorSchema & AnyObject;
16
+ }
17
+ export default Flavor;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const entity_1 = require("@mat3ra/code/dist/js/entity");
7
+ const DefaultableMixin_1 = require("@mat3ra/code/dist/js/entity/mixins/DefaultableMixin");
8
+ const NamedEntityMixin_1 = require("@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin");
9
+ const RuntimeItemsMixin_1 = require("@mat3ra/code/dist/js/entity/mixins/RuntimeItemsMixin");
10
+ const JSONSchemasInterface_1 = __importDefault(require("@mat3ra/esse/dist/js/esse/JSONSchemasInterface"));
11
+ const FlavorSchemaMixin_1 = require("./generated/FlavorSchemaMixin");
12
+ class Flavor extends entity_1.InMemoryEntity {
13
+ constructor(data = {}) {
14
+ super({
15
+ monitors: [],
16
+ results: [],
17
+ postProcessors: [],
18
+ preProcessors: [],
19
+ input: [],
20
+ executableId: "",
21
+ executableName: "",
22
+ applicationName: "",
23
+ ...data,
24
+ });
25
+ }
26
+ static get jsonSchema() {
27
+ const schema = JSONSchemasInterface_1.default.getSchemaById("software/flavor");
28
+ if (schema === undefined) {
29
+ throw new Error('JSONSchemasInterface: missing schema id "software/flavor"');
30
+ }
31
+ return schema;
32
+ }
33
+ }
34
+ (0, NamedEntityMixin_1.namedEntityMixin)(Flavor.prototype);
35
+ (0, DefaultableMixin_1.defaultableEntityMixin)(Flavor);
36
+ (0, RuntimeItemsMixin_1.runtimeItemsMixin)(Flavor.prototype);
37
+ (0, FlavorSchemaMixin_1.flavorSchemaMixin)(Flavor.prototype);
38
+ exports.default = Flavor;
@@ -0,0 +1,16 @@
1
+ import { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
2
+ import { type NamedEntity } from "@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin";
3
+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types";
4
+ import type { JSONSchema } from "@mat3ra/esse/dist/js/esse/utils";
5
+ import type { TemplateSchema } from "@mat3ra/esse/dist/js/types";
6
+ import { type TemplateSchemaMixin } from "./generated/TemplateSchemaMixin";
7
+ import type { PartialBy } from "./typeUtils";
8
+ interface Template extends TemplateSchemaMixin, NamedEntity {
9
+ }
10
+ export type DefaultTemplateConfig = PartialBy<TemplateSchema, "content" | "contextProviders">;
11
+ declare class Template extends InMemoryEntity implements TemplateSchema {
12
+ constructor(data: DefaultTemplateConfig);
13
+ static get jsonSchema(): JSONSchema;
14
+ toJSON: () => TemplateSchema & AnyObject;
15
+ }
16
+ export default Template;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const entity_1 = require("@mat3ra/code/dist/js/entity");
7
+ const NamedEntityMixin_1 = require("@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin");
8
+ const JSONSchemasInterface_1 = __importDefault(require("@mat3ra/esse/dist/js/esse/JSONSchemasInterface"));
9
+ const TemplateSchemaMixin_1 = require("./generated/TemplateSchemaMixin");
10
+ class Template extends entity_1.InMemoryEntity {
11
+ constructor(data) {
12
+ const templateData = {
13
+ content: "",
14
+ contextProviders: [],
15
+ ...data,
16
+ };
17
+ super(templateData);
18
+ }
19
+ static get jsonSchema() {
20
+ const schema = JSONSchemasInterface_1.default.getSchemaById("software/template");
21
+ if (schema === undefined) {
22
+ throw new Error('JSONSchemasInterface: missing schema id "software/template"');
23
+ }
24
+ return schema;
25
+ }
26
+ }
27
+ (0, NamedEntityMixin_1.namedEntityMixin)(Template.prototype);
28
+ (0, TemplateSchemaMixin_1.templateSchemaMixin)(Template.prototype);
29
+ exports.default = Template;
@@ -0,0 +1,5 @@
1
+ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
2
+ import type { ApplicationPropertiesSchema } from "@mat3ra/esse/dist/js/types";
3
+ export type ApplicationSchemaMixin = ApplicationPropertiesSchema;
4
+ export type ApplicationInMemoryEntity = InMemoryEntity & ApplicationSchemaMixin;
5
+ export declare function applicationSchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & ApplicationSchemaMixin;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.applicationSchemaMixin = applicationSchemaMixin;
4
+ function applicationSchemaMixin(item) {
5
+ // @ts-expect-error
6
+ const properties = {
7
+ get shortName() {
8
+ return this.requiredProp("shortName");
9
+ },
10
+ set shortName(value) {
11
+ this.setProp("shortName", value);
12
+ },
13
+ get summary() {
14
+ return this.requiredProp("summary");
15
+ },
16
+ set summary(value) {
17
+ this.setProp("summary", value);
18
+ },
19
+ get version() {
20
+ return this.requiredProp("version");
21
+ },
22
+ set version(value) {
23
+ this.setProp("version", value);
24
+ },
25
+ get build() {
26
+ return this.requiredProp("build");
27
+ },
28
+ set build(value) {
29
+ this.setProp("build", value);
30
+ },
31
+ get isDefault() {
32
+ return this.prop("isDefault");
33
+ },
34
+ set isDefault(value) {
35
+ this.setProp("isDefault", value);
36
+ },
37
+ get isDefaultVersion() {
38
+ return this.prop("isDefaultVersion");
39
+ },
40
+ set isDefaultVersion(value) {
41
+ this.setProp("isDefaultVersion", value);
42
+ },
43
+ get hasAdvancedComputeOptions() {
44
+ return this.prop("hasAdvancedComputeOptions");
45
+ },
46
+ set hasAdvancedComputeOptions(value) {
47
+ this.setProp("hasAdvancedComputeOptions", value);
48
+ },
49
+ get isLicensed() {
50
+ return this.prop("isLicensed");
51
+ },
52
+ set isLicensed(value) {
53
+ this.setProp("isLicensed", value);
54
+ },
55
+ get isUsingMaterial() {
56
+ return this.prop("isUsingMaterial", false);
57
+ },
58
+ set isUsingMaterial(value) {
59
+ this.setProp("isUsingMaterial", value);
60
+ },
61
+ };
62
+ Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
63
+ }
@@ -0,0 +1,5 @@
1
+ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
2
+ import type { ExecutablePropertiesSchema } from "@mat3ra/esse/dist/js/types";
3
+ export type ExecutableSchemaMixin = ExecutablePropertiesSchema;
4
+ export type ExecutableInMemoryEntity = InMemoryEntity & ExecutableSchemaMixin;
5
+ export declare function executableSchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & ExecutableSchemaMixin;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.executableSchemaMixin = executableSchemaMixin;
4
+ function executableSchemaMixin(item) {
5
+ // @ts-expect-error
6
+ const properties = {
7
+ get applicationName() {
8
+ return this.requiredProp("applicationName");
9
+ },
10
+ set applicationName(value) {
11
+ this.setProp("applicationName", value);
12
+ },
13
+ get applicationVersion() {
14
+ return this.requiredProp("applicationVersion");
15
+ },
16
+ set applicationVersion(value) {
17
+ this.setProp("applicationVersion", value);
18
+ },
19
+ get hasAdvancedComputeOptions() {
20
+ return this.prop("hasAdvancedComputeOptions");
21
+ },
22
+ set hasAdvancedComputeOptions(value) {
23
+ this.setProp("hasAdvancedComputeOptions", value);
24
+ },
25
+ };
26
+ Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
27
+ }
@@ -0,0 +1,5 @@
1
+ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
2
+ import type { FlavorPropertiesSchema } from "@mat3ra/esse/dist/js/types";
3
+ export type FlavorSchemaMixin = FlavorPropertiesSchema;
4
+ export type FlavorInMemoryEntity = InMemoryEntity & FlavorSchemaMixin;
5
+ export declare function flavorSchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & FlavorSchemaMixin;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.flavorSchemaMixin = flavorSchemaMixin;
4
+ function flavorSchemaMixin(item) {
5
+ // @ts-expect-error
6
+ const properties = {
7
+ get executableName() {
8
+ return this.requiredProp("executableName");
9
+ },
10
+ set executableName(value) {
11
+ this.setProp("executableName", value);
12
+ },
13
+ get applicationName() {
14
+ return this.requiredProp("applicationName");
15
+ },
16
+ set applicationName(value) {
17
+ this.setProp("applicationName", value);
18
+ },
19
+ get applicationVersion() {
20
+ return this.requiredProp("applicationVersion");
21
+ },
22
+ set applicationVersion(value) {
23
+ this.setProp("applicationVersion", value);
24
+ },
25
+ get input() {
26
+ return this.requiredProp("input");
27
+ },
28
+ set input(value) {
29
+ this.setProp("input", value);
30
+ },
31
+ };
32
+ Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
33
+ }
@@ -0,0 +1,5 @@
1
+ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
2
+ import type { TemplatePropertiesSchema } from "@mat3ra/esse/dist/js/types";
3
+ export type TemplateSchemaMixin = TemplatePropertiesSchema;
4
+ export type TemplateInMemoryEntity = InMemoryEntity & TemplateSchemaMixin;
5
+ export declare function templateSchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & TemplateSchemaMixin;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.templateSchemaMixin = templateSchemaMixin;
4
+ function templateSchemaMixin(item) {
5
+ // @ts-expect-error
6
+ const properties = {
7
+ get executableName() {
8
+ return this.requiredProp("executableName");
9
+ },
10
+ set executableName(value) {
11
+ this.setProp("executableName", value);
12
+ },
13
+ get applicationName() {
14
+ return this.requiredProp("applicationName");
15
+ },
16
+ set applicationName(value) {
17
+ this.setProp("applicationName", value);
18
+ },
19
+ get applicationVersion() {
20
+ return this.requiredProp("applicationVersion");
21
+ },
22
+ set applicationVersion(value) {
23
+ this.setProp("applicationVersion", value);
24
+ },
25
+ get contextProviders() {
26
+ return this.requiredProp("contextProviders");
27
+ },
28
+ set contextProviders(value) {
29
+ this.setProp("contextProviders", value);
30
+ },
31
+ get content() {
32
+ return this.requiredProp("content");
33
+ },
34
+ set content(value) {
35
+ this.setProp("content", value);
36
+ },
37
+ };
38
+ Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
39
+ }
@@ -1,14 +1 @@
1
- import Application from "./application";
2
- import { applicationMixin, applicationStaticMixin } from "./applicationMixin";
3
- import ApplicationRegistry from "./ApplicationRegistry";
4
- import ContextProvider from "./context/ContextProvider";
5
- import JSONSchemaFormDataProvider from "./context/JSONSchemaFormDataProvider";
6
- import Executable from "./executable";
7
- import { executableMixin } from "./executableMixin";
8
- import Flavor from "./flavor";
9
- import { flavorMixin } from "./flavorMixin";
10
- import Template from "./template";
11
- import { templateMixin, templateStaticMixin } from "./templateMixin";
12
- declare const allApplications: string[];
13
- export { Application, Executable, Flavor, Template, ApplicationRegistry, ContextProvider, JSONSchemaFormDataProvider, executableMixin, flavorMixin, applicationMixin, applicationStaticMixin, templateMixin, templateStaticMixin, allApplications, };
14
- export type * from "./types";
1
+ export * from "./types";
package/dist/js/index.js CHANGED
@@ -1,32 +1,17 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
4
15
  };
5
16
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.allApplications = exports.templateStaticMixin = exports.templateMixin = exports.applicationStaticMixin = exports.applicationMixin = exports.flavorMixin = exports.executableMixin = exports.JSONSchemaFormDataProvider = exports.ContextProvider = exports.ApplicationRegistry = exports.Template = exports.Flavor = exports.Executable = exports.Application = void 0;
7
- const application_1 = __importDefault(require("./application"));
8
- exports.Application = application_1.default;
9
- const applicationMixin_1 = require("./applicationMixin");
10
- Object.defineProperty(exports, "applicationMixin", { enumerable: true, get: function () { return applicationMixin_1.applicationMixin; } });
11
- Object.defineProperty(exports, "applicationStaticMixin", { enumerable: true, get: function () { return applicationMixin_1.applicationStaticMixin; } });
12
- const ApplicationRegistry_1 = __importDefault(require("./ApplicationRegistry"));
13
- exports.ApplicationRegistry = ApplicationRegistry_1.default;
14
- const ContextProvider_1 = __importDefault(require("./context/ContextProvider"));
15
- exports.ContextProvider = ContextProvider_1.default;
16
- const JSONSchemaFormDataProvider_1 = __importDefault(require("./context/JSONSchemaFormDataProvider"));
17
- exports.JSONSchemaFormDataProvider = JSONSchemaFormDataProvider_1.default;
18
- const executable_1 = __importDefault(require("./executable"));
19
- exports.Executable = executable_1.default;
20
- const executableMixin_1 = require("./executableMixin");
21
- Object.defineProperty(exports, "executableMixin", { enumerable: true, get: function () { return executableMixin_1.executableMixin; } });
22
- const flavor_1 = __importDefault(require("./flavor"));
23
- exports.Flavor = flavor_1.default;
24
- const flavorMixin_1 = require("./flavorMixin");
25
- Object.defineProperty(exports, "flavorMixin", { enumerable: true, get: function () { return flavorMixin_1.flavorMixin; } });
26
- const template_1 = __importDefault(require("./template"));
27
- exports.Template = template_1.default;
28
- const templateMixin_1 = require("./templateMixin");
29
- Object.defineProperty(exports, "templateMixin", { enumerable: true, get: function () { return templateMixin_1.templateMixin; } });
30
- Object.defineProperty(exports, "templateStaticMixin", { enumerable: true, get: function () { return templateMixin_1.templateStaticMixin; } });
31
- const allApplications = ApplicationRegistry_1.default.getUniqueAvailableApplicationNames();
32
- exports.allApplications = allApplications;
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,5 @@
1
+ /**
2
+ * `T` with the listed keys made optional. Equivalent to
3
+ * `Omit<T, K> & Partial<Pick<T, K>>`.
4
+ */
5
+ export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
- import type { ApplicationMixin, ApplicationStaticMixin } from "./applicationMixin";
2
- import type { CreateApplicationConfig } from "./ApplicationRegistry";
3
- import type { ExecutableMixin } from "./executableMixin";
4
- import type { FlavorMixin } from "./flavorMixin";
5
- import type { TemplateMixin, TemplateStaticMixin } from "./templateMixin";
6
- export type { FlavorMixin, ExecutableMixin, ApplicationMixin, ApplicationStaticMixin, CreateApplicationConfig, TemplateMixin, TemplateStaticMixin, };
1
+ import Application from "./Application";
2
+ import Executable from "./Executable";
3
+ import Flavor from "./Flavor";
4
+ import Template from "./Template";
5
+ import type { PartialBy } from "./typeUtils";
6
+ export { Executable, Flavor, Template, Application, PartialBy };
package/dist/js/types.js CHANGED
@@ -1,2 +1,14 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Application = exports.Template = exports.Flavor = exports.Executable = void 0;
7
+ const Application_1 = __importDefault(require("./Application"));
8
+ exports.Application = Application_1.default;
9
+ const Executable_1 = __importDefault(require("./Executable"));
10
+ exports.Executable = Executable_1.default;
11
+ const Flavor_1 = __importDefault(require("./Flavor"));
12
+ exports.Flavor = Flavor_1.default;
13
+ const Template_1 = __importDefault(require("./Template"));
14
+ exports.Template = Template_1.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mat3ra/ade",
3
- "version": "2026.5.23-0",
3
+ "version": "2026.5.29-0",
4
4
  "description": "Application DEfinitions",
5
5
  "scripts": {
6
6
  "test": "nyc --reporter=text mocha --recursive --bail tests/js/**/*.ts",
@@ -12,7 +12,8 @@
12
12
  "lint:fix": "eslint --fix --cache src/js tests/js && prettier --write src/js tests/js",
13
13
  "transpile": "tsc -p tsconfig.json",
14
14
  "prettier": "prettier --check src/js tests/js",
15
- "prepare": "husky install"
15
+ "prepare": "husky install",
16
+ "generate-mixins": "ts-node scripts/generate-mixins.ts"
16
17
  },
17
18
  "repository": {
18
19
  "type": "git",
@@ -42,21 +43,15 @@
42
43
  "license": "Apache-2.0",
43
44
  "homepage": "https://github.com/Exabyte-io/ade",
44
45
  "dependencies": {
45
- "@types/react-jsonschema-form": "^1.7.13",
46
- "lodash": "^4.18.1",
47
- "nunjucks": "^3.2.4",
48
- "react-jsonschema-form": "^1.8.1"
46
+ "lodash": "^4.18.1"
49
47
  },
50
48
  "devDependencies": {
51
49
  "@babel/eslint-parser": "^7.28.6",
52
50
  "@exabyte-io/eslint-config": "2025.5.13-0",
53
- "@mat3ra/code": "^2026.4.1-0",
54
- "@mat3ra/esse": "^2026.4.29-0",
55
- "@mat3ra/made": "^2026.4.2-1",
56
- "@mat3ra/standata": "^2026.5.15-0",
57
- "@mat3ra/tsconfig": "^2024.6.3-0",
58
- "@mat3ra/utils": "^2026.4.15-1",
59
- "@types/nunjucks": "^3.2.6",
51
+ "@mat3ra/code": "2026.5.27-0",
52
+ "@mat3ra/esse": "2026.5.27-0",
53
+ "@mat3ra/standata": "2026.5.28-0",
54
+ "@mat3ra/tsconfig": "2024.6.3-0",
60
55
  "@typescript-eslint/eslint-plugin": "^5.62.0",
61
56
  "@typescript-eslint/parser": "^5.62.0",
62
57
  "chai": "^4.5.0",
@@ -85,7 +80,6 @@
85
80
  "@mat3ra/code": "*",
86
81
  "@mat3ra/esse": "*",
87
82
  "@mat3ra/made": "*",
88
- "@mat3ra/standata": "*",
89
83
  "@mat3ra/utils": "*"
90
84
  },
91
85
  "engines": {
@@ -0,0 +1,64 @@
1
+ import { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
2
+ import {
3
+ type Defaultable,
4
+ defaultableEntityMixin,
5
+ } from "@mat3ra/code/dist/js/entity/mixins/DefaultableMixin";
6
+ import {
7
+ HashedEntity,
8
+ hashedEntityMixin,
9
+ } from "@mat3ra/code/dist/js/entity/mixins/HashedEntityMixin";
10
+ import {
11
+ type NamedEntity,
12
+ namedEntityMixin,
13
+ } from "@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin";
14
+ import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
15
+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types";
16
+ import type { JSONSchema } from "@mat3ra/esse/dist/js/esse/utils";
17
+ import type { ApplicationSchema } from "@mat3ra/esse/dist/js/types";
18
+
19
+ import {
20
+ type ApplicationSchemaMixin,
21
+ applicationSchemaMixin,
22
+ } from "./generated/ApplicationSchemaMixin";
23
+
24
+ export type DefaultApplicationConfig = Pick<
25
+ ApplicationSchema,
26
+ "name" | "shortName" | "version" | "summary" | "build"
27
+ >;
28
+
29
+ interface Application extends ApplicationSchemaMixin, NamedEntity, Defaultable, HashedEntity {}
30
+
31
+ class Application extends InMemoryEntity implements ApplicationSchema {
32
+ constructor(data: Partial<ApplicationSchema> = {}) {
33
+ super({
34
+ ...data,
35
+ });
36
+ }
37
+
38
+ static get jsonSchema(): JSONSchema {
39
+ const schema = JSONSchemasInterface.getSchemaById("software/application");
40
+ if (schema === undefined) {
41
+ throw new Error('JSONSchemasInterface: missing schema id "software/application"');
42
+ }
43
+ return schema;
44
+ }
45
+
46
+ declare static createDefault: () => Application;
47
+
48
+ declare toJSON: () => ApplicationSchema & AnyObject;
49
+
50
+ getHashObject() {
51
+ return {
52
+ name: this.name,
53
+ version: this.version,
54
+ build: this.build,
55
+ };
56
+ }
57
+ }
58
+
59
+ namedEntityMixin(Application.prototype);
60
+ defaultableEntityMixin(Application);
61
+ applicationSchemaMixin(Application.prototype);
62
+ hashedEntityMixin(Application.prototype);
63
+
64
+ export default Application;