@cratis/scene.model 4.25.0 → 4.27.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/descriptors/CollectionOperation.ts +6 -0
- package/dist/cjs/descriptors/CollectionOperation.js +4 -0
- package/dist/cjs/descriptors/CollectionOperation.js.map +1 -1
- package/dist/cjs/exposure/InstanceContribution.js +2 -1
- package/dist/cjs/exposure/InstanceContribution.js.map +1 -1
- package/dist/cjs/index.js +34 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/navigation/ApplicationLogo.js +13 -0
- package/dist/cjs/navigation/ApplicationLogo.js.map +1 -0
- package/dist/cjs/navigation/ApplicationNavigation.js +11 -0
- package/dist/cjs/navigation/ApplicationNavigation.js.map +1 -0
- package/dist/cjs/navigation/ModuleNavigation.js +11 -0
- package/dist/cjs/navigation/ModuleNavigation.js.map +1 -0
- package/dist/cjs/navigation/NavItem.js +15 -0
- package/dist/cjs/navigation/NavItem.js.map +1 -0
- package/dist/cjs/navigation/NavigationModel.js +11 -0
- package/dist/cjs/navigation/NavigationModel.js.map +1 -0
- package/dist/cjs/navigation/NavigationRegion.js +12 -0
- package/dist/cjs/navigation/NavigationRegion.js.map +1 -0
- package/dist/cjs/navigation/NavigationRegionKind.js +14 -0
- package/dist/cjs/navigation/NavigationRegionKind.js.map +1 -0
- package/dist/cjs/navigation/NavigationRegionMode.js +15 -0
- package/dist/cjs/navigation/NavigationRegionMode.js.map +1 -0
- package/dist/cjs/packages/ScenePackage.js +2 -1
- package/dist/cjs/packages/ScenePackage.js.map +1 -1
- package/dist/cjs/profiles/UiProfile.js +2 -1
- package/dist/cjs/profiles/UiProfile.js.map +1 -1
- package/dist/cjs/sampleData/SampleDataBinding.js +13 -0
- package/dist/cjs/sampleData/SampleDataBinding.js.map +1 -0
- package/dist/cjs/sampleData/SampleDataMapping.js +13 -0
- package/dist/cjs/sampleData/SampleDataMapping.js.map +1 -0
- package/dist/cjs/sampleData/SampleDataPack.js +14 -0
- package/dist/cjs/sampleData/SampleDataPack.js.map +1 -0
- package/dist/cjs/sampleData/SampleDataPackReference.js +16 -0
- package/dist/cjs/sampleData/SampleDataPackReference.js.map +1 -0
- package/dist/cjs/sampleData/SampleDataSelection.js +12 -0
- package/dist/cjs/sampleData/SampleDataSelection.js.map +1 -0
- package/dist/cjs/sampleData/SampleDataSet.js +13 -0
- package/dist/cjs/sampleData/SampleDataSet.js.map +1 -0
- package/dist/cjs/sampleData/SampleFieldKind.js +27 -0
- package/dist/cjs/sampleData/SampleFieldKind.js.map +1 -0
- package/dist/cjs/sampleData/SampleShape.js +11 -0
- package/dist/cjs/sampleData/SampleShape.js.map +1 -0
- package/dist/cjs/sampleData/SampleShapeField.js +16 -0
- package/dist/cjs/sampleData/SampleShapeField.js.map +1 -0
- package/dist/esm/descriptors/CollectionOperation.d.ts +2 -1
- package/dist/esm/descriptors/CollectionOperation.d.ts.map +1 -1
- package/dist/esm/descriptors/CollectionOperation.js +4 -0
- package/dist/esm/descriptors/CollectionOperation.js.map +1 -1
- package/dist/esm/exposure/InstanceContribution.d.ts +1 -0
- package/dist/esm/exposure/InstanceContribution.d.ts.map +1 -1
- package/dist/esm/exposure/InstanceContribution.js +2 -1
- package/dist/esm/exposure/InstanceContribution.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +17 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/navigation/ApplicationLogo.d.ts +6 -0
- package/dist/esm/navigation/ApplicationLogo.d.ts.map +1 -0
- package/dist/esm/navigation/ApplicationLogo.js +11 -0
- package/dist/esm/navigation/ApplicationLogo.js.map +1 -0
- package/dist/esm/navigation/ApplicationNavigation.d.ts +8 -0
- package/dist/esm/navigation/ApplicationNavigation.d.ts.map +1 -0
- package/dist/esm/navigation/ApplicationNavigation.js +9 -0
- package/dist/esm/navigation/ApplicationNavigation.js.map +1 -0
- package/dist/esm/navigation/ModuleNavigation.d.ts +7 -0
- package/dist/esm/navigation/ModuleNavigation.d.ts.map +1 -0
- package/dist/esm/navigation/ModuleNavigation.js +9 -0
- package/dist/esm/navigation/ModuleNavigation.js.map +1 -0
- package/dist/esm/navigation/NavItem.d.ts +11 -0
- package/dist/esm/navigation/NavItem.d.ts.map +1 -0
- package/dist/esm/navigation/NavItem.js +13 -0
- package/dist/esm/navigation/NavItem.js.map +1 -0
- package/dist/esm/navigation/NavigationModel.d.ts +8 -0
- package/dist/esm/navigation/NavigationModel.d.ts.map +1 -0
- package/dist/esm/navigation/NavigationModel.js +9 -0
- package/dist/esm/navigation/NavigationModel.js.map +1 -0
- package/dist/esm/navigation/NavigationRegion.d.ts +10 -0
- package/dist/esm/navigation/NavigationRegion.d.ts.map +1 -0
- package/dist/esm/navigation/NavigationRegion.js +10 -0
- package/dist/esm/navigation/NavigationRegion.js.map +1 -0
- package/dist/esm/navigation/NavigationRegionKind.d.ts +5 -0
- package/dist/esm/navigation/NavigationRegionKind.d.ts.map +1 -0
- package/dist/esm/navigation/NavigationRegionKind.js +12 -0
- package/dist/esm/navigation/NavigationRegionKind.js.map +1 -0
- package/dist/esm/navigation/NavigationRegionMode.d.ts +6 -0
- package/dist/esm/navigation/NavigationRegionMode.d.ts.map +1 -0
- package/dist/esm/navigation/NavigationRegionMode.js +13 -0
- package/dist/esm/navigation/NavigationRegionMode.js.map +1 -0
- package/dist/esm/navigation/index.d.ts +9 -0
- package/dist/esm/navigation/index.d.ts.map +1 -0
- package/dist/esm/navigation/index.js +9 -0
- package/dist/esm/navigation/index.js.map +1 -0
- package/dist/esm/packages/ScenePackage.d.ts +2 -0
- package/dist/esm/packages/ScenePackage.d.ts.map +1 -1
- package/dist/esm/packages/ScenePackage.js +2 -1
- package/dist/esm/packages/ScenePackage.js.map +1 -1
- package/dist/esm/profiles/UiProfile.d.ts +2 -0
- package/dist/esm/profiles/UiProfile.d.ts.map +1 -1
- package/dist/esm/profiles/UiProfile.js +2 -1
- package/dist/esm/profiles/UiProfile.js.map +1 -1
- package/dist/esm/sampleData/SampleDataBinding.d.ts +6 -0
- package/dist/esm/sampleData/SampleDataBinding.d.ts.map +1 -0
- package/dist/esm/sampleData/SampleDataBinding.js +11 -0
- package/dist/esm/sampleData/SampleDataBinding.js.map +1 -0
- package/dist/esm/sampleData/SampleDataMapping.d.ts +6 -0
- package/dist/esm/sampleData/SampleDataMapping.d.ts.map +1 -0
- package/dist/esm/sampleData/SampleDataMapping.js +11 -0
- package/dist/esm/sampleData/SampleDataMapping.js.map +1 -0
- package/dist/esm/sampleData/SampleDataPack.d.ts +10 -0
- package/dist/esm/sampleData/SampleDataPack.d.ts.map +1 -0
- package/dist/esm/sampleData/SampleDataPack.js +12 -0
- package/dist/esm/sampleData/SampleDataPack.js.map +1 -0
- package/dist/esm/sampleData/SampleDataPackReference.d.ts +8 -0
- package/dist/esm/sampleData/SampleDataPackReference.d.ts.map +1 -0
- package/dist/esm/sampleData/SampleDataPackReference.js +14 -0
- package/dist/esm/sampleData/SampleDataPackReference.js.map +1 -0
- package/dist/esm/sampleData/SampleDataSelection.d.ts +9 -0
- package/dist/esm/sampleData/SampleDataSelection.d.ts.map +1 -0
- package/dist/esm/sampleData/SampleDataSelection.js +10 -0
- package/dist/esm/sampleData/SampleDataSelection.js.map +1 -0
- package/dist/esm/sampleData/SampleDataSet.d.ts +6 -0
- package/dist/esm/sampleData/SampleDataSet.d.ts.map +1 -0
- package/dist/esm/sampleData/SampleDataSet.js +11 -0
- package/dist/esm/sampleData/SampleDataSet.js.map +1 -0
- package/dist/esm/sampleData/SampleFieldKind.d.ts +16 -0
- package/dist/esm/sampleData/SampleFieldKind.d.ts.map +1 -0
- package/dist/esm/sampleData/SampleFieldKind.js +25 -0
- package/dist/esm/sampleData/SampleFieldKind.js.map +1 -0
- package/dist/esm/sampleData/SampleShape.d.ts +7 -0
- package/dist/esm/sampleData/SampleShape.d.ts.map +1 -0
- package/dist/esm/sampleData/SampleShape.js +9 -0
- package/dist/esm/sampleData/SampleShape.js.map +1 -0
- package/dist/esm/sampleData/SampleShapeField.d.ts +12 -0
- package/dist/esm/sampleData/SampleShapeField.d.ts.map +1 -0
- package/dist/esm/sampleData/SampleShapeField.js +14 -0
- package/dist/esm/sampleData/SampleShapeField.js.map +1 -0
- package/dist/esm/sampleData/index.d.ts +10 -0
- package/dist/esm/sampleData/index.d.ts.map +1 -0
- package/dist/esm/sampleData/index.js +10 -0
- package/dist/esm/sampleData/index.js.map +1 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/exposure/InstanceContribution.ts +8 -1
- package/index.ts +2 -0
- package/navigation/ApplicationLogo.ts +15 -0
- package/navigation/ApplicationNavigation.ts +18 -0
- package/navigation/ModuleNavigation.ts +17 -0
- package/navigation/NavItem.ts +32 -0
- package/navigation/NavigationModel.ts +18 -0
- package/navigation/NavigationRegion.ts +25 -0
- package/navigation/NavigationRegionKind.ts +13 -0
- package/navigation/NavigationRegionMode.ts +16 -0
- package/navigation/index.ts +11 -0
- package/package.json +1 -1
- package/packages/ScenePackage.ts +8 -0
- package/profiles/UiProfile.ts +10 -0
- package/sampleData/SampleDataBinding.ts +15 -0
- package/sampleData/SampleDataMapping.ts +15 -0
- package/sampleData/SampleDataPack.ts +27 -0
- package/sampleData/SampleDataPackReference.ts +22 -0
- package/sampleData/SampleDataSelection.ts +24 -0
- package/sampleData/SampleDataSet.ts +15 -0
- package/sampleData/SampleFieldKind.ts +48 -0
- package/sampleData/SampleShape.ts +18 -0
- package/sampleData/SampleShapeField.ts +33 -0
- package/sampleData/index.ts +12 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstanceContribution.d.ts","sourceRoot":"","sources":["../../../exposure/InstanceContribution.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAYpD,MAAM,WAAW,oBAAoB;IAKjC,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,CAAC,EAAE,OAAO,CAAC;IAGhB,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"InstanceContribution.d.ts","sourceRoot":"","sources":["../../../exposure/InstanceContribution.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAYpD,MAAM,WAAW,oBAAoB;IAKjC,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,CAAC,EAAE,OAAO,CAAC;IAGhB,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;IAO1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,iCAAiC,EAAE,CAAC,MAAM,oBAAoB,CAAC,EAA6E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstanceContribution.js","sources":["../../../exposure/InstanceContribution.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 { ContributedItem } from './ContributedItem';\n\n/**\n * What one template instance sets on one exposed property.\n *\n * Contributions are kept apart from the template they configure - a screen filling a template stores its own\n * values here and never a copy of the template tree, so changing the template reaches every instance. They are\n * keyed by instance, component and property path; collection items by their own id.\n *\n * A scalar property carries `value`; a collection carries `items`, which are appended after the owner's own items\n * in the order given.\n */\nexport interface InstanceContribution {\n /**\n * The instance contributing: `screen:<name>` for a screen filling a template, `template:<name>` for a\n * template sitting inside another template's slot, `dialog:<name>` for a dialog.\n */\n instance: string;\n\n /** The id of the element the property belongs to. */\n component: string;\n\n /** The property's path. */\n path: string;\n\n /** The value of a scalar property. */\n value?: unknown;\n\n /** The items a collection property gets from this instance, in order. */\n items?: ContributedItem[];\n}\n\nexport const InstanceContributionPropertyNames: (keyof InstanceContribution)[] = ['instance', 'component', 'path', 'value', 'items'];\n"],"names":["InstanceContributionPropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"InstanceContribution.js","sources":["../../../exposure/InstanceContribution.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 { ContributedItem } from './ContributedItem';\n\n/**\n * What one template instance sets on one exposed property.\n *\n * Contributions are kept apart from the template they configure - a screen filling a template stores its own\n * values here and never a copy of the template tree, so changing the template reaches every instance. They are\n * keyed by instance, component and property path; collection items by their own id.\n *\n * A scalar property carries `value`; a collection carries `items`, which are appended after the owner's own items\n * in the order given.\n */\nexport interface InstanceContribution {\n /**\n * The instance contributing: `screen:<name>` for a screen filling a template, `template:<name>` for a\n * template sitting inside another template's slot, `dialog:<name>` for a dialog.\n */\n instance: string;\n\n /** The id of the element the property belongs to. */\n component: string;\n\n /** The property's path. */\n path: string;\n\n /** The value of a scalar property. */\n value?: unknown;\n\n /** The items a collection property gets from this instance, in order. */\n items?: ContributedItem[];\n\n /**\n * For a collection: hide the items the owner and the levels above put in it, so only this instance's own items\n * remain. The hidden items stay where they are and come back when this is cleared. It needs the `replace`\n * operation to be exposed.\n */\n replaceOwnerItems?: boolean;\n}\n\nexport const InstanceContributionPropertyNames: (keyof InstanceContribution)[] = ['instance', 'component', 'path', 'value', 'items', 'replaceOwnerItems'];\n"],"names":["InstanceContributionPropertyNames"],"mappings":"AAAA;AACA;MAyCaA,iCAAAA,GAAoE;AAAC,IAAA,UAAA;AAAY,IAAA,WAAA;AAAa,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA,OAAA;AAAS,IAAA;;;"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './contributionPoints';
|
|
|
7
7
|
export * from './profiles';
|
|
8
8
|
export * from './icons';
|
|
9
9
|
export * from './packages';
|
|
10
|
+
export * from './sampleData';
|
|
10
11
|
export * from './interactions';
|
|
11
12
|
export * from './screens';
|
|
12
13
|
export * from './starters';
|
|
@@ -15,4 +16,5 @@ export * from './descriptors';
|
|
|
15
16
|
export * from './exposure';
|
|
16
17
|
export * from './editing';
|
|
17
18
|
export * from './structure';
|
|
19
|
+
export * from './navigation';
|
|
18
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -73,6 +73,15 @@ export { IconEntryPropertyNames } from './icons/IconEntry.js';
|
|
|
73
73
|
export { PackageKind } from './packages/PackageKind.js';
|
|
74
74
|
export { PackageDependencyPropertyNames } from './packages/PackageDependency.js';
|
|
75
75
|
export { ScenePackagePropertyNames } from './packages/ScenePackage.js';
|
|
76
|
+
export { SampleFieldKind } from './sampleData/SampleFieldKind.js';
|
|
77
|
+
export { SampleShapeFieldPropertyNames } from './sampleData/SampleShapeField.js';
|
|
78
|
+
export { SampleShapePropertyNames } from './sampleData/SampleShape.js';
|
|
79
|
+
export { SampleDataSetPropertyNames } from './sampleData/SampleDataSet.js';
|
|
80
|
+
export { SampleDataPackPropertyNames } from './sampleData/SampleDataPack.js';
|
|
81
|
+
export { SampleDataPackReferencePropertyNames } from './sampleData/SampleDataPackReference.js';
|
|
82
|
+
export { SampleDataMappingPropertyNames } from './sampleData/SampleDataMapping.js';
|
|
83
|
+
export { SampleDataBindingPropertyNames } from './sampleData/SampleDataBinding.js';
|
|
84
|
+
export { SampleDataSelectionPropertyNames } from './sampleData/SampleDataSelection.js';
|
|
76
85
|
export { InteractionTriggerKind } from './interactions/InteractionTriggerKind.js';
|
|
77
86
|
export { NotificationLevel } from './interactions/NotificationLevel.js';
|
|
78
87
|
export { BuiltInInteractionTriggerPropertyNames } from './interactions/BuiltInInteractionTrigger.js';
|
|
@@ -174,4 +183,12 @@ export { SliceNodePropertyNames } from './structure/SliceNode.js';
|
|
|
174
183
|
export { FeatureNodePropertyNames } from './structure/FeatureNode.js';
|
|
175
184
|
export { ModuleNodePropertyNames } from './structure/ModuleNode.js';
|
|
176
185
|
export { ApplicationStructurePropertyNames } from './structure/ApplicationStructure.js';
|
|
186
|
+
export { NavigationRegionKind } from './navigation/NavigationRegionKind.js';
|
|
187
|
+
export { NavigationRegionMode } from './navigation/NavigationRegionMode.js';
|
|
188
|
+
export { NavItemPropertyNames } from './navigation/NavItem.js';
|
|
189
|
+
export { NavigationRegionPropertyNames } from './navigation/NavigationRegion.js';
|
|
190
|
+
export { ApplicationLogoPropertyNames } from './navigation/ApplicationLogo.js';
|
|
191
|
+
export { ApplicationNavigationPropertyNames } from './navigation/ApplicationNavigation.js';
|
|
192
|
+
export { ModuleNavigationPropertyNames } from './navigation/ModuleNavigation.js';
|
|
193
|
+
export { NavigationModelPropertyNames } from './navigation/NavigationModel.js';
|
|
177
194
|
//# sourceMappingURL=index.js.map
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationLogo.d.ts","sourceRoot":"","sources":["../../../navigation/ApplicationLogo.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAE5B,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,4BAA4B,EAAE,CAAC,MAAM,eAAe,CAAC,EAAuB,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
|
+
* The application's logo. It is defined at the application level only; a module shows it locked.
|
|
5
|
+
*/ const ApplicationLogoPropertyNames = [
|
|
6
|
+
'image',
|
|
7
|
+
'title'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
export { ApplicationLogoPropertyNames };
|
|
11
|
+
//# sourceMappingURL=ApplicationLogo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationLogo.js","sources":["../../../navigation/ApplicationLogo.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 application's logo. It is defined at the application level only; a module shows it locked.\n */\nexport interface ApplicationLogo {\n /** The image reference. */\n image: string;\n\n /** The application name shown with or instead of the image. */\n title: string;\n}\n\nexport const ApplicationLogoPropertyNames: (keyof ApplicationLogo)[] = ['image', 'title'];\n"],"names":["ApplicationLogoPropertyNames"],"mappings":"AAAA;AACA;AAEA;;UAWaA,4BAAAA,GAA0D;AAAC,IAAA,OAAA;AAAS,IAAA;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApplicationLogo } from './ApplicationLogo';
|
|
2
|
+
import { NavigationRegion } from './NavigationRegion';
|
|
3
|
+
export interface ApplicationNavigation {
|
|
4
|
+
regions: NavigationRegion[];
|
|
5
|
+
logo?: ApplicationLogo;
|
|
6
|
+
}
|
|
7
|
+
export declare const ApplicationNavigationPropertyNames: (keyof ApplicationNavigation)[];
|
|
8
|
+
//# sourceMappingURL=ApplicationNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationNavigation.d.ts","sourceRoot":"","sources":["../../../navigation/ApplicationNavigation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,MAAM,WAAW,qBAAqB;IAElC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAG5B,IAAI,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,kCAAkC,EAAE,CAAC,MAAM,qBAAqB,CAAC,EAAwB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 ApplicationNavigationPropertyNames = [
|
|
4
|
+
'regions',
|
|
5
|
+
'logo'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { ApplicationNavigationPropertyNames };
|
|
9
|
+
//# sourceMappingURL=ApplicationNavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationNavigation.js","sources":["../../../navigation/ApplicationNavigation.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 { ApplicationLogo } from './ApplicationLogo';\nimport { NavigationRegion } from './NavigationRegion';\n\n/**\n * The application-level navigation: the base every module inherits, extends or overrides.\n */\nexport interface ApplicationNavigation {\n /** The regions the application defines items for. */\n regions: NavigationRegion[];\n\n /** The application logo. */\n logo?: ApplicationLogo;\n}\n\nexport const ApplicationNavigationPropertyNames: (keyof ApplicationNavigation)[] = ['regions', 'logo'];\n"],"names":["ApplicationNavigationPropertyNames"],"mappings":"AAAA;AACA;MAgBaA,kCAAAA,GAAsE;AAAC,IAAA,SAAA;AAAW,IAAA;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NavigationRegion } from './NavigationRegion';
|
|
2
|
+
export interface ModuleNavigation {
|
|
3
|
+
module: string;
|
|
4
|
+
regions: NavigationRegion[];
|
|
5
|
+
}
|
|
6
|
+
export declare const ModuleNavigationPropertyNames: (keyof ModuleNavigation)[];
|
|
7
|
+
//# sourceMappingURL=ModuleNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleNavigation.d.ts","sourceRoot":"","sources":["../../../navigation/ModuleNavigation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,MAAM,WAAW,gBAAgB;IAE7B,MAAM,EAAE,MAAM,CAAC;IAGf,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,6BAA6B,EAAE,CAAC,MAAM,gBAAgB,CAAC,EAA0B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 ModuleNavigationPropertyNames = [
|
|
4
|
+
'module',
|
|
5
|
+
'regions'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { ModuleNavigationPropertyNames };
|
|
9
|
+
//# sourceMappingURL=ModuleNavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleNavigation.js","sources":["../../../navigation/ModuleNavigation.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 { NavigationRegion } from './NavigationRegion';\n\n/**\n * The navigation a module declares for the regions it changes. A region it does not declare inherits the application's.\n */\nexport interface ModuleNavigation {\n /** The module identity. */\n module: string;\n\n /** The regions the module changes. */\n regions: NavigationRegion[];\n}\n\nexport const ModuleNavigationPropertyNames: (keyof ModuleNavigation)[] = ['module', 'regions'];\n"],"names":["ModuleNavigationPropertyNames"],"mappings":"AAAA;AACA;MAeaA,6BAAAA,GAA4D;AAAC,IAAA,QAAA;AAAU,IAAA;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DestinationReference } from '../common';
|
|
2
|
+
export interface NavItem {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
target?: DestinationReference;
|
|
7
|
+
slot?: string;
|
|
8
|
+
children?: NavItem[];
|
|
9
|
+
}
|
|
10
|
+
export declare const NavItemPropertyNames: (keyof NavItem)[];
|
|
11
|
+
//# sourceMappingURL=NavItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../navigation/NavItem.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAKjD,MAAM,WAAW,OAAO;IAEpB,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAG9B,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;CACxB;AAED,eAAO,MAAM,oBAAoB,EAAE,CAAC,MAAM,OAAO,CAAC,EAA0D,CAAC"}
|
|
@@ -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
|
+
const NavItemPropertyNames = [
|
|
4
|
+
'id',
|
|
5
|
+
'title',
|
|
6
|
+
'icon',
|
|
7
|
+
'target',
|
|
8
|
+
'slot',
|
|
9
|
+
'children'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
export { NavItemPropertyNames };
|
|
13
|
+
//# sourceMappingURL=NavItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavItem.js","sources":["../../../navigation/NavItem.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 { DestinationReference } from '../common';\n\n/**\n * One item of a navigation region.\n */\nexport interface NavItem {\n /** The item identity, unique in its region at the level that owns it. */\n id: string;\n\n /** The text shown for the item. */\n title: string;\n\n /** Qualified icon reference, when the item has one. */\n icon?: string;\n\n /**\n * What the item navigates to: `module`, and optionally `feature` (a dotted path inside the module). A module\n * without a feature goes to the module's first feature.\n */\n target?: DestinationReference;\n\n /** The rendering slot - an outlet id - the target renders into; `content`, the primary outlet, when absent. */\n slot?: string;\n\n /** The sub-items; only a sidebar item has them. */\n children?: NavItem[];\n}\n\nexport const NavItemPropertyNames: (keyof NavItem)[] = ['id', 'title', 'icon', 'target', 'slot', 'children'];\n"],"names":["NavItemPropertyNames"],"mappings":"AAAA;AACA;MA8BaA,oBAAAA,GAA0C;AAAC,IAAA,IAAA;AAAM,IAAA,OAAA;AAAS,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApplicationNavigation } from './ApplicationNavigation';
|
|
2
|
+
import { ModuleNavigation } from './ModuleNavigation';
|
|
3
|
+
export interface NavigationModel {
|
|
4
|
+
application: ApplicationNavigation;
|
|
5
|
+
modules: ModuleNavigation[];
|
|
6
|
+
}
|
|
7
|
+
export declare const NavigationModelPropertyNames: (keyof NavigationModel)[];
|
|
8
|
+
//# sourceMappingURL=NavigationModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationModel.d.ts","sourceRoot":"","sources":["../../../navigation/NavigationModel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,MAAM,WAAW,eAAe;IAE5B,WAAW,EAAE,qBAAqB,CAAC;IAGnC,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,4BAA4B,EAAE,CAAC,MAAM,eAAe,CAAC,EAA+B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 NavigationModelPropertyNames = [
|
|
4
|
+
'application',
|
|
5
|
+
'modules'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { NavigationModelPropertyNames };
|
|
9
|
+
//# sourceMappingURL=NavigationModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationModel.js","sources":["../../../navigation/NavigationModel.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 { ApplicationNavigation } from './ApplicationNavigation';\nimport { ModuleNavigation } from './ModuleNavigation';\n\n/**\n * All the navigation an application declares: its own regions and the regions each module changes.\n */\nexport interface NavigationModel {\n /** The application-level navigation. */\n application: ApplicationNavigation;\n\n /** The per-module navigation; a module that is not listed inherits everything. */\n modules: ModuleNavigation[];\n}\n\nexport const NavigationModelPropertyNames: (keyof NavigationModel)[] = ['application', 'modules'];\n"],"names":["NavigationModelPropertyNames"],"mappings":"AAAA;AACA;MAgBaA,4BAAAA,GAA0D;AAAC,IAAA,aAAA;AAAe,IAAA;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NavigationRegionKind } from './NavigationRegionKind';
|
|
2
|
+
import { NavigationRegionMode } from './NavigationRegionMode';
|
|
3
|
+
import { NavItem } from './NavItem';
|
|
4
|
+
export interface NavigationRegion {
|
|
5
|
+
region: NavigationRegionKind;
|
|
6
|
+
mode?: NavigationRegionMode;
|
|
7
|
+
items: NavItem[];
|
|
8
|
+
}
|
|
9
|
+
export declare const NavigationRegionPropertyNames: (keyof NavigationRegion)[];
|
|
10
|
+
//# sourceMappingURL=NavigationRegion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationRegion.d.ts","sourceRoot":"","sources":["../../../navigation/NavigationRegion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,MAAM,WAAW,gBAAgB;IAE7B,MAAM,EAAE,oBAAoB,CAAC;IAM7B,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAG5B,KAAK,EAAE,OAAO,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,6BAA6B,EAAE,CAAC,MAAM,gBAAgB,CAAC,EAAgC,CAAC"}
|
|
@@ -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
|
+
const NavigationRegionPropertyNames = [
|
|
4
|
+
'region',
|
|
5
|
+
'mode',
|
|
6
|
+
'items'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export { NavigationRegionPropertyNames };
|
|
10
|
+
//# sourceMappingURL=NavigationRegion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationRegion.js","sources":["../../../navigation/NavigationRegion.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 { NavigationRegionKind } from './NavigationRegionKind';\nimport { NavigationRegionMode } from './NavigationRegionMode';\nimport { NavItem } from './NavItem';\n\n/**\n * The items one level (the application or a module) defines for one navigation region.\n */\nexport interface NavigationRegion {\n /** Which region the items belong to. */\n region: NavigationRegionKind;\n\n /**\n * How a module's items relate to the application's. Absent at the application level, which is the base, and\n * meaning `inherit` at a module.\n */\n mode?: NavigationRegionMode;\n\n /** The items, in order. */\n items: NavItem[];\n}\n\nexport const NavigationRegionPropertyNames: (keyof NavigationRegion)[] = ['region', 'mode', 'items'];\n"],"names":["NavigationRegionPropertyNames"],"mappings":"AAAA;AACA;MAuBaA,6BAAAA,GAA4D;AAAC,IAAA,QAAA;AAAU,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationRegionKind.d.ts","sourceRoot":"","sources":["../../../navigation/NavigationRegionKind.ts"],"names":[],"mappings":"AAMA,oBAAY,oBAAoB;IAE5B,MAAM,WAAW;IAGjB,OAAO,YAAY;CACtB"}
|
|
@@ -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
|
+
* The navigation regions an application shell has.
|
|
5
|
+
*/ var NavigationRegionKind = /*#__PURE__*/ function(NavigationRegionKind) {
|
|
6
|
+
/** The flat strip along the top. */ NavigationRegionKind["Topbar"] = "topbar";
|
|
7
|
+
/** The side list, whose items may have sub-items. */ NavigationRegionKind["Sidebar"] = "sidebar";
|
|
8
|
+
return NavigationRegionKind;
|
|
9
|
+
}({});
|
|
10
|
+
|
|
11
|
+
export { NavigationRegionKind };
|
|
12
|
+
//# sourceMappingURL=NavigationRegionKind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationRegionKind.js","sources":["../../../navigation/NavigationRegionKind.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 navigation regions an application shell has.\n */\nexport enum NavigationRegionKind {\n /** The flat strip along the top. */\n Topbar = 'topbar',\n\n /** The side list, whose items may have sub-items. */\n Sidebar = 'sidebar',\n}\n"],"names":["NavigationRegionKind"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,oBAAAA,iBAAAA,SAAAA,oBAAAA,EAAAA;yCAC0B,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;0DAGiB,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;AAJ3CA,IAAAA,OAAAA,oBAAAA;AAMX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationRegionMode.d.ts","sourceRoot":"","sources":["../../../navigation/NavigationRegionMode.ts"],"names":[],"mappings":"AAMA,oBAAY,oBAAoB;IAE5B,OAAO,YAAY;IAGnB,MAAM,WAAW;IAGjB,QAAQ,aAAa;CACxB"}
|
|
@@ -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
|
+
* How a module's region relates to the application's items for the same region.
|
|
5
|
+
*/ var NavigationRegionMode = /*#__PURE__*/ function(NavigationRegionMode) {
|
|
6
|
+
/** Effective items are the application items; the module's own items are cleared. */ NavigationRegionMode["Inherit"] = "inherit";
|
|
7
|
+
/** Effective items are the application items followed by the module's items. */ NavigationRegionMode["Extend"] = "extend";
|
|
8
|
+
/** Effective items are the module's items only. */ NavigationRegionMode["Override"] = "override";
|
|
9
|
+
return NavigationRegionMode;
|
|
10
|
+
}({});
|
|
11
|
+
|
|
12
|
+
export { NavigationRegionMode };
|
|
13
|
+
//# sourceMappingURL=NavigationRegionMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationRegionMode.js","sources":["../../../navigation/NavigationRegionMode.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 a module's region relates to the application's items for the same region.\n */\nexport enum NavigationRegionMode {\n /** Effective items are the application items; the module's own items are cleared. */\n Inherit = 'inherit',\n\n /** Effective items are the application items followed by the module's items. */\n Extend = 'extend',\n\n /** Effective items are the module's items only. */\n Override = 'override',\n}\n"],"names":["NavigationRegionMode"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,oBAAAA,iBAAAA,SAAAA,oBAAAA,EAAAA;0FAC2E,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;qFAGL,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;wDAG7B,oBAAA,CAAA,UAAA,CAAA,GAAA,UAAA;AAPzCA,IAAAA,OAAAA,oBAAAA;AASX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './NavigationRegionKind';
|
|
2
|
+
export * from './NavigationRegionMode';
|
|
3
|
+
export * from './NavItem';
|
|
4
|
+
export * from './NavigationRegion';
|
|
5
|
+
export * from './ApplicationLogo';
|
|
6
|
+
export * from './ApplicationNavigation';
|
|
7
|
+
export * from './ModuleNavigation';
|
|
8
|
+
export * from './NavigationModel';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../navigation/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './NavigationRegionKind';
|
|
2
|
+
export * from './NavigationRegionMode';
|
|
3
|
+
export * from './NavItem';
|
|
4
|
+
export * from './NavigationRegion';
|
|
5
|
+
export * from './ApplicationLogo';
|
|
6
|
+
export * from './ApplicationNavigation';
|
|
7
|
+
export * from './ModuleNavigation';
|
|
8
|
+
export * from './NavigationModel';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../navigation/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PackageDesignTimeMetadata } from '../descriptors';
|
|
2
2
|
import { IconLibrary } from '../icons';
|
|
3
3
|
import { PackageDependency } from './PackageDependency';
|
|
4
|
+
import { SampleDataPackReference } from '../sampleData';
|
|
4
5
|
import { PackageKind } from './PackageKind';
|
|
5
6
|
export interface ScenePackage {
|
|
6
7
|
name: string;
|
|
@@ -21,6 +22,7 @@ export interface ScenePackage {
|
|
|
21
22
|
designTime?: PackageDesignTimeMetadata;
|
|
22
23
|
assets?: string[];
|
|
23
24
|
runtimeSingletons?: string[];
|
|
25
|
+
sampleData?: SampleDataPackReference[];
|
|
24
26
|
}
|
|
25
27
|
export declare const ScenePackagePropertyNames: (keyof ScenePackage)[];
|
|
26
28
|
//# sourceMappingURL=ScenePackage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,uBAAuB,EAAE,MAAM,eAAe,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;IAM7B,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC1C;AAED,eAAO,MAAM,yBAAyB,EAAE,CAAC,MAAM,YAAY,CAAC,EAoB3D,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 { 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;
|
|
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 { SampleDataPackReference } from '../sampleData';\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 /**\n * The sample-data packs this package ships (`sampleData/*.json`). Design and preview time only: a\n * Stage production build never includes or resolves them.\n */\n sampleData?: SampleDataPackReference[];\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 'sampleData',\n];\n"],"names":["ScenePackagePropertyNames"],"mappings":"AAAA;AACA;MAgHaA,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,mBAAA;AACA,IAAA;;;"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SampleDataSelection } from '../sampleData';
|
|
1
2
|
import { TargetSizeClass } from '../sizeClasses';
|
|
2
3
|
export interface UiProfile {
|
|
3
4
|
name: string;
|
|
@@ -6,6 +7,7 @@ export interface UiProfile {
|
|
|
6
7
|
defaultSizeClass?: TargetSizeClass;
|
|
7
8
|
layout?: string;
|
|
8
9
|
theme?: string;
|
|
10
|
+
sampleData?: SampleDataSelection;
|
|
9
11
|
}
|
|
10
12
|
export declare const UiProfilePropertyNames: (keyof UiProfile)[];
|
|
11
13
|
//# sourceMappingURL=UiProfile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiProfile.d.ts","sourceRoot":"","sources":["../../../profiles/UiProfile.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAajD,MAAM,WAAW,SAAS;IAItB,IAAI,EAAE,MAAM,CAAC;IAKb,cAAc,EAAE,MAAM,CAAC;IAKvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IAKnB,gBAAgB,CAAC,EAAE,eAAe,CAAC;IAMnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"UiProfile.d.ts","sourceRoot":"","sources":["../../../profiles/UiProfile.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAajD,MAAM,WAAW,SAAS;IAItB,IAAI,EAAE,MAAM,CAAC;IAKb,cAAc,EAAE,MAAM,CAAC;IAKvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IAKnB,gBAAgB,CAAC,EAAE,eAAe,CAAC;IAMnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAQf,UAAU,CAAC,EAAE,mBAAmB,CAAC;CACpC;AAED,eAAO,MAAM,sBAAsB,EAAE,CAAC,MAAM,SAAS,CAAC,EAQrD,CAAC"}
|
|
@@ -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 { TargetSizeClass } 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?: TargetSizeClass;\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;
|
|
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 { SampleDataSelection } from '../sampleData';\nimport { TargetSizeClass } 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?: TargetSizeClass;\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 /**\n * Which sample data the application previews with at design and preview time: the active pack, chosen\n * once here for the whole application (own or from a blueprint), plus the rare shape-to-read-model\n * mappings and per-read-model pack bindings. Never stated by a screen, slice or component, and never\n * part of a production build. Absent selects the blueprint's default pack, then generated data.\n */\n sampleData?: SampleDataSelection;\n}\n\nexport const UiProfilePropertyNames: (keyof UiProfile)[] = [\n 'name',\n 'targetPlatform',\n 'packages',\n 'defaultSizeClass',\n 'layout',\n 'theme',\n 'sampleData',\n];\n"],"names":["UiProfilePropertyNames"],"mappings":"AAAA;AACA;MA0DaA,sBAAAA,GAA8C;AACvD,IAAA,MAAA;AACA,IAAA,gBAAA;AACA,IAAA,UAAA;AACA,IAAA,kBAAA;AACA,IAAA,QAAA;AACA,IAAA,OAAA;AACA,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleDataBinding.d.ts","sourceRoot":"","sources":["../../../sampleData/SampleDataBinding.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,iBAAiB;IAE9B,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,8BAA8B,EAAE,CAAC,MAAM,iBAAiB,CAAC,EAAuB,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
|
+
* Binds one specific pack to one read model or shape, overriding the application's active pack.
|
|
5
|
+
*/ const SampleDataBindingPropertyNames = [
|
|
6
|
+
'target',
|
|
7
|
+
'pack'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
export { SampleDataBindingPropertyNames };
|
|
11
|
+
//# sourceMappingURL=SampleDataBinding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleDataBinding.js","sources":["../../../sampleData/SampleDataBinding.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 * Binds one specific pack to one read model or shape, overriding the application's active pack.\n */\nexport interface SampleDataBinding {\n /** The read model or shape name the binding applies to. */\n target: string;\n\n /** The identity of the bound pack. */\n pack: string;\n}\n\nexport const SampleDataBindingPropertyNames: (keyof SampleDataBinding)[] = ['target', 'pack'];\n"],"names":["SampleDataBindingPropertyNames"],"mappings":"AAAA;AACA;AAEA;;UAWaA,8BAAAA,GAA8D;AAAC,IAAA,QAAA;AAAU,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleDataMapping.d.ts","sourceRoot":"","sources":["../../../sampleData/SampleDataMapping.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,iBAAiB;IAE9B,KAAK,EAAE,MAAM,CAAC;IAGd,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,8BAA8B,EAAE,CAAC,MAAM,iBAAiB,CAAC,EAA2B,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
|
+
* An explicit `shape → read model` mapping, for when a pack's shape name differs from the read model's.
|
|
5
|
+
*/ const SampleDataMappingPropertyNames = [
|
|
6
|
+
'shape',
|
|
7
|
+
'readModel'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
export { SampleDataMappingPropertyNames };
|
|
11
|
+
//# sourceMappingURL=SampleDataMapping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleDataMapping.js","sources":["../../../sampleData/SampleDataMapping.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 * An explicit `shape → read model` mapping, for when a pack's shape name differs from the read model's.\n */\nexport interface SampleDataMapping {\n /** The shape name in the pack. */\n shape: string;\n\n /** The read model (or shape) name the pack's shape supplies rows for. */\n readModel: string;\n}\n\nexport const SampleDataMappingPropertyNames: (keyof SampleDataMapping)[] = ['shape', 'readModel'];\n"],"names":["SampleDataMappingPropertyNames"],"mappings":"AAAA;AACA;AAEA;;UAWaA,8BAAAA,GAA8D;AAAC,IAAA,OAAA;AAAS,IAAA;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SampleDataSet } from './SampleDataSet';
|
|
2
|
+
export interface SampleDataPack {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
locale: string;
|
|
6
|
+
owner: string;
|
|
7
|
+
sets: SampleDataSet[];
|
|
8
|
+
}
|
|
9
|
+
export declare const SampleDataPackPropertyNames: (keyof SampleDataPack)[];
|
|
10
|
+
//# sourceMappingURL=SampleDataPack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleDataPack.d.ts","sourceRoot":"","sources":["../../../sampleData/SampleDataPack.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMhD,MAAM,WAAW,cAAc;IAE3B,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAGf,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,eAAO,MAAM,2BAA2B,EAAE,CAAC,MAAM,cAAc,CAAC,EAA+C,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 SampleDataPackPropertyNames = [
|
|
4
|
+
'id',
|
|
5
|
+
'title',
|
|
6
|
+
'locale',
|
|
7
|
+
'owner',
|
|
8
|
+
'sets'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export { SampleDataPackPropertyNames };
|
|
12
|
+
//# sourceMappingURL=SampleDataPack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleDataPack.js","sources":["../../../sampleData/SampleDataPack.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 { SampleDataSet } from './SampleDataSet';\n\n/**\n * A named dataset used by design-time editing and preview, owned by a blueprint or by the user. A pack is\n * never part of a running application: Stage production builds do not include or resolve it.\n */\nexport interface SampleDataPack {\n /** The pack's stable identity, which selections and bindings refer to. */\n id: string;\n\n /** The display name. A blueprint pack's selector label is `<Blueprint> · <title>`. */\n title: string;\n\n /** The BCP 47 locale tag of the data (`nb-NO`, `en-GB`); generated gap-filling data follows it. */\n locale: string;\n\n /** The owner: `blueprint:<id>` for a pack a blueprint ships, or `user` for the author's own. */\n owner: string;\n\n /** The rows per shape. */\n sets: SampleDataSet[];\n}\n\nexport const SampleDataPackPropertyNames: (keyof SampleDataPack)[] = ['id', 'title', 'locale', 'owner', 'sets'];\n"],"names":["SampleDataPackPropertyNames"],"mappings":"AAAA;AACA;MAyBaA,2BAAAA,GAAwD;AAAC,IAAA,IAAA;AAAM,IAAA,OAAA;AAAS,IAAA,QAAA;AAAU,IAAA,OAAA;AAAS,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleDataPackReference.d.ts","sourceRoot":"","sources":["../../../sampleData/SampleDataPackReference.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,uBAAuB;IAEpC,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,oCAAoC,EAAE,CAAC,MAAM,uBAAuB,CAAC,EAAsC,CAAC"}
|