@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
|
@@ -17,4 +17,10 @@ export enum CollectionOperation {
|
|
|
17
17
|
|
|
18
18
|
/** Change the field values of an item the consumer added. */
|
|
19
19
|
EditFields = 'edit-fields',
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Hide the items the owner (and every level above) put in the collection, so the consumer's own items are all there is.
|
|
23
|
+
* An instance says so with `replaceOwnerItems`; the owner's items stay in the owner and come back when it stops.
|
|
24
|
+
*/
|
|
25
|
+
Replace = 'replace',
|
|
20
26
|
}
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
/** Remove an item the consumer added. */ CollectionOperation["Remove"] = "remove";
|
|
11
11
|
/** Change where an item the consumer added sits. */ CollectionOperation["Reorder"] = "reorder";
|
|
12
12
|
/** Change the field values of an item the consumer added. */ CollectionOperation["EditFields"] = "edit-fields";
|
|
13
|
+
/**
|
|
14
|
+
* Hide the items the owner (and every level above) put in the collection, so the consumer's own items are all there is.
|
|
15
|
+
* An instance says so with `replaceOwnerItems`; the owner's items stay in the owner and come back when it stops.
|
|
16
|
+
*/ CollectionOperation["Replace"] = "replace";
|
|
13
17
|
return CollectionOperation;
|
|
14
18
|
}({});
|
|
15
19
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionOperation.js","sources":["../../../descriptors/CollectionOperation.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 * One thing a consumer may do to a collection a template author has exposed. Each is granted on its own: allowing\n * a consumer to add an item says nothing about removing or reordering one.\n */\nexport enum CollectionOperation {\n /** Add an item. */\n Add = 'add',\n\n /** Remove an item the consumer added. */\n Remove = 'remove',\n\n /** Change where an item the consumer added sits. */\n Reorder = 'reorder',\n\n /** Change the field values of an item the consumer added. */\n EditFields = 'edit-fields',\n}\n"],"names":["CollectionOperation"],"mappings":";;AAAA;AACA;AAEA;;;IAIO,IAAKA,mBAAAA,iBAAAA,SAAAA,mBAAAA,EAAAA;wBACS,mBAAA,CAAA,KAAA,CAAA,GAAA,KAAA;8CAGsB,mBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;yDAGW,mBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;kEAGS,mBAAA,CAAA,YAAA,CAAA,GAAA,aAAA;
|
|
1
|
+
{"version":3,"file":"CollectionOperation.js","sources":["../../../descriptors/CollectionOperation.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 * One thing a consumer may do to a collection a template author has exposed. Each is granted on its own: allowing\n * a consumer to add an item says nothing about removing or reordering one.\n */\nexport enum CollectionOperation {\n /** Add an item. */\n Add = 'add',\n\n /** Remove an item the consumer added. */\n Remove = 'remove',\n\n /** Change where an item the consumer added sits. */\n Reorder = 'reorder',\n\n /** Change the field values of an item the consumer added. */\n EditFields = 'edit-fields',\n\n /**\n * Hide the items the owner (and every level above) put in the collection, so the consumer's own items are all there is.\n * An instance says so with `replaceOwnerItems`; the owner's items stay in the owner and come back when it stops.\n */\n Replace = 'replace',\n}\n"],"names":["CollectionOperation"],"mappings":";;AAAA;AACA;AAEA;;;IAIO,IAAKA,mBAAAA,iBAAAA,SAAAA,mBAAAA,EAAAA;wBACS,mBAAA,CAAA,KAAA,CAAA,GAAA,KAAA;8CAGsB,mBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;yDAGW,mBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;kEAGS,mBAAA,CAAA,YAAA,CAAA,GAAA,aAAA;AAG3D;;;AAGC,QAAA,mBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;AAhBOA,IAAAA,OAAAA,mBAAAA;AAkBX,CAAA,CAAA,EAAA;;"}
|
|
@@ -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/cjs/index.js
CHANGED
|
@@ -75,6 +75,15 @@ var IconEntry = require('./icons/IconEntry.js');
|
|
|
75
75
|
var PackageKind = require('./packages/PackageKind.js');
|
|
76
76
|
var PackageDependency = require('./packages/PackageDependency.js');
|
|
77
77
|
var ScenePackage = require('./packages/ScenePackage.js');
|
|
78
|
+
var SampleFieldKind = require('./sampleData/SampleFieldKind.js');
|
|
79
|
+
var SampleShapeField = require('./sampleData/SampleShapeField.js');
|
|
80
|
+
var SampleShape = require('./sampleData/SampleShape.js');
|
|
81
|
+
var SampleDataSet = require('./sampleData/SampleDataSet.js');
|
|
82
|
+
var SampleDataPack = require('./sampleData/SampleDataPack.js');
|
|
83
|
+
var SampleDataPackReference = require('./sampleData/SampleDataPackReference.js');
|
|
84
|
+
var SampleDataMapping = require('./sampleData/SampleDataMapping.js');
|
|
85
|
+
var SampleDataBinding = require('./sampleData/SampleDataBinding.js');
|
|
86
|
+
var SampleDataSelection = require('./sampleData/SampleDataSelection.js');
|
|
78
87
|
var InteractionTriggerKind = require('./interactions/InteractionTriggerKind.js');
|
|
79
88
|
var NotificationLevel = require('./interactions/NotificationLevel.js');
|
|
80
89
|
var BuiltInInteractionTrigger = require('./interactions/BuiltInInteractionTrigger.js');
|
|
@@ -176,6 +185,14 @@ var SliceNode = require('./structure/SliceNode.js');
|
|
|
176
185
|
var FeatureNode = require('./structure/FeatureNode.js');
|
|
177
186
|
var ModuleNode = require('./structure/ModuleNode.js');
|
|
178
187
|
var ApplicationStructure = require('./structure/ApplicationStructure.js');
|
|
188
|
+
var NavigationRegionKind = require('./navigation/NavigationRegionKind.js');
|
|
189
|
+
var NavigationRegionMode = require('./navigation/NavigationRegionMode.js');
|
|
190
|
+
var NavItem = require('./navigation/NavItem.js');
|
|
191
|
+
var NavigationRegion = require('./navigation/NavigationRegion.js');
|
|
192
|
+
var ApplicationLogo = require('./navigation/ApplicationLogo.js');
|
|
193
|
+
var ApplicationNavigation = require('./navigation/ApplicationNavigation.js');
|
|
194
|
+
var ModuleNavigation = require('./navigation/ModuleNavigation.js');
|
|
195
|
+
var NavigationModel = require('./navigation/NavigationModel.js');
|
|
179
196
|
|
|
180
197
|
|
|
181
198
|
|
|
@@ -257,6 +274,15 @@ exports.IconEntryPropertyNames = IconEntry.IconEntryPropertyNames;
|
|
|
257
274
|
exports.PackageKind = PackageKind.PackageKind;
|
|
258
275
|
exports.PackageDependencyPropertyNames = PackageDependency.PackageDependencyPropertyNames;
|
|
259
276
|
exports.ScenePackagePropertyNames = ScenePackage.ScenePackagePropertyNames;
|
|
277
|
+
exports.SampleFieldKind = SampleFieldKind.SampleFieldKind;
|
|
278
|
+
exports.SampleShapeFieldPropertyNames = SampleShapeField.SampleShapeFieldPropertyNames;
|
|
279
|
+
exports.SampleShapePropertyNames = SampleShape.SampleShapePropertyNames;
|
|
280
|
+
exports.SampleDataSetPropertyNames = SampleDataSet.SampleDataSetPropertyNames;
|
|
281
|
+
exports.SampleDataPackPropertyNames = SampleDataPack.SampleDataPackPropertyNames;
|
|
282
|
+
exports.SampleDataPackReferencePropertyNames = SampleDataPackReference.SampleDataPackReferencePropertyNames;
|
|
283
|
+
exports.SampleDataMappingPropertyNames = SampleDataMapping.SampleDataMappingPropertyNames;
|
|
284
|
+
exports.SampleDataBindingPropertyNames = SampleDataBinding.SampleDataBindingPropertyNames;
|
|
285
|
+
exports.SampleDataSelectionPropertyNames = SampleDataSelection.SampleDataSelectionPropertyNames;
|
|
260
286
|
exports.InteractionTriggerKind = InteractionTriggerKind.InteractionTriggerKind;
|
|
261
287
|
exports.NotificationLevel = NotificationLevel.NotificationLevel;
|
|
262
288
|
exports.BuiltInInteractionTriggerPropertyNames = BuiltInInteractionTrigger.BuiltInInteractionTriggerPropertyNames;
|
|
@@ -365,4 +391,12 @@ exports.SliceNodePropertyNames = SliceNode.SliceNodePropertyNames;
|
|
|
365
391
|
exports.FeatureNodePropertyNames = FeatureNode.FeatureNodePropertyNames;
|
|
366
392
|
exports.ModuleNodePropertyNames = ModuleNode.ModuleNodePropertyNames;
|
|
367
393
|
exports.ApplicationStructurePropertyNames = ApplicationStructure.ApplicationStructurePropertyNames;
|
|
394
|
+
exports.NavigationRegionKind = NavigationRegionKind.NavigationRegionKind;
|
|
395
|
+
exports.NavigationRegionMode = NavigationRegionMode.NavigationRegionMode;
|
|
396
|
+
exports.NavItemPropertyNames = NavItem.NavItemPropertyNames;
|
|
397
|
+
exports.NavigationRegionPropertyNames = NavigationRegion.NavigationRegionPropertyNames;
|
|
398
|
+
exports.ApplicationLogoPropertyNames = ApplicationLogo.ApplicationLogoPropertyNames;
|
|
399
|
+
exports.ApplicationNavigationPropertyNames = ApplicationNavigation.ApplicationNavigationPropertyNames;
|
|
400
|
+
exports.ModuleNavigationPropertyNames = ModuleNavigation.ModuleNavigationPropertyNames;
|
|
401
|
+
exports.NavigationModelPropertyNames = NavigationModel.NavigationModelPropertyNames;
|
|
368
402
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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
|
+
* The application's logo. It is defined at the application level only; a module shows it locked.
|
|
7
|
+
*/ const ApplicationLogoPropertyNames = [
|
|
8
|
+
'image',
|
|
9
|
+
'title'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.ApplicationLogoPropertyNames = ApplicationLogoPropertyNames;
|
|
13
|
+
//# 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,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 ApplicationNavigationPropertyNames = [
|
|
6
|
+
'regions',
|
|
7
|
+
'logo'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
exports.ApplicationNavigationPropertyNames = ApplicationNavigationPropertyNames;
|
|
11
|
+
//# 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,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 ModuleNavigationPropertyNames = [
|
|
6
|
+
'module',
|
|
7
|
+
'regions'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
exports.ModuleNavigationPropertyNames = ModuleNavigationPropertyNames;
|
|
11
|
+
//# 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,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 NavItemPropertyNames = [
|
|
6
|
+
'id',
|
|
7
|
+
'title',
|
|
8
|
+
'icon',
|
|
9
|
+
'target',
|
|
10
|
+
'slot',
|
|
11
|
+
'children'
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
exports.NavItemPropertyNames = NavItemPropertyNames;
|
|
15
|
+
//# 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,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 NavigationModelPropertyNames = [
|
|
6
|
+
'application',
|
|
7
|
+
'modules'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
exports.NavigationModelPropertyNames = NavigationModelPropertyNames;
|
|
11
|
+
//# 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,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 NavigationRegionPropertyNames = [
|
|
6
|
+
'region',
|
|
7
|
+
'mode',
|
|
8
|
+
'items'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
exports.NavigationRegionPropertyNames = NavigationRegionPropertyNames;
|
|
12
|
+
//# 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,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 navigation regions an application shell has.
|
|
7
|
+
*/ var NavigationRegionKind = /*#__PURE__*/ function(NavigationRegionKind) {
|
|
8
|
+
/** The flat strip along the top. */ NavigationRegionKind["Topbar"] = "topbar";
|
|
9
|
+
/** The side list, whose items may have sub-items. */ NavigationRegionKind["Sidebar"] = "sidebar";
|
|
10
|
+
return NavigationRegionKind;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
exports.NavigationRegionKind = NavigationRegionKind;
|
|
14
|
+
//# 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,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
|
+
* How a module's region relates to the application's items for the same region.
|
|
7
|
+
*/ var NavigationRegionMode = /*#__PURE__*/ function(NavigationRegionMode) {
|
|
8
|
+
/** Effective items are the application items; the module's own items are cleared. */ NavigationRegionMode["Inherit"] = "inherit";
|
|
9
|
+
/** Effective items are the application items followed by the module's items. */ NavigationRegionMode["Extend"] = "extend";
|
|
10
|
+
/** Effective items are the module's items only. */ NavigationRegionMode["Override"] = "override";
|
|
11
|
+
return NavigationRegionMode;
|
|
12
|
+
}({});
|
|
13
|
+
|
|
14
|
+
exports.NavigationRegionMode = NavigationRegionMode;
|
|
15
|
+
//# 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;;"}
|
|
@@ -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 +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,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
|
+
* Binds one specific pack to one read model or shape, overriding the application's active pack.
|
|
7
|
+
*/ const SampleDataBindingPropertyNames = [
|
|
8
|
+
'target',
|
|
9
|
+
'pack'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.SampleDataBindingPropertyNames = SampleDataBindingPropertyNames;
|
|
13
|
+
//# 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,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
|
+
* An explicit `shape → read model` mapping, for when a pack's shape name differs from the read model's.
|
|
7
|
+
*/ const SampleDataMappingPropertyNames = [
|
|
8
|
+
'shape',
|
|
9
|
+
'readModel'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.SampleDataMappingPropertyNames = SampleDataMappingPropertyNames;
|
|
13
|
+
//# 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,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 SampleDataPackPropertyNames = [
|
|
6
|
+
'id',
|
|
7
|
+
'title',
|
|
8
|
+
'locale',
|
|
9
|
+
'owner',
|
|
10
|
+
'sets'
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
exports.SampleDataPackPropertyNames = SampleDataPackPropertyNames;
|
|
14
|
+
//# 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,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 a {@link ScenePackage} declares a sample-data pack it ships: the pack's identity, enough to list it in
|
|
7
|
+
* a selector without loading it, and where its JSON file lives (`sampleData/<name>.json`).
|
|
8
|
+
*/ const SampleDataPackReferencePropertyNames = [
|
|
9
|
+
'id',
|
|
10
|
+
'title',
|
|
11
|
+
'locale',
|
|
12
|
+
'path'
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
exports.SampleDataPackReferencePropertyNames = SampleDataPackReferencePropertyNames;
|
|
16
|
+
//# sourceMappingURL=SampleDataPackReference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleDataPackReference.js","sources":["../../../sampleData/SampleDataPackReference.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 {@link ScenePackage} declares a sample-data pack it ships: the pack's identity, enough to list it in\n * a selector without loading it, and where its JSON file lives (`sampleData/<name>.json`).\n */\nexport interface SampleDataPackReference {\n /** The pack's identity; must equal the `id` inside the file. */\n id: string;\n\n /** The display name shown in a selector. */\n title: string;\n\n /** The BCP 47 locale tag of the pack's data. */\n locale: string;\n\n /** The package-relative path of the pack file, under `sampleData/` and ending in `.json`. */\n path: string;\n}\n\nexport const SampleDataPackReferencePropertyNames: (keyof SampleDataPackReference)[] = ['id', 'title', 'locale', 'path'];\n"],"names":["SampleDataPackReferencePropertyNames"],"mappings":";;AAAA;AACA;AAEA;;;UAkBaA,oCAAAA,GAA0E;AAAC,IAAA,IAAA;AAAM,IAAA,OAAA;AAAS,IAAA,QAAA;AAAU,IAAA;;;"}
|
|
@@ -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 SampleDataSelectionPropertyNames = [
|
|
6
|
+
'activePack',
|
|
7
|
+
'mappings',
|
|
8
|
+
'bindings'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
exports.SampleDataSelectionPropertyNames = SampleDataSelectionPropertyNames;
|
|
12
|
+
//# sourceMappingURL=SampleDataSelection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleDataSelection.js","sources":["../../../sampleData/SampleDataSelection.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 { SampleDataBinding } from './SampleDataBinding';\nimport { SampleDataMapping } from './SampleDataMapping';\n\n/**\n * Which sample data an application previews with: the active pack, the shape→read-model mapping table and\n * any per-read-model pack bindings. It is carried by the application's {@link UiProfile} (`sampleData`), so\n * the choice is made once for the whole application and inherited by every screen, slice and component; it\n * is never chosen per screen.\n */\nexport interface SampleDataSelection {\n /** The application's active pack identity (an own pack or a blueprint's). Absent falls through to the blueprint's default pack, then generated data. */\n activePack?: string;\n\n /** Explicit `shape → read model` mappings, for where a pack's shape name is not the read model's name. */\n mappings: SampleDataMapping[];\n\n /** Per read model or shape pack bindings; each overrides the active pack for its target. */\n bindings: SampleDataBinding[];\n}\n\nexport const SampleDataSelectionPropertyNames: (keyof SampleDataSelection)[] = ['activePack', 'mappings', 'bindings'];\n"],"names":["SampleDataSelectionPropertyNames"],"mappings":";;AAAA;AACA;MAsBaA,gCAAAA,GAAkE;AAAC,IAAA,YAAA;AAAc,IAAA,UAAA;AAAY,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
|
+
/**
|
|
6
|
+
* The rows a {@link SampleDataPack} provides for one shape.
|
|
7
|
+
*/ const SampleDataSetPropertyNames = [
|
|
8
|
+
'shape',
|
|
9
|
+
'rows'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.SampleDataSetPropertyNames = SampleDataSetPropertyNames;
|
|
13
|
+
//# sourceMappingURL=SampleDataSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleDataSet.js","sources":["../../../sampleData/SampleDataSet.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 rows a {@link SampleDataPack} provides for one shape.\n */\nexport interface SampleDataSet {\n /** The shape's name. Matches a read model of the same name unless the selection maps it elsewhere. */\n shape: string;\n\n /** The rows: JSON objects keyed by the shape's field names. */\n rows: Record<string, unknown>[];\n}\n\nexport const SampleDataSetPropertyNames: (keyof SampleDataSet)[] = ['shape', 'rows'];\n"],"names":["SampleDataSetPropertyNames"],"mappings":";;AAAA;AACA;AAEA;;UAWaA,0BAAAA,GAAsD;AAAC,IAAA,OAAA;AAAS,IAAA;;;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* What kind of value a field holds, as far as generated sample data is concerned. The deterministic
|
|
7
|
+
* generator picks a value pool and a value range from the kind; the member values are the strings used in
|
|
8
|
+
* documents.
|
|
9
|
+
*/ var SampleFieldKind = /*#__PURE__*/ function(SampleFieldKind) {
|
|
10
|
+
/** A stable unique identifier (a UUID). */ SampleFieldKind["Id"] = "id";
|
|
11
|
+
/** A person's full name. */ SampleFieldKind["Name"] = "name";
|
|
12
|
+
/** A company or organization name. */ SampleFieldKind["Company"] = "company";
|
|
13
|
+
/** An email address. */ SampleFieldKind["Email"] = "email";
|
|
14
|
+
/** A phone number in the pack locale's style. */ SampleFieldKind["Phone"] = "phone";
|
|
15
|
+
/** A city name from the pack locale. */ SampleFieldKind["City"] = "city";
|
|
16
|
+
/** A short free-text phrase. */ SampleFieldKind["Text"] = "text";
|
|
17
|
+
/** A whole number. */ SampleFieldKind["WholeNumber"] = "wholeNumber";
|
|
18
|
+
/** A monetary or other two-decimal amount. */ SampleFieldKind["Amount"] = "amount";
|
|
19
|
+
/** A true/false value. */ SampleFieldKind["Boolean"] = "boolean";
|
|
20
|
+
/** A calendar date, `yyyy-MM-dd`. */ SampleFieldKind["Date"] = "date";
|
|
21
|
+
/** A UTC date and time, `yyyy-MM-ddTHH:mm:ssZ`. */ SampleFieldKind["DateTime"] = "dateTime";
|
|
22
|
+
/** One of a fixed set of named values, given by the field's `enumValues`. */ SampleFieldKind["Enum"] = "enum";
|
|
23
|
+
return SampleFieldKind;
|
|
24
|
+
}({});
|
|
25
|
+
|
|
26
|
+
exports.SampleFieldKind = SampleFieldKind;
|
|
27
|
+
//# sourceMappingURL=SampleFieldKind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleFieldKind.js","sources":["../../../sampleData/SampleFieldKind.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 * What kind of value a field holds, as far as generated sample data is concerned. The deterministic\n * generator picks a value pool and a value range from the kind; the member values are the strings used in\n * documents.\n */\nexport enum SampleFieldKind {\n /** A stable unique identifier (a UUID). */\n Id = 'id',\n\n /** A person's full name. */\n Name = 'name',\n\n /** A company or organization name. */\n Company = 'company',\n\n /** An email address. */\n Email = 'email',\n\n /** A phone number in the pack locale's style. */\n Phone = 'phone',\n\n /** A city name from the pack locale. */\n City = 'city',\n\n /** A short free-text phrase. */\n Text = 'text',\n\n /** A whole number. */\n WholeNumber = 'wholeNumber',\n\n /** A monetary or other two-decimal amount. */\n Amount = 'amount',\n\n /** A true/false value. */\n Boolean = 'boolean',\n\n /** A calendar date, `yyyy-MM-dd`. */\n Date = 'date',\n\n /** A UTC date and time, `yyyy-MM-ddTHH:mm:ssZ`. */\n DateTime = 'dateTime',\n\n /** One of a fixed set of named values, given by the field's `enumValues`. */\n Enum = 'enum',\n}\n"],"names":["SampleFieldKind"],"mappings":";;AAAA;AACA;AAEA;;;;IAKO,IAAKA,eAAAA,iBAAAA,SAAAA,eAAAA,EAAAA;gDACiC,eAAA,CAAA,IAAA,CAAA,GAAA,IAAA;iCAGf,eAAA,CAAA,MAAA,CAAA,GAAA,MAAA;2CAGU,eAAA,CAAA,SAAA,CAAA,GAAA,SAAA;6BAGd,eAAA,CAAA,OAAA,CAAA,GAAA,OAAA;sDAGyB,eAAA,CAAA,OAAA,CAAA,GAAA,OAAA;6CAGT,eAAA,CAAA,MAAA,CAAA,GAAA,MAAA;qCAGR,eAAA,CAAA,MAAA,CAAA,GAAA,MAAA;2BAGV,eAAA,CAAA,aAAA,CAAA,GAAA,aAAA;mDAGwB,eAAA,CAAA,QAAA,CAAA,GAAA,QAAA;+BAGpB,eAAA,CAAA,SAAA,CAAA,GAAA,SAAA;0CAGW,eAAA,CAAA,MAAA,CAAA,GAAA,MAAA;wDAGc,eAAA,CAAA,UAAA,CAAA,GAAA,UAAA;kFAG0B,eAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AArCnEA,IAAAA,OAAAA,eAAAA;AAuCX,CAAA,CAAA,EAAA;;"}
|
|
@@ -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 SampleShapePropertyNames = [
|
|
6
|
+
'name',
|
|
7
|
+
'fields'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
exports.SampleShapePropertyNames = SampleShapePropertyNames;
|
|
11
|
+
//# sourceMappingURL=SampleShape.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleShape.js","sources":["../../../sampleData/SampleShape.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 { SampleShapeField } from './SampleShapeField';\n\n/**\n * The shape of the rows a read model or component needs: a name and the fields of one row. Components and\n * queries declare shapes and never values; sample data fills the shape at design and preview time.\n */\nexport interface SampleShape {\n /** The shape's name, matched by name against a pack's sets and a selection's mappings. */\n name: string;\n\n /** The fields of one row, in the order their values are generated and written. */\n fields: SampleShapeField[];\n}\n\nexport const SampleShapePropertyNames: (keyof SampleShape)[] = ['name', 'fields'];\n"],"names":["SampleShapePropertyNames"],"mappings":";;AAAA;AACA;MAgBaA,wBAAAA,GAAkD;AAAC,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
|
+
const SampleShapeFieldPropertyNames = [
|
|
6
|
+
'name',
|
|
7
|
+
'type',
|
|
8
|
+
'kind',
|
|
9
|
+
'nullable',
|
|
10
|
+
'enumValues',
|
|
11
|
+
'min',
|
|
12
|
+
'max'
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
exports.SampleShapeFieldPropertyNames = SampleShapeFieldPropertyNames;
|
|
16
|
+
//# sourceMappingURL=SampleShapeField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleShapeField.js","sources":["../../../sampleData/SampleShapeField.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 { SampleFieldKind } from './SampleFieldKind';\n\n/**\n * One field of a {@link SampleShape}: what the generator needs to know to produce a plausible value.\n * A field gives a `kind`, or just a `type` (and name) from which the kind is inferred.\n */\nexport interface SampleShapeField {\n /** The field's name, as it appears on each row. */\n name: string;\n\n /** The field's type name (`string`, `Guid`, `int`, `decimal`, `bool`, `DateTime` ...); used to infer the kind when `kind` is absent. */\n type?: string;\n\n /** The kind of value, overriding what would be inferred from `type` and `name`. Accepts the {@link SampleFieldKind} members or their strings. */\n kind?: `${SampleFieldKind}`;\n\n /** Whether the field may be null. A nullable field is occasionally null in generated data. */\n nullable?: boolean;\n\n /** The member names of an enum field. Generated values are always one of these. */\n enumValues?: string[];\n\n /** The smallest value of a numeric field (inclusive). */\n min?: number;\n\n /** The largest value of a numeric field (inclusive). */\n max?: number;\n}\n\nexport const SampleShapeFieldPropertyNames: (keyof SampleShapeField)[] = ['name', 'type', 'kind', 'nullable', 'enumValues', 'min', 'max'];\n"],"names":["SampleShapeFieldPropertyNames"],"mappings":";;AAAA;AACA;MA+BaA,6BAAAA,GAA4D;AAAC,IAAA,MAAA;AAAQ,IAAA,MAAA;AAAQ,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,YAAA;AAAc,IAAA,KAAA;AAAO,IAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionOperation.d.ts","sourceRoot":"","sources":["../../../descriptors/CollectionOperation.ts"],"names":[],"mappings":"AAOA,oBAAY,mBAAmB;IAE3B,GAAG,QAAQ;IAGX,MAAM,WAAW;IAGjB,OAAO,YAAY;IAGnB,UAAU,gBAAgB;
|
|
1
|
+
{"version":3,"file":"CollectionOperation.d.ts","sourceRoot":"","sources":["../../../descriptors/CollectionOperation.ts"],"names":[],"mappings":"AAOA,oBAAY,mBAAmB;IAE3B,GAAG,QAAQ;IAGX,MAAM,WAAW;IAGjB,OAAO,YAAY;IAGnB,UAAU,gBAAgB;IAM1B,OAAO,YAAY;CACtB"}
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
/** Remove an item the consumer added. */ CollectionOperation["Remove"] = "remove";
|
|
9
9
|
/** Change where an item the consumer added sits. */ CollectionOperation["Reorder"] = "reorder";
|
|
10
10
|
/** Change the field values of an item the consumer added. */ CollectionOperation["EditFields"] = "edit-fields";
|
|
11
|
+
/**
|
|
12
|
+
* Hide the items the owner (and every level above) put in the collection, so the consumer's own items are all there is.
|
|
13
|
+
* An instance says so with `replaceOwnerItems`; the owner's items stay in the owner and come back when it stops.
|
|
14
|
+
*/ CollectionOperation["Replace"] = "replace";
|
|
11
15
|
return CollectionOperation;
|
|
12
16
|
}({});
|
|
13
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionOperation.js","sources":["../../../descriptors/CollectionOperation.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 * One thing a consumer may do to a collection a template author has exposed. Each is granted on its own: allowing\n * a consumer to add an item says nothing about removing or reordering one.\n */\nexport enum CollectionOperation {\n /** Add an item. */\n Add = 'add',\n\n /** Remove an item the consumer added. */\n Remove = 'remove',\n\n /** Change where an item the consumer added sits. */\n Reorder = 'reorder',\n\n /** Change the field values of an item the consumer added. */\n EditFields = 'edit-fields',\n}\n"],"names":["CollectionOperation"],"mappings":"AAAA;AACA;AAEA;;;IAIO,IAAKA,mBAAAA,iBAAAA,SAAAA,mBAAAA,EAAAA;wBACS,mBAAA,CAAA,KAAA,CAAA,GAAA,KAAA;8CAGsB,mBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;yDAGW,mBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;kEAGS,mBAAA,CAAA,YAAA,CAAA,GAAA,aAAA;
|
|
1
|
+
{"version":3,"file":"CollectionOperation.js","sources":["../../../descriptors/CollectionOperation.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 * One thing a consumer may do to a collection a template author has exposed. Each is granted on its own: allowing\n * a consumer to add an item says nothing about removing or reordering one.\n */\nexport enum CollectionOperation {\n /** Add an item. */\n Add = 'add',\n\n /** Remove an item the consumer added. */\n Remove = 'remove',\n\n /** Change where an item the consumer added sits. */\n Reorder = 'reorder',\n\n /** Change the field values of an item the consumer added. */\n EditFields = 'edit-fields',\n\n /**\n * Hide the items the owner (and every level above) put in the collection, so the consumer's own items are all there is.\n * An instance says so with `replaceOwnerItems`; the owner's items stay in the owner and come back when it stops.\n */\n Replace = 'replace',\n}\n"],"names":["CollectionOperation"],"mappings":"AAAA;AACA;AAEA;;;IAIO,IAAKA,mBAAAA,iBAAAA,SAAAA,mBAAAA,EAAAA;wBACS,mBAAA,CAAA,KAAA,CAAA,GAAA,KAAA;8CAGsB,mBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;yDAGW,mBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;kEAGS,mBAAA,CAAA,YAAA,CAAA,GAAA,aAAA;AAG3D;;;AAGC,QAAA,mBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;AAhBOA,IAAAA,OAAAA,mBAAAA;AAkBX,CAAA,CAAA,EAAA;;"}
|
|
@@ -5,6 +5,7 @@ export interface InstanceContribution {
|
|
|
5
5
|
path: string;
|
|
6
6
|
value?: unknown;
|
|
7
7
|
items?: ContributedItem[];
|
|
8
|
+
replaceOwnerItems?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare const InstanceContributionPropertyNames: (keyof InstanceContribution)[];
|
|
10
11
|
//# sourceMappingURL=InstanceContribution.d.ts.map
|