@cratis/scene.model 3.2.0 → 3.3.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/common/BindingExpression.js.map +1 -1
- package/dist/cjs/common/Color.js.map +1 -1
- package/dist/cjs/common/Dock.js.map +1 -1
- package/dist/cjs/common/GridLength.js.map +1 -1
- package/dist/cjs/common/GridUnitType.js.map +1 -1
- package/dist/cjs/common/HorizontalAlignment.js.map +1 -1
- package/dist/cjs/common/Orientation.js.map +1 -1
- package/dist/cjs/common/Size.js.map +1 -1
- package/dist/cjs/common/Thickness.js.map +1 -1
- package/dist/cjs/common/VerticalAlignment.js.map +1 -1
- package/dist/cjs/common/Visibility.js.map +1 -1
- package/dist/cjs/contributionPoints/Contribution.js.map +1 -1
- package/dist/cjs/contributionPoints/ContributionPoint.js.map +1 -1
- package/dist/cjs/contributionPoints/NavigationItem.js.map +1 -1
- package/dist/cjs/elements/ContentControl.js.map +1 -1
- package/dist/cjs/elements/Control.js.map +1 -1
- package/dist/cjs/elements/ExternalComponent.js.map +1 -1
- package/dist/cjs/elements/FrameworkElement.js.map +1 -1
- package/dist/cjs/elements/ItemsControl.js.map +1 -1
- package/dist/cjs/elements/Panel.js.map +1 -1
- package/dist/cjs/elements/SceneElement.js.map +1 -1
- package/dist/cjs/elements/VisualElement.js.map +1 -1
- package/dist/cjs/elements/panels/Canvas.js.map +1 -1
- package/dist/cjs/elements/panels/ColumnDefinition.js.map +1 -1
- package/dist/cjs/elements/panels/DockPanel.js.map +1 -1
- package/dist/cjs/elements/panels/Grid.js.map +1 -1
- package/dist/cjs/elements/panels/RowDefinition.js.map +1 -1
- package/dist/cjs/elements/panels/StackPanel.js.map +1 -1
- package/dist/cjs/elements/panels/WrapPanel.js.map +1 -1
- package/dist/cjs/forms/Form.js.map +1 -1
- package/dist/cjs/forms/FormField.js.map +1 -1
- package/dist/cjs/forms/PopulateFromItem.js.map +1 -1
- package/dist/cjs/forms/PopulateViaQuery.js.map +1 -1
- package/dist/cjs/layouts/ElementPlacement.js.map +1 -1
- package/dist/cjs/layouts/FlowArrangement.js.map +1 -1
- package/dist/cjs/layouts/FlowColumn.js.map +1 -1
- package/dist/cjs/layouts/FlowContainer.js.map +1 -1
- package/dist/cjs/layouts/FlowContainerKind.js.map +1 -1
- package/dist/cjs/layouts/FlowGrid.js.map +1 -1
- package/dist/cjs/layouts/FlowLeaf.js.map +1 -1
- package/dist/cjs/layouts/FlowNode.js.map +1 -1
- package/dist/cjs/layouts/FlowOverride.js.map +1 -1
- package/dist/cjs/layouts/FlowRow.js.map +1 -1
- package/dist/cjs/layouts/FlowSlotLeaf.js.map +1 -1
- package/dist/cjs/layouts/FreeformArrangement.js.map +1 -1
- package/dist/cjs/layouts/FreeformSlotArrangement.js.map +1 -1
- package/dist/cjs/layouts/FreeformSlotVariant.js.map +1 -1
- package/dist/cjs/layouts/FreeformVariant.js.map +1 -1
- package/dist/cjs/layouts/Layout.js.map +1 -1
- package/dist/cjs/layouts/Slot.js.map +1 -1
- package/dist/cjs/layouts/SlotPlacement.js.map +1 -1
- package/dist/cjs/packages/PackageDependency.js.map +1 -1
- package/dist/cjs/packages/PackageKind.js.map +1 -1
- package/dist/cjs/packages/ScenePackage.js.map +1 -1
- package/dist/cjs/profiles/Theme.js.map +1 -1
- package/dist/cjs/profiles/UiProfile.js.map +1 -1
- package/dist/cjs/screens/DialogTemplate.js.map +1 -1
- package/dist/cjs/screens/Screen.js.map +1 -1
- package/dist/cjs/screens/ScreenTemplate.js.map +1 -1
- package/dist/cjs/sizeClasses/HeightSizeClass.js.map +1 -1
- package/dist/cjs/sizeClasses/SizeClass.js.map +1 -1
- package/dist/cjs/sizeClasses/WidthSizeClass.js.map +1 -1
- package/dist/cjs/starters/UiStarter.js.map +1 -1
- package/dist/esm/common/BindingExpression.js.map +1 -1
- package/dist/esm/common/Color.js.map +1 -1
- package/dist/esm/common/Dock.js.map +1 -1
- package/dist/esm/common/GridLength.js.map +1 -1
- package/dist/esm/common/GridUnitType.js.map +1 -1
- package/dist/esm/common/HorizontalAlignment.js.map +1 -1
- package/dist/esm/common/Orientation.js.map +1 -1
- package/dist/esm/common/Size.js.map +1 -1
- package/dist/esm/common/Thickness.js.map +1 -1
- package/dist/esm/common/VerticalAlignment.js.map +1 -1
- package/dist/esm/common/Visibility.js.map +1 -1
- package/dist/esm/contributionPoints/Contribution.js.map +1 -1
- package/dist/esm/contributionPoints/ContributionPoint.js.map +1 -1
- package/dist/esm/contributionPoints/NavigationItem.js.map +1 -1
- package/dist/esm/elements/ContentControl.js.map +1 -1
- package/dist/esm/elements/Control.js.map +1 -1
- package/dist/esm/elements/ExternalComponent.js.map +1 -1
- package/dist/esm/elements/FrameworkElement.js.map +1 -1
- package/dist/esm/elements/ItemsControl.js.map +1 -1
- package/dist/esm/elements/Panel.js.map +1 -1
- package/dist/esm/elements/SceneElement.js.map +1 -1
- package/dist/esm/elements/VisualElement.js.map +1 -1
- package/dist/esm/elements/panels/Canvas.js.map +1 -1
- package/dist/esm/elements/panels/ColumnDefinition.js.map +1 -1
- package/dist/esm/elements/panels/DockPanel.js.map +1 -1
- package/dist/esm/elements/panels/Grid.js.map +1 -1
- package/dist/esm/elements/panels/RowDefinition.js.map +1 -1
- package/dist/esm/elements/panels/StackPanel.js.map +1 -1
- package/dist/esm/elements/panels/WrapPanel.js.map +1 -1
- package/dist/esm/forms/Form.js.map +1 -1
- package/dist/esm/forms/FormField.js.map +1 -1
- package/dist/esm/forms/PopulateFromItem.js.map +1 -1
- package/dist/esm/forms/PopulateViaQuery.js.map +1 -1
- package/dist/esm/layouts/ElementPlacement.js.map +1 -1
- package/dist/esm/layouts/FlowArrangement.js.map +1 -1
- package/dist/esm/layouts/FlowColumn.js.map +1 -1
- package/dist/esm/layouts/FlowContainer.js.map +1 -1
- package/dist/esm/layouts/FlowContainerKind.js.map +1 -1
- package/dist/esm/layouts/FlowGrid.js.map +1 -1
- package/dist/esm/layouts/FlowLeaf.js.map +1 -1
- package/dist/esm/layouts/FlowNode.js.map +1 -1
- package/dist/esm/layouts/FlowOverride.js.map +1 -1
- package/dist/esm/layouts/FlowRow.js.map +1 -1
- package/dist/esm/layouts/FlowSlotLeaf.js.map +1 -1
- package/dist/esm/layouts/FreeformArrangement.js.map +1 -1
- package/dist/esm/layouts/FreeformSlotArrangement.js.map +1 -1
- package/dist/esm/layouts/FreeformSlotVariant.js.map +1 -1
- package/dist/esm/layouts/FreeformVariant.js.map +1 -1
- package/dist/esm/layouts/Layout.js.map +1 -1
- package/dist/esm/layouts/Slot.js.map +1 -1
- package/dist/esm/layouts/SlotPlacement.js.map +1 -1
- package/dist/esm/packages/PackageDependency.js.map +1 -1
- package/dist/esm/packages/PackageKind.js.map +1 -1
- package/dist/esm/packages/ScenePackage.js.map +1 -1
- package/dist/esm/profiles/Theme.js.map +1 -1
- package/dist/esm/profiles/UiProfile.js.map +1 -1
- package/dist/esm/screens/DialogTemplate.js.map +1 -1
- package/dist/esm/screens/Screen.js.map +1 -1
- package/dist/esm/screens/ScreenTemplate.js.map +1 -1
- package/dist/esm/sizeClasses/HeightSizeClass.js.map +1 -1
- package/dist/esm/sizeClasses/SizeClass.js.map +1 -1
- package/dist/esm/sizeClasses/WidthSizeClass.js.map +1 -1
- package/dist/esm/starters/UiStarter.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiProfile.js","sources":["../../../profiles/UiProfile.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 { SizeClass } from '../sizeClasses';\n\n/**\n * A named target: a platform, a default size class, an ordered list of component packages, and the\n * application shell and visual theme it selects. Declaration order in `packages` is override priority — a\n * later package shadows an earlier one when both resolve the same bare component name. `core` is always\n * the final fallback, so a minimum vocabulary resolves regardless of which packages a profile lists.\n *\n * A profile is where the choices that make a description concrete are made: which component vocabulary,\n * which shell, which theme. Deliberately none of them are stated by a {@link Screen} — that is what keeps\n * a screen portable across targets, and what lets one application ship a different shell to the web than\n * to a phone.\n */\nexport interface UiProfile {\n /**\n * The profile's name.\n */\n name: string;\n\n /**\n * The platform this profile targets (e.g. `web`, `ios`, `android`, `desktop`).\n */\n targetPlatform: string;\n\n /**\n * The component packages this profile draws from, in override-priority order.\n */\n packages: string[];\n\n /**\n * The size class assumed when the renderer cannot otherwise determine one.\n */\n defaultSizeClass?: SizeClass;\n\n /**\n * The name of the {@link Layout} this profile renders inside — the application's base navigational\n * shell, normally provided by a blueprint in `packages`. Absent when the profile does not select one.\n */\n layout?: string;\n\n /**\n * The name of the {@link Theme} this profile applies, or absent when it selects none. A theme is only\n * meaningful relative to a set of packages, which is why it is chosen here rather than by a screen.\n */\n theme?: string;\n}\n\nexport const UiProfilePropertyNames: (keyof UiProfile)[] = [\n 'name',\n 'targetPlatform',\n 'packages',\n 'defaultSizeClass',\n 'layout',\n 'theme',\n];\n"],"names":["UiProfilePropertyNames"],"mappings":"AAAA;AACA;MAiDaA,sBAAAA,GAA8C;AACvD,IAAA,MAAA;AACA,IAAA,gBAAA;AACA,IAAA,UAAA;AACA,IAAA,kBAAA;AACA,IAAA,QAAA;AACA,IAAA
|
|
1
|
+
{"version":3,"file":"UiProfile.js","sources":["../../../profiles/UiProfile.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 { SizeClass } from '../sizeClasses';\n\n/**\n * A named target: a platform, a default size class, an ordered list of component packages, and the\n * application shell and visual theme it selects. Declaration order in `packages` is override priority — a\n * later package shadows an earlier one when both resolve the same bare component name. `core` is always\n * the final fallback, so a minimum vocabulary resolves regardless of which packages a profile lists.\n *\n * A profile is where the choices that make a description concrete are made: which component vocabulary,\n * which shell, which theme. Deliberately none of them are stated by a {@link Screen} — that is what keeps\n * a screen portable across targets, and what lets one application ship a different shell to the web than\n * to a phone.\n */\nexport interface UiProfile {\n /**\n * The profile's name.\n */\n name: string;\n\n /**\n * The platform this profile targets (e.g. `web`, `ios`, `android`, `desktop`).\n */\n targetPlatform: string;\n\n /**\n * The component packages this profile draws from, in override-priority order.\n */\n packages: string[];\n\n /**\n * The size class assumed when the renderer cannot otherwise determine one.\n */\n defaultSizeClass?: SizeClass;\n\n /**\n * The name of the {@link Layout} this profile renders inside — the application's base navigational\n * shell, normally provided by a blueprint in `packages`. Absent when the profile does not select one.\n */\n layout?: string;\n\n /**\n * The name of the {@link Theme} this profile applies, or absent when it selects none. A theme is only\n * meaningful relative to a set of packages, which is why it is chosen here rather than by a screen.\n */\n theme?: string;\n}\n\nexport const UiProfilePropertyNames: (keyof UiProfile)[] = [\n 'name',\n 'targetPlatform',\n 'packages',\n 'defaultSizeClass',\n 'layout',\n 'theme',\n];\n"],"names":["UiProfilePropertyNames"],"mappings":"AAAA;AACA;MAiDaA,sBAAAA,GAA8C;AACvD,IAAA,MAAA;AACA,IAAA,gBAAA;AACA,IAAA,UAAA;AACA,IAAA,kBAAA;AACA,IAAA,QAAA;AACA,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';\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\nexport const DialogTemplatePropertyNames: (keyof DialogTemplate)[] = [\n 'name',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n];\n"],"names":["DialogTemplatePropertyNames"],"mappings":"AAAA;AACA;MAgDaA,2BAAAA,GAAwD;AACjE,IAAA,MAAA;AACA,IAAA,OAAA;AACA,IAAA,aAAA;AACA,IAAA,SAAA;AACA,IAAA,aAAA;AACA,IAAA
|
|
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';\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\nexport const DialogTemplatePropertyNames: (keyof DialogTemplate)[] = [\n 'name',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n];\n"],"names":["DialogTemplatePropertyNames"],"mappings":"AAAA;AACA;MAgDaA,2BAAAA,GAAwD;AACjE,IAAA,MAAA;AACA,IAAA,OAAA;AACA,IAAA,aAAA;AACA,IAAA,SAAA;AACA,IAAA,aAAA;AACA,IAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Screen.js","sources":["../../../screens/Screen.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 { Form } from '../forms';\nimport { Contribution } from '../contributionPoints';\n\n/**\n * A named screen: the structure it fills, the content that fills it, the forms it hosts, and whatever it\n * contributes to contribution points elsewhere in the tree.\n *\n * A screen is an instance, not a shape. The shape comes from either the application's {@link Layout} — for\n * a screen that sits directly in the application shell — or a {@link ScreenTemplate}, for one nested\n * inside a module, feature or slice. Both declare slots; a screen only ever fills them.\n */\nexport interface Screen {\n /**\n * The screen's name.\n */\n name: string;\n\n /**\n * The resolved name of the application {@link Layout} this screen ultimately renders inside.\n */\n layout: string;\n\n /**\n * The content filling each slot, keyed by slot name.\n */\n slotContent: Record<string, SceneElement[]>;\n\n /**\n * The forms this screen hosts.\n */\n forms: Form[];\n\n /**\n * What this screen contributes to contribution points elsewhere in the tree.\n */\n contributions: Contribution[];\n\n /**\n * The resolved name of the {@link ScreenTemplate} this screen fills, or undefined when it fills the\n * `layout`'s own slots directly. The template's `fitsSlot` is what decides where it lands, so a screen\n * never has to state its own position.\n */\n screenTemplate?: string;\n}\n\nexport const ScreenPropertyNames: (keyof Screen)[] = ['name', 'layout', 'slotContent', 'forms', 'contributions', 'screenTemplate'];\n"],"names":["ScreenPropertyNames"],"mappings":"AAAA;AACA;MAgDaA,mBAAAA,GAAwC;AAAC,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA,aAAA;AAAe,IAAA,OAAA;AAAS,IAAA,eAAA;AAAiB,IAAA
|
|
1
|
+
{"version":3,"file":"Screen.js","sources":["../../../screens/Screen.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 { Form } from '../forms';\nimport { Contribution } from '../contributionPoints';\n\n/**\n * A named screen: the structure it fills, the content that fills it, the forms it hosts, and whatever it\n * contributes to contribution points elsewhere in the tree.\n *\n * A screen is an instance, not a shape. The shape comes from either the application's {@link Layout} — for\n * a screen that sits directly in the application shell — or a {@link ScreenTemplate}, for one nested\n * inside a module, feature or slice. Both declare slots; a screen only ever fills them.\n */\nexport interface Screen {\n /**\n * The screen's name.\n */\n name: string;\n\n /**\n * The resolved name of the application {@link Layout} this screen ultimately renders inside.\n */\n layout: string;\n\n /**\n * The content filling each slot, keyed by slot name.\n */\n slotContent: Record<string, SceneElement[]>;\n\n /**\n * The forms this screen hosts.\n */\n forms: Form[];\n\n /**\n * What this screen contributes to contribution points elsewhere in the tree.\n */\n contributions: Contribution[];\n\n /**\n * The resolved name of the {@link ScreenTemplate} this screen fills, or undefined when it fills the\n * `layout`'s own slots directly. The template's `fitsSlot` is what decides where it lands, so a screen\n * never has to state its own position.\n */\n screenTemplate?: string;\n}\n\nexport const ScreenPropertyNames: (keyof Screen)[] = ['name', 'layout', 'slotContent', 'forms', 'contributions', 'screenTemplate'];\n"],"names":["ScreenPropertyNames"],"mappings":"AAAA;AACA;MAgDaA,mBAAAA,GAAwC;AAAC,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA,aAAA;AAAe,IAAA,OAAA;AAAS,IAAA,eAAA;AAAiB,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';\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\nexport const ScreenTemplatePropertyNames: (keyof ScreenTemplate)[] = [\n 'name',\n 'fitsSlot',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n];\n"],"names":["ScreenTemplatePropertyNames"],"mappings":"AAAA;AACA;MA4DaA,2BAAAA,GAAwD;AACjE,IAAA,MAAA;AACA,IAAA,UAAA;AACA,IAAA,OAAA;AACA,IAAA,aAAA;AACA,IAAA,SAAA;AACA,IAAA,aAAA;AACA,IAAA
|
|
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';\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\nexport const ScreenTemplatePropertyNames: (keyof ScreenTemplate)[] = [\n 'name',\n 'fitsSlot',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n];\n"],"names":["ScreenTemplatePropertyNames"],"mappings":"AAAA;AACA;MA4DaA,2BAAAA,GAAwD;AACjE,IAAA,MAAA;AACA,IAAA,UAAA;AACA,IAAA,OAAA;AACA,IAAA,aAAA;AACA,IAAA,SAAA;AACA,IAAA,aAAA;AACA,IAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeightSizeClass.js","sources":["../../../sizeClasses/HeightSizeClass.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 * The height axis of a {@link SizeClass}.\n */\nexport enum HeightSizeClass {\n Compact = 'Compact',\n Regular = 'Regular',\n}\n"],"names":["HeightSizeClass"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,eAAAA,iBAAAA,SAAAA,eAAAA,EAAAA;;;AAAAA,IAAAA,OAAAA,eAAAA;AAGX,CAAA,CAAA,EAAA
|
|
1
|
+
{"version":3,"file":"HeightSizeClass.js","sources":["../../../sizeClasses/HeightSizeClass.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 * The height axis of a {@link SizeClass}.\n */\nexport enum HeightSizeClass {\n Compact = 'Compact',\n Regular = 'Regular',\n}\n"],"names":["HeightSizeClass"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,eAAAA,iBAAAA,SAAAA,eAAAA,EAAAA;;;AAAAA,IAAAA,OAAAA,eAAAA;AAGX,CAAA,CAAA,EAAA;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SizeClass.js","sources":["../../../sizeClasses/SizeClass.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 { WidthSizeClass } from './WidthSizeClass';\nimport { HeightSizeClass } from './HeightSizeClass';\n\n/**\n * A width x height size class, UIKit-style. Phone portrait/landscape, tablet and desktop all fall out\n * of this matrix — there is deliberately no separate orientation concept.\n */\nexport interface SizeClass {\n width: WidthSizeClass;\n height: HeightSizeClass;\n}\n\nexport const SizeClassPropertyNames: (keyof SizeClass)[] = ['width', 'height'];\n"],"names":["SizeClassPropertyNames"],"mappings":"AAAA;AACA;MAcaA,sBAAAA,GAA8C;AAAC,IAAA,OAAA;AAAS,IAAA
|
|
1
|
+
{"version":3,"file":"SizeClass.js","sources":["../../../sizeClasses/SizeClass.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 { WidthSizeClass } from './WidthSizeClass';\nimport { HeightSizeClass } from './HeightSizeClass';\n\n/**\n * A width x height size class, UIKit-style. Phone portrait/landscape, tablet and desktop all fall out\n * of this matrix — there is deliberately no separate orientation concept.\n */\nexport interface SizeClass {\n width: WidthSizeClass;\n height: HeightSizeClass;\n}\n\nexport const SizeClassPropertyNames: (keyof SizeClass)[] = ['width', 'height'];\n"],"names":["SizeClassPropertyNames"],"mappings":"AAAA;AACA;MAcaA,sBAAAA,GAA8C;AAAC,IAAA,OAAA;AAAS,IAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidthSizeClass.js","sources":["../../../sizeClasses/WidthSizeClass.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 * The width axis of a {@link SizeClass}.\n */\nexport enum WidthSizeClass {\n Compact = 'Compact',\n Regular = 'Regular',\n}\n"],"names":["WidthSizeClass"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,cAAAA,iBAAAA,SAAAA,cAAAA,EAAAA;;;AAAAA,IAAAA,OAAAA,cAAAA;AAGX,CAAA,CAAA,EAAA
|
|
1
|
+
{"version":3,"file":"WidthSizeClass.js","sources":["../../../sizeClasses/WidthSizeClass.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 * The width axis of a {@link SizeClass}.\n */\nexport enum WidthSizeClass {\n Compact = 'Compact',\n Regular = 'Regular',\n}\n"],"names":["WidthSizeClass"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,cAAAA,iBAAAA,SAAAA,cAAAA,EAAAA;;;AAAAA,IAAAA,OAAAA,cAAAA;AAGX,CAAA,CAAA,EAAA;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiStarter.js","sources":["../../../starters/UiStarter.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 packaged, versioned UI starting point: a package list, the themes it ships compatible with, and a\n * gallery of ordinary screens shipped alongside it - part of Cratis/Scene#6. A starter is data, not a\n * `.play` language construct; Studio's \"new project\" flow scaffolds from it, and its gallery boots\n * through the real `Scene.Engine` + `Scene.React` inside a sandboxed `UiProfile` built from `packages` -\n * there is no separate preview pipeline and no mocked screens.\n */\nexport interface UiStarter {\n name: string;\n packages: string[];\n themes: string[];\n gallery: string[];\n}\n\nexport const UiStarterPropertyNames: (keyof UiStarter)[] = ['name', 'packages', 'themes', 'gallery'];\n"],"names":["UiStarterPropertyNames"],"mappings":"AAAA;AACA;AAEA;;;;;;UAcaA,sBAAAA,GAA8C;AAAC,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,QAAA;AAAU,IAAA
|
|
1
|
+
{"version":3,"file":"UiStarter.js","sources":["../../../starters/UiStarter.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 packaged, versioned UI starting point: a package list, the themes it ships compatible with, and a\n * gallery of ordinary screens shipped alongside it - part of Cratis/Scene#6. A starter is data, not a\n * `.play` language construct; Studio's \"new project\" flow scaffolds from it, and its gallery boots\n * through the real `Scene.Engine` + `Scene.React` inside a sandboxed `UiProfile` built from `packages` -\n * there is no separate preview pipeline and no mocked screens.\n */\nexport interface UiStarter {\n name: string;\n packages: string[];\n themes: string[];\n gallery: string[];\n}\n\nexport const UiStarterPropertyNames: (keyof UiStarter)[] = ['name', 'packages', 'themes', 'gallery'];\n"],"names":["UiStarterPropertyNames"],"mappings":"AAAA;AACA;AAEA;;;;;;UAcaA,sBAAAA,GAA8C;AAAC,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,QAAA;AAAU,IAAA;;;"}
|