@cratis/scene.model 4.7.0 → 4.9.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/common/BindingExpression.ts +47 -3
- package/common/BindingMode.ts +13 -0
- package/common/BindingNullBehavior.ts +16 -0
- package/common/BindingSourceKind.ts +19 -0
- package/common/DestinationKind.ts +11 -0
- package/common/DestinationReference.ts +33 -6
- package/common/index.ts +4 -0
- package/contributionPoints/NavigationItem.ts +19 -2
- package/descriptors/ComponentDescriptor.ts +11 -1
- package/descriptors/DesignTimeActionDescriptor.ts +28 -0
- package/descriptors/DesignTimeActionPlacement.ts +11 -0
- package/descriptors/PackageDesignTimeMetadata.ts +26 -0
- package/descriptors/PropertyDescriptor.ts +11 -0
- package/descriptors/index.ts +3 -0
- package/dist/cjs/common/BindingExpression.js +10 -5
- package/dist/cjs/common/BindingExpression.js.map +1 -1
- package/dist/cjs/common/BindingMode.js +14 -0
- package/dist/cjs/common/BindingMode.js.map +1 -0
- package/dist/cjs/common/BindingNullBehavior.js +15 -0
- package/dist/cjs/common/BindingNullBehavior.js.map +1 -0
- package/dist/cjs/common/BindingSourceKind.js +16 -0
- package/dist/cjs/common/BindingSourceKind.js.map +1 -0
- package/dist/cjs/common/DestinationKind.js +15 -0
- package/dist/cjs/common/DestinationKind.js.map +1 -0
- package/dist/cjs/common/DestinationReference.js +7 -0
- package/dist/cjs/common/DestinationReference.js.map +1 -1
- package/dist/cjs/contributionPoints/NavigationItem.js +4 -0
- package/dist/cjs/contributionPoints/NavigationItem.js.map +1 -1
- package/dist/cjs/descriptors/ComponentDescriptor.js +4 -1
- package/dist/cjs/descriptors/ComponentDescriptor.js.map +1 -1
- package/dist/cjs/descriptors/DesignTimeActionDescriptor.js +14 -0
- package/dist/cjs/descriptors/DesignTimeActionDescriptor.js.map +1 -0
- package/dist/cjs/descriptors/DesignTimeActionPlacement.js +15 -0
- package/dist/cjs/descriptors/DesignTimeActionPlacement.js.map +1 -0
- package/dist/cjs/descriptors/PackageDesignTimeMetadata.js +16 -0
- package/dist/cjs/descriptors/PackageDesignTimeMetadata.js.map +1 -0
- package/dist/cjs/descriptors/PropertyDescriptor.js +4 -1
- package/dist/cjs/descriptors/PropertyDescriptor.js.map +1 -1
- package/dist/cjs/index.js +19 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/layouts/Layout.js +3 -1
- package/dist/cjs/layouts/Layout.js.map +1 -1
- package/dist/cjs/packages/ScenePackage.js +4 -1
- package/dist/cjs/packages/ScenePackage.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/Outlet.js +13 -0
- package/dist/cjs/screens/Outlet.js.map +1 -0
- package/dist/cjs/screens/ScreenTemplate.js +3 -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/common/BindingExpression.d.ts +12 -0
- package/dist/esm/common/BindingExpression.d.ts.map +1 -1
- package/dist/esm/common/BindingExpression.js +10 -5
- package/dist/esm/common/BindingExpression.js.map +1 -1
- package/dist/esm/common/BindingMode.d.ts +5 -0
- package/dist/esm/common/BindingMode.d.ts.map +1 -0
- package/dist/esm/common/BindingMode.js +12 -0
- package/dist/esm/common/BindingMode.js.map +1 -0
- package/dist/esm/common/BindingNullBehavior.d.ts +6 -0
- package/dist/esm/common/BindingNullBehavior.d.ts.map +1 -0
- package/dist/esm/common/BindingNullBehavior.js +13 -0
- package/dist/esm/common/BindingNullBehavior.js.map +1 -0
- package/dist/esm/common/BindingSourceKind.d.ts +7 -0
- package/dist/esm/common/BindingSourceKind.d.ts.map +1 -0
- package/dist/esm/common/BindingSourceKind.js +14 -0
- package/dist/esm/common/BindingSourceKind.js.map +1 -0
- package/dist/esm/common/DestinationKind.d.ts +6 -0
- package/dist/esm/common/DestinationKind.d.ts.map +1 -0
- package/dist/esm/common/DestinationKind.js +13 -0
- package/dist/esm/common/DestinationKind.js.map +1 -0
- package/dist/esm/common/DestinationReference.d.ts +9 -1
- package/dist/esm/common/DestinationReference.d.ts.map +1 -1
- package/dist/esm/common/DestinationReference.js +7 -0
- package/dist/esm/common/DestinationReference.js.map +1 -1
- package/dist/esm/common/index.d.ts +4 -0
- package/dist/esm/common/index.d.ts.map +1 -1
- package/dist/esm/common/index.js +4 -0
- package/dist/esm/common/index.js.map +1 -1
- package/dist/esm/contributionPoints/NavigationItem.d.ts +5 -1
- package/dist/esm/contributionPoints/NavigationItem.d.ts.map +1 -1
- package/dist/esm/contributionPoints/NavigationItem.js +4 -0
- package/dist/esm/contributionPoints/NavigationItem.js.map +1 -1
- package/dist/esm/descriptors/ComponentDescriptor.d.ts +4 -0
- package/dist/esm/descriptors/ComponentDescriptor.d.ts.map +1 -1
- package/dist/esm/descriptors/ComponentDescriptor.js +4 -1
- package/dist/esm/descriptors/ComponentDescriptor.js.map +1 -1
- package/dist/esm/descriptors/DesignTimeActionDescriptor.d.ts +10 -0
- package/dist/esm/descriptors/DesignTimeActionDescriptor.d.ts.map +1 -0
- package/dist/esm/descriptors/DesignTimeActionDescriptor.js +12 -0
- package/dist/esm/descriptors/DesignTimeActionDescriptor.js.map +1 -0
- package/dist/esm/descriptors/DesignTimeActionPlacement.d.ts +6 -0
- package/dist/esm/descriptors/DesignTimeActionPlacement.d.ts.map +1 -0
- package/dist/esm/descriptors/DesignTimeActionPlacement.js +13 -0
- package/dist/esm/descriptors/DesignTimeActionPlacement.js.map +1 -0
- package/dist/esm/descriptors/PackageDesignTimeMetadata.d.ts +9 -0
- package/dist/esm/descriptors/PackageDesignTimeMetadata.d.ts.map +1 -0
- package/dist/esm/descriptors/PackageDesignTimeMetadata.js +14 -0
- package/dist/esm/descriptors/PackageDesignTimeMetadata.js.map +1 -0
- package/dist/esm/descriptors/PropertyDescriptor.d.ts +4 -0
- package/dist/esm/descriptors/PropertyDescriptor.d.ts.map +1 -1
- package/dist/esm/descriptors/PropertyDescriptor.js +4 -1
- package/dist/esm/descriptors/PropertyDescriptor.js.map +1 -1
- package/dist/esm/descriptors/index.d.ts +3 -0
- package/dist/esm/descriptors/index.d.ts.map +1 -1
- package/dist/esm/descriptors/index.js +3 -0
- package/dist/esm/descriptors/index.js.map +1 -1
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/layouts/Layout.d.ts +4 -0
- package/dist/esm/layouts/Layout.d.ts.map +1 -1
- package/dist/esm/layouts/Layout.js +3 -1
- package/dist/esm/layouts/Layout.js.map +1 -1
- package/dist/esm/packages/ScenePackage.d.ts +4 -0
- package/dist/esm/packages/ScenePackage.d.ts.map +1 -1
- package/dist/esm/packages/ScenePackage.js +4 -1
- package/dist/esm/packages/ScenePackage.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/Outlet.d.ts +6 -0
- package/dist/esm/screens/Outlet.d.ts.map +1 -0
- package/dist/esm/screens/Outlet.js +11 -0
- package/dist/esm/screens/Outlet.js.map +1 -0
- package/dist/esm/screens/ScreenTemplate.d.ts +4 -0
- package/dist/esm/screens/ScreenTemplate.d.ts.map +1 -1
- package/dist/esm/screens/ScreenTemplate.js +3 -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 +2 -0
- package/dist/esm/screens/index.d.ts.map +1 -1
- package/dist/esm/screens/index.js +2 -0
- package/dist/esm/screens/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/layouts/Layout.ts +9 -1
- package/package.json +1 -1
- package/packages/ScenePackage.ts +13 -0
- package/screens/DialogTemplate.ts +5 -0
- package/screens/Outlet.ts +15 -0
- package/screens/ScreenTemplate.ts +10 -0
- package/screens/TemplateMetadata.ts +26 -0
- package/screens/index.ts +2 -0
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
// Copyright (c) Cratis. All rights reserved.
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
const NavigationItemPropertyNames = [
|
|
4
|
+
'id',
|
|
4
5
|
'label',
|
|
6
|
+
'icon',
|
|
7
|
+
'presentation',
|
|
5
8
|
'targetScreen',
|
|
6
9
|
'routeParameterBindings',
|
|
10
|
+
'destination',
|
|
7
11
|
'order',
|
|
8
12
|
'group'
|
|
9
13
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationItem.js","sources":["../../../contributionPoints/NavigationItem.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 { BindingExpression } from '../common';\n\n/**\n * A contribution to the built-in `Navigation` contribution point. How `navigate to <Screen>` becomes a\n * concrete route (URL path, query string, or native deep link) is owned by the renderer's NavBar widget,\n * not this record — this only carries the declared shape.\n */\nexport interface NavigationItem {\n label: string;\n targetScreen: string;\n routeParameterBindings: Record<string, BindingExpression>;\n order?: number;\n group?: string;\n}\n\nexport const NavigationItemPropertyNames: (keyof NavigationItem)[] = [\n 'label', 'targetScreen', 'routeParameterBindings', 'order', 'group',\n];\n"],"names":["NavigationItemPropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"NavigationItem.js","sources":["../../../contributionPoints/NavigationItem.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 { BindingExpression, DestinationReference } from '../common';\n\n/**\n * A contribution to the built-in `Navigation` contribution point. How `navigate to <Screen>` becomes a\n * concrete route (URL path, query string, or native deep link) is owned by the renderer's NavBar widget,\n * not this record — this only carries the declared shape.\n */\nexport interface NavigationItem {\n /** Stable identity for this contribution, independent of the label. */\n id?: string;\n\n label: string;\n\n /** Qualified icon reference (`library:name`) for toolbar/navigation chrome. */\n icon?: string;\n\n /** Whether chrome shows icon, text, or both. */\n presentation?: string;\n\n /** Legacy screen target; prefer `destination` for new content. */\n targetScreen: string;\n\n /** Legacy parameter bindings; prefer `destination.routeParameterBindings` for new content. */\n routeParameterBindings: Record<string, BindingExpression>;\n\n /** The typed destination this item activates. */\n destination?: DestinationReference;\n\n order?: number;\n group?: string;\n}\n\nexport const NavigationItemPropertyNames: (keyof NavigationItem)[] = [\n 'id', 'label', 'icon', 'presentation', 'targetScreen', 'routeParameterBindings', 'destination', 'order', 'group',\n];\n"],"names":["NavigationItemPropertyNames"],"mappings":"AAAA;AACA;MAkCaA,2BAAAA,GAAwD;AACjE,IAAA,IAAA;AAAM,IAAA,OAAA;AAAS,IAAA,MAAA;AAAQ,IAAA,cAAA;AAAgB,IAAA,cAAA;AAAgB,IAAA,wBAAA;AAA0B,IAAA,aAAA;AAAe,IAAA,OAAA;AAAS,IAAA;;;"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DesignTimeActionDescriptor } from './DesignTimeActionDescriptor';
|
|
1
2
|
import { PropertyDescriptor } from './PropertyDescriptor';
|
|
2
3
|
export interface ComponentDescriptor {
|
|
3
4
|
component: string;
|
|
@@ -5,6 +6,9 @@ export interface ComponentDescriptor {
|
|
|
5
6
|
description?: string;
|
|
6
7
|
editorKind?: string;
|
|
7
8
|
properties: PropertyDescriptor[];
|
|
9
|
+
actions?: DesignTimeActionDescriptor[];
|
|
10
|
+
previewKind?: string;
|
|
11
|
+
propertyDisplayKind?: string;
|
|
8
12
|
}
|
|
9
13
|
export declare const ComponentDescriptorPropertyNames: (keyof ComponentDescriptor)[];
|
|
10
14
|
//# sourceMappingURL=ComponentDescriptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentDescriptor.d.ts","sourceRoot":"","sources":["../../../descriptors/ComponentDescriptor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAS1D,MAAM,WAAW,mBAAmB;IAKhC,SAAS,EAAE,MAAM,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,kBAAkB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"ComponentDescriptor.d.ts","sourceRoot":"","sources":["../../../descriptors/ComponentDescriptor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAS1D,MAAM,WAAW,mBAAmB;IAKhC,SAAS,EAAE,MAAM,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IAGjC,OAAO,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAGvC,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,eAAO,MAAM,gCAAgC,EAAE,CAAC,MAAM,mBAAmB,CAAC,EAEzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentDescriptor.js","sources":["../../../descriptors/ComponentDescriptor.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 { PropertyDescriptor } from './PropertyDescriptor';\n\n/**\n * What can be edited on one component a package provides.\n *\n * Packages contribute these alongside the components themselves (a bundle's `descriptors`), through the same\n * package mechanism that already carries components, layouts and themes - there is no second registry to keep in\n * step.\n */\nexport interface ComponentDescriptor {\n /**\n * The component this describes, as the package names it: `<package>:<bare name>`, the same key a bundle\n * registers the component under (for example `Cratis.Components:dataTable`).\n */\n component: string;\n\n /** A human-readable name for a palette or an inspector title. */\n displayName?: string;\n\n description?: string;\n\n /** Names a specialised editor for the component as a whole, when its properties are not edited one by one. */\n editorKind?: string;\n\n properties: PropertyDescriptor[];\n}\n\nexport const ComponentDescriptorPropertyNames: (keyof ComponentDescriptor)[] = [\n 'component', 'displayName', 'description', 'editorKind', 'properties',\n];\n"],"names":["ComponentDescriptorPropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"ComponentDescriptor.js","sources":["../../../descriptors/ComponentDescriptor.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 { DesignTimeActionDescriptor } from './DesignTimeActionDescriptor';\nimport { PropertyDescriptor } from './PropertyDescriptor';\n\n/**\n * What can be edited on one component a package provides.\n *\n * Packages contribute these alongside the components themselves (a bundle's `descriptors`), through the same\n * package mechanism that already carries components, layouts and themes - there is no second registry to keep in\n * step.\n */\nexport interface ComponentDescriptor {\n /**\n * The component this describes, as the package names it: `<package>:<bare name>`, the same key a bundle\n * registers the component under (for example `Cratis.Components:dataTable`).\n */\n component: string;\n\n /** A human-readable name for a palette or an inspector title. */\n displayName?: string;\n\n description?: string;\n\n /** Names a specialised editor for the component as a whole, when its properties are not edited one by one. */\n editorKind?: string;\n\n properties: PropertyDescriptor[];\n\n /** Package-provided design-time actions for this component. */\n actions?: DesignTimeActionDescriptor[];\n\n /** Names an optional package-provided preview renderer. */\n previewKind?: string;\n\n /** Names an optional package-provided property display renderer set. */\n propertyDisplayKind?: string;\n}\n\nexport const ComponentDescriptorPropertyNames: (keyof ComponentDescriptor)[] = [\n 'component', 'displayName', 'description', 'editorKind', 'properties', 'actions', 'previewKind', 'propertyDisplayKind',\n];\n"],"names":["ComponentDescriptorPropertyNames"],"mappings":"AAAA;AACA;MAuCaA,gCAAAA,GAAkE;AAC3E,IAAA,WAAA;AAAa,IAAA,aAAA;AAAe,IAAA,aAAA;AAAe,IAAA,YAAA;AAAc,IAAA,YAAA;AAAc,IAAA,SAAA;AAAW,IAAA,aAAA;AAAe,IAAA;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DesignTimeActionPlacement } from './DesignTimeActionPlacement';
|
|
2
|
+
export interface DesignTimeActionDescriptor {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
placement?: DesignTimeActionPlacement;
|
|
6
|
+
availability?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const DesignTimeActionDescriptorPropertyNames: (keyof DesignTimeActionDescriptor)[];
|
|
10
|
+
//# sourceMappingURL=DesignTimeActionDescriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DesignTimeActionDescriptor.d.ts","sourceRoot":"","sources":["../../../descriptors/DesignTimeActionDescriptor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAKxE,MAAM,WAAW,0BAA0B;IAEvC,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;IAGd,SAAS,CAAC,EAAE,yBAAyB,CAAC;IAGtC,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,uCAAuC,EAAE,CAAC,MAAM,0BAA0B,CAAC,EAEvF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const DesignTimeActionDescriptorPropertyNames = [
|
|
4
|
+
'id',
|
|
5
|
+
'label',
|
|
6
|
+
'placement',
|
|
7
|
+
'availability',
|
|
8
|
+
'description'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export { DesignTimeActionDescriptorPropertyNames };
|
|
12
|
+
//# sourceMappingURL=DesignTimeActionDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DesignTimeActionDescriptor.js","sources":["../../../descriptors/DesignTimeActionDescriptor.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 { DesignTimeActionPlacement } from './DesignTimeActionPlacement';\n\n/**\n * A package-provided design-time action that edits Scene model data through canonical edit batches.\n */\nexport interface DesignTimeActionDescriptor {\n /** Stable package-owned action identity. */\n id: string;\n\n /** The label a designer shows. */\n label: string;\n\n /** Where a designer may show the action. */\n placement?: DesignTimeActionPlacement;\n\n /** Owner-controlled visible/enabled rule name interpreted by the package's design-time bundle. */\n availability?: string;\n\n /** Help text for the designer. */\n description?: string;\n}\n\nexport const DesignTimeActionDescriptorPropertyNames: (keyof DesignTimeActionDescriptor)[] = [\n 'id', 'label', 'placement', 'availability', 'description',\n];\n"],"names":["DesignTimeActionDescriptorPropertyNames"],"mappings":"AAAA;AACA;MAwBaA,uCAAAA,GAAgF;AACzF,IAAA,IAAA;AAAM,IAAA,OAAA;AAAS,IAAA,WAAA;AAAa,IAAA,cAAA;AAAgB,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DesignTimeActionPlacement.d.ts","sourceRoot":"","sources":["../../../descriptors/DesignTimeActionPlacement.ts"],"names":[],"mappings":"AAMA,oBAAY,yBAAyB;IACjC,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;CAC1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
/**
|
|
4
|
+
* Where a design-time action is presented.
|
|
5
|
+
*/ var DesignTimeActionPlacement = /*#__PURE__*/ function(DesignTimeActionPlacement) {
|
|
6
|
+
DesignTimeActionPlacement["Toolbar"] = "toolbar";
|
|
7
|
+
DesignTimeActionPlacement["ContextMenu"] = "contextMenu";
|
|
8
|
+
DesignTimeActionPlacement["Inspector"] = "inspector";
|
|
9
|
+
return DesignTimeActionPlacement;
|
|
10
|
+
}({});
|
|
11
|
+
|
|
12
|
+
export { DesignTimeActionPlacement };
|
|
13
|
+
//# sourceMappingURL=DesignTimeActionPlacement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DesignTimeActionPlacement.js","sources":["../../../descriptors/DesignTimeActionPlacement.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/**\n * Where a design-time action is presented.\n */\nexport enum DesignTimeActionPlacement {\n Toolbar = 'toolbar',\n ContextMenu = 'contextMenu',\n Inspector = 'inspector',\n}\n"],"names":["DesignTimeActionPlacement"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,yBAAAA,iBAAAA,SAAAA,yBAAAA,EAAAA;;;;AAAAA,IAAAA,OAAAA,yBAAAA;AAIX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface PackageDesignTimeMetadata {
|
|
2
|
+
previews: string[];
|
|
3
|
+
designers: string[];
|
|
4
|
+
propertyEditors: string[];
|
|
5
|
+
propertyDisplays: string[];
|
|
6
|
+
actions: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const PackageDesignTimeMetadataPropertyNames: (keyof PackageDesignTimeMetadata)[];
|
|
9
|
+
//# sourceMappingURL=PackageDesignTimeMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PackageDesignTimeMetadata.d.ts","sourceRoot":"","sources":["../../../descriptors/PackageDesignTimeMetadata.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,yBAAyB;IAEtC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAGnB,SAAS,EAAE,MAAM,EAAE,CAAC;IAGpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAG1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAG3B,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,eAAO,MAAM,sCAAsC,EAAE,CAAC,MAAM,yBAAyB,CAAC,EAErF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
/**
|
|
4
|
+
* Platform-neutral names of optional design-time extension points a package provides.
|
|
5
|
+
*/ const PackageDesignTimeMetadataPropertyNames = [
|
|
6
|
+
'previews',
|
|
7
|
+
'designers',
|
|
8
|
+
'propertyEditors',
|
|
9
|
+
'propertyDisplays',
|
|
10
|
+
'actions'
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
export { PackageDesignTimeMetadataPropertyNames };
|
|
14
|
+
//# sourceMappingURL=PackageDesignTimeMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PackageDesignTimeMetadata.js","sources":["../../../descriptors/PackageDesignTimeMetadata.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/**\n * Platform-neutral names of optional design-time extension points a package provides.\n */\nexport interface PackageDesignTimeMetadata {\n /** Named component preview renderers available in the package's design-time bundle. */\n previews: string[];\n\n /** Named full-component designers available in the package's design-time bundle. */\n designers: string[];\n\n /** Named property editors available in the package's design-time bundle. */\n propertyEditors: string[];\n\n /** Named property display renderers available in the package's design-time bundle. */\n propertyDisplays: string[];\n\n /** Named design-time action handlers available in the package's design-time bundle. */\n actions: string[];\n}\n\nexport const PackageDesignTimeMetadataPropertyNames: (keyof PackageDesignTimeMetadata)[] = [\n 'previews', 'designers', 'propertyEditors', 'propertyDisplays', 'actions',\n];\n"],"names":["PackageDesignTimeMetadataPropertyNames"],"mappings":"AAAA;AACA;AAEA;;UAoBaA,sCAAAA,GAA8E;AACvF,IAAA,UAAA;AAAY,IAAA,WAAA;AAAa,IAAA,iBAAA;AAAmB,IAAA,kBAAA;AAAoB,IAAA;;;"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BindingMode, BindingSourceKind } from '../common';
|
|
1
2
|
import { CollectionItemDescriptor } from './CollectionItemDescriptor';
|
|
2
3
|
import { PropertyChoice } from './PropertyChoice';
|
|
3
4
|
import { PropertyConstraints } from './PropertyConstraints';
|
|
@@ -14,6 +15,9 @@ export interface PropertyDescriptor {
|
|
|
14
15
|
description?: string;
|
|
15
16
|
item?: CollectionItemDescriptor;
|
|
16
17
|
readOnly?: boolean;
|
|
18
|
+
output?: boolean;
|
|
19
|
+
acceptedBindingKinds?: BindingSourceKind[];
|
|
20
|
+
bindingMode?: BindingMode;
|
|
17
21
|
}
|
|
18
22
|
export declare const PropertyDescriptorPropertyNames: (keyof PropertyDescriptor)[];
|
|
19
23
|
//# sourceMappingURL=PropertyDescriptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyDescriptor.d.ts","sourceRoot":"","sources":["../../../descriptors/PropertyDescriptor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAOxD,MAAM,WAAW,kBAAkB;IAK/B,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,EAAE,iBAAiB,CAAC;IAG7B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAG3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAMlC,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAGhC,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PropertyDescriptor.d.ts","sourceRoot":"","sources":["../../../descriptors/PropertyDescriptor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAOxD,MAAM,WAAW,kBAAkB;IAK/B,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,EAAE,iBAAiB,CAAC;IAG7B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAG3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAMlC,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAGhC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,MAAM,CAAC,EAAE,OAAO,CAAC;IAGjB,oBAAoB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAG3C,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B;AAED,eAAO,MAAM,+BAA+B,EAAE,CAAC,MAAM,kBAAkB,CAAC,EAGvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyDescriptor.js","sources":["../../../descriptors/PropertyDescriptor.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 { CollectionItemDescriptor } from './CollectionItemDescriptor';\nimport { PropertyChoice } from './PropertyChoice';\nimport { PropertyConstraints } from './PropertyConstraints';\nimport { PropertyValueType } from './PropertyValueType';\n\n/**\n * Describes one editable property of a node: where it lives, what it is called, what it may hold and how a host\n * should edit it. A descriptor is plain data, so packages ship them and Studio reads them without loading a\n * component.\n */\nexport interface PropertyDescriptor {\n /**\n * Where the value lives. For an `ExternalComponent` it is a key (or dotted key path) in the element's\n * `properties` bag; for a model-native node such as a flow container it is the node's own property name.\n */\n path: string;\n\n /** The label an editor shows. */\n label: string;\n\n /** The editor section the property belongs to. */\n group: string;\n\n valueType: PropertyValueType;\n\n /** The allowed values of an `Enum` property. */\n choices?: PropertyChoice[];\n\n /** The value in effect when none is set. */\n default?: unknown;\n\n constraints?: PropertyConstraints;\n\n /**\n * Names a specialised editor. A host maps the name to its own editor - an icon picker, a query binder - and\n * falls back to the default editor for `valueType` when it does not know the name.\n */\n editorKind?: string;\n\n /** A sentence of help for the editor. */\n description?: string;\n\n /** Describes the items of a `Collection` property. Required when `valueType` is `Collection`. */\n item?: CollectionItemDescriptor;\n\n /** The value is shown but never edited. */\n readOnly?: boolean;\n}\n\nexport const PropertyDescriptorPropertyNames: (keyof PropertyDescriptor)[] = [\n 'path', 'label', 'group', 'valueType', 'choices', 'default', 'constraints', 'editorKind', 'description', 'item', 'readOnly',\n];\n"],"names":["PropertyDescriptorPropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"PropertyDescriptor.js","sources":["../../../descriptors/PropertyDescriptor.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 { BindingMode, BindingSourceKind } from '../common';\nimport { CollectionItemDescriptor } from './CollectionItemDescriptor';\nimport { PropertyChoice } from './PropertyChoice';\nimport { PropertyConstraints } from './PropertyConstraints';\nimport { PropertyValueType } from './PropertyValueType';\n\n/**\n * Describes one editable property of a node: where it lives, what it is called, what it may hold and how a host\n * should edit it. A descriptor is plain data, so packages ship them and Studio reads them without loading a\n * component.\n */\nexport interface PropertyDescriptor {\n /**\n * Where the value lives. For an `ExternalComponent` it is a key (or dotted key path) in the element's\n * `properties` bag; for a model-native node such as a flow container it is the node's own property name.\n */\n path: string;\n\n /** The label an editor shows. */\n label: string;\n\n /** The editor section the property belongs to. */\n group: string;\n\n valueType: PropertyValueType;\n\n /** The allowed values of an `Enum` property. */\n choices?: PropertyChoice[];\n\n /** The value in effect when none is set. */\n default?: unknown;\n\n constraints?: PropertyConstraints;\n\n /**\n * Names a specialised editor. A host maps the name to its own editor - an icon picker, a query binder - and\n * falls back to the default editor for `valueType` when it does not know the name.\n */\n editorKind?: string;\n\n /** A sentence of help for the editor. */\n description?: string;\n\n /** Describes the items of a `Collection` property. Required when `valueType` is `Collection`. */\n item?: CollectionItemDescriptor;\n\n /** The value is shown but never edited. */\n readOnly?: boolean;\n\n /** This property is emitted by the component and may be bound by other elements. */\n output?: boolean;\n\n /** Which binding source kinds may be assigned to this property. */\n acceptedBindingKinds?: BindingSourceKind[];\n\n /** The strongest binding mode the property supports. */\n bindingMode?: BindingMode;\n}\n\nexport const PropertyDescriptorPropertyNames: (keyof PropertyDescriptor)[] = [\n 'path', 'label', 'group', 'valueType', 'choices', 'default', 'constraints', 'editorKind', 'description', 'item', 'readOnly',\n 'output', 'acceptedBindingKinds', 'bindingMode',\n];\n"],"names":["PropertyDescriptorPropertyNames"],"mappings":"AAAA;AACA;MA6DaA,+BAAAA,GAAgE;AACzE,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA,OAAA;AAAS,IAAA,WAAA;AAAa,IAAA,SAAA;AAAW,IAAA,SAAA;AAAW,IAAA,aAAA;AAAe,IAAA,YAAA;AAAc,IAAA,aAAA;AAAe,IAAA,MAAA;AAAQ,IAAA,UAAA;AACjH,IAAA,QAAA;AAAU,IAAA,sBAAA;AAAwB,IAAA;;;"}
|
|
@@ -2,6 +2,9 @@ export * from './PropertyValueType';
|
|
|
2
2
|
export * from './PropertyChoice';
|
|
3
3
|
export * from './PropertyConstraints';
|
|
4
4
|
export * from './CollectionItemDescriptor';
|
|
5
|
+
export * from './DesignTimeActionDescriptor';
|
|
6
|
+
export * from './DesignTimeActionPlacement';
|
|
7
|
+
export * from './PackageDesignTimeMetadata';
|
|
5
8
|
export * from './PropertyDescriptor';
|
|
6
9
|
export * from './ComponentDescriptor';
|
|
7
10
|
export * from './CollectionOperation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../descriptors/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../descriptors/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
|
|
@@ -2,6 +2,9 @@ export * from './PropertyValueType';
|
|
|
2
2
|
export * from './PropertyChoice';
|
|
3
3
|
export * from './PropertyConstraints';
|
|
4
4
|
export * from './CollectionItemDescriptor';
|
|
5
|
+
export * from './DesignTimeActionDescriptor';
|
|
6
|
+
export * from './DesignTimeActionPlacement';
|
|
7
|
+
export * from './PackageDesignTimeMetadata';
|
|
5
8
|
export * from './PropertyDescriptor';
|
|
6
9
|
export * from './ComponentDescriptor';
|
|
7
10
|
export * from './CollectionOperation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../descriptors/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../descriptors/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -5,11 +5,15 @@ export { HorizontalAlignment } from './common/HorizontalAlignment.js';
|
|
|
5
5
|
export { VerticalAlignment } from './common/VerticalAlignment.js';
|
|
6
6
|
export { Visibility } from './common/Visibility.js';
|
|
7
7
|
export { BindingExpressionPropertyNames } from './common/BindingExpression.js';
|
|
8
|
+
export { BindingSourceKind } from './common/BindingSourceKind.js';
|
|
9
|
+
export { BindingMode } from './common/BindingMode.js';
|
|
10
|
+
export { BindingNullBehavior } from './common/BindingNullBehavior.js';
|
|
8
11
|
export { Orientation } from './common/Orientation.js';
|
|
9
12
|
export { Dock } from './common/Dock.js';
|
|
10
13
|
export { GridUnitType } from './common/GridUnitType.js';
|
|
11
14
|
export { GridLengthPropertyNames } from './common/GridLength.js';
|
|
12
15
|
export { DestinationReferencePropertyNames } from './common/DestinationReference.js';
|
|
16
|
+
export { DestinationKind } from './common/DestinationKind.js';
|
|
13
17
|
export { WidthSizeClass } from './sizeClasses/WidthSizeClass.js';
|
|
14
18
|
export { HeightSizeClass } from './sizeClasses/HeightSizeClass.js';
|
|
15
19
|
export { SizeClassPropertyNames } from './sizeClasses/SizeClass.js';
|
|
@@ -85,9 +89,11 @@ export { ConfirmActionPropertyNames } from './interactions/ConfirmAction.js';
|
|
|
85
89
|
export { RaiseTriggerActionPropertyNames } from './interactions/RaiseTriggerAction.js';
|
|
86
90
|
export { InteractionBindingPropertyNames } from './interactions/InteractionBinding.js';
|
|
87
91
|
export { BehaviorPropertyNames } from './interactions/Behavior.js';
|
|
92
|
+
export { OutletPropertyNames } from './screens/Outlet.js';
|
|
88
93
|
export { ScreenPropertyNames } from './screens/Screen.js';
|
|
89
94
|
export { ScreenTemplatePropertyNames } from './screens/ScreenTemplate.js';
|
|
90
95
|
export { DialogTemplatePropertyNames } from './screens/DialogTemplate.js';
|
|
96
|
+
export { TemplateMetadataPropertyNames, TemplateScope } from './screens/TemplateMetadata.js';
|
|
91
97
|
export { UiStarterPropertyNames } from './starters/UiStarter.js';
|
|
92
98
|
export { QueryResultShape } from './queries/QueryResultShape.js';
|
|
93
99
|
export { QueryOriginKind } from './queries/QueryOriginKind.js';
|
|
@@ -102,6 +108,9 @@ export { PropertyValueType } from './descriptors/PropertyValueType.js';
|
|
|
102
108
|
export { PropertyChoicePropertyNames } from './descriptors/PropertyChoice.js';
|
|
103
109
|
export { PropertyConstraintsPropertyNames } from './descriptors/PropertyConstraints.js';
|
|
104
110
|
export { CollectionItemDescriptorPropertyNames } from './descriptors/CollectionItemDescriptor.js';
|
|
111
|
+
export { DesignTimeActionDescriptorPropertyNames } from './descriptors/DesignTimeActionDescriptor.js';
|
|
112
|
+
export { DesignTimeActionPlacement } from './descriptors/DesignTimeActionPlacement.js';
|
|
113
|
+
export { PackageDesignTimeMetadataPropertyNames } from './descriptors/PackageDesignTimeMetadata.js';
|
|
105
114
|
export { PropertyDescriptorPropertyNames } from './descriptors/PropertyDescriptor.js';
|
|
106
115
|
export { ComponentDescriptorPropertyNames } from './descriptors/ComponentDescriptor.js';
|
|
107
116
|
export { CollectionOperation } from './descriptors/CollectionOperation.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,15 @@
|
|
|
1
1
|
import { Arrangement } from './Arrangement';
|
|
2
2
|
import { Slot } from './Slot';
|
|
3
3
|
import { Behavior } from '../interactions';
|
|
4
|
+
import { Outlet } from '../screens/Outlet';
|
|
5
|
+
import { TemplateMetadata } from '../screens/TemplateMetadata';
|
|
4
6
|
export interface Layout {
|
|
5
7
|
name: string;
|
|
6
8
|
slots: Slot[];
|
|
7
9
|
arrangement?: Arrangement;
|
|
8
10
|
behaviors?: Behavior[];
|
|
11
|
+
outlets?: Outlet[];
|
|
12
|
+
metadata?: TemplateMetadata;
|
|
9
13
|
}
|
|
10
14
|
export declare const LayoutPropertyNames: (keyof Layout)[];
|
|
11
15
|
//# 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,MAAM,EAAE,MAAM,mBAAmB,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,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAGnB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,eAAO,MAAM,mBAAmB,EAAE,CAAC,MAAM,MAAM,CAAC,EAAyE,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 { Outlet } from '../screens/Outlet';\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 /** Named routed replacement surfaces this layout owns. Static slots remain template composition surfaces. */\n outlets?: Outlet[];\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', 'outlets', 'metadata'];\n"],"names":["LayoutPropertyNames"],"mappings":"AAAA;AACA;MAsCaA,mBAAAA,GAAwC;AAAC,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA,aAAA;AAAe,IAAA,WAAA;AAAa,IAAA,SAAA;AAAW,IAAA;;;"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PackageDesignTimeMetadata } from '../descriptors';
|
|
1
2
|
import { IconLibrary } from '../icons';
|
|
2
3
|
import { PackageDependency } from './PackageDependency';
|
|
3
4
|
import { PackageKind } from './PackageKind';
|
|
@@ -17,6 +18,9 @@ export interface ScenePackage {
|
|
|
17
18
|
license?: string;
|
|
18
19
|
licenseUrl?: string;
|
|
19
20
|
iconLibrary?: IconLibrary;
|
|
21
|
+
designTime?: PackageDesignTimeMetadata;
|
|
22
|
+
assets?: string[];
|
|
23
|
+
runtimeSingletons?: string[];
|
|
20
24
|
}
|
|
21
25
|
export declare const ScenePackagePropertyNames: (keyof ScenePackage)[];
|
|
22
26
|
//# sourceMappingURL=ScenePackage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScenePackage.d.ts","sourceRoot":"","sources":["../../../packages/ScenePackage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAO5C,MAAM,WAAW,YAAY;IAIzB,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,EAAE,MAAM,CAAC;IAKhB,IAAI,EAAE,WAAW,CAAC;IAKlB,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAKlC,UAAU,EAAE,MAAM,EAAE,CAAC;IAMrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAMlB,eAAe,EAAE,MAAM,EAAE,CAAC;IAK1B,eAAe,EAAE,MAAM,EAAE,CAAC;IAK1B,MAAM,EAAE,MAAM,EAAE,CAAC;IAKjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAOhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAOjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,WAAW,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ScenePackage.d.ts","sourceRoot":"","sources":["../../../packages/ScenePackage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAO5C,MAAM,WAAW,YAAY;IAIzB,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,EAAE,MAAM,CAAC;IAKhB,IAAI,EAAE,WAAW,CAAC;IAKlB,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAKlC,UAAU,EAAE,MAAM,EAAE,CAAC;IAMrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAMlB,eAAe,EAAE,MAAM,EAAE,CAAC;IAK1B,eAAe,EAAE,MAAM,EAAE,CAAC;IAK1B,MAAM,EAAE,MAAM,EAAE,CAAC;IAKjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAOhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAOjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAG1B,UAAU,CAAC,EAAE,yBAAyB,CAAC;IAGvC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAGlB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED,eAAO,MAAM,yBAAyB,EAAE,CAAC,MAAM,YAAY,CAAC,EAmB3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScenePackage.js","sources":["../../../packages/ScenePackage.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 { IconLibrary } from '../icons';\nimport { PackageDependency } from './PackageDependency';\nimport { PackageKind } from './PackageKind';\n\n/**\n * What a {@link UiProfile}'s `packages` entry actually names. A profile lists packages by name only;\n * this is the declaration behind the name - what it contributes, and what else has to be active for it\n * to work.\n */\nexport interface ScenePackage {\n /**\n * The name a {@link UiProfile} lists, and the name a {@link PackageDependency} refers to.\n */\n name: string;\n\n /**\n * The package's own version, so a {@link PackageDependency.versionRange} has something to check against.\n */\n version: string;\n\n /**\n * What the package contributes.\n */\n kind: PackageKind;\n\n /**\n * Other packages that must be active in the same profile for this one to work.\n */\n dependencies: PackageDependency[];\n\n /**\n * The component names this package declares - the catalog entry {@link UiProfile} resolution walks.\n */\n components: string[];\n\n /**\n * The names of the {@link Layout}s this package provides — an application's base navigational shells.\n * Empty for anything that is not a {@link PackageKind.Blueprint}.\n */\n layouts: string[];\n\n /**\n * The names of the {@link ScreenTemplate}s this package provides — the shapes that go inside a layout,\n * at module, feature and slice level.\n */\n screenTemplates: string[];\n\n /**\n * The names of the {@link DialogTemplate}s this package provides.\n */\n dialogTemplates: string[];\n\n /**\n * The names of the {@link Theme}s this package ships, empty for a package that ships none.\n */\n themes: string[];\n\n /**\n * A human-readable name for a package picker, falling back to `name` when absent.\n */\n displayName?: string;\n\n /**\n * A one-line description for a package picker.\n */\n description?: string;\n\n /**\n * The module that implements the package - an npm package name for a web renderer. Design-time\n * tooling needs it to know what to import; the model itself never loads anything.\n */\n module?: string;\n\n /**\n * The license the package is available under, as a short human-readable name (`MIT`,\n * `PrimeUI Community`). A package picker shows it, because \"what am I taking on by selecting this\"\n * is a question an author needs answered before they select it, not after.\n */\n license?: string;\n\n /**\n * Where the license terms actually live, so a reader can go and check rather than take `license` on\n * trust. Required in practice for anything that is not a permissive standard license — a name alone\n * tells an author nothing about eligibility or obligations.\n */\n licenseUrl?: string;\n\n /**\n * What the package declares about its icons. Present exactly for a {@link PackageKind.IconLibrary}.\n */\n iconLibrary?: IconLibrary;\n}\n\nexport const ScenePackagePropertyNames: (keyof ScenePackage)[] = [\n 'name',\n 'version',\n 'kind',\n 'dependencies',\n 'components',\n 'layouts',\n 'screenTemplates',\n 'dialogTemplates',\n 'themes',\n 'displayName',\n 'description',\n 'module',\n 'license',\n 'licenseUrl',\n 'iconLibrary',\n];\n"],"names":["ScenePackagePropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"ScenePackage.js","sources":["../../../packages/ScenePackage.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 { PackageDesignTimeMetadata } from '../descriptors';\nimport { IconLibrary } from '../icons';\nimport { PackageDependency } from './PackageDependency';\nimport { PackageKind } from './PackageKind';\n\n/**\n * What a {@link UiProfile}'s `packages` entry actually names. A profile lists packages by name only;\n * this is the declaration behind the name - what it contributes, and what else has to be active for it\n * to work.\n */\nexport interface ScenePackage {\n /**\n * The name a {@link UiProfile} lists, and the name a {@link PackageDependency} refers to.\n */\n name: string;\n\n /**\n * The package's own version, so a {@link PackageDependency.versionRange} has something to check against.\n */\n version: string;\n\n /**\n * What the package contributes.\n */\n kind: PackageKind;\n\n /**\n * Other packages that must be active in the same profile for this one to work.\n */\n dependencies: PackageDependency[];\n\n /**\n * The component names this package declares - the catalog entry {@link UiProfile} resolution walks.\n */\n components: string[];\n\n /**\n * The names of the {@link Layout}s this package provides — an application's base navigational shells.\n * Empty for anything that is not a {@link PackageKind.Blueprint}.\n */\n layouts: string[];\n\n /**\n * The names of the {@link ScreenTemplate}s this package provides — the shapes that go inside a layout,\n * at module, feature and slice level.\n */\n screenTemplates: string[];\n\n /**\n * The names of the {@link DialogTemplate}s this package provides.\n */\n dialogTemplates: string[];\n\n /**\n * The names of the {@link Theme}s this package ships, empty for a package that ships none.\n */\n themes: string[];\n\n /**\n * A human-readable name for a package picker, falling back to `name` when absent.\n */\n displayName?: string;\n\n /**\n * A one-line description for a package picker.\n */\n description?: string;\n\n /**\n * The module that implements the package - an npm package name for a web renderer. Design-time\n * tooling needs it to know what to import; the model itself never loads anything.\n */\n module?: string;\n\n /**\n * The license the package is available under, as a short human-readable name (`MIT`,\n * `PrimeUI Community`). A package picker shows it, because \"what am I taking on by selecting this\"\n * is a question an author needs answered before they select it, not after.\n */\n license?: string;\n\n /**\n * Where the license terms actually live, so a reader can go and check rather than take `license` on\n * trust. Required in practice for anything that is not a permissive standard license — a name alone\n * tells an author nothing about eligibility or obligations.\n */\n licenseUrl?: string;\n\n /**\n * What the package declares about its icons. Present exactly for a {@link PackageKind.IconLibrary}.\n */\n iconLibrary?: IconLibrary;\n\n /** Optional design-time extensions carried as metadata; runtime hosts do not load them unless approved. */\n designTime?: PackageDesignTimeMetadata;\n\n /** Asset URLs or package-relative asset entries (CSS, fonts, images) required by a web renderer. */\n assets?: string[];\n\n /** Runtime singleton dependency names that must not be duplicated across approved bundles. */\n runtimeSingletons?: string[];\n}\n\nexport const ScenePackagePropertyNames: (keyof ScenePackage)[] = [\n 'name',\n 'version',\n 'kind',\n 'dependencies',\n 'components',\n 'layouts',\n 'screenTemplates',\n 'dialogTemplates',\n 'themes',\n 'displayName',\n 'description',\n 'module',\n 'license',\n 'licenseUrl',\n 'iconLibrary',\n 'designTime',\n 'assets',\n 'runtimeSingletons',\n];\n"],"names":["ScenePackagePropertyNames"],"mappings":"AAAA;AACA;MAyGaA,yBAAAA,GAAoD;AAC7D,IAAA,MAAA;AACA,IAAA,SAAA;AACA,IAAA,MAAA;AACA,IAAA,cAAA;AACA,IAAA,YAAA;AACA,IAAA,SAAA;AACA,IAAA,iBAAA;AACA,IAAA,iBAAA;AACA,IAAA,QAAA;AACA,IAAA,aAAA;AACA,IAAA,aAAA;AACA,IAAA,QAAA;AACA,IAAA,SAAA;AACA,IAAA,YAAA;AACA,IAAA,aAAA;AACA,IAAA,YAAA;AACA,IAAA,QAAA;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 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;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Outlet.d.ts","sourceRoot":"","sources":["../../../screens/Outlet.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,MAAM;IAEnB,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,EAAE,CAAC,MAAM,MAAM,CAAC,EAA4B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
/**
|
|
4
|
+
* A named replacement surface for routed or nested screen content.
|
|
5
|
+
*/ const OutletPropertyNames = [
|
|
6
|
+
'name',
|
|
7
|
+
'description'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
export { OutletPropertyNames };
|
|
11
|
+
//# sourceMappingURL=Outlet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Outlet.js","sources":["../../../screens/Outlet.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/**\n * A named replacement surface for routed or nested screen content.\n */\nexport interface Outlet {\n /** Stable outlet name used by destinations. */\n name: string;\n\n /** Optional description for designers. */\n description?: string;\n}\n\nexport const OutletPropertyNames: (keyof Outlet)[] = ['name', 'description'];\n"],"names":["OutletPropertyNames"],"mappings":"AAAA;AACA;AAEA;;UAWaA,mBAAAA,GAAwC;AAAC,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { SceneElement } from '../elements';
|
|
2
2
|
import { Arrangement, Slot } from '../layouts';
|
|
3
3
|
import { Behavior } from '../interactions';
|
|
4
|
+
import { Outlet } from './Outlet';
|
|
5
|
+
import { TemplateMetadata } from './TemplateMetadata';
|
|
4
6
|
export interface ScreenTemplate {
|
|
5
7
|
name: string;
|
|
6
8
|
fitsSlot?: string;
|
|
@@ -10,6 +12,8 @@ export interface ScreenTemplate {
|
|
|
10
12
|
displayName?: string;
|
|
11
13
|
description?: string;
|
|
12
14
|
behaviors?: Behavior[];
|
|
15
|
+
outlets?: Outlet[];
|
|
16
|
+
metadata?: TemplateMetadata;
|
|
13
17
|
}
|
|
14
18
|
export declare const ScreenTemplatePropertyNames: (keyof ScreenTemplate)[];
|
|
15
19
|
//# 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,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,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,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAGnB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,eAAO,MAAM,2BAA2B,EAAE,CAAC,MAAM,cAAc,CAAC,EAW/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 { Outlet } from './Outlet';\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 /** Named routed replacement surfaces this template owns. Static slots remain composition surfaces. */\n outlets?: Outlet[];\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 'outlets',\n 'metadata',\n];\n"],"names":["ScreenTemplatePropertyNames"],"mappings":"AAAA;AACA;MA0EaA,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,SAAA;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
|