@cratis/scene.model 4.24.0 → 4.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +21 -0
- package/dist/cjs/index.js.map +1 -1
- 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/cjs/screens/TemplateMetadata.js +2 -1
- package/dist/cjs/screens/TemplateMetadata.js.map +1 -1
- package/dist/cjs/screens/TemplateReference.js +19 -0
- package/dist/cjs/screens/TemplateReference.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +1 -1
- 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/screens/TemplateMetadata.d.ts +2 -0
- package/dist/esm/screens/TemplateMetadata.d.ts.map +1 -1
- package/dist/esm/screens/TemplateMetadata.js +2 -1
- package/dist/esm/screens/TemplateMetadata.js.map +1 -1
- package/dist/esm/screens/TemplateReference.d.ts +12 -0
- package/dist/esm/screens/TemplateReference.d.ts.map +1 -0
- package/dist/esm/screens/TemplateReference.js +16 -0
- package/dist/esm/screens/TemplateReference.js.map +1 -0
- package/dist/esm/screens/index.d.ts +1 -0
- package/dist/esm/screens/index.d.ts.map +1 -1
- package/dist/esm/screens/index.js +1 -0
- package/dist/esm/screens/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/index.ts +1 -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
- package/screens/TemplateMetadata.ts +9 -2
- package/screens/TemplateReference.ts +30 -0
- package/screens/index.ts +1 -0
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');
|
|
@@ -104,6 +113,7 @@ var DialogTemplate = require('./screens/DialogTemplate.js');
|
|
|
104
113
|
var TemplateAttribution = require('./screens/TemplateAttribution.js');
|
|
105
114
|
var TemplateCompatibility = require('./screens/TemplateCompatibility.js');
|
|
106
115
|
var TemplateMetadata = require('./screens/TemplateMetadata.js');
|
|
116
|
+
var TemplateReference = require('./screens/TemplateReference.js');
|
|
107
117
|
var UiStarter = require('./starters/UiStarter.js');
|
|
108
118
|
var QueryResultShape = require('./queries/QueryResultShape.js');
|
|
109
119
|
var QueryOriginKind = require('./queries/QueryOriginKind.js');
|
|
@@ -256,6 +266,15 @@ exports.IconEntryPropertyNames = IconEntry.IconEntryPropertyNames;
|
|
|
256
266
|
exports.PackageKind = PackageKind.PackageKind;
|
|
257
267
|
exports.PackageDependencyPropertyNames = PackageDependency.PackageDependencyPropertyNames;
|
|
258
268
|
exports.ScenePackagePropertyNames = ScenePackage.ScenePackagePropertyNames;
|
|
269
|
+
exports.SampleFieldKind = SampleFieldKind.SampleFieldKind;
|
|
270
|
+
exports.SampleShapeFieldPropertyNames = SampleShapeField.SampleShapeFieldPropertyNames;
|
|
271
|
+
exports.SampleShapePropertyNames = SampleShape.SampleShapePropertyNames;
|
|
272
|
+
exports.SampleDataSetPropertyNames = SampleDataSet.SampleDataSetPropertyNames;
|
|
273
|
+
exports.SampleDataPackPropertyNames = SampleDataPack.SampleDataPackPropertyNames;
|
|
274
|
+
exports.SampleDataPackReferencePropertyNames = SampleDataPackReference.SampleDataPackReferencePropertyNames;
|
|
275
|
+
exports.SampleDataMappingPropertyNames = SampleDataMapping.SampleDataMappingPropertyNames;
|
|
276
|
+
exports.SampleDataBindingPropertyNames = SampleDataBinding.SampleDataBindingPropertyNames;
|
|
277
|
+
exports.SampleDataSelectionPropertyNames = SampleDataSelection.SampleDataSelectionPropertyNames;
|
|
259
278
|
exports.InteractionTriggerKind = InteractionTriggerKind.InteractionTriggerKind;
|
|
260
279
|
exports.NotificationLevel = NotificationLevel.NotificationLevel;
|
|
261
280
|
exports.BuiltInInteractionTriggerPropertyNames = BuiltInInteractionTrigger.BuiltInInteractionTriggerPropertyNames;
|
|
@@ -286,6 +305,8 @@ exports.TemplateAttributionPropertyNames = TemplateAttribution.TemplateAttributi
|
|
|
286
305
|
exports.TemplateCompatibilityPropertyNames = TemplateCompatibility.TemplateCompatibilityPropertyNames;
|
|
287
306
|
exports.TemplateMetadataPropertyNames = TemplateMetadata.TemplateMetadataPropertyNames;
|
|
288
307
|
exports.TemplateScope = TemplateMetadata.TemplateScope;
|
|
308
|
+
exports.TemplateReferencePropertyNames = TemplateReference.TemplateReferencePropertyNames;
|
|
309
|
+
exports.TemplateReferenceSource = TemplateReference.TemplateReferenceSource;
|
|
289
310
|
exports.UiStarterPropertyNames = UiStarter.UiStarterPropertyNames;
|
|
290
311
|
exports.QueryResultShape = QueryResultShape.QueryResultShape;
|
|
291
312
|
exports.QueryOriginKind = QueryOriginKind.QueryOriginKind;
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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":"TemplateMetadata.js","sources":["../../../screens/TemplateMetadata.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 { TemplateAttribution } from './TemplateAttribution';\nimport { TemplateCompatibility } from './TemplateCompatibility';\n\n/** The application hierarchy at which a reusable template is selected. */\nexport enum TemplateScope {\n Application = 'Application',\n Module = 'Module',\n Feature = 'Feature',\n Subfeature = 'Subfeature',\n Slice = 'Slice',\n}\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"TemplateMetadata.js","sources":["../../../screens/TemplateMetadata.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 { TemplateAttribution } from './TemplateAttribution';\nimport { TemplateCompatibility } from './TemplateCompatibility';\nimport { SliceKind } from '../structure';\n\n/** The application hierarchy at which a reusable template is selected. */\nexport enum TemplateScope {\n Application = 'Application',\n Module = 'Module',\n Feature = 'Feature',\n Subfeature = 'Subfeature',\n Slice = 'Slice',\n}\n\n/**\n * Semantic and browsing metadata. Category is required for blueprint templates and recommended for own templates. Type and category are open strings so packages can\n * introduce their own vocabulary without a Scene release. Category never determines applicability.\n */\nexport interface TemplateMetadata {\n /** Semantic role; built-in roles are ApplicationShell, Workspace, List, Detail, Form and Dialog. */\n type?: string;\n /** A package-defined browse category, preserved even when the host does not recognize it. */\n category?: string;\n /** Explicit scope restriction. Absent uses the structural role; an empty list allows no scope. */\n scopes?: TemplateScope[];\n /** The Scene and package versions the template requires. Required for every shipped template. */\n compatibility?: TemplateCompatibility;\n /** Who authored the template. Required for every shipped template. */\n attribution?: TemplateAttribution;\n /** The SPDX license identifier the template is available under, such as `MIT`. Required for every shipped template. */\n license?: string;\n /** An absolute `https` URL to the license terms. */\n licenseUrl?: string;\n /**\n * For a template that applies at {@link TemplateScope.Slice}, the slice kinds it applies to. Absent uses the\n * structural default: a dialog template applies to state change slices, a screen template to every kind that\n * presents something. Declaring slice kinds without scopes makes the default scope Slice.\n */\n sliceKinds?: SliceKind[];\n}\n\nexport const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[] = [\n 'type', 'category', 'scopes', 'compatibility', 'attribution', 'license', 'licenseUrl', 'sliceKinds',\n];\n"],"names":["TemplateScope","TemplateMetadataPropertyNames"],"mappings":";;AAAA;AACA;AAMA,2EACO,IAAKA,aAAAA,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAMX,CAAA,CAAA,EAAA;MA6BYC,6BAAAA,GAA4D;AACrE,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,QAAA;AAAU,IAAA,eAAA;AAAiB,IAAA,aAAA;AAAe,IAAA,SAAA;AAAW,IAAA,YAAA;AAAc,IAAA;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
/** Where a referenced template comes from. */ var TemplateReferenceSource = /*#__PURE__*/ function(TemplateReferenceSource) {
|
|
6
|
+
/** A template the user created in the workspace. */ TemplateReferenceSource["Own"] = "Own";
|
|
7
|
+
/** A template shipped by a blueprint package, referenced by blueprint name, template name and version range. */ TemplateReferenceSource["Blueprint"] = "Blueprint";
|
|
8
|
+
return TemplateReferenceSource;
|
|
9
|
+
}({});
|
|
10
|
+
const TemplateReferencePropertyNames = [
|
|
11
|
+
'source',
|
|
12
|
+
'id',
|
|
13
|
+
'blueprint',
|
|
14
|
+
'version'
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
exports.TemplateReferencePropertyNames = TemplateReferencePropertyNames;
|
|
18
|
+
exports.TemplateReferenceSource = TemplateReferenceSource;
|
|
19
|
+
//# sourceMappingURL=TemplateReference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateReference.js","sources":["../../../screens/TemplateReference.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/** Where a referenced template comes from. */\nexport enum TemplateReferenceSource {\n /** A template the user created in the workspace. */\n Own = 'Own',\n /** A template shipped by a blueprint package, referenced by blueprint name, template name and version range. */\n Blueprint = 'Blueprint',\n}\n\n/**\n * How a module, feature or slice refers to the template it uses: an own template by name, or a blueprint\n * template by blueprint, name and the version range of the blueprint it was chosen from.\n */\nexport interface TemplateReference {\n /** Whether the template is the user's own or comes from a blueprint. */\n source: TemplateReferenceSource;\n /** The template's name - within the workspace for an own template, within the blueprint for a blueprint template. */\n id: string;\n /** The blueprint package name. Present exactly when `source` is {@link TemplateReferenceSource.Blueprint}. */\n blueprint?: string;\n /**\n * The semver range of the blueprint the reference accepts, such as `^1.2.0`. Defaults to the caret range of the\n * installed blueprint version when a reference is created; absent means any version. Only meaningful for a blueprint reference.\n */\n version?: string;\n}\n\nexport const TemplateReferencePropertyNames: (keyof TemplateReference)[] = ['source', 'id', 'blueprint', 'version'];\n"],"names":["TemplateReferenceSource","TemplateReferencePropertyNames"],"mappings":";;AAAA;AACA;AAEA,+CACO,IAAKA,uBAAAA,iBAAAA,SAAAA,uBAAAA,EAAAA;yDAC0C,uBAAA,CAAA,KAAA,CAAA,GAAA,KAAA;qHAE4D,uBAAA,CAAA,WAAA,CAAA,GAAA,WAAA;AAHtGA,IAAAA,OAAAA,uBAAAA;AAKX,CAAA,CAAA,EAAA;MAoBYC,8BAAAA,GAA8D;AAAC,IAAA,QAAA;AAAU,IAAA,IAAA;AAAM,IAAA,WAAA;AAAa,IAAA;;;;"}
|
package/dist/esm/index.d.ts
CHANGED
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"}
|
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';
|
|
@@ -102,6 +111,7 @@ export { DialogTemplatePropertyNames } from './screens/DialogTemplate.js';
|
|
|
102
111
|
export { TemplateAttributionPropertyNames } from './screens/TemplateAttribution.js';
|
|
103
112
|
export { TemplateCompatibilityPropertyNames } from './screens/TemplateCompatibility.js';
|
|
104
113
|
export { TemplateMetadataPropertyNames, TemplateScope } from './screens/TemplateMetadata.js';
|
|
114
|
+
export { TemplateReferencePropertyNames, TemplateReferenceSource } from './screens/TemplateReference.js';
|
|
105
115
|
export { UiStarterPropertyNames } from './starters/UiStarter.js';
|
|
106
116
|
export { QueryResultShape } from './queries/QueryResultShape.js';
|
|
107
117
|
export { QueryOriginKind } from './queries/QueryOriginKind.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,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;;;"}
|