@cratis/scene.model 0.1.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/README.md +40 -0
- package/common/BindingExpression.ts +12 -0
- package/common/Color.ts +14 -0
- package/common/HorizontalAlignment.ts +12 -0
- package/common/Size.ts +12 -0
- package/common/Thickness.ts +14 -0
- package/common/VerticalAlignment.ts +12 -0
- package/common/Visibility.ts +11 -0
- package/common/index.ts +10 -0
- package/contributionPoints/Contribution.ts +17 -0
- package/contributionPoints/ContributionPoint.ts +14 -0
- package/contributionPoints/NavigationItem.ts +21 -0
- package/contributionPoints/index.ts +6 -0
- package/dist/cjs/common/BindingExpression.js +13 -0
- package/dist/cjs/common/BindingExpression.js.map +1 -0
- package/dist/cjs/common/Color.js +15 -0
- package/dist/cjs/common/Color.js.map +1 -0
- package/dist/cjs/common/HorizontalAlignment.js +16 -0
- package/dist/cjs/common/HorizontalAlignment.js.map +1 -0
- package/dist/cjs/common/Size.js +13 -0
- package/dist/cjs/common/Size.js.map +1 -0
- package/dist/cjs/common/Thickness.js +15 -0
- package/dist/cjs/common/Thickness.js.map +1 -0
- package/dist/cjs/common/VerticalAlignment.js +16 -0
- package/dist/cjs/common/VerticalAlignment.js.map +1 -0
- package/dist/cjs/common/Visibility.js +15 -0
- package/dist/cjs/common/Visibility.js.map +1 -0
- package/dist/cjs/contributionPoints/Contribution.js +12 -0
- package/dist/cjs/contributionPoints/Contribution.js.map +1 -0
- package/dist/cjs/contributionPoints/ContributionPoint.js +15 -0
- package/dist/cjs/contributionPoints/ContributionPoint.js.map +1 -0
- package/dist/cjs/contributionPoints/NavigationItem.js +14 -0
- package/dist/cjs/contributionPoints/NavigationItem.js.map +1 -0
- package/dist/cjs/elements/ContentControl.js +10 -0
- package/dist/cjs/elements/ContentControl.js.map +1 -0
- package/dist/cjs/elements/Control.js +17 -0
- package/dist/cjs/elements/Control.js.map +1 -0
- package/dist/cjs/elements/ExternalComponent.js +11 -0
- package/dist/cjs/elements/ExternalComponent.js.map +1 -0
- package/dist/cjs/elements/FrameworkElement.js +15 -0
- package/dist/cjs/elements/FrameworkElement.js.map +1 -0
- package/dist/cjs/elements/ItemsControl.js +11 -0
- package/dist/cjs/elements/ItemsControl.js.map +1 -0
- package/dist/cjs/elements/Panel.js +10 -0
- package/dist/cjs/elements/Panel.js.map +1 -0
- package/dist/cjs/elements/SceneElement.js +14 -0
- package/dist/cjs/elements/SceneElement.js.map +1 -0
- package/dist/cjs/elements/VisualElement.js +14 -0
- package/dist/cjs/elements/VisualElement.js.map +1 -0
- package/dist/cjs/forms/Form.js +13 -0
- package/dist/cjs/forms/Form.js.map +1 -0
- package/dist/cjs/forms/FormField.js +17 -0
- package/dist/cjs/forms/FormField.js.map +1 -0
- package/dist/cjs/forms/PopulateFromItem.js +10 -0
- package/dist/cjs/forms/PopulateFromItem.js.map +1 -0
- package/dist/cjs/forms/PopulateViaQuery.js +11 -0
- package/dist/cjs/forms/PopulateViaQuery.js.map +1 -0
- package/dist/cjs/index.js +110 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/layouts/ElementPlacement.js +14 -0
- package/dist/cjs/layouts/ElementPlacement.js.map +1 -0
- package/dist/cjs/layouts/FlowArrangement.js +11 -0
- package/dist/cjs/layouts/FlowArrangement.js.map +1 -0
- package/dist/cjs/layouts/FlowColumn.js +10 -0
- package/dist/cjs/layouts/FlowColumn.js.map +1 -0
- package/dist/cjs/layouts/FlowContainer.js +12 -0
- package/dist/cjs/layouts/FlowContainer.js.map +1 -0
- package/dist/cjs/layouts/FlowContainerKind.js +20 -0
- package/dist/cjs/layouts/FlowContainerKind.js.map +1 -0
- package/dist/cjs/layouts/FlowGrid.js +12 -0
- package/dist/cjs/layouts/FlowGrid.js.map +1 -0
- package/dist/cjs/layouts/FlowLeaf.js +10 -0
- package/dist/cjs/layouts/FlowLeaf.js.map +1 -0
- package/dist/cjs/layouts/FlowNode.js +14 -0
- package/dist/cjs/layouts/FlowNode.js.map +1 -0
- package/dist/cjs/layouts/FlowOverride.js +12 -0
- package/dist/cjs/layouts/FlowOverride.js.map +1 -0
- package/dist/cjs/layouts/FlowRow.js +10 -0
- package/dist/cjs/layouts/FlowRow.js.map +1 -0
- package/dist/cjs/layouts/FlowSlotLeaf.js +10 -0
- package/dist/cjs/layouts/FlowSlotLeaf.js.map +1 -0
- package/dist/cjs/layouts/FreeformArrangement.js +10 -0
- package/dist/cjs/layouts/FreeformArrangement.js.map +1 -0
- package/dist/cjs/layouts/FreeformSlotArrangement.js +10 -0
- package/dist/cjs/layouts/FreeformSlotArrangement.js.map +1 -0
- package/dist/cjs/layouts/FreeformSlotVariant.js +11 -0
- package/dist/cjs/layouts/FreeformSlotVariant.js.map +1 -0
- package/dist/cjs/layouts/FreeformVariant.js +11 -0
- package/dist/cjs/layouts/FreeformVariant.js.map +1 -0
- package/dist/cjs/layouts/Layout.js +12 -0
- package/dist/cjs/layouts/Layout.js.map +1 -0
- package/dist/cjs/layouts/Slot.js +11 -0
- package/dist/cjs/layouts/Slot.js.map +1 -0
- package/dist/cjs/layouts/SlotPlacement.js +18 -0
- package/dist/cjs/layouts/SlotPlacement.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/packages/PackageDependency.js +16 -0
- package/dist/cjs/packages/PackageDependency.js.map +1 -0
- package/dist/cjs/packages/PackageKind.js +34 -0
- package/dist/cjs/packages/PackageKind.js.map +1 -0
- package/dist/cjs/packages/ScenePackage.js +21 -0
- package/dist/cjs/packages/ScenePackage.js.map +1 -0
- package/dist/cjs/profiles/Theme.js +21 -0
- package/dist/cjs/profiles/Theme.js.map +1 -0
- package/dist/cjs/profiles/UiProfile.js +13 -0
- package/dist/cjs/profiles/UiProfile.js.map +1 -0
- package/dist/cjs/screens/DialogTemplate.js +15 -0
- package/dist/cjs/screens/DialogTemplate.js.map +1 -0
- package/dist/cjs/screens/Screen.js +15 -0
- package/dist/cjs/screens/Screen.js.map +1 -0
- package/dist/cjs/screens/ScreenTemplate.js +16 -0
- package/dist/cjs/screens/ScreenTemplate.js.map +1 -0
- package/dist/cjs/sizeClasses/HeightSizeClass.js +14 -0
- package/dist/cjs/sizeClasses/HeightSizeClass.js.map +1 -0
- package/dist/cjs/sizeClasses/SizeClass.js +11 -0
- package/dist/cjs/sizeClasses/SizeClass.js.map +1 -0
- package/dist/cjs/sizeClasses/WidthSizeClass.js +14 -0
- package/dist/cjs/sizeClasses/WidthSizeClass.js.map +1 -0
- package/dist/cjs/starters/UiStarter.js +19 -0
- package/dist/cjs/starters/UiStarter.js.map +1 -0
- package/dist/esm/common/BindingExpression.d.ts +5 -0
- package/dist/esm/common/BindingExpression.d.ts.map +1 -0
- package/dist/esm/common/BindingExpression.js +11 -0
- package/dist/esm/common/BindingExpression.js.map +1 -0
- package/dist/esm/common/Color.d.ts +8 -0
- package/dist/esm/common/Color.d.ts.map +1 -0
- package/dist/esm/common/Color.js +13 -0
- package/dist/esm/common/Color.js.map +1 -0
- package/dist/esm/common/HorizontalAlignment.d.ts +7 -0
- package/dist/esm/common/HorizontalAlignment.d.ts.map +1 -0
- package/dist/esm/common/HorizontalAlignment.js +14 -0
- package/dist/esm/common/HorizontalAlignment.js.map +1 -0
- package/dist/esm/common/Size.d.ts +6 -0
- package/dist/esm/common/Size.d.ts.map +1 -0
- package/dist/esm/common/Size.js +11 -0
- package/dist/esm/common/Size.js.map +1 -0
- package/dist/esm/common/Thickness.d.ts +8 -0
- package/dist/esm/common/Thickness.d.ts.map +1 -0
- package/dist/esm/common/Thickness.js +13 -0
- package/dist/esm/common/Thickness.js.map +1 -0
- package/dist/esm/common/VerticalAlignment.d.ts +7 -0
- package/dist/esm/common/VerticalAlignment.d.ts.map +1 -0
- package/dist/esm/common/VerticalAlignment.js +14 -0
- package/dist/esm/common/VerticalAlignment.js.map +1 -0
- package/dist/esm/common/Visibility.d.ts +6 -0
- package/dist/esm/common/Visibility.d.ts.map +1 -0
- package/dist/esm/common/Visibility.js +13 -0
- package/dist/esm/common/Visibility.js.map +1 -0
- package/dist/esm/common/index.d.ts +8 -0
- package/dist/esm/common/index.d.ts.map +1 -0
- package/dist/esm/common/index.js +8 -0
- package/dist/esm/common/index.js.map +1 -0
- package/dist/esm/contributionPoints/Contribution.d.ts +8 -0
- package/dist/esm/contributionPoints/Contribution.d.ts.map +1 -0
- package/dist/esm/contributionPoints/Contribution.js +10 -0
- package/dist/esm/contributionPoints/Contribution.js.map +1 -0
- package/dist/esm/contributionPoints/ContributionPoint.d.ts +5 -0
- package/dist/esm/contributionPoints/ContributionPoint.d.ts.map +1 -0
- package/dist/esm/contributionPoints/ContributionPoint.js +13 -0
- package/dist/esm/contributionPoints/ContributionPoint.js.map +1 -0
- package/dist/esm/contributionPoints/NavigationItem.d.ts +10 -0
- package/dist/esm/contributionPoints/NavigationItem.d.ts.map +1 -0
- package/dist/esm/contributionPoints/NavigationItem.js +12 -0
- package/dist/esm/contributionPoints/NavigationItem.js.map +1 -0
- package/dist/esm/contributionPoints/index.d.ts +4 -0
- package/dist/esm/contributionPoints/index.d.ts.map +1 -0
- package/dist/esm/contributionPoints/index.js +4 -0
- package/dist/esm/contributionPoints/index.js.map +1 -0
- package/dist/esm/elements/ContentControl.d.ts +7 -0
- package/dist/esm/elements/ContentControl.d.ts.map +1 -0
- package/dist/esm/elements/ContentControl.js +8 -0
- package/dist/esm/elements/ContentControl.js.map +1 -0
- package/dist/esm/elements/Control.d.ts +14 -0
- package/dist/esm/elements/Control.d.ts.map +1 -0
- package/dist/esm/elements/Control.js +15 -0
- package/dist/esm/elements/Control.js.map +1 -0
- package/dist/esm/elements/ExternalComponent.d.ts +8 -0
- package/dist/esm/elements/ExternalComponent.d.ts.map +1 -0
- package/dist/esm/elements/ExternalComponent.js +9 -0
- package/dist/esm/elements/ExternalComponent.js.map +1 -0
- package/dist/esm/elements/FrameworkElement.d.ts +12 -0
- package/dist/esm/elements/FrameworkElement.d.ts.map +1 -0
- package/dist/esm/elements/FrameworkElement.js +13 -0
- package/dist/esm/elements/FrameworkElement.js.map +1 -0
- package/dist/esm/elements/ItemsControl.d.ts +9 -0
- package/dist/esm/elements/ItemsControl.d.ts.map +1 -0
- package/dist/esm/elements/ItemsControl.js +9 -0
- package/dist/esm/elements/ItemsControl.js.map +1 -0
- package/dist/esm/elements/Panel.d.ts +7 -0
- package/dist/esm/elements/Panel.d.ts.map +1 -0
- package/dist/esm/elements/Panel.js +8 -0
- package/dist/esm/elements/Panel.js.map +1 -0
- package/dist/esm/elements/SceneElement.d.ts +6 -0
- package/dist/esm/elements/SceneElement.d.ts.map +1 -0
- package/dist/esm/elements/SceneElement.js +12 -0
- package/dist/esm/elements/SceneElement.js.map +1 -0
- package/dist/esm/elements/VisualElement.d.ts +11 -0
- package/dist/esm/elements/VisualElement.d.ts.map +1 -0
- package/dist/esm/elements/VisualElement.js +12 -0
- package/dist/esm/elements/VisualElement.js.map +1 -0
- package/dist/esm/elements/index.d.ts +9 -0
- package/dist/esm/elements/index.d.ts.map +1 -0
- package/dist/esm/elements/index.js +9 -0
- package/dist/esm/elements/index.js.map +1 -0
- package/dist/esm/for_shape/when_checking_the_mirror_matches_the_shared_manifest.d.ts +2 -0
- package/dist/esm/for_shape/when_checking_the_mirror_matches_the_shared_manifest.d.ts.map +1 -0
- package/dist/esm/for_shape/when_checking_the_mirror_matches_the_shared_manifest.js +22 -0
- package/dist/esm/for_shape/when_checking_the_mirror_matches_the_shared_manifest.js.map +1 -0
- package/dist/esm/forms/Form.d.ts +10 -0
- package/dist/esm/forms/Form.d.ts.map +1 -0
- package/dist/esm/forms/Form.js +11 -0
- package/dist/esm/forms/Form.js.map +1 -0
- package/dist/esm/forms/FormField.d.ts +8 -0
- package/dist/esm/forms/FormField.d.ts.map +1 -0
- package/dist/esm/forms/FormField.js +15 -0
- package/dist/esm/forms/FormField.js.map +1 -0
- package/dist/esm/forms/PopulateFromItem.d.ts +7 -0
- package/dist/esm/forms/PopulateFromItem.d.ts.map +1 -0
- package/dist/esm/forms/PopulateFromItem.js +8 -0
- package/dist/esm/forms/PopulateFromItem.js.map +1 -0
- package/dist/esm/forms/PopulateSource.d.ts +3 -0
- package/dist/esm/forms/PopulateSource.d.ts.map +1 -0
- package/dist/esm/forms/PopulateSource.js +2 -0
- package/dist/esm/forms/PopulateSource.js.map +1 -0
- package/dist/esm/forms/PopulateViaQuery.d.ts +8 -0
- package/dist/esm/forms/PopulateViaQuery.d.ts.map +1 -0
- package/dist/esm/forms/PopulateViaQuery.js +9 -0
- package/dist/esm/forms/PopulateViaQuery.js.map +1 -0
- package/dist/esm/forms/index.d.ts +6 -0
- package/dist/esm/forms/index.d.ts.map +1 -0
- package/dist/esm/forms/index.js +6 -0
- package/dist/esm/forms/index.js.map +1 -0
- package/dist/esm/index.d.ts +11 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +53 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/layouts/Arrangement.d.ts +3 -0
- package/dist/esm/layouts/Arrangement.d.ts.map +1 -0
- package/dist/esm/layouts/Arrangement.js +2 -0
- package/dist/esm/layouts/Arrangement.js.map +1 -0
- package/dist/esm/layouts/ElementPlacement.d.ts +10 -0
- package/dist/esm/layouts/ElementPlacement.d.ts.map +1 -0
- package/dist/esm/layouts/ElementPlacement.js +12 -0
- package/dist/esm/layouts/ElementPlacement.js.map +1 -0
- package/dist/esm/layouts/FlowArrangement.d.ts +9 -0
- package/dist/esm/layouts/FlowArrangement.d.ts.map +1 -0
- package/dist/esm/layouts/FlowArrangement.js +9 -0
- package/dist/esm/layouts/FlowArrangement.js.map +1 -0
- package/dist/esm/layouts/FlowColumn.d.ts +7 -0
- package/dist/esm/layouts/FlowColumn.d.ts.map +1 -0
- package/dist/esm/layouts/FlowColumn.js +8 -0
- package/dist/esm/layouts/FlowColumn.js.map +1 -0
- package/dist/esm/layouts/FlowContainer.d.ts +9 -0
- package/dist/esm/layouts/FlowContainer.d.ts.map +1 -0
- package/dist/esm/layouts/FlowContainer.js +10 -0
- package/dist/esm/layouts/FlowContainer.js.map +1 -0
- package/dist/esm/layouts/FlowContainerKind.d.ts +6 -0
- package/dist/esm/layouts/FlowContainerKind.d.ts.map +1 -0
- package/dist/esm/layouts/FlowContainerKind.js +18 -0
- package/dist/esm/layouts/FlowContainerKind.js.map +1 -0
- package/dist/esm/layouts/FlowGrid.d.ts +9 -0
- package/dist/esm/layouts/FlowGrid.d.ts.map +1 -0
- package/dist/esm/layouts/FlowGrid.js +10 -0
- package/dist/esm/layouts/FlowGrid.js.map +1 -0
- package/dist/esm/layouts/FlowLeaf.d.ts +7 -0
- package/dist/esm/layouts/FlowLeaf.d.ts.map +1 -0
- package/dist/esm/layouts/FlowLeaf.js +8 -0
- package/dist/esm/layouts/FlowLeaf.js.map +1 -0
- package/dist/esm/layouts/FlowNode.d.ts +6 -0
- package/dist/esm/layouts/FlowNode.d.ts.map +1 -0
- package/dist/esm/layouts/FlowNode.js +12 -0
- package/dist/esm/layouts/FlowNode.js.map +1 -0
- package/dist/esm/layouts/FlowOverride.d.ts +9 -0
- package/dist/esm/layouts/FlowOverride.d.ts.map +1 -0
- package/dist/esm/layouts/FlowOverride.js +10 -0
- package/dist/esm/layouts/FlowOverride.js.map +1 -0
- package/dist/esm/layouts/FlowRow.d.ts +7 -0
- package/dist/esm/layouts/FlowRow.d.ts.map +1 -0
- package/dist/esm/layouts/FlowRow.js +8 -0
- package/dist/esm/layouts/FlowRow.js.map +1 -0
- package/dist/esm/layouts/FlowSlotLeaf.d.ts +6 -0
- package/dist/esm/layouts/FlowSlotLeaf.d.ts.map +1 -0
- package/dist/esm/layouts/FlowSlotLeaf.js +8 -0
- package/dist/esm/layouts/FlowSlotLeaf.js.map +1 -0
- package/dist/esm/layouts/FreeformArrangement.d.ts +7 -0
- package/dist/esm/layouts/FreeformArrangement.d.ts.map +1 -0
- package/dist/esm/layouts/FreeformArrangement.js +8 -0
- package/dist/esm/layouts/FreeformArrangement.js.map +1 -0
- package/dist/esm/layouts/FreeformSlotArrangement.d.ts +7 -0
- package/dist/esm/layouts/FreeformSlotArrangement.d.ts.map +1 -0
- package/dist/esm/layouts/FreeformSlotArrangement.js +8 -0
- package/dist/esm/layouts/FreeformSlotArrangement.js.map +1 -0
- package/dist/esm/layouts/FreeformSlotVariant.d.ts +8 -0
- package/dist/esm/layouts/FreeformSlotVariant.d.ts.map +1 -0
- package/dist/esm/layouts/FreeformSlotVariant.js +9 -0
- package/dist/esm/layouts/FreeformSlotVariant.js.map +1 -0
- package/dist/esm/layouts/FreeformVariant.d.ts +8 -0
- package/dist/esm/layouts/FreeformVariant.d.ts.map +1 -0
- package/dist/esm/layouts/FreeformVariant.js +9 -0
- package/dist/esm/layouts/FreeformVariant.js.map +1 -0
- package/dist/esm/layouts/Layout.d.ts +9 -0
- package/dist/esm/layouts/Layout.d.ts.map +1 -0
- package/dist/esm/layouts/Layout.js +10 -0
- package/dist/esm/layouts/Layout.js.map +1 -0
- package/dist/esm/layouts/Slot.d.ts +7 -0
- package/dist/esm/layouts/Slot.d.ts.map +1 -0
- package/dist/esm/layouts/Slot.js +9 -0
- package/dist/esm/layouts/Slot.js.map +1 -0
- package/dist/esm/layouts/SlotPlacement.d.ts +9 -0
- package/dist/esm/layouts/SlotPlacement.d.ts.map +1 -0
- package/dist/esm/layouts/SlotPlacement.js +16 -0
- package/dist/esm/layouts/SlotPlacement.js.map +1 -0
- package/dist/esm/layouts/index.d.ts +20 -0
- package/dist/esm/layouts/index.d.ts.map +1 -0
- package/dist/esm/layouts/index.js +20 -0
- package/dist/esm/layouts/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/packages/PackageDependency.d.ts +6 -0
- package/dist/esm/packages/PackageDependency.d.ts.map +1 -0
- package/dist/esm/packages/PackageDependency.js +14 -0
- package/dist/esm/packages/PackageDependency.js.map +1 -0
- package/dist/esm/packages/PackageKind.d.ts +6 -0
- package/dist/esm/packages/PackageKind.d.ts.map +1 -0
- package/dist/esm/packages/PackageKind.js +32 -0
- package/dist/esm/packages/PackageKind.js.map +1 -0
- package/dist/esm/packages/ScenePackage.d.ts +18 -0
- package/dist/esm/packages/ScenePackage.d.ts.map +1 -0
- package/dist/esm/packages/ScenePackage.js +19 -0
- package/dist/esm/packages/ScenePackage.js.map +1 -0
- package/dist/esm/packages/index.d.ts +4 -0
- package/dist/esm/packages/index.d.ts.map +1 -0
- package/dist/esm/packages/index.js +4 -0
- package/dist/esm/packages/index.js.map +1 -0
- package/dist/esm/profiles/Theme.d.ts +12 -0
- package/dist/esm/profiles/Theme.d.ts.map +1 -0
- package/dist/esm/profiles/Theme.js +19 -0
- package/dist/esm/profiles/Theme.js.map +1 -0
- package/dist/esm/profiles/UiProfile.d.ts +9 -0
- package/dist/esm/profiles/UiProfile.d.ts.map +1 -0
- package/dist/esm/profiles/UiProfile.js +11 -0
- package/dist/esm/profiles/UiProfile.js.map +1 -0
- package/dist/esm/profiles/index.d.ts +3 -0
- package/dist/esm/profiles/index.d.ts.map +1 -0
- package/dist/esm/profiles/index.js +3 -0
- package/dist/esm/profiles/index.js.map +1 -0
- package/dist/esm/screens/DialogTemplate.d.ts +12 -0
- package/dist/esm/screens/DialogTemplate.d.ts.map +1 -0
- package/dist/esm/screens/DialogTemplate.js +13 -0
- package/dist/esm/screens/DialogTemplate.js.map +1 -0
- package/dist/esm/screens/Screen.d.ts +13 -0
- package/dist/esm/screens/Screen.d.ts.map +1 -0
- package/dist/esm/screens/Screen.js +13 -0
- package/dist/esm/screens/Screen.js.map +1 -0
- package/dist/esm/screens/ScreenTemplate.d.ts +13 -0
- package/dist/esm/screens/ScreenTemplate.d.ts.map +1 -0
- package/dist/esm/screens/ScreenTemplate.js +14 -0
- package/dist/esm/screens/ScreenTemplate.js.map +1 -0
- package/dist/esm/screens/index.d.ts +4 -0
- package/dist/esm/screens/index.d.ts.map +1 -0
- package/dist/esm/screens/index.js +4 -0
- package/dist/esm/screens/index.js.map +1 -0
- package/dist/esm/sizeClasses/HeightSizeClass.d.ts +5 -0
- package/dist/esm/sizeClasses/HeightSizeClass.d.ts.map +1 -0
- package/dist/esm/sizeClasses/HeightSizeClass.js +12 -0
- package/dist/esm/sizeClasses/HeightSizeClass.js.map +1 -0
- package/dist/esm/sizeClasses/SizeClass.d.ts +8 -0
- package/dist/esm/sizeClasses/SizeClass.d.ts.map +1 -0
- package/dist/esm/sizeClasses/SizeClass.js +9 -0
- package/dist/esm/sizeClasses/SizeClass.js.map +1 -0
- package/dist/esm/sizeClasses/WidthSizeClass.d.ts +5 -0
- package/dist/esm/sizeClasses/WidthSizeClass.d.ts.map +1 -0
- package/dist/esm/sizeClasses/WidthSizeClass.js +12 -0
- package/dist/esm/sizeClasses/WidthSizeClass.js.map +1 -0
- package/dist/esm/sizeClasses/index.d.ts +4 -0
- package/dist/esm/sizeClasses/index.d.ts.map +1 -0
- package/dist/esm/sizeClasses/index.js +4 -0
- package/dist/esm/sizeClasses/index.js.map +1 -0
- package/dist/esm/starters/UiStarter.d.ts +8 -0
- package/dist/esm/starters/UiStarter.d.ts.map +1 -0
- package/dist/esm/starters/UiStarter.js +17 -0
- package/dist/esm/starters/UiStarter.js.map +1 -0
- package/dist/esm/starters/index.d.ts +2 -0
- package/dist/esm/starters/index.d.ts.map +1 -0
- package/dist/esm/starters/index.js +2 -0
- package/dist/esm/starters/index.js.map +1 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -0
- package/elements/ContentControl.ts +14 -0
- package/elements/Control.ts +24 -0
- package/elements/ExternalComponent.ts +17 -0
- package/elements/FrameworkElement.ts +22 -0
- package/elements/ItemsControl.ts +16 -0
- package/elements/Panel.ts +14 -0
- package/elements/SceneElement.ts +13 -0
- package/elements/VisualElement.ts +18 -0
- package/elements/index.ts +11 -0
- package/for_shape/when_checking_the_mirror_matches_the_shared_manifest.ts +32 -0
- package/forms/Form.ts +17 -0
- package/forms/FormField.ts +16 -0
- package/forms/PopulateFromItem.ts +15 -0
- package/forms/PopulateSource.ts +7 -0
- package/forms/PopulateViaQuery.ts +15 -0
- package/forms/index.ts +8 -0
- package/index.ts +13 -0
- package/layouts/Arrangement.ts +12 -0
- package/layouts/ElementPlacement.ts +17 -0
- package/layouts/FlowArrangement.ts +26 -0
- package/layouts/FlowColumn.ts +14 -0
- package/layouts/FlowContainer.ts +21 -0
- package/layouts/FlowContainerKind.ts +16 -0
- package/layouts/FlowGrid.ts +16 -0
- package/layouts/FlowLeaf.ts +14 -0
- package/layouts/FlowNode.ts +13 -0
- package/layouts/FlowOverride.ts +21 -0
- package/layouts/FlowRow.ts +14 -0
- package/layouts/FlowSlotLeaf.ts +15 -0
- package/layouts/FreeformArrangement.ts +15 -0
- package/layouts/FreeformSlotArrangement.ts +17 -0
- package/layouts/FreeformSlotVariant.ts +18 -0
- package/layouts/FreeformVariant.ts +16 -0
- package/layouts/Layout.ts +26 -0
- package/layouts/Slot.ts +16 -0
- package/layouts/SlotPlacement.ts +17 -0
- package/layouts/index.ts +22 -0
- package/package.json +39 -0
- package/packages/PackageDependency.ts +23 -0
- package/packages/PackageKind.ts +35 -0
- package/packages/ScenePackage.ts +90 -0
- package/packages/index.ts +6 -0
- package/profiles/Theme.ts +64 -0
- package/profiles/UiProfile.ts +19 -0
- package/profiles/index.ts +5 -0
- package/screens/DialogTemplate.ts +57 -0
- package/screens/Screen.ts +50 -0
- package/screens/ScreenTemplate.ts +70 -0
- package/screens/index.ts +6 -0
- package/sizeClasses/HeightSizeClass.ts +10 -0
- package/sizeClasses/SizeClass.ts +16 -0
- package/sizeClasses/WidthSizeClass.ts +10 -0
- package/sizeClasses/index.ts +6 -0
- package/starters/UiStarter.ts +18 -0
- package/starters/index.ts +4 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Scene
|
|
2
|
+
|
|
3
|
+
The object model and runtime for Screenplay-based UIs: `Scene.Model` (platform-agnostic screens, layouts,
|
|
4
|
+
forms, contribution points, ui profiles and themes), `Scene.Engine` (binding/resolution runtime), and
|
|
5
|
+
`Scene.React` (the React renderer).
|
|
6
|
+
|
|
7
|
+
## Packages / Deployables
|
|
8
|
+
|
|
9
|
+
[](http://nuget.org/packages/Cratis.Scene.Model)
|
|
10
|
+
[](https://www.npmjs.com/package/@cratis/scene.model)
|
|
11
|
+
[](https://www.npmjs.com/package/@cratis/scene.engine)
|
|
12
|
+
[](https://www.npmjs.com/package/@cratis/scene.react)
|
|
13
|
+
|
|
14
|
+
## Builds
|
|
15
|
+
|
|
16
|
+
[](https://github.com/cratis/scene/actions/workflows/dotnet-build.yml)
|
|
17
|
+
[](https://github.com/cratis/scene/actions/workflows/javascript-build.yml)
|
|
18
|
+
|
|
19
|
+
## Description
|
|
20
|
+
|
|
21
|
+
Scene owns the *object model and runtime* half of the Screenplay stack. `Scene.Model` is the platform-agnostic
|
|
22
|
+
C# object model that Stage translates Screenplay's parsed language constructs into, and that Studio's
|
|
23
|
+
design-time tooling reads and writes. `Scene.Engine` walks that graph, resolves bindings (data, action, form,
|
|
24
|
+
navigation contribution) and drives whichever renderer is plugged in — it does not know React exists.
|
|
25
|
+
`Scene.React` is one renderer implementing the abstract vocabulary against real React/DOM; sibling positions
|
|
26
|
+
are reserved for future `Scene.Native` / `Scene.Desktop` renderers. Vendor and internal component packages
|
|
27
|
+
(PrimeReact, internal widget libraries) are adapters plugging into the renderer contract, not part of it.
|
|
28
|
+
|
|
29
|
+
The design-time editor built on top of this object model lives in Studio, not here — see
|
|
30
|
+
[StudioIssues#156](https://github.com/Cratis/StudioIssues/issues/156).
|
|
31
|
+
|
|
32
|
+
## Support
|
|
33
|
+
|
|
34
|
+
Cratis is an open community, and we are glad to help users, teams evaluating the stack, and contributors.
|
|
35
|
+
|
|
36
|
+
| Channel | Details |
|
|
37
|
+
|---|---|
|
|
38
|
+
| Discord | Join the community on [Discord](https://discord.gg/kt4AMpV8WV) for questions and discussions |
|
|
39
|
+
| GitHub Issues | [Report bugs or request features](https://github.com/Cratis/Scene/issues) |
|
|
40
|
+
| Documentation | Read the docs at [cratis.io](https://cratis.io) |
|
|
@@ -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
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A reference to a value already resolved by whatever produced this model (Stage translating Screenplay,
|
|
6
|
+
* or Studio's editor) — Scene never re-runs name resolution, it only carries the resolved path forward.
|
|
7
|
+
*/
|
|
8
|
+
export interface BindingExpression {
|
|
9
|
+
path: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const BindingExpressionPropertyNames: (keyof BindingExpression)[] = ['path'];
|
package/common/Color.ts
ADDED
|
@@ -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
|
+
/**
|
|
5
|
+
* Represents a color as four channels, independent of any specific rendering platform's color type.
|
|
6
|
+
*/
|
|
7
|
+
export interface Color {
|
|
8
|
+
red: number;
|
|
9
|
+
green: number;
|
|
10
|
+
blue: number;
|
|
11
|
+
alpha: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const ColorPropertyNames: (keyof Color)[] = ['red', 'green', 'blue', 'alpha'];
|
|
@@ -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
|
+
|
|
4
|
+
/**
|
|
5
|
+
* How an element aligns horizontally within the space allotted to it.
|
|
6
|
+
*/
|
|
7
|
+
export enum HorizontalAlignment {
|
|
8
|
+
Stretch = 'Stretch',
|
|
9
|
+
Left = 'Left',
|
|
10
|
+
Center = 'Center',
|
|
11
|
+
Right = 'Right',
|
|
12
|
+
}
|
package/common/Size.ts
ADDED
|
@@ -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
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Represents a width and height. Either dimension left unspecified means the renderer decides.
|
|
6
|
+
*/
|
|
7
|
+
export interface Size {
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const SizePropertyNames: (keyof Size)[] = ['width', 'height'];
|
|
@@ -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
|
+
/**
|
|
5
|
+
* Represents a uniform or per-edge thickness, used for margins and padding.
|
|
6
|
+
*/
|
|
7
|
+
export interface Thickness {
|
|
8
|
+
left: number;
|
|
9
|
+
top: number;
|
|
10
|
+
right: number;
|
|
11
|
+
bottom: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const ThicknessPropertyNames: (keyof Thickness)[] = ['left', 'top', 'right', 'bottom'];
|
|
@@ -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
|
+
|
|
4
|
+
/**
|
|
5
|
+
* How an element aligns vertically within the space allotted to it.
|
|
6
|
+
*/
|
|
7
|
+
export enum VerticalAlignment {
|
|
8
|
+
Stretch = 'Stretch',
|
|
9
|
+
Top = 'Top',
|
|
10
|
+
Center = 'Center',
|
|
11
|
+
Bottom = 'Bottom',
|
|
12
|
+
}
|
|
@@ -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
|
+
/**
|
|
5
|
+
* The visibility of an element.
|
|
6
|
+
*/
|
|
7
|
+
export enum Visibility {
|
|
8
|
+
Visible = 'Visible',
|
|
9
|
+
Hidden = 'Hidden',
|
|
10
|
+
Collapsed = 'Collapsed',
|
|
11
|
+
}
|
package/common/index.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export * from './Color';
|
|
5
|
+
export * from './Size';
|
|
6
|
+
export * from './Thickness';
|
|
7
|
+
export * from './HorizontalAlignment';
|
|
8
|
+
export * from './VerticalAlignment';
|
|
9
|
+
export * from './Visibility';
|
|
10
|
+
export * from './BindingExpression';
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
import { SceneElement } from '../elements';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* One piece of content contributed to a {@link ContributionPoint}. Resolution to a specific
|
|
8
|
+
* contribution point (nearest enclosing, or an explicit `... in <ContributionPoint>` override) happens
|
|
9
|
+
* before this model is built — this record already carries the resolved target.
|
|
10
|
+
*/
|
|
11
|
+
export interface Contribution {
|
|
12
|
+
contributionPointName: string;
|
|
13
|
+
content: SceneElement;
|
|
14
|
+
order?: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const ContributionPropertyNames: (keyof Contribution)[] = ['contributionPointName', 'content', 'order'];
|
|
@@ -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
|
+
/**
|
|
5
|
+
* A named point in the element tree that a widget declares (`contributes <Name>`) and that other
|
|
6
|
+
* templates contribute content to (`contribute to <Name>`). Aggregation is a computed view over
|
|
7
|
+
* whatever is currently contributed from the tree beneath it — a widget bound to a contribution point
|
|
8
|
+
* is never wired to a fixed source.
|
|
9
|
+
*/
|
|
10
|
+
export interface ContributionPoint {
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const ContributionPointPropertyNames: (keyof ContributionPoint)[] = ['name'];
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
import { BindingExpression } from '../common';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A contribution to the built-in `Navigation` contribution point. How `navigate to <Screen>` becomes a
|
|
8
|
+
* concrete route (URL path, query string, or native deep link) is owned by the renderer's NavBar widget,
|
|
9
|
+
* not this record — this only carries the declared shape.
|
|
10
|
+
*/
|
|
11
|
+
export interface NavigationItem {
|
|
12
|
+
label: string;
|
|
13
|
+
targetScreen: string;
|
|
14
|
+
routeParameterBindings: Record<string, BindingExpression>;
|
|
15
|
+
order?: number;
|
|
16
|
+
group?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const NavigationItemPropertyNames: (keyof NavigationItem)[] = [
|
|
20
|
+
'label', 'targetScreen', 'routeParameterBindings', 'order', 'group',
|
|
21
|
+
];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* A reference to a value already resolved by whatever produced this model (Stage translating Screenplay,
|
|
7
|
+
* or Studio's editor) — Scene never re-runs name resolution, it only carries the resolved path forward.
|
|
8
|
+
*/ const BindingExpressionPropertyNames = [
|
|
9
|
+
'path'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.BindingExpressionPropertyNames = BindingExpressionPropertyNames;
|
|
13
|
+
//# sourceMappingURL=BindingExpression.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BindingExpression.js","sources":["../../../common/BindingExpression.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 reference to a value already resolved by whatever produced this model (Stage translating Screenplay,\n * or Studio's editor) — Scene never re-runs name resolution, it only carries the resolved path forward.\n */\nexport interface BindingExpression {\n path: string;\n}\n\nexport const BindingExpressionPropertyNames: (keyof BindingExpression)[] = ['path'];\n"],"names":["BindingExpressionPropertyNames"],"mappings":";;AAAA;AACA;AAEA;;;UAQaA,8BAAAA,GAA8D;AAAC,IAAA;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* Represents a color as four channels, independent of any specific rendering platform's color type.
|
|
7
|
+
*/ const ColorPropertyNames = [
|
|
8
|
+
'red',
|
|
9
|
+
'green',
|
|
10
|
+
'blue',
|
|
11
|
+
'alpha'
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
exports.ColorPropertyNames = ColorPropertyNames;
|
|
15
|
+
//# sourceMappingURL=Color.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Color.js","sources":["../../../common/Color.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 * Represents a color as four channels, independent of any specific rendering platform's color type.\n */\nexport interface Color {\n red: number;\n green: number;\n blue: number;\n alpha: number;\n}\n\nexport const ColorPropertyNames: (keyof Color)[] = ['red', 'green', 'blue', 'alpha'];\n"],"names":["ColorPropertyNames"],"mappings":";;AAAA;AACA;AAEA;;UAUaA,kBAAAA,GAAsC;AAAC,IAAA,KAAA;AAAO,IAAA,OAAA;AAAS,IAAA,MAAA;AAAQ,IAAA;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* How an element aligns horizontally within the space allotted to it.
|
|
7
|
+
*/ var HorizontalAlignment = /*#__PURE__*/ function(HorizontalAlignment) {
|
|
8
|
+
HorizontalAlignment["Stretch"] = "Stretch";
|
|
9
|
+
HorizontalAlignment["Left"] = "Left";
|
|
10
|
+
HorizontalAlignment["Center"] = "Center";
|
|
11
|
+
HorizontalAlignment["Right"] = "Right";
|
|
12
|
+
return HorizontalAlignment;
|
|
13
|
+
}({});
|
|
14
|
+
|
|
15
|
+
exports.HorizontalAlignment = HorizontalAlignment;
|
|
16
|
+
//# sourceMappingURL=HorizontalAlignment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalAlignment.js","sources":["../../../common/HorizontalAlignment.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 * How an element aligns horizontally within the space allotted to it.\n */\nexport enum HorizontalAlignment {\n Stretch = 'Stretch',\n Left = 'Left',\n Center = 'Center',\n Right = 'Right',\n}\n"],"names":["HorizontalAlignment"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,mBAAAA,iBAAAA,SAAAA,mBAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,mBAAAA;AAKX,CAAA,CAAA,EAAA;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* Represents a width and height. Either dimension left unspecified means the renderer decides.
|
|
7
|
+
*/ const SizePropertyNames = [
|
|
8
|
+
'width',
|
|
9
|
+
'height'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.SizePropertyNames = SizePropertyNames;
|
|
13
|
+
//# sourceMappingURL=Size.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Size.js","sources":["../../../common/Size.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 * Represents a width and height. Either dimension left unspecified means the renderer decides.\n */\nexport interface Size {\n width?: number;\n height?: number;\n}\n\nexport const SizePropertyNames: (keyof Size)[] = ['width', 'height'];\n"],"names":["SizePropertyNames"],"mappings":";;AAAA;AACA;AAEA;;UAQaA,iBAAAA,GAAoC;AAAC,IAAA,OAAA;AAAS,IAAA;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* Represents a uniform or per-edge thickness, used for margins and padding.
|
|
7
|
+
*/ const ThicknessPropertyNames = [
|
|
8
|
+
'left',
|
|
9
|
+
'top',
|
|
10
|
+
'right',
|
|
11
|
+
'bottom'
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
exports.ThicknessPropertyNames = ThicknessPropertyNames;
|
|
15
|
+
//# sourceMappingURL=Thickness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Thickness.js","sources":["../../../common/Thickness.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 * Represents a uniform or per-edge thickness, used for margins and padding.\n */\nexport interface Thickness {\n left: number;\n top: number;\n right: number;\n bottom: number;\n}\n\nexport const ThicknessPropertyNames: (keyof Thickness)[] = ['left', 'top', 'right', 'bottom'];\n"],"names":["ThicknessPropertyNames"],"mappings":";;AAAA;AACA;AAEA;;UAUaA,sBAAAA,GAA8C;AAAC,IAAA,MAAA;AAAQ,IAAA,KAAA;AAAO,IAAA,OAAA;AAAS,IAAA;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* How an element aligns vertically within the space allotted to it.
|
|
7
|
+
*/ var VerticalAlignment = /*#__PURE__*/ function(VerticalAlignment) {
|
|
8
|
+
VerticalAlignment["Stretch"] = "Stretch";
|
|
9
|
+
VerticalAlignment["Top"] = "Top";
|
|
10
|
+
VerticalAlignment["Center"] = "Center";
|
|
11
|
+
VerticalAlignment["Bottom"] = "Bottom";
|
|
12
|
+
return VerticalAlignment;
|
|
13
|
+
}({});
|
|
14
|
+
|
|
15
|
+
exports.VerticalAlignment = VerticalAlignment;
|
|
16
|
+
//# sourceMappingURL=VerticalAlignment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerticalAlignment.js","sources":["../../../common/VerticalAlignment.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 * How an element aligns vertically within the space allotted to it.\n */\nexport enum VerticalAlignment {\n Stretch = 'Stretch',\n Top = 'Top',\n Center = 'Center',\n Bottom = 'Bottom',\n}\n"],"names":["VerticalAlignment"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,iBAAAA,iBAAAA,SAAAA,iBAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,iBAAAA;AAKX,CAAA,CAAA,EAAA;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* The visibility of an element.
|
|
7
|
+
*/ var Visibility = /*#__PURE__*/ function(Visibility) {
|
|
8
|
+
Visibility["Visible"] = "Visible";
|
|
9
|
+
Visibility["Hidden"] = "Hidden";
|
|
10
|
+
Visibility["Collapsed"] = "Collapsed";
|
|
11
|
+
return Visibility;
|
|
12
|
+
}({});
|
|
13
|
+
|
|
14
|
+
exports.Visibility = Visibility;
|
|
15
|
+
//# sourceMappingURL=Visibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Visibility.js","sources":["../../../common/Visibility.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 visibility of an element.\n */\nexport enum Visibility {\n Visible = 'Visible',\n Hidden = 'Hidden',\n Collapsed = 'Collapsed',\n}\n"],"names":["Visibility"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,UAAAA,iBAAAA,SAAAA,UAAAA,EAAAA;;;;AAAAA,IAAAA,OAAAA,UAAAA;AAIX,CAAA,CAAA,EAAA;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const ContributionPropertyNames = [
|
|
6
|
+
'contributionPointName',
|
|
7
|
+
'content',
|
|
8
|
+
'order'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
exports.ContributionPropertyNames = ContributionPropertyNames;
|
|
12
|
+
//# sourceMappingURL=Contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Contribution.js","sources":["../../../contributionPoints/Contribution.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';\n\n/**\n * One piece of content contributed to a {@link ContributionPoint}. Resolution to a specific\n * contribution point (nearest enclosing, or an explicit `... in <ContributionPoint>` override) happens\n * before this model is built — this record already carries the resolved target.\n */\nexport interface Contribution {\n contributionPointName: string;\n content: SceneElement;\n order?: number;\n}\n\nexport const ContributionPropertyNames: (keyof Contribution)[] = ['contributionPointName', 'content', 'order'];\n"],"names":["ContributionPropertyNames"],"mappings":";;AAAA;AACA;MAeaA,yBAAAA,GAAoD;AAAC,IAAA,uBAAA;AAAyB,IAAA,SAAA;AAAW,IAAA;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* A named point in the element tree that a widget declares (`contributes <Name>`) and that other
|
|
7
|
+
* templates contribute content to (`contribute to <Name>`). Aggregation is a computed view over
|
|
8
|
+
* whatever is currently contributed from the tree beneath it — a widget bound to a contribution point
|
|
9
|
+
* is never wired to a fixed source.
|
|
10
|
+
*/ const ContributionPointPropertyNames = [
|
|
11
|
+
'name'
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
exports.ContributionPointPropertyNames = ContributionPointPropertyNames;
|
|
15
|
+
//# sourceMappingURL=ContributionPoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContributionPoint.js","sources":["../../../contributionPoints/ContributionPoint.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 point in the element tree that a widget declares (`contributes <Name>`) and that other\n * templates contribute content to (`contribute to <Name>`). Aggregation is a computed view over\n * whatever is currently contributed from the tree beneath it — a widget bound to a contribution point\n * is never wired to a fixed source.\n */\nexport interface ContributionPoint {\n name: string;\n}\n\nexport const ContributionPointPropertyNames: (keyof ContributionPoint)[] = ['name'];\n"],"names":["ContributionPointPropertyNames"],"mappings":";;AAAA;AACA;AAEA;;;;;UAUaA,8BAAAA,GAA8D;AAAC,IAAA;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const NavigationItemPropertyNames = [
|
|
6
|
+
'label',
|
|
7
|
+
'targetScreen',
|
|
8
|
+
'routeParameterBindings',
|
|
9
|
+
'order',
|
|
10
|
+
'group'
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
exports.NavigationItemPropertyNames = NavigationItemPropertyNames;
|
|
14
|
+
//# sourceMappingURL=NavigationItem.js.map
|
|
@@ -0,0 +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;MAiBaA,2BAAAA,GAAwD;AACjE,IAAA,OAAA;AAAS,IAAA,cAAA;AAAgB,IAAA,wBAAA;AAA0B,IAAA,OAAA;AAAS,IAAA;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const ContentControlPropertyNames = [
|
|
6
|
+
'content'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
exports.ContentControlPropertyNames = ContentControlPropertyNames;
|
|
10
|
+
//# sourceMappingURL=ContentControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentControl.js","sources":["../../../elements/ContentControl.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 { Control } from './Control';\nimport { SceneElement } from './SceneElement';\n\n/**\n * A {@link Control} that hosts a single piece of content.\n */\nexport interface ContentControl extends Control {\n content: SceneElement;\n}\n\nexport const ContentControlPropertyNames: (keyof ContentControl)[] = ['content'];\n"],"names":["ContentControlPropertyNames"],"mappings":";;AAAA;AACA;MAYaA,2BAAAA,GAAwD;AAAC,IAAA;;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const ControlPropertyNames = [
|
|
6
|
+
'background',
|
|
7
|
+
'foreground',
|
|
8
|
+
'borderColor',
|
|
9
|
+
'borderThickness',
|
|
10
|
+
'padding',
|
|
11
|
+
'fontFamily',
|
|
12
|
+
'fontSize',
|
|
13
|
+
'tabIndex'
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
exports.ControlPropertyNames = ControlPropertyNames;
|
|
17
|
+
//# sourceMappingURL=Control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Control.js","sources":["../../../elements/Control.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 { FrameworkElement } from './FrameworkElement';\nimport { Color, Thickness } from '../common';\n\n/**\n * A {@link FrameworkElement} that can be styled with colors, spacing and typography, and that\n * participates in tab order.\n */\nexport interface Control extends FrameworkElement {\n background?: Color;\n foreground?: Color;\n borderColor?: Color;\n borderThickness: Thickness;\n padding: Thickness;\n fontFamily?: string;\n fontSize?: number;\n tabIndex: number;\n}\n\nexport const ControlPropertyNames: (keyof Control)[] = [\n 'background', 'foreground', 'borderColor', 'borderThickness', 'padding', 'fontFamily', 'fontSize', 'tabIndex',\n];\n"],"names":["ControlPropertyNames"],"mappings":";;AAAA;AACA;MAoBaA,oBAAAA,GAA0C;AACnD,IAAA,YAAA;AAAc,IAAA,YAAA;AAAc,IAAA,aAAA;AAAe,IAAA,iBAAA;AAAmB,IAAA,SAAA;AAAW,IAAA,YAAA;AAAc,IAAA,UAAA;AAAY,IAAA;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const ExternalComponentPropertyNames = [
|
|
6
|
+
'componentName',
|
|
7
|
+
'slots'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
exports.ExternalComponentPropertyNames = ExternalComponentPropertyNames;
|
|
11
|
+
//# sourceMappingURL=ExternalComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalComponent.js","sources":["../../../elements/ExternalComponent.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 { FrameworkElement } from './FrameworkElement';\nimport { SceneElement } from './SceneElement';\n\n/**\n * A {@link FrameworkElement} resolved to a named component from a ui profile's package list rather\n * than a type modeled natively here. Vendor and internal widget libraries (PrimeReact, internal widgets)\n * plug into a renderer through this element — they are adapters, not part of the core vocabulary.\n */\nexport interface ExternalComponent extends FrameworkElement {\n componentName: string;\n slots: Record<string, SceneElement[]>;\n}\n\nexport const ExternalComponentPropertyNames: (keyof ExternalComponent)[] = ['componentName', 'slots'];\n"],"names":["ExternalComponentPropertyNames"],"mappings":";;AAAA;AACA;MAeaA,8BAAAA,GAA8D;AAAC,IAAA,eAAA;AAAiB,IAAA;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const FrameworkElementPropertyNames = [
|
|
6
|
+
'name',
|
|
7
|
+
'minimumSize',
|
|
8
|
+
'maximumSize',
|
|
9
|
+
'margin',
|
|
10
|
+
'horizontalAlignment',
|
|
11
|
+
'verticalAlignment'
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
exports.FrameworkElementPropertyNames = FrameworkElementPropertyNames;
|
|
15
|
+
//# sourceMappingURL=FrameworkElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrameworkElement.js","sources":["../../../elements/FrameworkElement.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 { VisualElement } from './VisualElement';\nimport { Size, Thickness, HorizontalAlignment, VerticalAlignment } from '../common';\n\n/**\n * A {@link VisualElement} that participates in layout: it has a name, size constraints,\n * margin and alignment within the space allotted to it by its parent.\n */\nexport interface FrameworkElement extends VisualElement {\n name: string;\n minimumSize: Size;\n maximumSize: Size;\n margin: Thickness;\n horizontalAlignment: HorizontalAlignment;\n verticalAlignment: VerticalAlignment;\n}\n\nexport const FrameworkElementPropertyNames: (keyof FrameworkElement)[] = [\n 'name', 'minimumSize', 'maximumSize', 'margin', 'horizontalAlignment', 'verticalAlignment',\n];\n"],"names":["FrameworkElementPropertyNames"],"mappings":";;AAAA;AACA;MAkBaA,6BAAAA,GAA4D;AACrE,IAAA,MAAA;AAAQ,IAAA,aAAA;AAAe,IAAA,aAAA;AAAe,IAAA,QAAA;AAAU,IAAA,qBAAA;AAAuB,IAAA;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const ItemsControlPropertyNames = [
|
|
6
|
+
'itemsSource',
|
|
7
|
+
'itemTemplate'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
exports.ItemsControlPropertyNames = ItemsControlPropertyNames;
|
|
11
|
+
//# sourceMappingURL=ItemsControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemsControl.js","sources":["../../../elements/ItemsControl.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 { Control } from './Control';\nimport { SceneElement } from './SceneElement';\nimport { BindingExpression } from '../common';\n\n/**\n * A {@link Control} that renders one instance of an item template per item in a bound collection.\n */\nexport interface ItemsControl extends Control {\n itemsSource: BindingExpression;\n itemTemplate: SceneElement;\n}\n\nexport const ItemsControlPropertyNames: (keyof ItemsControl)[] = ['itemsSource', 'itemTemplate'];\n"],"names":["ItemsControlPropertyNames"],"mappings":";;AAAA;AACA;MAcaA,yBAAAA,GAAoD;AAAC,IAAA,aAAA;AAAe,IAAA;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const PanelPropertyNames = [
|
|
6
|
+
'children'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
exports.PanelPropertyNames = PanelPropertyNames;
|
|
10
|
+
//# sourceMappingURL=Panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Panel.js","sources":["../../../elements/Panel.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 { FrameworkElement } from './FrameworkElement';\nimport { SceneElement } from './SceneElement';\n\n/**\n * A {@link FrameworkElement} that lays out an arbitrary number of children.\n */\nexport interface Panel extends FrameworkElement {\n children: SceneElement[];\n}\n\nexport const PanelPropertyNames: (keyof Panel)[] = ['children'];\n"],"names":["PanelPropertyNames"],"mappings":";;AAAA;AACA;MAYaA,kBAAAA,GAAsC;AAAC,IAAA;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* The root of every node in a Scene element tree. Named `SceneElement` rather than `Element` to avoid
|
|
7
|
+
* colliding with the DOM's own global `Element` type, which every consumer of this package also has in scope.
|
|
8
|
+
*/ const SceneElementPropertyNames = [
|
|
9
|
+
'id',
|
|
10
|
+
'properties'
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
exports.SceneElementPropertyNames = SceneElementPropertyNames;
|
|
14
|
+
//# sourceMappingURL=SceneElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SceneElement.js","sources":["../../../elements/SceneElement.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 root of every node in a Scene element tree. Named `SceneElement` rather than `Element` to avoid\n * colliding with the DOM's own global `Element` type, which every consumer of this package also has in scope.\n */\nexport interface SceneElement {\n id: string;\n properties: Record<string, unknown>;\n}\n\nexport const SceneElementPropertyNames: (keyof SceneElement)[] = ['id', 'properties'];\n"],"names":["SceneElementPropertyNames"],"mappings":";;AAAA;AACA;AAEA;;;UASaA,yBAAAA,GAAoD;AAAC,IAAA,IAAA;AAAM,IAAA;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const VisualElementPropertyNames = [
|
|
6
|
+
'visibility',
|
|
7
|
+
'isEnabled',
|
|
8
|
+
'opacity',
|
|
9
|
+
'size',
|
|
10
|
+
'zIndex'
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
exports.VisualElementPropertyNames = VisualElementPropertyNames;
|
|
14
|
+
//# sourceMappingURL=VisualElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisualElement.js","sources":["../../../elements/VisualElement.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 './SceneElement';\nimport { Visibility, Size } from '../common';\n\n/**\n * A {@link SceneElement} that occupies space and can be shown or hidden.\n */\nexport interface VisualElement extends SceneElement {\n visibility: Visibility;\n isEnabled: boolean;\n opacity: number;\n size: Size;\n zIndex: number;\n}\n\nexport const VisualElementPropertyNames: (keyof VisualElement)[] = ['visibility', 'isEnabled', 'opacity', 'size', 'zIndex'];\n"],"names":["VisualElementPropertyNames"],"mappings":";;AAAA;AACA;MAgBaA,0BAAAA,GAAsD;AAAC,IAAA,YAAA;AAAc,IAAA,WAAA;AAAa,IAAA,SAAA;AAAW,IAAA,MAAA;AAAQ,IAAA;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const FormPropertyNames = [
|
|
6
|
+
'name',
|
|
7
|
+
'forCommand',
|
|
8
|
+
'populateSource',
|
|
9
|
+
'fields'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.FormPropertyNames = FormPropertyNames;
|
|
13
|
+
//# sourceMappingURL=Form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.js","sources":["../../../forms/Form.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 { PopulateSource } from './PopulateSource';\nimport { FormField } from './FormField';\n\n/**\n * The command-side counterpart to a table or summary: a named, typed form for one command.\n */\nexport interface Form {\n name: string;\n forCommand: string;\n populateSource?: PopulateSource;\n fields: FormField[];\n}\n\nexport const FormPropertyNames: (keyof Form)[] = ['name', 'forCommand', 'populateSource', 'fields'];\n"],"names":["FormPropertyNames"],"mappings":";;AAAA;AACA;MAeaA,iBAAAA,GAAoC;AAAC,IAAA,MAAA;AAAQ,IAAA,YAAA;AAAc,IAAA,gBAAA;AAAkB,IAAA;;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* One field of a {@link Form}. Mirrors the three population tiers Screenplay's `form` construct
|
|
7
|
+
* establishes: auto-mapped by name (`sourceProperty` and `composeUsing` both undefined), explicitly
|
|
8
|
+
* renamed (`sourceProperty` set), or computed by a callback (`composeUsing` set).
|
|
9
|
+
*/ const FormFieldPropertyNames = [
|
|
10
|
+
'name',
|
|
11
|
+
'sourceProperty',
|
|
12
|
+
'composeUsing',
|
|
13
|
+
'label'
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
exports.FormFieldPropertyNames = FormFieldPropertyNames;
|
|
17
|
+
//# sourceMappingURL=FormField.js.map
|