@cratis/scene.model 4.68.3 → 4.69.1
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 +12 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/profiles/CornerStyle.js +13 -0
- package/dist/cjs/profiles/CornerStyle.js.map +1 -0
- package/dist/cjs/profiles/LogoKind.js +13 -0
- package/dist/cjs/profiles/LogoKind.js.map +1 -0
- package/dist/cjs/profiles/ProfileAppearance.js +3 -1
- package/dist/cjs/profiles/ProfileAppearance.js.map +1 -1
- package/dist/cjs/profiles/ProfileIdentity.js +12 -0
- package/dist/cjs/profiles/ProfileIdentity.js.map +1 -0
- package/dist/cjs/profiles/ProfileLogo.js +13 -0
- package/dist/cjs/profiles/ProfileLogo.js.map +1 -0
- package/dist/cjs/profiles/UiProfile.js +2 -1
- package/dist/cjs/profiles/UiProfile.js.map +1 -1
- package/dist/cjs/sampleData/SampleDataPackReference.js +6 -5
- package/dist/cjs/sampleData/SampleDataPackReference.js.map +1 -1
- package/dist/cjs/sampleData/SampleStatus.js +14 -0
- package/dist/cjs/sampleData/SampleStatus.js.map +1 -0
- package/dist/cjs/sampleData/SampleStatusClassification.js +13 -0
- package/dist/cjs/sampleData/SampleStatusClassification.js.map +1 -0
- package/dist/cjs/screens/TemplateMetadata.js +4 -1
- package/dist/cjs/screens/TemplateMetadata.js.map +1 -1
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/profiles/CornerStyle.d.ts +6 -0
- package/dist/esm/profiles/CornerStyle.d.ts.map +1 -0
- package/dist/esm/profiles/CornerStyle.js +11 -0
- package/dist/esm/profiles/CornerStyle.js.map +1 -0
- package/dist/esm/profiles/LogoKind.d.ts +6 -0
- package/dist/esm/profiles/LogoKind.d.ts.map +1 -0
- package/dist/esm/profiles/LogoKind.js +11 -0
- package/dist/esm/profiles/LogoKind.js.map +1 -0
- package/dist/esm/profiles/ProfileAppearance.d.ts +3 -0
- package/dist/esm/profiles/ProfileAppearance.d.ts.map +1 -1
- package/dist/esm/profiles/ProfileAppearance.js +3 -1
- package/dist/esm/profiles/ProfileAppearance.js.map +1 -1
- package/dist/esm/profiles/ProfileIdentity.d.ts +8 -0
- package/dist/esm/profiles/ProfileIdentity.d.ts.map +1 -0
- package/dist/esm/profiles/ProfileIdentity.js +10 -0
- package/dist/esm/profiles/ProfileIdentity.js.map +1 -0
- package/dist/esm/profiles/ProfileLogo.d.ts +9 -0
- package/dist/esm/profiles/ProfileLogo.d.ts.map +1 -0
- package/dist/esm/profiles/ProfileLogo.js +11 -0
- package/dist/esm/profiles/ProfileLogo.js.map +1 -0
- 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/profiles/index.d.ts +4 -0
- package/dist/esm/profiles/index.d.ts.map +1 -1
- package/dist/esm/profiles/index.js +4 -0
- package/dist/esm/profiles/index.js.map +1 -1
- package/dist/esm/sampleData/SampleDataPackReference.d.ts +5 -0
- package/dist/esm/sampleData/SampleDataPackReference.d.ts.map +1 -1
- package/dist/esm/sampleData/SampleDataPackReference.js +6 -5
- package/dist/esm/sampleData/SampleDataPackReference.js.map +1 -1
- package/dist/esm/sampleData/SampleStatus.d.ts +7 -0
- package/dist/esm/sampleData/SampleStatus.d.ts.map +1 -0
- package/dist/esm/sampleData/SampleStatus.js +12 -0
- package/dist/esm/sampleData/SampleStatus.js.map +1 -0
- package/dist/esm/sampleData/SampleStatusClassification.d.ts +8 -0
- package/dist/esm/sampleData/SampleStatusClassification.d.ts.map +1 -0
- package/dist/esm/sampleData/SampleStatusClassification.js +11 -0
- package/dist/esm/sampleData/SampleStatusClassification.js.map +1 -0
- package/dist/esm/sampleData/index.d.ts +2 -0
- package/dist/esm/sampleData/index.d.ts.map +1 -1
- package/dist/esm/sampleData/index.js +2 -0
- package/dist/esm/sampleData/index.js.map +1 -1
- package/dist/esm/screens/TemplateMetadata.d.ts +3 -0
- package/dist/esm/screens/TemplateMetadata.d.ts.map +1 -1
- package/dist/esm/screens/TemplateMetadata.js +4 -1
- package/dist/esm/screens/TemplateMetadata.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/profiles/CornerStyle.ts +14 -0
- package/profiles/LogoKind.ts +14 -0
- package/profiles/ProfileAppearance.ts +9 -2
- package/profiles/ProfileIdentity.ts +21 -0
- package/profiles/ProfileLogo.ts +27 -0
- package/profiles/UiProfile.ts +6 -1
- package/profiles/index.ts +4 -0
- package/sampleData/SampleDataPackReference.ts +15 -1
- package/sampleData/SampleStatus.ts +17 -0
- package/sampleData/SampleStatusClassification.ts +15 -0
- package/sampleData/index.ts +2 -0
- package/screens/TemplateMetadata.ts +10 -1
package/dist/cjs/index.js
CHANGED
|
@@ -70,6 +70,10 @@ var UiProfile = require('./profiles/UiProfile.js');
|
|
|
70
70
|
var Theme = require('./profiles/Theme.js');
|
|
71
71
|
var ColorScheme = require('./profiles/ColorScheme.js');
|
|
72
72
|
var ProfileAppearance = require('./profiles/ProfileAppearance.js');
|
|
73
|
+
var CornerStyle = require('./profiles/CornerStyle.js');
|
|
74
|
+
var LogoKind = require('./profiles/LogoKind.js');
|
|
75
|
+
var ProfileLogo = require('./profiles/ProfileLogo.js');
|
|
76
|
+
var ProfileIdentity = require('./profiles/ProfileIdentity.js');
|
|
73
77
|
var ProfileDefaults = require('./profiles/ProfileDefaults.js');
|
|
74
78
|
var RootTemplate = require('./profiles/RootTemplate.js');
|
|
75
79
|
var IconReference = require('./icons/IconReference.js');
|
|
@@ -90,6 +94,8 @@ var SampleDataPackReference = require('./sampleData/SampleDataPackReference.js')
|
|
|
90
94
|
var SampleDataMapping = require('./sampleData/SampleDataMapping.js');
|
|
91
95
|
var SampleDataBinding = require('./sampleData/SampleDataBinding.js');
|
|
92
96
|
var SampleDataSelection = require('./sampleData/SampleDataSelection.js');
|
|
97
|
+
var SampleStatus = require('./sampleData/SampleStatus.js');
|
|
98
|
+
var SampleStatusClassification = require('./sampleData/SampleStatusClassification.js');
|
|
93
99
|
var InteractionTriggerKind = require('./interactions/InteractionTriggerKind.js');
|
|
94
100
|
var NotificationLevel = require('./interactions/NotificationLevel.js');
|
|
95
101
|
var BuiltInInteractionTrigger = require('./interactions/BuiltInInteractionTrigger.js');
|
|
@@ -275,6 +281,10 @@ exports.UiProfilePropertyNames = UiProfile.UiProfilePropertyNames;
|
|
|
275
281
|
exports.ThemePropertyNames = Theme.ThemePropertyNames;
|
|
276
282
|
exports.ColorScheme = ColorScheme.ColorScheme;
|
|
277
283
|
exports.ProfileAppearancePropertyNames = ProfileAppearance.ProfileAppearancePropertyNames;
|
|
284
|
+
exports.CornerStyle = CornerStyle.CornerStyle;
|
|
285
|
+
exports.LogoKind = LogoKind.LogoKind;
|
|
286
|
+
exports.ProfileLogoPropertyNames = ProfileLogo.ProfileLogoPropertyNames;
|
|
287
|
+
exports.ProfileIdentityPropertyNames = ProfileIdentity.ProfileIdentityPropertyNames;
|
|
278
288
|
exports.ProfileDefaultsPropertyNames = ProfileDefaults.ProfileDefaultsPropertyNames;
|
|
279
289
|
exports.RootTemplatePropertyNames = RootTemplate.RootTemplatePropertyNames;
|
|
280
290
|
exports.IconReferencePropertyNames = IconReference.IconReferencePropertyNames;
|
|
@@ -298,6 +308,8 @@ exports.SampleDataPackReferencePropertyNames = SampleDataPackReference.SampleDat
|
|
|
298
308
|
exports.SampleDataMappingPropertyNames = SampleDataMapping.SampleDataMappingPropertyNames;
|
|
299
309
|
exports.SampleDataBindingPropertyNames = SampleDataBinding.SampleDataBindingPropertyNames;
|
|
300
310
|
exports.SampleDataSelectionPropertyNames = SampleDataSelection.SampleDataSelectionPropertyNames;
|
|
311
|
+
exports.SampleStatus = SampleStatus.SampleStatus;
|
|
312
|
+
exports.SampleStatusClassificationPropertyNames = SampleStatusClassification.SampleStatusClassificationPropertyNames;
|
|
301
313
|
exports.InteractionTriggerKind = InteractionTriggerKind.InteractionTriggerKind;
|
|
302
314
|
exports.NotificationLevel = NotificationLevel.NotificationLevel;
|
|
303
315
|
exports.BuiltInInteractionTriggerPropertyNames = BuiltInInteractionTrigger.BuiltInInteractionTriggerPropertyNames;
|
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
|
+
/** How rounded the corners of buttons, cards, the logo block and menu items are. */ var CornerStyle = /*#__PURE__*/ function(CornerStyle) {
|
|
6
|
+
/** Square-ish corners: 4 px. */ CornerStyle["Sharp"] = "Sharp";
|
|
7
|
+
/** The theme's own corner radius. The default. */ CornerStyle["Default"] = "Default";
|
|
8
|
+
/** Generously rounded corners: 18 px. */ CornerStyle["Round"] = "Round";
|
|
9
|
+
return CornerStyle;
|
|
10
|
+
}({});
|
|
11
|
+
|
|
12
|
+
exports.CornerStyle = CornerStyle;
|
|
13
|
+
//# sourceMappingURL=CornerStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CornerStyle.js","sources":["../../../profiles/CornerStyle.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/** How rounded the corners of buttons, cards, the logo block and menu items are. */\nexport enum CornerStyle {\n /** Square-ish corners: 4 px. */\n Sharp = 'Sharp',\n\n /** The theme's own corner radius. The default. */\n Default = 'Default',\n\n /** Generously rounded corners: 18 px. */\n Round = 'Round',\n}\n"],"names":["CornerStyle"],"mappings":";;AAAA;AACA;AAEA,qFACO,IAAKA,WAAAA,iBAAAA,SAAAA,WAAAA,EAAAA;qCACsB,WAAA,CAAA,OAAA,CAAA,GAAA,OAAA;uDAGkB,WAAA,CAAA,SAAA,CAAA,GAAA,SAAA;8CAGT,WAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AAP/BA,IAAAA,OAAAA,WAAAA;AASX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/** How the application's logo is made: characters on the accent block, an icon on the accent block, or the author's own image. */ var LogoKind = /*#__PURE__*/ function(LogoKind) {
|
|
6
|
+
/** One or two characters on a block in the accent colour. The default. */ LogoKind["Initials"] = "Initials";
|
|
7
|
+
/** One icon from the closed set of logo icons on a block in the accent colour. */ LogoKind["Icon"] = "Icon";
|
|
8
|
+
/** The author's own image, drawn without the accent block. */ LogoKind["Image"] = "Image";
|
|
9
|
+
return LogoKind;
|
|
10
|
+
}({});
|
|
11
|
+
|
|
12
|
+
exports.LogoKind = LogoKind;
|
|
13
|
+
//# sourceMappingURL=LogoKind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogoKind.js","sources":["../../../profiles/LogoKind.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/** How the application's logo is made: characters on the accent block, an icon on the accent block, or the author's own image. */\nexport enum LogoKind {\n /** One or two characters on a block in the accent colour. The default. */\n Initials = 'Initials',\n\n /** One icon from the closed set of logo icons on a block in the accent colour. */\n Icon = 'Icon',\n\n /** The author's own image, drawn without the accent block. */\n Image = 'Image',\n}\n"],"names":["LogoKind"],"mappings":";;AAAA;AACA;AAEA,mIACO,IAAKA,QAAAA,iBAAAA,SAAAA,QAAAA,EAAAA;+EACgE,QAAA,CAAA,UAAA,CAAA,GAAA,UAAA;uFAGQ,QAAA,CAAA,MAAA,CAAA,GAAA,MAAA;mEAGpB,QAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AAPpDA,IAAAA,OAAAA,QAAAA;AASX,CAAA,CAAA,EAAA;;"}
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
5
|
const ProfileAppearancePropertyNames = [
|
|
6
6
|
'colorScheme',
|
|
7
|
-
'accent'
|
|
7
|
+
'accent',
|
|
8
|
+
'corners',
|
|
9
|
+
'font'
|
|
8
10
|
];
|
|
9
11
|
|
|
10
12
|
exports.ProfileAppearancePropertyNames = ProfileAppearancePropertyNames;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileAppearance.js","sources":["../../../profiles/ProfileAppearance.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 { ColorScheme } from './ColorScheme';\n\n/**\n * How an application looks beyond the {@link UiProfile.theme} it selects: the colour scheme
|
|
1
|
+
{"version":3,"file":"ProfileAppearance.js","sources":["../../../profiles/ProfileAppearance.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 { ColorScheme } from './ColorScheme';\nimport { CornerStyle } from './CornerStyle';\n\n/**\n * How an application looks beyond the {@link UiProfile.theme} it selects: the colour scheme, the accent colour, the corner style and the font.\n */\nexport interface ProfileAppearance {\n /** Whether the application is light, dark or follows the system. Absent leaves the theme's own default. */\n colorScheme?: ColorScheme;\n\n /** The accent colour as a CSS colour (for example `#4f46e5`). Absent keeps the theme's accent. */\n accent?: string;\n\n /** How rounded corners are. Absent keeps the theme's own corner radius. */\n corners?: CornerStyle;\n\n /** The font, by the id of an entry in the font catalog (for example `inter`). Absent keeps the theme's own font. */\n font?: string;\n}\n\nexport const ProfileAppearancePropertyNames: (keyof ProfileAppearance)[] = ['colorScheme', 'accent', 'corners', 'font'];\n"],"names":["ProfileAppearancePropertyNames"],"mappings":";;AAAA;AACA;MAsBaA,8BAAAA,GAA8D;AAAC,IAAA,aAAA;AAAe,IAAA,QAAA;AAAU,IAAA,SAAA;AAAW,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 ProfileIdentityPropertyNames = [
|
|
6
|
+
'name',
|
|
7
|
+
'logo',
|
|
8
|
+
'showName'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
exports.ProfileIdentityPropertyNames = ProfileIdentityPropertyNames;
|
|
12
|
+
//# sourceMappingURL=ProfileIdentity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileIdentity.js","sources":["../../../profiles/ProfileIdentity.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 { ProfileLogo } from './ProfileLogo';\n\n/**\n * Who the application is: the name and the logo every blueprint draws, set once for the whole application. Switching the shell or the menu\n * mode never changes them; changing them changes every blueprint at once.\n */\nexport interface ProfileIdentity {\n /** The application name the shell shows. Absent means the host's application name. */\n name?: string;\n\n /** The logo. Absent means initials taken from the name. */\n logo?: ProfileLogo;\n\n /** Whether the name is shown beside the logo mark. Absent means it is shown. */\n showName?: boolean;\n}\n\nexport const ProfileIdentityPropertyNames: (keyof ProfileIdentity)[] = ['name', 'logo', 'showName'];\n"],"names":["ProfileIdentityPropertyNames"],"mappings":";;AAAA;AACA;MAmBaA,4BAAAA,GAA0D;AAAC,IAAA,MAAA;AAAQ,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const ProfileLogoPropertyNames = [
|
|
6
|
+
'kind',
|
|
7
|
+
'initials',
|
|
8
|
+
'icon',
|
|
9
|
+
'image'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.ProfileLogoPropertyNames = ProfileLogoPropertyNames;
|
|
13
|
+
//# sourceMappingURL=ProfileLogo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileLogo.js","sources":["../../../profiles/ProfileLogo.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 { LogoKind } from './LogoKind';\n\n/**\n * The application's logo. Every member is kept even when the {@link ProfileLogo.kind} does not use it, so switching the type\n * back shows what was entered before.\n */\nexport interface ProfileLogo {\n /** How the logo is made. Absent means initials. */\n kind?: LogoKind;\n\n /** Up to two characters for the initials logo. Empty or absent means the first letter of the name, upper-cased. */\n initials?: string;\n\n /** One of the closed set of logo icons (see `logoIcons` in the engine) for the icon logo. */\n icon?: string;\n\n /**\n * The image for the image logo, as a `data:` URI with base64 content (PNG, JPG, SVG or WebP, up to 400 KB of image data).\n * The image travels inline in the profile so it is stored and exported with it.\n */\n image?: string;\n}\n\nexport const ProfileLogoPropertyNames: (keyof ProfileLogo)[] = ['kind', 'initials', 'icon', 'image'];\n"],"names":["ProfileLogoPropertyNames"],"mappings":";;AAAA;AACA;MAyBaA,wBAAAA,GAAkD;AAAC,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,MAAA;AAAQ,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 { SampleDataSelection } from '../sampleData';\nimport { ProfileAppearance } from './ProfileAppearance';\nimport { ProfileDefaults } from './ProfileDefaults';\nimport { RootTemplate } from './RootTemplate';\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 * Legacy: still readable, superseded by {@link UiProfile.root}.\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 /**\n * The application's root template (its shell): a template reference - own or blueprint, with a version pin - and the\n * shell's own options. Supersedes {@link UiProfile.layout}; absent falls back to `layout` and then to the blueprint's\n * default shell.\n */\n root?: RootTemplate;\n\n /** The colour scheme
|
|
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 { ProfileAppearance } from './ProfileAppearance';\nimport { ProfileDefaults } from './ProfileDefaults';\nimport { ProfileIdentity } from './ProfileIdentity';\nimport { RootTemplate } from './RootTemplate';\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 * Legacy: still readable, superseded by {@link UiProfile.root}.\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 /**\n * The application's root template (its shell): a template reference - own or blueprint, with a version pin - and the\n * shell's own options. Supersedes {@link UiProfile.layout}; absent falls back to `layout` and then to the blueprint's\n * default shell.\n */\n root?: RootTemplate;\n\n /** The colour scheme, accent colour, corner style and font the application presents. Absent keeps the theme's defaults. */\n appearance?: ProfileAppearance;\n\n /** Application-wide authoring defaults such as the template new screens start from. Absent for none. */\n defaults?: ProfileDefaults;\n\n /** The application's name and logo, set once and drawn by every blueprint. Absent uses the host's application name and initials taken from it. */\n identity?: ProfileIdentity;\n}\n\nexport const UiProfilePropertyNames: (keyof UiProfile)[] = [\n 'name',\n 'targetPlatform',\n 'packages',\n 'defaultSizeClass',\n 'layout',\n 'theme',\n 'sampleData',\n 'root',\n 'appearance',\n 'defaults',\n 'identity',\n];\n"],"names":["UiProfilePropertyNames"],"mappings":";;AAAA;AACA;MA+EaA,sBAAAA,GAA8C;AACvD,IAAA,MAAA;AACA,IAAA,gBAAA;AACA,IAAA,UAAA;AACA,IAAA,kBAAA;AACA,IAAA,QAAA;AACA,IAAA,OAAA;AACA,IAAA,YAAA;AACA,IAAA,MAAA;AACA,IAAA,YAAA;AACA,IAAA,UAAA;AACA,IAAA;;;"}
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
// Copyright (c) Cratis. All rights reserved.
|
|
4
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 = [
|
|
5
|
+
const SampleDataPackReferencePropertyNames = [
|
|
9
6
|
'id',
|
|
10
7
|
'title',
|
|
11
8
|
'locale',
|
|
12
|
-
'path'
|
|
9
|
+
'path',
|
|
10
|
+
'description',
|
|
11
|
+
'columns',
|
|
12
|
+
'statusColumn',
|
|
13
|
+
'statuses'
|
|
13
14
|
];
|
|
14
15
|
|
|
15
16
|
exports.SampleDataPackReferencePropertyNames = SampleDataPackReferencePropertyNames;
|
|
@@ -1 +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;
|
|
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\nimport { SampleStatusClassification } from './SampleStatusClassification';\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 /** One line saying what the pack is, shown under its name in a selector. */\n description?: string;\n\n /** The names of the pack's main table's columns, in the order a preview shows them. */\n columns?: string[];\n\n /** The column whose values are drawn as status pills. */\n statusColumn?: string;\n\n /** Which values of the status column are good, pending, bad or neutral; any other value is neutral. */\n statuses?: SampleStatusClassification;\n}\n\nexport const SampleDataPackReferencePropertyNames: (keyof SampleDataPackReference)[] = ['id', 'title', 'locale', 'path', 'description', 'columns', 'statusColumn', 'statuses'];\n"],"names":["SampleDataPackReferencePropertyNames"],"mappings":";;AAAA;AACA;MAkCaA,oCAAAA,GAA0E;AAAC,IAAA,IAAA;AAAM,IAAA,OAAA;AAAS,IAAA,QAAA;AAAU,IAAA,MAAA;AAAQ,IAAA,aAAA;AAAe,IAAA,SAAA;AAAW,IAAA,cAAA;AAAgB,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
|
+
/** How a pill for a status value is coloured. */ var SampleStatus = /*#__PURE__*/ function(SampleStatus) {
|
|
6
|
+
/** A positive state: active, delivered, approved. */ SampleStatus["Good"] = "good";
|
|
7
|
+
/** A state that is in progress or waiting. */ SampleStatus["Pending"] = "pending";
|
|
8
|
+
/** A negative state: rejected, overdue, out of stock. */ SampleStatus["Bad"] = "bad";
|
|
9
|
+
/** Anything else; the class of every value the pack does not name. */ SampleStatus["Neutral"] = "neutral";
|
|
10
|
+
return SampleStatus;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
exports.SampleStatus = SampleStatus;
|
|
14
|
+
//# sourceMappingURL=SampleStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleStatus.js","sources":["../../../sampleData/SampleStatus.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/** How a pill for a status value is coloured. */\nexport enum SampleStatus {\n /** A positive state: active, delivered, approved. */\n Good = 'good',\n\n /** A state that is in progress or waiting. */\n Pending = 'pending',\n\n /** A negative state: rejected, overdue, out of stock. */\n Bad = 'bad',\n\n /** Anything else; the class of every value the pack does not name. */\n Neutral = 'neutral',\n}\n"],"names":["SampleStatus"],"mappings":";;AAAA;AACA;AAEA,kDACO,IAAKA,YAAAA,iBAAAA,SAAAA,YAAAA,EAAAA;0DAC2C,YAAA,CAAA,MAAA,CAAA,GAAA,MAAA;mDAGP,YAAA,CAAA,SAAA,CAAA,GAAA,SAAA;8DAGW,YAAA,CAAA,KAAA,CAAA,GAAA,KAAA;2EAGa,YAAA,CAAA,SAAA,CAAA,GAAA,SAAA;AAV5DA,IAAAA,OAAAA,YAAAA;AAYX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/** Which values of a pack's status column belong to which {@link SampleStatus}. A value in none of the lists is neutral. */ const SampleStatusClassificationPropertyNames = [
|
|
6
|
+
'good',
|
|
7
|
+
'pending',
|
|
8
|
+
'bad',
|
|
9
|
+
'neutral'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.SampleStatusClassificationPropertyNames = SampleStatusClassificationPropertyNames;
|
|
13
|
+
//# sourceMappingURL=SampleStatusClassification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleStatusClassification.js","sources":["../../../sampleData/SampleStatusClassification.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/** Which values of a pack's status column belong to which {@link SampleStatus}. A value in none of the lists is neutral. */\nexport interface SampleStatusClassification {\n good?: string[];\n\n pending?: string[];\n\n bad?: string[];\n\n neutral?: string[];\n}\n\nexport const SampleStatusClassificationPropertyNames: (keyof SampleStatusClassification)[] = ['good', 'pending', 'bad', 'neutral'];\n"],"names":["SampleStatusClassificationPropertyNames"],"mappings":";;AAAA;AACA;AAEA,6HAWO,MAAMA,uCAAAA,GAAgF;AAAC,IAAA,MAAA;AAAQ,IAAA,SAAA;AAAW,IAAA,KAAA;AAAO,IAAA;;;"}
|
|
@@ -28,7 +28,10 @@ const TemplateMetadataPropertyNames = [
|
|
|
28
28
|
'sliceKinds',
|
|
29
29
|
'thumbnail',
|
|
30
30
|
'role',
|
|
31
|
-
'primaryOutlet'
|
|
31
|
+
'primaryOutlet',
|
|
32
|
+
'defaultMenuMode',
|
|
33
|
+
'displayName',
|
|
34
|
+
'description'
|
|
32
35
|
];
|
|
33
36
|
|
|
34
37
|
exports.TemplateMetadataPropertyNames = TemplateMetadataPropertyNames;
|
|
@@ -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';\nimport { SliceKind } from '../structure';\n\n/** The application hierarchy at which a reusable template is selected. */\n/** A structural role a template can take beyond its kind. */\nexport enum TemplateRole {\n /**\n * The application's root template - its shell. A screen template with this role and scope Application can be the shell\n * of an application exactly like a layout; it fits no slot of anything else.\n */\n Root = 'Root',\n}\n\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 /** The package-relative path of the template's gallery thumbnail (`thumbnails/<name>.png|webp|jpg|svg`); required of every template of a domain blueprint. */\n thumbnail?: string;\n\n /** A structural role beyond the template's kind. `Root` marks a screen template that can be an application's shell. */\n role?: TemplateRole;\n\n /** For a shell: the name of the slot every screen's content is placed in. Absent means `content`. */\n primaryOutlet?: string;\n}\n\nexport const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[] = [\n 'type', 'category', 'scopes', 'compatibility', 'attribution', 'license', 'licenseUrl', 'sliceKinds', 'thumbnail', 'role', 'primaryOutlet',\n];\n"],"names":["TemplateRole","TemplateScope","TemplateMetadataPropertyNames"],"mappings":";;AAAA;AACA;AAMA,yIAEO,IAAA,YAAKA,iBAAAA,SAAAA,YAAAA,EAAAA;AACR;;;AAGC,QAAA,YAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAJOA,IAAAA,OAAAA,YAAAA;AAMX,CAAA,CAAA,EAAA;AAEM,IAAA,aAAKC,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAMX,CAAA,CAAA,EAAA;
|
|
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. */\n/** A structural role a template can take beyond its kind. */\nexport enum TemplateRole {\n /**\n * The application's root template - its shell. A screen template with this role and scope Application can be the shell\n * of an application exactly like a layout; it fits no slot of anything else.\n */\n Root = 'Root',\n}\n\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 /** The package-relative path of the template's gallery thumbnail (`thumbnails/<name>.png|webp|jpg|svg`); required of every template of a domain blueprint. */\n thumbnail?: string;\n\n /** A structural role beyond the template's kind. `Root` marks a screen template that can be an application's shell. */\n role?: TemplateRole;\n\n /** For a shell: the name of the slot every screen's content is placed in. Absent means `content`. */\n primaryOutlet?: string;\n\n /** For a shell: the navigation mode the application starts in when the shell is chosen. The author can change it afterwards. */\n defaultMenuMode?: string;\n\n /** For a shell offered as a card: its title. Falls back to the template's display name, then its name. */\n displayName?: string;\n\n /** For a shell offered as a card: its one-line description. */\n description?: string;\n}\n\nexport const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[] = [\n 'type', 'category', 'scopes', 'compatibility', 'attribution', 'license', 'licenseUrl', 'sliceKinds', 'thumbnail', 'role', 'primaryOutlet', 'defaultMenuMode', 'displayName', 'description',\n];\n"],"names":["TemplateRole","TemplateScope","TemplateMetadataPropertyNames"],"mappings":";;AAAA;AACA;AAMA,yIAEO,IAAA,YAAKA,iBAAAA,SAAAA,YAAAA,EAAAA;AACR;;;AAGC,QAAA,YAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAJOA,IAAAA,OAAAA,YAAAA;AAMX,CAAA,CAAA,EAAA;AAEM,IAAA,aAAKC,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAMX,CAAA,CAAA,EAAA;MA+CYC,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,YAAA;AAAc,IAAA,WAAA;AAAa,IAAA,MAAA;AAAQ,IAAA,eAAA;AAAiB,IAAA,iBAAA;AAAmB,IAAA,aAAA;AAAe,IAAA;;;;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -68,6 +68,10 @@ export { UiProfilePropertyNames } from './profiles/UiProfile.js';
|
|
|
68
68
|
export { ThemePropertyNames } from './profiles/Theme.js';
|
|
69
69
|
export { ColorScheme } from './profiles/ColorScheme.js';
|
|
70
70
|
export { ProfileAppearancePropertyNames } from './profiles/ProfileAppearance.js';
|
|
71
|
+
export { CornerStyle } from './profiles/CornerStyle.js';
|
|
72
|
+
export { LogoKind } from './profiles/LogoKind.js';
|
|
73
|
+
export { ProfileLogoPropertyNames } from './profiles/ProfileLogo.js';
|
|
74
|
+
export { ProfileIdentityPropertyNames } from './profiles/ProfileIdentity.js';
|
|
71
75
|
export { ProfileDefaultsPropertyNames } from './profiles/ProfileDefaults.js';
|
|
72
76
|
export { RootTemplatePropertyNames } from './profiles/RootTemplate.js';
|
|
73
77
|
export { IconReferencePropertyNames } from './icons/IconReference.js';
|
|
@@ -88,6 +92,8 @@ export { SampleDataPackReferencePropertyNames } from './sampleData/SampleDataPac
|
|
|
88
92
|
export { SampleDataMappingPropertyNames } from './sampleData/SampleDataMapping.js';
|
|
89
93
|
export { SampleDataBindingPropertyNames } from './sampleData/SampleDataBinding.js';
|
|
90
94
|
export { SampleDataSelectionPropertyNames } from './sampleData/SampleDataSelection.js';
|
|
95
|
+
export { SampleStatus } from './sampleData/SampleStatus.js';
|
|
96
|
+
export { SampleStatusClassificationPropertyNames } from './sampleData/SampleStatusClassification.js';
|
|
91
97
|
export { InteractionTriggerKind } from './interactions/InteractionTriggerKind.js';
|
|
92
98
|
export { NotificationLevel } from './interactions/NotificationLevel.js';
|
|
93
99
|
export { BuiltInInteractionTriggerPropertyNames } from './interactions/BuiltInInteractionTrigger.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CornerStyle.d.ts","sourceRoot":"","sources":["../../../profiles/CornerStyle.ts"],"names":[],"mappings":"AAIA,oBAAY,WAAW;IAEnB,KAAK,UAAU;IAGf,OAAO,YAAY;IAGnB,KAAK,UAAU;CAClB"}
|
|
@@ -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
|
+
/** How rounded the corners of buttons, cards, the logo block and menu items are. */ var CornerStyle = /*#__PURE__*/ function(CornerStyle) {
|
|
4
|
+
/** Square-ish corners: 4 px. */ CornerStyle["Sharp"] = "Sharp";
|
|
5
|
+
/** The theme's own corner radius. The default. */ CornerStyle["Default"] = "Default";
|
|
6
|
+
/** Generously rounded corners: 18 px. */ CornerStyle["Round"] = "Round";
|
|
7
|
+
return CornerStyle;
|
|
8
|
+
}({});
|
|
9
|
+
|
|
10
|
+
export { CornerStyle };
|
|
11
|
+
//# sourceMappingURL=CornerStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CornerStyle.js","sources":["../../../profiles/CornerStyle.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/** How rounded the corners of buttons, cards, the logo block and menu items are. */\nexport enum CornerStyle {\n /** Square-ish corners: 4 px. */\n Sharp = 'Sharp',\n\n /** The theme's own corner radius. The default. */\n Default = 'Default',\n\n /** Generously rounded corners: 18 px. */\n Round = 'Round',\n}\n"],"names":["CornerStyle"],"mappings":"AAAA;AACA;AAEA,qFACO,IAAKA,WAAAA,iBAAAA,SAAAA,WAAAA,EAAAA;qCACsB,WAAA,CAAA,OAAA,CAAA,GAAA,OAAA;uDAGkB,WAAA,CAAA,SAAA,CAAA,GAAA,SAAA;8CAGT,WAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AAP/BA,IAAAA,OAAAA,WAAAA;AASX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogoKind.d.ts","sourceRoot":"","sources":["../../../profiles/LogoKind.ts"],"names":[],"mappings":"AAIA,oBAAY,QAAQ;IAEhB,QAAQ,aAAa;IAGrB,IAAI,SAAS;IAGb,KAAK,UAAU;CAClB"}
|
|
@@ -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
|
+
/** How the application's logo is made: characters on the accent block, an icon on the accent block, or the author's own image. */ var LogoKind = /*#__PURE__*/ function(LogoKind) {
|
|
4
|
+
/** One or two characters on a block in the accent colour. The default. */ LogoKind["Initials"] = "Initials";
|
|
5
|
+
/** One icon from the closed set of logo icons on a block in the accent colour. */ LogoKind["Icon"] = "Icon";
|
|
6
|
+
/** The author's own image, drawn without the accent block. */ LogoKind["Image"] = "Image";
|
|
7
|
+
return LogoKind;
|
|
8
|
+
}({});
|
|
9
|
+
|
|
10
|
+
export { LogoKind };
|
|
11
|
+
//# sourceMappingURL=LogoKind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogoKind.js","sources":["../../../profiles/LogoKind.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/** How the application's logo is made: characters on the accent block, an icon on the accent block, or the author's own image. */\nexport enum LogoKind {\n /** One or two characters on a block in the accent colour. The default. */\n Initials = 'Initials',\n\n /** One icon from the closed set of logo icons on a block in the accent colour. */\n Icon = 'Icon',\n\n /** The author's own image, drawn without the accent block. */\n Image = 'Image',\n}\n"],"names":["LogoKind"],"mappings":"AAAA;AACA;AAEA,mIACO,IAAKA,QAAAA,iBAAAA,SAAAA,QAAAA,EAAAA;+EACgE,QAAA,CAAA,UAAA,CAAA,GAAA,UAAA;uFAGQ,QAAA,CAAA,MAAA,CAAA,GAAA,MAAA;mEAGpB,QAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AAPpDA,IAAAA,OAAAA,QAAAA;AASX,CAAA,CAAA,EAAA;;"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ColorScheme } from './ColorScheme';
|
|
2
|
+
import { CornerStyle } from './CornerStyle';
|
|
2
3
|
export interface ProfileAppearance {
|
|
3
4
|
colorScheme?: ColorScheme;
|
|
4
5
|
accent?: string;
|
|
6
|
+
corners?: CornerStyle;
|
|
7
|
+
font?: string;
|
|
5
8
|
}
|
|
6
9
|
export declare const ProfileAppearancePropertyNames: (keyof ProfileAppearance)[];
|
|
7
10
|
//# sourceMappingURL=ProfileAppearance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileAppearance.d.ts","sourceRoot":"","sources":["../../../profiles/ProfileAppearance.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,MAAM,WAAW,iBAAiB;IAE9B,WAAW,CAAC,EAAE,WAAW,CAAC;IAG1B,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ProfileAppearance.d.ts","sourceRoot":"","sources":["../../../profiles/ProfileAppearance.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,MAAM,WAAW,iBAAiB;IAE9B,WAAW,CAAC,EAAE,WAAW,CAAC;IAG1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,OAAO,CAAC,EAAE,WAAW,CAAC;IAGtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,8BAA8B,EAAE,CAAC,MAAM,iBAAiB,CAAC,EAAiD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileAppearance.js","sources":["../../../profiles/ProfileAppearance.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 { ColorScheme } from './ColorScheme';\n\n/**\n * How an application looks beyond the {@link UiProfile.theme} it selects: the colour scheme
|
|
1
|
+
{"version":3,"file":"ProfileAppearance.js","sources":["../../../profiles/ProfileAppearance.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 { ColorScheme } from './ColorScheme';\nimport { CornerStyle } from './CornerStyle';\n\n/**\n * How an application looks beyond the {@link UiProfile.theme} it selects: the colour scheme, the accent colour, the corner style and the font.\n */\nexport interface ProfileAppearance {\n /** Whether the application is light, dark or follows the system. Absent leaves the theme's own default. */\n colorScheme?: ColorScheme;\n\n /** The accent colour as a CSS colour (for example `#4f46e5`). Absent keeps the theme's accent. */\n accent?: string;\n\n /** How rounded corners are. Absent keeps the theme's own corner radius. */\n corners?: CornerStyle;\n\n /** The font, by the id of an entry in the font catalog (for example `inter`). Absent keeps the theme's own font. */\n font?: string;\n}\n\nexport const ProfileAppearancePropertyNames: (keyof ProfileAppearance)[] = ['colorScheme', 'accent', 'corners', 'font'];\n"],"names":["ProfileAppearancePropertyNames"],"mappings":"AAAA;AACA;MAsBaA,8BAAAA,GAA8D;AAAC,IAAA,aAAA;AAAe,IAAA,QAAA;AAAU,IAAA,SAAA;AAAW,IAAA;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ProfileLogo } from './ProfileLogo';
|
|
2
|
+
export interface ProfileIdentity {
|
|
3
|
+
name?: string;
|
|
4
|
+
logo?: ProfileLogo;
|
|
5
|
+
showName?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ProfileIdentityPropertyNames: (keyof ProfileIdentity)[];
|
|
8
|
+
//# sourceMappingURL=ProfileIdentity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileIdentity.d.ts","sourceRoot":"","sources":["../../../profiles/ProfileIdentity.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAM5C,MAAM,WAAW,eAAe;IAE5B,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,IAAI,CAAC,EAAE,WAAW,CAAC;IAGnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,4BAA4B,EAAE,CAAC,MAAM,eAAe,CAAC,EAAiC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const ProfileIdentityPropertyNames = [
|
|
4
|
+
'name',
|
|
5
|
+
'logo',
|
|
6
|
+
'showName'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export { ProfileIdentityPropertyNames };
|
|
10
|
+
//# sourceMappingURL=ProfileIdentity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileIdentity.js","sources":["../../../profiles/ProfileIdentity.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 { ProfileLogo } from './ProfileLogo';\n\n/**\n * Who the application is: the name and the logo every blueprint draws, set once for the whole application. Switching the shell or the menu\n * mode never changes them; changing them changes every blueprint at once.\n */\nexport interface ProfileIdentity {\n /** The application name the shell shows. Absent means the host's application name. */\n name?: string;\n\n /** The logo. Absent means initials taken from the name. */\n logo?: ProfileLogo;\n\n /** Whether the name is shown beside the logo mark. Absent means it is shown. */\n showName?: boolean;\n}\n\nexport const ProfileIdentityPropertyNames: (keyof ProfileIdentity)[] = ['name', 'logo', 'showName'];\n"],"names":["ProfileIdentityPropertyNames"],"mappings":"AAAA;AACA;MAmBaA,4BAAAA,GAA0D;AAAC,IAAA,MAAA;AAAQ,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LogoKind } from './LogoKind';
|
|
2
|
+
export interface ProfileLogo {
|
|
3
|
+
kind?: LogoKind;
|
|
4
|
+
initials?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
image?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const ProfileLogoPropertyNames: (keyof ProfileLogo)[];
|
|
9
|
+
//# sourceMappingURL=ProfileLogo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileLogo.d.ts","sourceRoot":"","sources":["../../../profiles/ProfileLogo.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAMtC,MAAM,WAAW,WAAW;IAExB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAGhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,wBAAwB,EAAE,CAAC,MAAM,WAAW,CAAC,EAA0C,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
|
+
const ProfileLogoPropertyNames = [
|
|
4
|
+
'kind',
|
|
5
|
+
'initials',
|
|
6
|
+
'icon',
|
|
7
|
+
'image'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
export { ProfileLogoPropertyNames };
|
|
11
|
+
//# sourceMappingURL=ProfileLogo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileLogo.js","sources":["../../../profiles/ProfileLogo.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 { LogoKind } from './LogoKind';\n\n/**\n * The application's logo. Every member is kept even when the {@link ProfileLogo.kind} does not use it, so switching the type\n * back shows what was entered before.\n */\nexport interface ProfileLogo {\n /** How the logo is made. Absent means initials. */\n kind?: LogoKind;\n\n /** Up to two characters for the initials logo. Empty or absent means the first letter of the name, upper-cased. */\n initials?: string;\n\n /** One of the closed set of logo icons (see `logoIcons` in the engine) for the icon logo. */\n icon?: string;\n\n /**\n * The image for the image logo, as a `data:` URI with base64 content (PNG, JPG, SVG or WebP, up to 400 KB of image data).\n * The image travels inline in the profile so it is stored and exported with it.\n */\n image?: string;\n}\n\nexport const ProfileLogoPropertyNames: (keyof ProfileLogo)[] = ['kind', 'initials', 'icon', 'image'];\n"],"names":["ProfileLogoPropertyNames"],"mappings":"AAAA;AACA;MAyBaA,wBAAAA,GAAkD;AAAC,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SampleDataSelection } from '../sampleData';
|
|
2
2
|
import { ProfileAppearance } from './ProfileAppearance';
|
|
3
3
|
import { ProfileDefaults } from './ProfileDefaults';
|
|
4
|
+
import { ProfileIdentity } from './ProfileIdentity';
|
|
4
5
|
import { RootTemplate } from './RootTemplate';
|
|
5
6
|
import { TargetSizeClass } from '../sizeClasses';
|
|
6
7
|
export interface UiProfile {
|
|
@@ -14,6 +15,7 @@ export interface UiProfile {
|
|
|
14
15
|
root?: RootTemplate;
|
|
15
16
|
appearance?: ProfileAppearance;
|
|
16
17
|
defaults?: ProfileDefaults;
|
|
18
|
+
identity?: ProfileIdentity;
|
|
17
19
|
}
|
|
18
20
|
export declare const UiProfilePropertyNames: (keyof UiProfile)[];
|
|
19
21
|
//# sourceMappingURL=UiProfile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,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;IAOnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAQf,UAAU,CAAC,EAAE,mBAAmB,CAAC;IAOjC,IAAI,CAAC,EAAE,YAAY,CAAC;IAGpB,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAG/B,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,eAAO,MAAM,sBAAsB,EAAE,CAAC,MAAM,SAAS,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,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,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;IAOnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAQf,UAAU,CAAC,EAAE,mBAAmB,CAAC;IAOjC,IAAI,CAAC,EAAE,YAAY,CAAC;IAGpB,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAG/B,QAAQ,CAAC,EAAE,eAAe,CAAC;IAG3B,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,eAAO,MAAM,sBAAsB,EAAE,CAAC,MAAM,SAAS,CAAC,EAYrD,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 { SampleDataSelection } from '../sampleData';\nimport { ProfileAppearance } from './ProfileAppearance';\nimport { ProfileDefaults } from './ProfileDefaults';\nimport { RootTemplate } from './RootTemplate';\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 * Legacy: still readable, superseded by {@link UiProfile.root}.\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 /**\n * The application's root template (its shell): a template reference - own or blueprint, with a version pin - and the\n * shell's own options. Supersedes {@link UiProfile.layout}; absent falls back to `layout` and then to the blueprint's\n * default shell.\n */\n root?: RootTemplate;\n\n /** The colour scheme
|
|
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 { ProfileAppearance } from './ProfileAppearance';\nimport { ProfileDefaults } from './ProfileDefaults';\nimport { ProfileIdentity } from './ProfileIdentity';\nimport { RootTemplate } from './RootTemplate';\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 * Legacy: still readable, superseded by {@link UiProfile.root}.\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 /**\n * The application's root template (its shell): a template reference - own or blueprint, with a version pin - and the\n * shell's own options. Supersedes {@link UiProfile.layout}; absent falls back to `layout` and then to the blueprint's\n * default shell.\n */\n root?: RootTemplate;\n\n /** The colour scheme, accent colour, corner style and font the application presents. Absent keeps the theme's defaults. */\n appearance?: ProfileAppearance;\n\n /** Application-wide authoring defaults such as the template new screens start from. Absent for none. */\n defaults?: ProfileDefaults;\n\n /** The application's name and logo, set once and drawn by every blueprint. Absent uses the host's application name and initials taken from it. */\n identity?: ProfileIdentity;\n}\n\nexport const UiProfilePropertyNames: (keyof UiProfile)[] = [\n 'name',\n 'targetPlatform',\n 'packages',\n 'defaultSizeClass',\n 'layout',\n 'theme',\n 'sampleData',\n 'root',\n 'appearance',\n 'defaults',\n 'identity',\n];\n"],"names":["UiProfilePropertyNames"],"mappings":"AAAA;AACA;MA+EaA,sBAAAA,GAA8C;AACvD,IAAA,MAAA;AACA,IAAA,gBAAA;AACA,IAAA,UAAA;AACA,IAAA,kBAAA;AACA,IAAA,QAAA;AACA,IAAA,OAAA;AACA,IAAA,YAAA;AACA,IAAA,MAAA;AACA,IAAA,YAAA;AACA,IAAA,UAAA;AACA,IAAA;;;"}
|
|
@@ -2,6 +2,10 @@ export * from './UiProfile';
|
|
|
2
2
|
export * from './Theme';
|
|
3
3
|
export * from './ColorScheme';
|
|
4
4
|
export * from './ProfileAppearance';
|
|
5
|
+
export * from './CornerStyle';
|
|
6
|
+
export * from './LogoKind';
|
|
7
|
+
export * from './ProfileLogo';
|
|
8
|
+
export * from './ProfileIdentity';
|
|
5
9
|
export * from './ProfileDefaults';
|
|
6
10
|
export * from './RootTemplate';
|
|
7
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../profiles/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../profiles/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
|
|
@@ -2,6 +2,10 @@ export * from './UiProfile';
|
|
|
2
2
|
export * from './Theme';
|
|
3
3
|
export * from './ColorScheme';
|
|
4
4
|
export * from './ProfileAppearance';
|
|
5
|
+
export * from './CornerStyle';
|
|
6
|
+
export * from './LogoKind';
|
|
7
|
+
export * from './ProfileLogo';
|
|
8
|
+
export * from './ProfileIdentity';
|
|
5
9
|
export * from './ProfileDefaults';
|
|
6
10
|
export * from './RootTemplate';
|
|
7
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../profiles/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../profiles/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { SampleStatusClassification } from './SampleStatusClassification';
|
|
1
2
|
export interface SampleDataPackReference {
|
|
2
3
|
id: string;
|
|
3
4
|
title: string;
|
|
4
5
|
locale: string;
|
|
5
6
|
path: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
columns?: string[];
|
|
9
|
+
statusColumn?: string;
|
|
10
|
+
statuses?: SampleStatusClassification;
|
|
6
11
|
}
|
|
7
12
|
export declare const SampleDataPackReferencePropertyNames: (keyof SampleDataPackReference)[];
|
|
8
13
|
//# sourceMappingURL=SampleDataPackReference.d.ts.map
|