@cratis/scene.model 4.11.0 → 4.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/descriptors/PackageDesignTimeMetadata.ts +7 -1
- package/dist/cjs/descriptors/PackageDesignTimeMetadata.js +2 -1
- package/dist/cjs/descriptors/PackageDesignTimeMetadata.js.map +1 -1
- package/dist/cjs/forms/CommandFormLayout.js +13 -0
- package/dist/cjs/forms/CommandFormLayout.js.map +1 -0
- package/dist/cjs/forms/Form.js +2 -0
- package/dist/cjs/forms/Form.js.map +1 -1
- package/dist/cjs/forms/FormColumn.js +13 -0
- package/dist/cjs/forms/FormColumn.js.map +1 -0
- package/dist/cjs/forms/FormField.js +3 -6
- package/dist/cjs/forms/FormField.js.map +1 -1
- package/dist/cjs/forms/FormFieldPlacement.js +15 -0
- package/dist/cjs/forms/FormFieldPlacement.js.map +1 -0
- package/dist/cjs/forms/FormGenerationMode.js +14 -0
- package/dist/cjs/forms/FormGenerationMode.js.map +1 -0
- package/dist/cjs/forms/FormWidth.js +11 -0
- package/dist/cjs/forms/FormWidth.js.map +1 -0
- package/dist/cjs/forms/FormWidthUnit.js +16 -0
- package/dist/cjs/forms/FormWidthUnit.js.map +1 -0
- package/dist/cjs/index.js +16 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/screens/Outlet.js +2 -1
- package/dist/cjs/screens/Outlet.js.map +1 -1
- package/dist/cjs/screens/TemplateAttribution.js +14 -0
- package/dist/cjs/screens/TemplateAttribution.js.map +1 -0
- package/dist/cjs/screens/TemplateCompatibility.js +11 -0
- package/dist/cjs/screens/TemplateCompatibility.js.map +1 -0
- package/dist/cjs/screens/TemplateMetadata.js +5 -1
- package/dist/cjs/screens/TemplateMetadata.js.map +1 -1
- package/dist/esm/descriptors/PackageDesignTimeMetadata.d.ts +1 -0
- package/dist/esm/descriptors/PackageDesignTimeMetadata.d.ts.map +1 -1
- package/dist/esm/descriptors/PackageDesignTimeMetadata.js +2 -1
- package/dist/esm/descriptors/PackageDesignTimeMetadata.js.map +1 -1
- package/dist/esm/forms/CommandFormLayout.d.ts +11 -0
- package/dist/esm/forms/CommandFormLayout.d.ts.map +1 -0
- package/dist/esm/forms/CommandFormLayout.js +11 -0
- package/dist/esm/forms/CommandFormLayout.js.map +1 -0
- package/dist/esm/forms/Form.d.ts +4 -0
- package/dist/esm/forms/Form.d.ts.map +1 -1
- package/dist/esm/forms/Form.js +2 -0
- package/dist/esm/forms/Form.js.map +1 -1
- package/dist/esm/forms/FormColumn.d.ts +9 -0
- package/dist/esm/forms/FormColumn.d.ts.map +1 -0
- package/dist/esm/forms/FormColumn.js +11 -0
- package/dist/esm/forms/FormColumn.js.map +1 -0
- package/dist/esm/forms/FormField.d.ts +2 -0
- package/dist/esm/forms/FormField.d.ts.map +1 -1
- package/dist/esm/forms/FormField.js +3 -6
- package/dist/esm/forms/FormField.js.map +1 -1
- package/dist/esm/forms/FormFieldPlacement.d.ts +11 -0
- package/dist/esm/forms/FormFieldPlacement.d.ts.map +1 -0
- package/dist/esm/forms/FormFieldPlacement.js +13 -0
- package/dist/esm/forms/FormFieldPlacement.js.map +1 -0
- package/dist/esm/forms/FormGenerationMode.d.ts +5 -0
- package/dist/esm/forms/FormGenerationMode.d.ts.map +1 -0
- package/dist/esm/forms/FormGenerationMode.js +12 -0
- package/dist/esm/forms/FormGenerationMode.js.map +1 -0
- package/dist/esm/forms/FormWidth.d.ts +7 -0
- package/dist/esm/forms/FormWidth.d.ts.map +1 -0
- package/dist/esm/forms/FormWidth.js +9 -0
- package/dist/esm/forms/FormWidth.js.map +1 -0
- package/dist/esm/forms/FormWidthUnit.d.ts +7 -0
- package/dist/esm/forms/FormWidthUnit.d.ts.map +1 -0
- package/dist/esm/forms/FormWidthUnit.js +14 -0
- package/dist/esm/forms/FormWidthUnit.js.map +1 -0
- package/dist/esm/forms/index.d.ts +6 -0
- package/dist/esm/forms/index.d.ts.map +1 -1
- package/dist/esm/forms/index.js +6 -0
- package/dist/esm/forms/index.js.map +1 -1
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/screens/Outlet.d.ts +1 -0
- package/dist/esm/screens/Outlet.d.ts.map +1 -1
- package/dist/esm/screens/Outlet.js +2 -1
- package/dist/esm/screens/Outlet.js.map +1 -1
- package/dist/esm/screens/TemplateAttribution.d.ts +7 -0
- package/dist/esm/screens/TemplateAttribution.d.ts.map +1 -0
- package/dist/esm/screens/TemplateAttribution.js +12 -0
- package/dist/esm/screens/TemplateAttribution.js.map +1 -0
- package/dist/esm/screens/TemplateCompatibility.d.ts +7 -0
- package/dist/esm/screens/TemplateCompatibility.d.ts.map +1 -0
- package/dist/esm/screens/TemplateCompatibility.js +9 -0
- package/dist/esm/screens/TemplateCompatibility.js.map +1 -0
- package/dist/esm/screens/TemplateMetadata.d.ts +6 -0
- package/dist/esm/screens/TemplateMetadata.d.ts.map +1 -1
- package/dist/esm/screens/TemplateMetadata.js +5 -1
- package/dist/esm/screens/TemplateMetadata.js.map +1 -1
- package/dist/esm/screens/index.d.ts +2 -0
- package/dist/esm/screens/index.d.ts.map +1 -1
- package/dist/esm/screens/index.js +2 -0
- package/dist/esm/screens/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/forms/CommandFormLayout.ts +18 -0
- package/forms/Form.ts +5 -1
- package/forms/FormColumn.ts +16 -0
- package/forms/FormField.ts +4 -1
- package/forms/FormFieldPlacement.ts +18 -0
- package/forms/FormGenerationMode.ts +10 -0
- package/forms/FormWidth.ts +16 -0
- package/forms/FormWidthUnit.ts +12 -0
- package/forms/index.ts +6 -0
- package/package.json +1 -1
- package/screens/Outlet.ts +8 -1
- package/screens/TemplateAttribution.ts +18 -0
- package/screens/TemplateCompatibility.ts +21 -0
- package/screens/TemplateMetadata.ts +14 -1
- package/screens/index.ts +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormGenerationMode.js","sources":["../../../forms/FormGenerationMode.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 command form's fields are generated.\n */\nexport enum FormGenerationMode {\n Auto = 'auto',\n Manual = 'manual',\n}\n"],"names":["FormGenerationMode"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,kBAAAA,iBAAAA,SAAAA,kBAAAA,EAAAA;;;AAAAA,IAAAA,OAAAA,kBAAAA;AAGX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormWidth.d.ts","sourceRoot":"","sources":["../../../forms/FormWidth.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKhD,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,aAAa,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,EAAE,CAAC,MAAM,SAAS,CAAC,EAAsB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const FormWidthPropertyNames = [
|
|
4
|
+
'unit',
|
|
5
|
+
'value'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { FormWidthPropertyNames };
|
|
9
|
+
//# sourceMappingURL=FormWidth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormWidth.js","sources":["../../../forms/FormWidth.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 { FormWidthUnit } from './FormWidthUnit';\n\n/**\n * A platform-neutral width value for form geometry.\n */\nexport interface FormWidth {\n unit: FormWidthUnit;\n\n /** The numeric value for fraction, pixel and percent widths. Omitted for `auto`. */\n value?: number;\n}\n\nexport const FormWidthPropertyNames: (keyof FormWidth)[] = ['unit', 'value'];\n"],"names":["FormWidthPropertyNames"],"mappings":"AAAA;AACA;MAcaA,sBAAAA,GAA8C;AAAC,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormWidthUnit.d.ts","sourceRoot":"","sources":["../../../forms/FormWidthUnit.ts"],"names":[],"mappings":"AAMA,oBAAY,aAAa;IACrB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CAChB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* The unit used by a command-form column, gap or field width.
|
|
5
|
+
*/ var FormWidthUnit = /*#__PURE__*/ function(FormWidthUnit) {
|
|
6
|
+
FormWidthUnit["Fraction"] = "fraction";
|
|
7
|
+
FormWidthUnit["Pixels"] = "pixels";
|
|
8
|
+
FormWidthUnit["Percent"] = "percent";
|
|
9
|
+
FormWidthUnit["Auto"] = "auto";
|
|
10
|
+
return FormWidthUnit;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
export { FormWidthUnit };
|
|
14
|
+
//# sourceMappingURL=FormWidthUnit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormWidthUnit.js","sources":["../../../forms/FormWidthUnit.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 unit used by a command-form column, gap or field width.\n */\nexport enum FormWidthUnit {\n Fraction = 'fraction',\n Pixels = 'pixels',\n Percent = 'percent',\n Auto = 'auto',\n}\n"],"names":["FormWidthUnit"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,aAAAA,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAKX,CAAA,CAAA,EAAA;;"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
export * from './CommandFormLayout';
|
|
1
2
|
export * from './Form';
|
|
3
|
+
export * from './FormColumn';
|
|
2
4
|
export * from './FormField';
|
|
5
|
+
export * from './FormFieldPlacement';
|
|
6
|
+
export * from './FormGenerationMode';
|
|
7
|
+
export * from './FormWidth';
|
|
8
|
+
export * from './FormWidthUnit';
|
|
3
9
|
export * from './PopulateSource';
|
|
4
10
|
export * from './PopulateViaQuery';
|
|
5
11
|
export * from './PopulateFromItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../forms/index.ts"],"names":[],"mappings":"AAGA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../forms/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
package/dist/esm/forms/index.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
export * from './CommandFormLayout';
|
|
1
2
|
export * from './Form';
|
|
3
|
+
export * from './FormColumn';
|
|
2
4
|
export * from './FormField';
|
|
5
|
+
export * from './FormFieldPlacement';
|
|
6
|
+
export * from './FormGenerationMode';
|
|
7
|
+
export * from './FormWidth';
|
|
8
|
+
export * from './FormWidthUnit';
|
|
3
9
|
export * from './PopulateSource';
|
|
4
10
|
export * from './PopulateViaQuery';
|
|
5
11
|
export * from './PopulateFromItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../forms/index.ts"],"names":[],"mappings":"AAGA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../forms/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -51,8 +51,14 @@ export { ElementPlacementPropertyNames } from './layouts/ElementPlacement.js';
|
|
|
51
51
|
export { FreeformSlotArrangementPropertyNames } from './layouts/FreeformSlotArrangement.js';
|
|
52
52
|
export { FreeformSlotVariantPropertyNames } from './layouts/FreeformSlotVariant.js';
|
|
53
53
|
export { SlotPlacementPropertyNames } from './layouts/SlotPlacement.js';
|
|
54
|
+
export { CommandFormLayoutPropertyNames } from './forms/CommandFormLayout.js';
|
|
54
55
|
export { FormPropertyNames } from './forms/Form.js';
|
|
56
|
+
export { FormColumnPropertyNames } from './forms/FormColumn.js';
|
|
55
57
|
export { FormFieldPropertyNames } from './forms/FormField.js';
|
|
58
|
+
export { FormFieldPlacementPropertyNames } from './forms/FormFieldPlacement.js';
|
|
59
|
+
export { FormGenerationMode } from './forms/FormGenerationMode.js';
|
|
60
|
+
export { FormWidthPropertyNames } from './forms/FormWidth.js';
|
|
61
|
+
export { FormWidthUnit } from './forms/FormWidthUnit.js';
|
|
56
62
|
export { PopulateViaQueryPropertyNames } from './forms/PopulateViaQuery.js';
|
|
57
63
|
export { PopulateFromItemPropertyNames } from './forms/PopulateFromItem.js';
|
|
58
64
|
export { ContributionPointPropertyNames } from './contributionPoints/ContributionPoint.js';
|
|
@@ -93,6 +99,8 @@ export { OutletPropertyNames } from './screens/Outlet.js';
|
|
|
93
99
|
export { ScreenPropertyNames } from './screens/Screen.js';
|
|
94
100
|
export { ScreenTemplatePropertyNames } from './screens/ScreenTemplate.js';
|
|
95
101
|
export { DialogTemplatePropertyNames } from './screens/DialogTemplate.js';
|
|
102
|
+
export { TemplateAttributionPropertyNames } from './screens/TemplateAttribution.js';
|
|
103
|
+
export { TemplateCompatibilityPropertyNames } from './screens/TemplateCompatibility.js';
|
|
96
104
|
export { TemplateMetadataPropertyNames, TemplateScope } from './screens/TemplateMetadata.js';
|
|
97
105
|
export { UiStarterPropertyNames } from './starters/UiStarter.js';
|
|
98
106
|
export { QueryResultShape } from './queries/QueryResultShape.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Outlet.d.ts","sourceRoot":"","sources":["../../../screens/Outlet.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,MAAM;IAEnB,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Outlet.d.ts","sourceRoot":"","sources":["../../../screens/Outlet.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,MAAM;IAEnB,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;IAOrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,CAAC,MAAM,MAAM,CAAC,EAAuC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Outlet.js","sources":["../../../screens/Outlet.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * A named replacement surface for routed or nested screen content.\n */\nexport interface Outlet {\n /** Stable outlet name used by destinations. */\n name: string;\n\n /** Optional description for designers. */\n description?: string;\n}\n\nexport const OutletPropertyNames: (keyof Outlet)[] = ['name', 'description'];\n"],"names":["OutletPropertyNames"],"mappings":"AAAA;AACA;AAEA;;
|
|
1
|
+
{"version":3,"file":"Outlet.js","sources":["../../../screens/Outlet.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * A named replacement surface for routed or nested screen content.\n */\nexport interface Outlet {\n /** Stable outlet name used by destinations. */\n name: string;\n\n /** Optional description for designers. */\n description?: string;\n\n /**\n * The semantic template types (`TemplateMetadata.type`) a screen must have to be placed in this outlet,\n * such as `Detail` or `Form`. Absent accepts any screen. A destination that places a screen of another\n * type here is diagnosed as an incompatible outlet rather than rendered somewhere it was not designed for.\n */\n accepts?: string[];\n}\n\nexport const OutletPropertyNames: (keyof Outlet)[] = ['name', 'description', 'accepts'];\n"],"names":["OutletPropertyNames"],"mappings":"AAAA;AACA;AAEA;;UAkBaA,mBAAAA,GAAwC;AAAC,IAAA,MAAA;AAAQ,IAAA,aAAA;AAAe,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateAttribution.d.ts","sourceRoot":"","sources":["../../../screens/TemplateAttribution.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,mBAAmB;IAEhC,MAAM,EAAE,MAAM,CAAC;IAGf,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,gCAAgC,EAAE,CAAC,MAAM,mBAAmB,CAAC,EAAgC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* Who authored a template and what must accompany it when it is reused.
|
|
5
|
+
*/ const TemplateAttributionPropertyNames = [
|
|
6
|
+
'author',
|
|
7
|
+
'url',
|
|
8
|
+
'notice'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export { TemplateAttributionPropertyNames };
|
|
12
|
+
//# sourceMappingURL=TemplateAttribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateAttribution.js","sources":["../../../screens/TemplateAttribution.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 * Who authored a template and what must accompany it when it is reused.\n */\nexport interface TemplateAttribution {\n /** The person or organization that authored the template. */\n author: string;\n\n /** An absolute `https` URL where the template's source or documentation lives. */\n url?: string;\n\n /** An attribution notice a license requires to travel with the template, shown by a template browser. */\n notice?: string;\n}\n\nexport const TemplateAttributionPropertyNames: (keyof TemplateAttribution)[] = ['author', 'url', 'notice'];\n"],"names":["TemplateAttributionPropertyNames"],"mappings":"AAAA;AACA;AAEA;;UAcaA,gCAAAA,GAAkE;AAAC,IAAA,QAAA;AAAU,IAAA,KAAA;AAAO,IAAA;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PackageDependency } from '../packages/PackageDependency';
|
|
2
|
+
export interface TemplateCompatibility {
|
|
3
|
+
scene: string;
|
|
4
|
+
packages?: PackageDependency[];
|
|
5
|
+
}
|
|
6
|
+
export declare const TemplateCompatibilityPropertyNames: (keyof TemplateCompatibility)[];
|
|
7
|
+
//# sourceMappingURL=TemplateCompatibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateCompatibility.d.ts","sourceRoot":"","sources":["../../../screens/TemplateCompatibility.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AASlE,MAAM,WAAW,qBAAqB;IAElC,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,kCAAkC,EAAE,CAAC,MAAM,qBAAqB,CAAC,EAA0B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const TemplateCompatibilityPropertyNames = [
|
|
4
|
+
'scene',
|
|
5
|
+
'packages'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { TemplateCompatibilityPropertyNames };
|
|
9
|
+
//# sourceMappingURL=TemplateCompatibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateCompatibility.js","sources":["../../../screens/TemplateCompatibility.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 { PackageDependency } from '../packages/PackageDependency';\n\n/**\n * Which Scene and package versions a template was authored and verified against.\n *\n * A template names components, slots and bindings that only exist in particular versions of Scene and of\n * the packages that provide them. Declaring the ranges lets a catalog mark a template as incompatible with\n * the active package set before an author picks it, instead of rendering placeholders after they have.\n */\nexport interface TemplateCompatibility {\n /** The Scene model version range the template requires, such as `^4.13.0`. */\n scene: string;\n\n /** The packages, and their version ranges, whose components or layouts the template uses. */\n packages?: PackageDependency[];\n}\n\nexport const TemplateCompatibilityPropertyNames: (keyof TemplateCompatibility)[] = ['scene', 'packages'];\n"],"names":["TemplateCompatibilityPropertyNames"],"mappings":"AAAA;AACA;MAmBaA,kCAAAA,GAAsE;AAAC,IAAA,OAAA;AAAS,IAAA;;;"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { TemplateAttribution } from './TemplateAttribution';
|
|
2
|
+
import { TemplateCompatibility } from './TemplateCompatibility';
|
|
1
3
|
export declare enum TemplateScope {
|
|
2
4
|
Application = "Application",
|
|
3
5
|
Module = "Module",
|
|
@@ -9,6 +11,10 @@ export interface TemplateMetadata {
|
|
|
9
11
|
type?: string;
|
|
10
12
|
category?: string;
|
|
11
13
|
scopes?: TemplateScope[];
|
|
14
|
+
compatibility?: TemplateCompatibility;
|
|
15
|
+
attribution?: TemplateAttribution;
|
|
16
|
+
license?: string;
|
|
17
|
+
licenseUrl?: string;
|
|
12
18
|
}
|
|
13
19
|
export declare const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[];
|
|
14
20
|
//# sourceMappingURL=TemplateMetadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateMetadata.d.ts","sourceRoot":"","sources":["../../../screens/TemplateMetadata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TemplateMetadata.d.ts","sourceRoot":"","sources":["../../../screens/TemplateMetadata.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,oBAAY,aAAa;IACrB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,KAAK,UAAU;CAClB;AAMD,MAAM,WAAW,gBAAgB;IAE7B,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;IAEzB,aAAa,CAAC,EAAE,qBAAqB,CAAC;IAEtC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAElC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,6BAA6B,EAAE,CAAC,MAAM,gBAAgB,CAAC,EAEnE,CAAC"}
|
|
@@ -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\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 * Optional semantic and browsing metadata. 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}\n\nexport const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[] = ['type', 'category', 'scopes'];\n"],"names":["TemplateScope","TemplateMetadataPropertyNames"],"mappings":"AAAA;AACA;
|
|
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 * Optional semantic and browsing metadata. 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\nexport const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[] = [\n 'type', 'category', 'scopes', 'compatibility', 'attribution', 'license', 'licenseUrl',\n];\n"],"names":["TemplateScope","TemplateMetadataPropertyNames"],"mappings":"AAAA;AACA;AAKA,2EACO,IAAKA,aAAAA,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAMX,CAAA,CAAA,EAAA;MAuBYC,6BAAAA,GAA4D;AACrE,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,QAAA;AAAU,IAAA,eAAA;AAAiB,IAAA,aAAA;AAAe,IAAA,SAAA;AAAW,IAAA;;;"}
|
|
@@ -2,5 +2,7 @@ export * from './Outlet';
|
|
|
2
2
|
export * from './Screen';
|
|
3
3
|
export * from './ScreenTemplate';
|
|
4
4
|
export * from './DialogTemplate';
|
|
5
|
+
export * from './TemplateAttribution';
|
|
6
|
+
export * from './TemplateCompatibility';
|
|
5
7
|
export * from './TemplateMetadata';
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
|
|
@@ -2,5 +2,7 @@ export * from './Outlet';
|
|
|
2
2
|
export * from './Screen';
|
|
3
3
|
export * from './ScreenTemplate';
|
|
4
4
|
export * from './DialogTemplate';
|
|
5
|
+
export * from './TemplateAttribution';
|
|
6
|
+
export * from './TemplateCompatibility';
|
|
5
7
|
export * from './TemplateMetadata';
|
|
6
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
|