@cratis/scene.model 4.6.0 → 4.8.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/dist/cjs/index.js +3 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/layouts/Layout.js +2 -1
- package/dist/cjs/layouts/Layout.js.map +1 -1
- package/dist/cjs/screens/DialogTemplate.js +2 -1
- package/dist/cjs/screens/DialogTemplate.js.map +1 -1
- package/dist/cjs/screens/ScreenTemplate.js +2 -1
- package/dist/cjs/screens/ScreenTemplate.js.map +1 -1
- package/dist/cjs/screens/TemplateMetadata.js +21 -0
- package/dist/cjs/screens/TemplateMetadata.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/layouts/Layout.d.ts +2 -0
- package/dist/esm/layouts/Layout.d.ts.map +1 -1
- package/dist/esm/layouts/Layout.js +2 -1
- package/dist/esm/layouts/Layout.js.map +1 -1
- package/dist/esm/screens/DialogTemplate.d.ts +2 -0
- package/dist/esm/screens/DialogTemplate.d.ts.map +1 -1
- package/dist/esm/screens/DialogTemplate.js +2 -1
- package/dist/esm/screens/DialogTemplate.js.map +1 -1
- package/dist/esm/screens/ScreenTemplate.d.ts +2 -0
- package/dist/esm/screens/ScreenTemplate.d.ts.map +1 -1
- package/dist/esm/screens/ScreenTemplate.js +2 -1
- package/dist/esm/screens/ScreenTemplate.js.map +1 -1
- package/dist/esm/screens/TemplateMetadata.d.ts +14 -0
- package/dist/esm/screens/TemplateMetadata.d.ts.map +1 -0
- package/dist/esm/screens/TemplateMetadata.js +18 -0
- package/dist/esm/screens/TemplateMetadata.js.map +1 -0
- package/dist/esm/screens/index.d.ts +1 -0
- package/dist/esm/screens/index.d.ts.map +1 -1
- package/dist/esm/screens/index.js +1 -0
- package/dist/esm/screens/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/layouts/Layout.ts +5 -1
- package/package.json +1 -1
- package/screens/DialogTemplate.ts +5 -0
- package/screens/ScreenTemplate.ts +5 -0
- package/screens/TemplateMetadata.ts +26 -0
- package/screens/index.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -90,6 +90,7 @@ var Behavior = require('./interactions/Behavior.js');
|
|
|
90
90
|
var Screen = require('./screens/Screen.js');
|
|
91
91
|
var ScreenTemplate = require('./screens/ScreenTemplate.js');
|
|
92
92
|
var DialogTemplate = require('./screens/DialogTemplate.js');
|
|
93
|
+
var TemplateMetadata = require('./screens/TemplateMetadata.js');
|
|
93
94
|
var UiStarter = require('./starters/UiStarter.js');
|
|
94
95
|
var QueryResultShape = require('./queries/QueryResultShape.js');
|
|
95
96
|
var QueryOriginKind = require('./queries/QueryOriginKind.js');
|
|
@@ -244,6 +245,8 @@ exports.BehaviorPropertyNames = Behavior.BehaviorPropertyNames;
|
|
|
244
245
|
exports.ScreenPropertyNames = Screen.ScreenPropertyNames;
|
|
245
246
|
exports.ScreenTemplatePropertyNames = ScreenTemplate.ScreenTemplatePropertyNames;
|
|
246
247
|
exports.DialogTemplatePropertyNames = DialogTemplate.DialogTemplatePropertyNames;
|
|
248
|
+
exports.TemplateMetadataPropertyNames = TemplateMetadata.TemplateMetadataPropertyNames;
|
|
249
|
+
exports.TemplateScope = TemplateMetadata.TemplateScope;
|
|
247
250
|
exports.UiStarterPropertyNames = UiStarter.UiStarterPropertyNames;
|
|
248
251
|
exports.QueryResultShape = QueryResultShape.QueryResultShape;
|
|
249
252
|
exports.QueryOriginKind = QueryOriginKind.QueryOriginKind;
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.js","sources":["../../../layouts/Layout.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Arrangement } from './Arrangement';\nimport { Slot } from './Slot';\nimport { Behavior } from '../interactions';\n\n/**\n * A named template of slots that a {@link Screen} fills with content. Mirrors Screenplay's `layout`\n * construct: a bare layout with plain slots is a special case of a layout whose slots all use the\n * default arrangement.\n */\nexport interface Layout {\n name: string;\n slots: Slot[];\n\n /**\n * How the layout's own `slots` position relative to each other - a {@link FlowArrangement} (leaves\n * are {@link FlowSlotLeaf}) or {@link FreeformSlotArrangement}, or `undefined` for the slots'\n * declaration order with no further positioning information. Distinct from each {@link Slot}'s own\n * `arrangement`, which positions that one slot's filled content instead of positioning the slots\n * themselves.\n */\n arrangement?: Arrangement;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const LayoutPropertyNames: (keyof Layout)[] = ['name', 'slots', 'arrangement', 'behaviors'];\n"],"names":["LayoutPropertyNames"],"mappings":";;AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"Layout.js","sources":["../../../layouts/Layout.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Arrangement } from './Arrangement';\nimport { Slot } from './Slot';\nimport { Behavior } from '../interactions';\nimport { TemplateMetadata } from '../screens/TemplateMetadata';\n\n/**\n * A named template of slots that a {@link Screen} fills with content. Mirrors Screenplay's `layout`\n * construct: a bare layout with plain slots is a special case of a layout whose slots all use the\n * default arrangement.\n */\nexport interface Layout {\n name: string;\n slots: Slot[];\n\n /**\n * How the layout's own `slots` position relative to each other - a {@link FlowArrangement} (leaves\n * are {@link FlowSlotLeaf}) or {@link FreeformSlotArrangement}, or `undefined` for the slots'\n * declaration order with no further positioning information. Distinct from each {@link Slot}'s own\n * `arrangement`, which positions that one slot's filled content instead of positioning the slots\n * themselves.\n */\n arrangement?: Arrangement;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n\n /** Optional browse metadata; ApplicationShell retains this existing Layout role. */\n metadata?: TemplateMetadata;\n}\n\nexport const LayoutPropertyNames: (keyof Layout)[] = ['name', 'slots', 'arrangement', 'behaviors', 'metadata'];\n"],"names":["LayoutPropertyNames"],"mappings":";;AAAA;AACA;MAkCaA,mBAAAA,GAAwC;AAAC,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA,aAAA;AAAe,IAAA,WAAA;AAAa,IAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogTemplate.js","sources":["../../../screens/DialogTemplate.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SceneElement } from '../elements';\nimport { Arrangement, Slot } from '../layouts';\nimport { Behavior } from '../interactions';\n\n/**\n * A reusable dialog structure — the same idea as a {@link ScreenTemplate}, for content that opens over an\n * application rather than sitting inside it.\n *\n * A dialog has no `fitsSlot` because it occupies no slot: it is an overlay, summoned by something rather\n * than placed by a containing layout. Everything else is the same, which is deliberate — a confirmation\n * dialog and a detail screen are both \"slots with an arrangement, filled with content\", and there is no\n * reason for an author to learn that twice.\n */\nexport interface DialogTemplate {\n /**\n * The template's name.\n */\n name: string;\n\n /**\n * The slots this template offers to whatever it contains, in declaration order.\n */\n slots: Slot[];\n\n /**\n * How this template's own `slots` position relative to each other. Absent for declaration order with\n * no further positioning.\n */\n arrangement?: Arrangement;\n\n /**\n * Content the template itself provides, keyed by slot name — a dialog's own chrome, such as its header\n * and button bar.\n */\n content?: Record<string, SceneElement[]>;\n\n /**\n * A human-readable name for a template picker, falling back to `name`.\n */\n displayName?: string;\n\n /**\n * A one-line description for a template picker.\n */\n description?: string;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const DialogTemplatePropertyNames: (keyof DialogTemplate)[] = [\n 'name',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n 'behaviors',\n];\n"],"names":["DialogTemplatePropertyNames"],"mappings":";;AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"DialogTemplate.js","sources":["../../../screens/DialogTemplate.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SceneElement } from '../elements';\nimport { Arrangement, Slot } from '../layouts';\nimport { Behavior } from '../interactions';\nimport { TemplateMetadata } from './TemplateMetadata';\n\n/**\n * A reusable dialog structure — the same idea as a {@link ScreenTemplate}, for content that opens over an\n * application rather than sitting inside it.\n *\n * A dialog has no `fitsSlot` because it occupies no slot: it is an overlay, summoned by something rather\n * than placed by a containing layout. Everything else is the same, which is deliberate — a confirmation\n * dialog and a detail screen are both \"slots with an arrangement, filled with content\", and there is no\n * reason for an author to learn that twice.\n */\nexport interface DialogTemplate {\n /**\n * The template's name.\n */\n name: string;\n\n /**\n * The slots this template offers to whatever it contains, in declaration order.\n */\n slots: Slot[];\n\n /**\n * How this template's own `slots` position relative to each other. Absent for declaration order with\n * no further positioning.\n */\n arrangement?: Arrangement;\n\n /**\n * Content the template itself provides, keyed by slot name — a dialog's own chrome, such as its header\n * and button bar.\n */\n content?: Record<string, SceneElement[]>;\n\n /**\n * A human-readable name for a template picker, falling back to `name`.\n */\n displayName?: string;\n\n /**\n * A one-line description for a template picker.\n */\n description?: string;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n\n /** Optional semantic type, browse category and scope restrictions. */\n metadata?: TemplateMetadata;\n}\n\nexport const DialogTemplatePropertyNames: (keyof DialogTemplate)[] = [\n 'name',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n 'behaviors',\n 'metadata',\n];\n"],"names":["DialogTemplatePropertyNames"],"mappings":";;AAAA;AACA;MA0DaA,2BAAAA,GAAwD;AACjE,IAAA,MAAA;AACA,IAAA,OAAA;AACA,IAAA,aAAA;AACA,IAAA,SAAA;AACA,IAAA,aAAA;AACA,IAAA,aAAA;AACA,IAAA,WAAA;AACA,IAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenTemplate.js","sources":["../../../screens/ScreenTemplate.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SceneElement } from '../elements';\nimport { Arrangement, Slot } from '../layouts';\nimport { Behavior } from '../interactions';\n\n/**\n * A reusable screen structure that fills a named slot on whatever contains it, and offers slots of its\n * own for what it contains in turn.\n *\n * A {@link Layout} and a screen template are deliberately different things. A layout is the application's\n * base navigational look — the shell with its top bar, navigation and content region — and an application\n * has one. A screen template is what goes *inside* that shell, and an application has many: one per\n * module, feature or slice that needs a shape of its own.\n *\n * `fitsSlot` is what makes them compose. A module's screen template fits the application layout's content\n * slot; a feature's screen template fits a slot the module's template declares; a slice's fits one the\n * feature's declares. The same rule at every level, so nesting is arbitrarily deep without a second\n * mechanism — and a template always states where it belongs rather than being told by whatever happens to\n * host it.\n */\nexport interface ScreenTemplate {\n /**\n * The template's name, which a {@link Screen} refers to.\n */\n name: string;\n\n /**\n * The name of the slot on the containing {@link Layout} or screen template this one fills, or\n * undefined for a template that is placed explicitly rather than by declaration.\n */\n fitsSlot?: string;\n\n /**\n * The slots this template offers to whatever it contains, in declaration order.\n */\n slots: Slot[];\n\n /**\n * How this template's own `slots` position relative to each other — the same shape a {@link Layout}\n * uses, evaluated by the same engine. Absent for declaration order with no further positioning.\n */\n arrangement?: Arrangement;\n\n /**\n * Content the template itself provides, keyed by slot name — the chrome a template brings with it, as\n * opposed to what a {@link Screen} based on it fills in.\n */\n content?: Record<string, SceneElement[]>;\n\n /**\n * A human-readable name for a template picker, falling back to `name`.\n */\n displayName?: string;\n\n /**\n * A one-line description for a template picker.\n */\n description?: string;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const ScreenTemplatePropertyNames: (keyof ScreenTemplate)[] = [\n 'name',\n 'fitsSlot',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n 'behaviors',\n];\n"],"names":["ScreenTemplatePropertyNames"],"mappings":";;AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"ScreenTemplate.js","sources":["../../../screens/ScreenTemplate.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SceneElement } from '../elements';\nimport { Arrangement, Slot } from '../layouts';\nimport { Behavior } from '../interactions';\nimport { TemplateMetadata } from './TemplateMetadata';\n\n/**\n * A reusable screen structure that fills a named slot on whatever contains it, and offers slots of its\n * own for what it contains in turn.\n *\n * A {@link Layout} and a screen template are deliberately different things. A layout is the application's\n * base navigational look — the shell with its top bar, navigation and content region — and an application\n * has one. A screen template is what goes *inside* that shell, and an application has many: one per\n * module, feature or slice that needs a shape of its own.\n *\n * `fitsSlot` is what makes them compose. A module's screen template fits the application layout's content\n * slot; a feature's screen template fits a slot the module's template declares; a slice's fits one the\n * feature's declares. The same rule at every level, so nesting is arbitrarily deep without a second\n * mechanism — and a template always states where it belongs rather than being told by whatever happens to\n * host it.\n */\nexport interface ScreenTemplate {\n /**\n * The template's name, which a {@link Screen} refers to.\n */\n name: string;\n\n /**\n * The name of the slot on the containing {@link Layout} or screen template this one fills, or\n * undefined for a template that is placed explicitly rather than by declaration.\n */\n fitsSlot?: string;\n\n /**\n * The slots this template offers to whatever it contains, in declaration order.\n */\n slots: Slot[];\n\n /**\n * How this template's own `slots` position relative to each other — the same shape a {@link Layout}\n * uses, evaluated by the same engine. Absent for declaration order with no further positioning.\n */\n arrangement?: Arrangement;\n\n /**\n * Content the template itself provides, keyed by slot name — the chrome a template brings with it, as\n * opposed to what a {@link Screen} based on it fills in.\n */\n content?: Record<string, SceneElement[]>;\n\n /**\n * A human-readable name for a template picker, falling back to `name`.\n */\n displayName?: string;\n\n /**\n * A one-line description for a template picker.\n */\n description?: string;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n\n /** Optional semantic type, browse category and scope restrictions. */\n metadata?: TemplateMetadata;\n}\n\nexport const ScreenTemplatePropertyNames: (keyof ScreenTemplate)[] = [\n 'name',\n 'fitsSlot',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n 'behaviors',\n 'metadata',\n];\n"],"names":["ScreenTemplatePropertyNames"],"mappings":";;AAAA;AACA;MAsEaA,2BAAAA,GAAwD;AACjE,IAAA,MAAA;AACA,IAAA,UAAA;AACA,IAAA,OAAA;AACA,IAAA,aAAA;AACA,IAAA,SAAA;AACA,IAAA,aAAA;AACA,IAAA,aAAA;AACA,IAAA,WAAA;AACA,IAAA;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/** The application hierarchy at which a reusable template is selected. */ var TemplateScope = /*#__PURE__*/ function(TemplateScope) {
|
|
6
|
+
TemplateScope["Application"] = "Application";
|
|
7
|
+
TemplateScope["Module"] = "Module";
|
|
8
|
+
TemplateScope["Feature"] = "Feature";
|
|
9
|
+
TemplateScope["Subfeature"] = "Subfeature";
|
|
10
|
+
TemplateScope["Slice"] = "Slice";
|
|
11
|
+
return TemplateScope;
|
|
12
|
+
}({});
|
|
13
|
+
const TemplateMetadataPropertyNames = [
|
|
14
|
+
'type',
|
|
15
|
+
'category',
|
|
16
|
+
'scopes'
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
exports.TemplateMetadataPropertyNames = TemplateMetadataPropertyNames;
|
|
20
|
+
exports.TemplateScope = TemplateScope;
|
|
21
|
+
//# sourceMappingURL=TemplateMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateMetadata.js","sources":["../../../screens/TemplateMetadata.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/** The application hierarchy at which a reusable template is selected. */\nexport enum TemplateScope {\n Application = 'Application',\n Module = 'Module',\n Feature = 'Feature',\n Subfeature = 'Subfeature',\n Slice = 'Slice',\n}\n\n/**\n * Optional semantic and browsing metadata. Type and category are open strings so packages can\n * introduce their own vocabulary without a Scene release. Category never determines applicability.\n */\nexport interface TemplateMetadata {\n /** Semantic role; built-in roles are ApplicationShell, Workspace, List, Detail, Form and Dialog. */\n type?: string;\n /** A package-defined browse category, preserved even when the host does not recognize it. */\n category?: string;\n /** Explicit scope restriction. Absent uses the structural role; an empty list allows no scope. */\n scopes?: TemplateScope[];\n}\n\nexport const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[] = ['type', 'category', 'scopes'];\n"],"names":["TemplateScope","TemplateMetadataPropertyNames"],"mappings":";;AAAA;AACA;AAEA,2EACO,IAAKA,aAAAA,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAMX,CAAA,CAAA,EAAA;MAeYC,6BAAAA,GAA4D;AAAC,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA;;;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -88,6 +88,7 @@ export { BehaviorPropertyNames } from './interactions/Behavior.js';
|
|
|
88
88
|
export { ScreenPropertyNames } from './screens/Screen.js';
|
|
89
89
|
export { ScreenTemplatePropertyNames } from './screens/ScreenTemplate.js';
|
|
90
90
|
export { DialogTemplatePropertyNames } from './screens/DialogTemplate.js';
|
|
91
|
+
export { TemplateMetadataPropertyNames, TemplateScope } from './screens/TemplateMetadata.js';
|
|
91
92
|
export { UiStarterPropertyNames } from './starters/UiStarter.js';
|
|
92
93
|
export { QueryResultShape } from './queries/QueryResultShape.js';
|
|
93
94
|
export { QueryOriginKind } from './queries/QueryOriginKind.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Arrangement } from './Arrangement';
|
|
2
2
|
import { Slot } from './Slot';
|
|
3
3
|
import { Behavior } from '../interactions';
|
|
4
|
+
import { TemplateMetadata } from '../screens/TemplateMetadata';
|
|
4
5
|
export interface Layout {
|
|
5
6
|
name: string;
|
|
6
7
|
slots: Slot[];
|
|
7
8
|
arrangement?: Arrangement;
|
|
8
9
|
behaviors?: Behavior[];
|
|
10
|
+
metadata?: TemplateMetadata;
|
|
9
11
|
}
|
|
10
12
|
export declare const LayoutPropertyNames: (keyof Layout)[];
|
|
11
13
|
//# sourceMappingURL=Layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../layouts/Layout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../layouts/Layout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAO/D,MAAM,WAAW,MAAM;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,IAAI,EAAE,CAAC;IASd,WAAW,CAAC,EAAE,WAAW,CAAC;IAK1B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IAGvB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,eAAO,MAAM,mBAAmB,EAAE,CAAC,MAAM,MAAM,CAAC,EAA8D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.js","sources":["../../../layouts/Layout.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Arrangement } from './Arrangement';\nimport { Slot } from './Slot';\nimport { Behavior } from '../interactions';\n\n/**\n * A named template of slots that a {@link Screen} fills with content. Mirrors Screenplay's `layout`\n * construct: a bare layout with plain slots is a special case of a layout whose slots all use the\n * default arrangement.\n */\nexport interface Layout {\n name: string;\n slots: Slot[];\n\n /**\n * How the layout's own `slots` position relative to each other - a {@link FlowArrangement} (leaves\n * are {@link FlowSlotLeaf}) or {@link FreeformSlotArrangement}, or `undefined` for the slots'\n * declaration order with no further positioning information. Distinct from each {@link Slot}'s own\n * `arrangement`, which positions that one slot's filled content instead of positioning the slots\n * themselves.\n */\n arrangement?: Arrangement;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const LayoutPropertyNames: (keyof Layout)[] = ['name', 'slots', 'arrangement', 'behaviors'];\n"],"names":["LayoutPropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"Layout.js","sources":["../../../layouts/Layout.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Arrangement } from './Arrangement';\nimport { Slot } from './Slot';\nimport { Behavior } from '../interactions';\nimport { TemplateMetadata } from '../screens/TemplateMetadata';\n\n/**\n * A named template of slots that a {@link Screen} fills with content. Mirrors Screenplay's `layout`\n * construct: a bare layout with plain slots is a special case of a layout whose slots all use the\n * default arrangement.\n */\nexport interface Layout {\n name: string;\n slots: Slot[];\n\n /**\n * How the layout's own `slots` position relative to each other - a {@link FlowArrangement} (leaves\n * are {@link FlowSlotLeaf}) or {@link FreeformSlotArrangement}, or `undefined` for the slots'\n * declaration order with no further positioning information. Distinct from each {@link Slot}'s own\n * `arrangement`, which positions that one slot's filled content instead of positioning the slots\n * themselves.\n */\n arrangement?: Arrangement;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n\n /** Optional browse metadata; ApplicationShell retains this existing Layout role. */\n metadata?: TemplateMetadata;\n}\n\nexport const LayoutPropertyNames: (keyof Layout)[] = ['name', 'slots', 'arrangement', 'behaviors', 'metadata'];\n"],"names":["LayoutPropertyNames"],"mappings":"AAAA;AACA;MAkCaA,mBAAAA,GAAwC;AAAC,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA,aAAA;AAAe,IAAA,WAAA;AAAa,IAAA;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SceneElement } from '../elements';
|
|
2
2
|
import { Arrangement, Slot } from '../layouts';
|
|
3
3
|
import { Behavior } from '../interactions';
|
|
4
|
+
import { TemplateMetadata } from './TemplateMetadata';
|
|
4
5
|
export interface DialogTemplate {
|
|
5
6
|
name: string;
|
|
6
7
|
slots: Slot[];
|
|
@@ -9,6 +10,7 @@ export interface DialogTemplate {
|
|
|
9
10
|
displayName?: string;
|
|
10
11
|
description?: string;
|
|
11
12
|
behaviors?: Behavior[];
|
|
13
|
+
metadata?: TemplateMetadata;
|
|
12
14
|
}
|
|
13
15
|
export declare const DialogTemplatePropertyNames: (keyof DialogTemplate)[];
|
|
14
16
|
//# sourceMappingURL=DialogTemplate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogTemplate.d.ts","sourceRoot":"","sources":["../../../screens/DialogTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"DialogTemplate.d.ts","sourceRoot":"","sources":["../../../screens/DialogTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAWtD,MAAM,WAAW,cAAc;IAI3B,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,EAAE,IAAI,EAAE,CAAC;IAMd,WAAW,CAAC,EAAE,WAAW,CAAC;IAM1B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IAKzC,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IAGvB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,eAAO,MAAM,2BAA2B,EAAE,CAAC,MAAM,cAAc,CAAC,EAS/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogTemplate.js","sources":["../../../screens/DialogTemplate.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SceneElement } from '../elements';\nimport { Arrangement, Slot } from '../layouts';\nimport { Behavior } from '../interactions';\n\n/**\n * A reusable dialog structure — the same idea as a {@link ScreenTemplate}, for content that opens over an\n * application rather than sitting inside it.\n *\n * A dialog has no `fitsSlot` because it occupies no slot: it is an overlay, summoned by something rather\n * than placed by a containing layout. Everything else is the same, which is deliberate — a confirmation\n * dialog and a detail screen are both \"slots with an arrangement, filled with content\", and there is no\n * reason for an author to learn that twice.\n */\nexport interface DialogTemplate {\n /**\n * The template's name.\n */\n name: string;\n\n /**\n * The slots this template offers to whatever it contains, in declaration order.\n */\n slots: Slot[];\n\n /**\n * How this template's own `slots` position relative to each other. Absent for declaration order with\n * no further positioning.\n */\n arrangement?: Arrangement;\n\n /**\n * Content the template itself provides, keyed by slot name — a dialog's own chrome, such as its header\n * and button bar.\n */\n content?: Record<string, SceneElement[]>;\n\n /**\n * A human-readable name for a template picker, falling back to `name`.\n */\n displayName?: string;\n\n /**\n * A one-line description for a template picker.\n */\n description?: string;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const DialogTemplatePropertyNames: (keyof DialogTemplate)[] = [\n 'name',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n 'behaviors',\n];\n"],"names":["DialogTemplatePropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"DialogTemplate.js","sources":["../../../screens/DialogTemplate.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SceneElement } from '../elements';\nimport { Arrangement, Slot } from '../layouts';\nimport { Behavior } from '../interactions';\nimport { TemplateMetadata } from './TemplateMetadata';\n\n/**\n * A reusable dialog structure — the same idea as a {@link ScreenTemplate}, for content that opens over an\n * application rather than sitting inside it.\n *\n * A dialog has no `fitsSlot` because it occupies no slot: it is an overlay, summoned by something rather\n * than placed by a containing layout. Everything else is the same, which is deliberate — a confirmation\n * dialog and a detail screen are both \"slots with an arrangement, filled with content\", and there is no\n * reason for an author to learn that twice.\n */\nexport interface DialogTemplate {\n /**\n * The template's name.\n */\n name: string;\n\n /**\n * The slots this template offers to whatever it contains, in declaration order.\n */\n slots: Slot[];\n\n /**\n * How this template's own `slots` position relative to each other. Absent for declaration order with\n * no further positioning.\n */\n arrangement?: Arrangement;\n\n /**\n * Content the template itself provides, keyed by slot name — a dialog's own chrome, such as its header\n * and button bar.\n */\n content?: Record<string, SceneElement[]>;\n\n /**\n * A human-readable name for a template picker, falling back to `name`.\n */\n displayName?: string;\n\n /**\n * A one-line description for a template picker.\n */\n description?: string;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n\n /** Optional semantic type, browse category and scope restrictions. */\n metadata?: TemplateMetadata;\n}\n\nexport const DialogTemplatePropertyNames: (keyof DialogTemplate)[] = [\n 'name',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n 'behaviors',\n 'metadata',\n];\n"],"names":["DialogTemplatePropertyNames"],"mappings":"AAAA;AACA;MA0DaA,2BAAAA,GAAwD;AACjE,IAAA,MAAA;AACA,IAAA,OAAA;AACA,IAAA,aAAA;AACA,IAAA,SAAA;AACA,IAAA,aAAA;AACA,IAAA,aAAA;AACA,IAAA,WAAA;AACA,IAAA;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SceneElement } from '../elements';
|
|
2
2
|
import { Arrangement, Slot } from '../layouts';
|
|
3
3
|
import { Behavior } from '../interactions';
|
|
4
|
+
import { TemplateMetadata } from './TemplateMetadata';
|
|
4
5
|
export interface ScreenTemplate {
|
|
5
6
|
name: string;
|
|
6
7
|
fitsSlot?: string;
|
|
@@ -10,6 +11,7 @@ export interface ScreenTemplate {
|
|
|
10
11
|
displayName?: string;
|
|
11
12
|
description?: string;
|
|
12
13
|
behaviors?: Behavior[];
|
|
14
|
+
metadata?: TemplateMetadata;
|
|
13
15
|
}
|
|
14
16
|
export declare const ScreenTemplatePropertyNames: (keyof ScreenTemplate)[];
|
|
15
17
|
//# sourceMappingURL=ScreenTemplate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenTemplate.d.ts","sourceRoot":"","sources":["../../../screens/ScreenTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"ScreenTemplate.d.ts","sourceRoot":"","sources":["../../../screens/ScreenTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAiBtD,MAAM,WAAW,cAAc;IAI3B,IAAI,EAAE,MAAM,CAAC;IAMb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,KAAK,EAAE,IAAI,EAAE,CAAC;IAMd,WAAW,CAAC,EAAE,WAAW,CAAC;IAM1B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IAKzC,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IAGvB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,eAAO,MAAM,2BAA2B,EAAE,CAAC,MAAM,cAAc,CAAC,EAU/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenTemplate.js","sources":["../../../screens/ScreenTemplate.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SceneElement } from '../elements';\nimport { Arrangement, Slot } from '../layouts';\nimport { Behavior } from '../interactions';\n\n/**\n * A reusable screen structure that fills a named slot on whatever contains it, and offers slots of its\n * own for what it contains in turn.\n *\n * A {@link Layout} and a screen template are deliberately different things. A layout is the application's\n * base navigational look — the shell with its top bar, navigation and content region — and an application\n * has one. A screen template is what goes *inside* that shell, and an application has many: one per\n * module, feature or slice that needs a shape of its own.\n *\n * `fitsSlot` is what makes them compose. A module's screen template fits the application layout's content\n * slot; a feature's screen template fits a slot the module's template declares; a slice's fits one the\n * feature's declares. The same rule at every level, so nesting is arbitrarily deep without a second\n * mechanism — and a template always states where it belongs rather than being told by whatever happens to\n * host it.\n */\nexport interface ScreenTemplate {\n /**\n * The template's name, which a {@link Screen} refers to.\n */\n name: string;\n\n /**\n * The name of the slot on the containing {@link Layout} or screen template this one fills, or\n * undefined for a template that is placed explicitly rather than by declaration.\n */\n fitsSlot?: string;\n\n /**\n * The slots this template offers to whatever it contains, in declaration order.\n */\n slots: Slot[];\n\n /**\n * How this template's own `slots` position relative to each other — the same shape a {@link Layout}\n * uses, evaluated by the same engine. Absent for declaration order with no further positioning.\n */\n arrangement?: Arrangement;\n\n /**\n * Content the template itself provides, keyed by slot name — the chrome a template brings with it, as\n * opposed to what a {@link Screen} based on it fills in.\n */\n content?: Record<string, SceneElement[]>;\n\n /**\n * A human-readable name for a template picker, falling back to `name`.\n */\n displayName?: string;\n\n /**\n * A one-line description for a template picker.\n */\n description?: string;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const ScreenTemplatePropertyNames: (keyof ScreenTemplate)[] = [\n 'name',\n 'fitsSlot',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n 'behaviors',\n];\n"],"names":["ScreenTemplatePropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"ScreenTemplate.js","sources":["../../../screens/ScreenTemplate.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SceneElement } from '../elements';\nimport { Arrangement, Slot } from '../layouts';\nimport { Behavior } from '../interactions';\nimport { TemplateMetadata } from './TemplateMetadata';\n\n/**\n * A reusable screen structure that fills a named slot on whatever contains it, and offers slots of its\n * own for what it contains in turn.\n *\n * A {@link Layout} and a screen template are deliberately different things. A layout is the application's\n * base navigational look — the shell with its top bar, navigation and content region — and an application\n * has one. A screen template is what goes *inside* that shell, and an application has many: one per\n * module, feature or slice that needs a shape of its own.\n *\n * `fitsSlot` is what makes them compose. A module's screen template fits the application layout's content\n * slot; a feature's screen template fits a slot the module's template declares; a slice's fits one the\n * feature's declares. The same rule at every level, so nesting is arbitrarily deep without a second\n * mechanism — and a template always states where it belongs rather than being told by whatever happens to\n * host it.\n */\nexport interface ScreenTemplate {\n /**\n * The template's name, which a {@link Screen} refers to.\n */\n name: string;\n\n /**\n * The name of the slot on the containing {@link Layout} or screen template this one fills, or\n * undefined for a template that is placed explicitly rather than by declaration.\n */\n fitsSlot?: string;\n\n /**\n * The slots this template offers to whatever it contains, in declaration order.\n */\n slots: Slot[];\n\n /**\n * How this template's own `slots` position relative to each other — the same shape a {@link Layout}\n * uses, evaluated by the same engine. Absent for declaration order with no further positioning.\n */\n arrangement?: Arrangement;\n\n /**\n * Content the template itself provides, keyed by slot name — the chrome a template brings with it, as\n * opposed to what a {@link Screen} based on it fills in.\n */\n content?: Record<string, SceneElement[]>;\n\n /**\n * A human-readable name for a template picker, falling back to `name`.\n */\n displayName?: string;\n\n /**\n * A one-line description for a template picker.\n */\n description?: string;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n\n /** Optional semantic type, browse category and scope restrictions. */\n metadata?: TemplateMetadata;\n}\n\nexport const ScreenTemplatePropertyNames: (keyof ScreenTemplate)[] = [\n 'name',\n 'fitsSlot',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n 'behaviors',\n 'metadata',\n];\n"],"names":["ScreenTemplatePropertyNames"],"mappings":"AAAA;AACA;MAsEaA,2BAAAA,GAAwD;AACjE,IAAA,MAAA;AACA,IAAA,UAAA;AACA,IAAA,OAAA;AACA,IAAA,aAAA;AACA,IAAA,SAAA;AACA,IAAA,aAAA;AACA,IAAA,aAAA;AACA,IAAA,WAAA;AACA,IAAA;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum TemplateScope {
|
|
2
|
+
Application = "Application",
|
|
3
|
+
Module = "Module",
|
|
4
|
+
Feature = "Feature",
|
|
5
|
+
Subfeature = "Subfeature",
|
|
6
|
+
Slice = "Slice"
|
|
7
|
+
}
|
|
8
|
+
export interface TemplateMetadata {
|
|
9
|
+
type?: string;
|
|
10
|
+
category?: string;
|
|
11
|
+
scopes?: TemplateScope[];
|
|
12
|
+
}
|
|
13
|
+
export declare const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[];
|
|
14
|
+
//# sourceMappingURL=TemplateMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateMetadata.d.ts","sourceRoot":"","sources":["../../../screens/TemplateMetadata.ts"],"names":[],"mappings":"AAIA,oBAAY,aAAa;IACrB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,KAAK,UAAU;CAClB;AAMD,MAAM,WAAW,gBAAgB;IAE7B,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,6BAA6B,EAAE,CAAC,MAAM,gBAAgB,CAAC,EAAmC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/** The application hierarchy at which a reusable template is selected. */ var TemplateScope = /*#__PURE__*/ function(TemplateScope) {
|
|
4
|
+
TemplateScope["Application"] = "Application";
|
|
5
|
+
TemplateScope["Module"] = "Module";
|
|
6
|
+
TemplateScope["Feature"] = "Feature";
|
|
7
|
+
TemplateScope["Subfeature"] = "Subfeature";
|
|
8
|
+
TemplateScope["Slice"] = "Slice";
|
|
9
|
+
return TemplateScope;
|
|
10
|
+
}({});
|
|
11
|
+
const TemplateMetadataPropertyNames = [
|
|
12
|
+
'type',
|
|
13
|
+
'category',
|
|
14
|
+
'scopes'
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
export { TemplateMetadataPropertyNames, TemplateScope };
|
|
18
|
+
//# sourceMappingURL=TemplateMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateMetadata.js","sources":["../../../screens/TemplateMetadata.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/** The application hierarchy at which a reusable template is selected. */\nexport enum TemplateScope {\n Application = 'Application',\n Module = 'Module',\n Feature = 'Feature',\n Subfeature = 'Subfeature',\n Slice = 'Slice',\n}\n\n/**\n * Optional semantic and browsing metadata. Type and category are open strings so packages can\n * introduce their own vocabulary without a Scene release. Category never determines applicability.\n */\nexport interface TemplateMetadata {\n /** Semantic role; built-in roles are ApplicationShell, Workspace, List, Detail, Form and Dialog. */\n type?: string;\n /** A package-defined browse category, preserved even when the host does not recognize it. */\n category?: string;\n /** Explicit scope restriction. Absent uses the structural role; an empty list allows no scope. */\n scopes?: TemplateScope[];\n}\n\nexport const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[] = ['type', 'category', 'scopes'];\n"],"names":["TemplateScope","TemplateMetadataPropertyNames"],"mappings":"AAAA;AACA;AAEA,2EACO,IAAKA,aAAAA,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAMX,CAAA,CAAA,EAAA;MAeYC,6BAAAA,GAA4D;AAAC,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
|