@cratis/scene.model 1.1.0 → 3.0.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/README.md +29 -2
- package/common/Dock.ts +12 -0
- package/common/GridLength.ts +15 -0
- package/common/GridUnitType.ts +11 -0
- package/common/Orientation.ts +10 -0
- package/common/index.ts +4 -0
- package/dist/cjs/common/Dock.js +16 -0
- package/dist/cjs/common/Dock.js.map +1 -0
- package/dist/cjs/common/GridLength.js +11 -0
- package/dist/cjs/common/GridLength.js.map +1 -0
- package/dist/cjs/common/GridUnitType.js +15 -0
- package/dist/cjs/common/GridUnitType.js.map +1 -0
- package/dist/cjs/common/Orientation.js +14 -0
- package/dist/cjs/common/Orientation.js.map +1 -0
- package/dist/cjs/elements/panels/ColumnDefinition.js +12 -0
- package/dist/cjs/elements/panels/ColumnDefinition.js.map +1 -0
- package/dist/cjs/elements/panels/DockPanel.js +10 -0
- package/dist/cjs/elements/panels/DockPanel.js.map +1 -0
- package/dist/cjs/elements/panels/Grid.js +11 -0
- package/dist/cjs/elements/panels/Grid.js.map +1 -0
- package/dist/cjs/elements/panels/RowDefinition.js +12 -0
- package/dist/cjs/elements/panels/RowDefinition.js.map +1 -0
- package/dist/cjs/elements/panels/StackPanel.js +11 -0
- package/dist/cjs/elements/panels/StackPanel.js.map +1 -0
- package/dist/cjs/elements/panels/WrapPanel.js +12 -0
- package/dist/cjs/elements/panels/WrapPanel.js.map +1 -0
- package/dist/cjs/index.js +20 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/common/Dock.d.ts +7 -0
- package/dist/esm/common/Dock.d.ts.map +1 -0
- package/dist/esm/common/Dock.js +14 -0
- package/dist/esm/common/Dock.js.map +1 -0
- package/dist/esm/common/GridLength.d.ts +7 -0
- package/dist/esm/common/GridLength.d.ts.map +1 -0
- package/dist/esm/common/GridLength.js +9 -0
- package/dist/esm/common/GridLength.js.map +1 -0
- package/dist/esm/common/GridUnitType.d.ts +6 -0
- package/dist/esm/common/GridUnitType.d.ts.map +1 -0
- package/dist/esm/common/GridUnitType.js +13 -0
- package/dist/esm/common/GridUnitType.js.map +1 -0
- package/dist/esm/common/Orientation.d.ts +5 -0
- package/dist/esm/common/Orientation.d.ts.map +1 -0
- package/dist/esm/common/Orientation.js +12 -0
- package/dist/esm/common/Orientation.js.map +1 -0
- package/dist/esm/common/index.d.ts +4 -0
- package/dist/esm/common/index.d.ts.map +1 -1
- package/dist/esm/common/index.js +4 -0
- package/dist/esm/common/index.js.map +1 -1
- package/dist/esm/elements/index.d.ts +1 -0
- package/dist/esm/elements/index.d.ts.map +1 -1
- package/dist/esm/elements/index.js +1 -0
- package/dist/esm/elements/index.js.map +1 -1
- package/dist/esm/elements/panels/ColumnDefinition.d.ts +8 -0
- package/dist/esm/elements/panels/ColumnDefinition.d.ts.map +1 -0
- package/dist/esm/elements/panels/ColumnDefinition.js +10 -0
- package/dist/esm/elements/panels/ColumnDefinition.js.map +1 -0
- package/dist/esm/elements/panels/DockPanel.d.ts +6 -0
- package/dist/esm/elements/panels/DockPanel.d.ts.map +1 -0
- package/dist/esm/elements/panels/DockPanel.js +8 -0
- package/dist/esm/elements/panels/DockPanel.js.map +1 -0
- package/dist/esm/elements/panels/Grid.d.ts +9 -0
- package/dist/esm/elements/panels/Grid.d.ts.map +1 -0
- package/dist/esm/elements/panels/Grid.js +9 -0
- package/dist/esm/elements/panels/Grid.js.map +1 -0
- package/dist/esm/elements/panels/RowDefinition.d.ts +8 -0
- package/dist/esm/elements/panels/RowDefinition.d.ts.map +1 -0
- package/dist/esm/elements/panels/RowDefinition.js +10 -0
- package/dist/esm/elements/panels/RowDefinition.js.map +1 -0
- package/dist/esm/elements/panels/StackPanel.d.ts +8 -0
- package/dist/esm/elements/panels/StackPanel.d.ts.map +1 -0
- package/dist/esm/elements/panels/StackPanel.js +9 -0
- package/dist/esm/elements/panels/StackPanel.js.map +1 -0
- package/dist/esm/elements/panels/WrapPanel.d.ts +9 -0
- package/dist/esm/elements/panels/WrapPanel.d.ts.map +1 -0
- package/dist/esm/elements/panels/WrapPanel.js +10 -0
- package/dist/esm/elements/panels/WrapPanel.js.map +1 -0
- package/dist/esm/elements/panels/index.d.ts +7 -0
- package/dist/esm/elements/panels/index.d.ts.map +1 -0
- package/dist/esm/elements/panels/index.js +7 -0
- package/dist/esm/elements/panels/index.js.map +1 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/elements/index.ts +1 -0
- package/elements/panels/ColumnDefinition.ts +15 -0
- package/elements/panels/DockPanel.ts +14 -0
- package/elements/panels/Grid.ts +17 -0
- package/elements/panels/RowDefinition.ts +15 -0
- package/elements/panels/StackPanel.ts +15 -0
- package/elements/panels/WrapPanel.ts +16 -0
- package/elements/panels/index.ts +9 -0
- package/package.json +11 -1
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Scene
|
|
2
2
|
|
|
3
|
+
**Describing a user interface without describing a platform** — Scene is the UI model of the Cratis
|
|
4
|
+
model-first layer (experimental).
|
|
5
|
+
|
|
3
6
|
The object model and runtime for Screenplay-based UIs: `Scene.Model` (platform-agnostic screens, layouts,
|
|
4
7
|
forms, contribution points, ui profiles and themes), `Scene.Engine` (binding/resolution runtime), and
|
|
5
8
|
`Scene.React` (the React renderer).
|
|
@@ -18,8 +21,13 @@ forms, contribution points, ui profiles and themes), `Scene.Engine` (binding/res
|
|
|
18
21
|
|
|
19
22
|
## Description
|
|
20
23
|
|
|
21
|
-
Scene owns the *object model and runtime* half of the Screenplay stack.
|
|
22
|
-
|
|
24
|
+
Scene owns the *object model and runtime* half of the Screenplay stack. In the model-first pipeline,
|
|
25
|
+
[Screenplay](https://github.com/Cratis/Screenplay) describes an event-sourced, CQRS system,
|
|
26
|
+
[Stage](https://github.com/Cratis/Stage) renders it into a running application, and Scene is how that
|
|
27
|
+
application's user interface is described — independently of any rendering platform.
|
|
28
|
+
|
|
29
|
+
`Scene.Model` is the platform-agnostic
|
|
30
|
+
C# object model that [Stage](https://github.com/Cratis/Stage) translates Screenplay's parsed language constructs into, and that [Studio](https://github.com/Cratis/Studio)'s
|
|
23
31
|
design-time tooling reads and writes. `Scene.Engine` walks that graph, resolves bindings (data, action, form,
|
|
24
32
|
navigation contribution) and drives whichever renderer is plugged in — it does not know React exists.
|
|
25
33
|
`Scene.React` is one renderer implementing the abstract vocabulary against real React/DOM; sibling positions
|
|
@@ -38,3 +46,22 @@ Cratis is an open community, and we are glad to help users, teams evaluating the
|
|
|
38
46
|
| Discord | Join the community on [Discord](https://discord.gg/kt4AMpV8WV) for questions and discussions |
|
|
39
47
|
| GitHub Issues | [Report bugs or request features](https://github.com/Cratis/Scene/issues) |
|
|
40
48
|
| Documentation | Read the docs at [cratis.io](https://cratis.io) |
|
|
49
|
+
|
|
50
|
+
## The Cratis ecosystem
|
|
51
|
+
|
|
52
|
+
This project is part of [Cratis](https://www.cratis.io) — free, MIT-licensed tools for building event-sourced and CQRS applications.
|
|
53
|
+
|
|
54
|
+
- **[Chronicle](https://github.com/Cratis/Chronicle)** — event-sourcing database and runtime. Orleans-based kernel, pluggable storage (MongoDB default; PostgreSQL, SQL Server, SQLite, in-memory), language-agnostic gRPC contracts. [Docs](https://www.cratis.io/chronicle/)
|
|
55
|
+
- **Chronicle clients** — first-class [.NET SDK](https://github.com/Cratis/Chronicle), plus [TypeScript](https://github.com/Cratis/Chronicle.TypeScript), [Kotlin/Java](https://github.com/Cratis/Chronicle.Kotlin), and [Elixir](https://github.com/Cratis/Chronicle.Elixir); [Python](https://github.com/Cratis/Chronicle.Python) coming soon (pre-alpha). AI agents connect through the [Chronicle MCP server](https://github.com/Cratis/Chronicle.Mcp).
|
|
56
|
+
- **[Arc](https://github.com/Cratis/Arc)** — opinionated CQRS framework for ASP.NET Core with commands, queries, validation, authorization, and TypeScript proxy generation. Works without event sourcing. [Docs](https://www.cratis.io/arc/)
|
|
57
|
+
- **[Components](https://github.com/Cratis/Components)** — React components aligned with Arc patterns. [Docs](https://www.cratis.io/components/)
|
|
58
|
+
- **[CLI](https://github.com/Cratis/cli) + Workbench** — inspect and diagnose Chronicle from the terminal or the browser. [Docs](https://www.cratis.io/cli/)
|
|
59
|
+
- **Model-first layer (experimental)** — [Studio](https://github.com/Cratis/Studio), [Screenplay](https://github.com/Cratis/Screenplay), [Stage](https://github.com/Cratis/Stage), Scene (this repository), [Prologue](https://github.com/Cratis/Prologue)
|
|
60
|
+
- **Supporting** — [Fundamentals](https://github.com/Cratis/Fundamentals), [Specifications](https://github.com/Cratis/Specifications), [Synopsis](https://github.com/Cratis/Synopsis), [Lens](https://github.com/Cratis/Lens), [Narrator](https://github.com/Cratis/Narrator), and free [AI tooling](https://github.com/Cratis/AI) (preview); [Ensemble](https://github.com/Cratis/Ensemble) coming soon (pre-release)
|
|
61
|
+
- **[Samples](https://github.com/Cratis/Samples)** — runnable event sourcing and CQRS samples for the whole stack
|
|
62
|
+
|
|
63
|
+
Everything Cratis publishes today is MIT licensed and free to use.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
Part of the [Cratis](https://www.cratis.io) platform · [MIT](./LICENSE)
|
package/common/Dock.ts
ADDED
|
@@ -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
|
+
/**
|
|
5
|
+
* The edge of a dock panel a child is docked against.
|
|
6
|
+
*/
|
|
7
|
+
export enum Dock {
|
|
8
|
+
Left = 'Left',
|
|
9
|
+
Top = 'Top',
|
|
10
|
+
Right = 'Right',
|
|
11
|
+
Bottom = 'Bottom',
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
import { GridUnitType } from './GridUnitType';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The length of a grid row or column, which can be absolute, sized to its content, or a weighted
|
|
8
|
+
* share of the space the absolute and content-sized tracks leave behind.
|
|
9
|
+
*/
|
|
10
|
+
export interface GridLength {
|
|
11
|
+
value: number;
|
|
12
|
+
unitType: GridUnitType;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const GridLengthPropertyNames: (keyof GridLength)[] = ['value', 'unitType'];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* How a {@link GridLength}'s value is interpreted.
|
|
6
|
+
*/
|
|
7
|
+
export enum GridUnitType {
|
|
8
|
+
Auto = 'Auto',
|
|
9
|
+
Absolute = 'Absolute',
|
|
10
|
+
Star = 'Star',
|
|
11
|
+
}
|
|
@@ -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
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The direction an element lays its children out in.
|
|
6
|
+
*/
|
|
7
|
+
export enum Orientation {
|
|
8
|
+
Horizontal = 'Horizontal',
|
|
9
|
+
Vertical = 'Vertical',
|
|
10
|
+
}
|
package/common/index.ts
CHANGED
|
@@ -8,3 +8,7 @@ export * from './HorizontalAlignment';
|
|
|
8
8
|
export * from './VerticalAlignment';
|
|
9
9
|
export * from './Visibility';
|
|
10
10
|
export * from './BindingExpression';
|
|
11
|
+
export * from './Orientation';
|
|
12
|
+
export * from './Dock';
|
|
13
|
+
export * from './GridUnitType';
|
|
14
|
+
export * from './GridLength';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* The edge of a dock panel a child is docked against.
|
|
7
|
+
*/ var Dock = /*#__PURE__*/ function(Dock) {
|
|
8
|
+
Dock["Left"] = "Left";
|
|
9
|
+
Dock["Top"] = "Top";
|
|
10
|
+
Dock["Right"] = "Right";
|
|
11
|
+
Dock["Bottom"] = "Bottom";
|
|
12
|
+
return Dock;
|
|
13
|
+
}({});
|
|
14
|
+
|
|
15
|
+
exports.Dock = Dock;
|
|
16
|
+
//# sourceMappingURL=Dock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dock.js","sources":["../../../common/Dock.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 edge of a dock panel a child is docked against.\n */\nexport enum Dock {\n Left = 'Left',\n Top = 'Top',\n Right = 'Right',\n Bottom = 'Bottom',\n}\n"],"names":["Dock"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,IAAAA,iBAAAA,SAAAA,IAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,IAAAA;AAKX,CAAA,CAAA,EAAA;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const GridLengthPropertyNames = [
|
|
6
|
+
'value',
|
|
7
|
+
'unitType'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
exports.GridLengthPropertyNames = GridLengthPropertyNames;
|
|
11
|
+
//# sourceMappingURL=GridLength.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridLength.js","sources":["../../../common/GridLength.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 { GridUnitType } from './GridUnitType';\n\n/**\n * The length of a grid row or column, which can be absolute, sized to its content, or a weighted\n * share of the space the absolute and content-sized tracks leave behind.\n */\nexport interface GridLength {\n value: number;\n unitType: GridUnitType;\n}\n\nexport const GridLengthPropertyNames: (keyof GridLength)[] = ['value', 'unitType'];\n"],"names":["GridLengthPropertyNames"],"mappings":";;AAAA;AACA;MAaaA,uBAAAA,GAAgD;AAAC,IAAA,OAAA;AAAS,IAAA;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* How a {@link GridLength}'s value is interpreted.
|
|
7
|
+
*/ var GridUnitType = /*#__PURE__*/ function(GridUnitType) {
|
|
8
|
+
GridUnitType["Auto"] = "Auto";
|
|
9
|
+
GridUnitType["Absolute"] = "Absolute";
|
|
10
|
+
GridUnitType["Star"] = "Star";
|
|
11
|
+
return GridUnitType;
|
|
12
|
+
}({});
|
|
13
|
+
|
|
14
|
+
exports.GridUnitType = GridUnitType;
|
|
15
|
+
//# sourceMappingURL=GridUnitType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridUnitType.js","sources":["../../../common/GridUnitType.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 GridLength}'s value is interpreted.\n */\nexport enum GridUnitType {\n Auto = 'Auto',\n Absolute = 'Absolute',\n Star = 'Star',\n}\n"],"names":["GridUnitType"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,YAAAA,iBAAAA,SAAAA,YAAAA,EAAAA;;;;AAAAA,IAAAA,OAAAA,YAAAA;AAIX,CAAA,CAAA,EAAA;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* The direction an element lays its children out in.
|
|
7
|
+
*/ var Orientation = /*#__PURE__*/ function(Orientation) {
|
|
8
|
+
Orientation["Horizontal"] = "Horizontal";
|
|
9
|
+
Orientation["Vertical"] = "Vertical";
|
|
10
|
+
return Orientation;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
exports.Orientation = Orientation;
|
|
14
|
+
//# sourceMappingURL=Orientation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Orientation.js","sources":["../../../common/Orientation.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 direction an element lays its children out in.\n */\nexport enum Orientation {\n Horizontal = 'Horizontal',\n Vertical = 'Vertical',\n}\n"],"names":["Orientation"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,WAAAA,iBAAAA,SAAAA,WAAAA,EAAAA;;;AAAAA,IAAAA,OAAAA,WAAAA;AAGX,CAAA,CAAA,EAAA;;;;"}
|
|
@@ -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 ColumnDefinitionPropertyNames = [
|
|
6
|
+
'width',
|
|
7
|
+
'minimumWidth',
|
|
8
|
+
'maximumWidth'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
exports.ColumnDefinitionPropertyNames = ColumnDefinitionPropertyNames;
|
|
12
|
+
//# sourceMappingURL=ColumnDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnDefinition.js","sources":["../../../../elements/panels/ColumnDefinition.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 { GridLength } from '../../common';\n\n/**\n * One column of a {@link Grid}.\n */\nexport interface ColumnDefinition {\n width: GridLength;\n minimumWidth: number;\n maximumWidth: number;\n}\n\nexport const ColumnDefinitionPropertyNames: (keyof ColumnDefinition)[] = ['width', 'minimumWidth', 'maximumWidth'];\n"],"names":["ColumnDefinitionPropertyNames"],"mappings":";;AAAA;AACA;MAaaA,6BAAAA,GAA4D;AAAC,IAAA,OAAA;AAAS,IAAA,cAAA;AAAgB,IAAA;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 DockPanelPropertyNames = [
|
|
6
|
+
'lastChildFill'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
exports.DockPanelPropertyNames = DockPanelPropertyNames;
|
|
10
|
+
//# sourceMappingURL=DockPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DockPanel.js","sources":["../../../../elements/panels/DockPanel.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 { Panel } from '../Panel';\n\n/**\n * Lays its children out against its edges, each child stating which edge through the `Dock` key\n * of its `properties`.\n */\nexport interface DockPanel extends Panel {\n lastChildFill: boolean;\n}\n\nexport const DockPanelPropertyNames: (keyof DockPanel)[] = ['lastChildFill'];\n"],"names":["DockPanelPropertyNames"],"mappings":";;AAAA;AACA;MAYaA,sBAAAA,GAA8C;AAAC,IAAA;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const GridPropertyNames = [
|
|
6
|
+
'rows',
|
|
7
|
+
'columns'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
exports.GridPropertyNames = GridPropertyNames;
|
|
11
|
+
//# sourceMappingURL=Grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.js","sources":["../../../../elements/panels/Grid.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 { Panel } from '../Panel';\nimport { RowDefinition } from './RowDefinition';\nimport { ColumnDefinition } from './ColumnDefinition';\n\n/**\n * Lays its children out in rows and columns. A child states which cell it occupies through the\n * `Grid.Row`, `Grid.Column`, `Grid.RowSpan` and `Grid.ColumnSpan` keys of its `properties`.\n */\nexport interface Grid extends Panel {\n rows: RowDefinition[];\n columns: ColumnDefinition[];\n}\n\nexport const GridPropertyNames: (keyof Grid)[] = ['rows', 'columns'];\n"],"names":["GridPropertyNames"],"mappings":";;AAAA;AACA;MAeaA,iBAAAA,GAAoC;AAAC,IAAA,MAAA;AAAQ,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 RowDefinitionPropertyNames = [
|
|
6
|
+
'height',
|
|
7
|
+
'minimumHeight',
|
|
8
|
+
'maximumHeight'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
exports.RowDefinitionPropertyNames = RowDefinitionPropertyNames;
|
|
12
|
+
//# sourceMappingURL=RowDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowDefinition.js","sources":["../../../../elements/panels/RowDefinition.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 { GridLength } from '../../common';\n\n/**\n * One row of a {@link Grid}.\n */\nexport interface RowDefinition {\n height: GridLength;\n minimumHeight: number;\n maximumHeight: number;\n}\n\nexport const RowDefinitionPropertyNames: (keyof RowDefinition)[] = ['height', 'minimumHeight', 'maximumHeight'];\n"],"names":["RowDefinitionPropertyNames"],"mappings":";;AAAA;AACA;MAaaA,0BAAAA,GAAsD;AAAC,IAAA,QAAA;AAAU,IAAA,eAAA;AAAiB,IAAA;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const StackPanelPropertyNames = [
|
|
6
|
+
'orientation',
|
|
7
|
+
'spacing'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
exports.StackPanelPropertyNames = StackPanelPropertyNames;
|
|
11
|
+
//# sourceMappingURL=StackPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackPanel.js","sources":["../../../../elements/panels/StackPanel.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 { Panel } from '../Panel';\nimport { Orientation } from '../../common';\n\n/**\n * Lays its children out in a single line.\n */\nexport interface StackPanel extends Panel {\n orientation: Orientation;\n spacing: number;\n}\n\nexport const StackPanelPropertyNames: (keyof StackPanel)[] = ['orientation', 'spacing'];\n"],"names":["StackPanelPropertyNames"],"mappings":";;AAAA;AACA;MAaaA,uBAAAA,GAAgD;AAAC,IAAA,aAAA;AAAe,IAAA;;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const WrapPanelPropertyNames = [
|
|
6
|
+
'orientation',
|
|
7
|
+
'itemWidth',
|
|
8
|
+
'itemHeight'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
exports.WrapPanelPropertyNames = WrapPanelPropertyNames;
|
|
12
|
+
//# sourceMappingURL=WrapPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WrapPanel.js","sources":["../../../../elements/panels/WrapPanel.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 { Panel } from '../Panel';\nimport { Orientation } from '../../common';\n\n/**\n * Lays its children out in a line and starts a new one whenever the current line runs out of room.\n */\nexport interface WrapPanel extends Panel {\n orientation: Orientation;\n itemWidth?: number;\n itemHeight?: number;\n}\n\nexport const WrapPanelPropertyNames: (keyof WrapPanel)[] = ['orientation', 'itemWidth', 'itemHeight'];\n"],"names":["WrapPanelPropertyNames"],"mappings":";;AAAA;AACA;MAcaA,sBAAAA,GAA8C;AAAC,IAAA,aAAA;AAAe,IAAA,WAAA;AAAa,IAAA;;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -7,6 +7,10 @@ var HorizontalAlignment = require('./common/HorizontalAlignment.js');
|
|
|
7
7
|
var VerticalAlignment = require('./common/VerticalAlignment.js');
|
|
8
8
|
var Visibility = require('./common/Visibility.js');
|
|
9
9
|
var BindingExpression = require('./common/BindingExpression.js');
|
|
10
|
+
var Orientation = require('./common/Orientation.js');
|
|
11
|
+
var Dock = require('./common/Dock.js');
|
|
12
|
+
var GridUnitType = require('./common/GridUnitType.js');
|
|
13
|
+
var GridLength = require('./common/GridLength.js');
|
|
10
14
|
var WidthSizeClass = require('./sizeClasses/WidthSizeClass.js');
|
|
11
15
|
var HeightSizeClass = require('./sizeClasses/HeightSizeClass.js');
|
|
12
16
|
var SizeClass = require('./sizeClasses/SizeClass.js');
|
|
@@ -18,6 +22,12 @@ var Panel = require('./elements/Panel.js');
|
|
|
18
22
|
var ItemsControl = require('./elements/ItemsControl.js');
|
|
19
23
|
var ContentControl = require('./elements/ContentControl.js');
|
|
20
24
|
var ExternalComponent = require('./elements/ExternalComponent.js');
|
|
25
|
+
var StackPanel = require('./elements/panels/StackPanel.js');
|
|
26
|
+
var DockPanel = require('./elements/panels/DockPanel.js');
|
|
27
|
+
var WrapPanel = require('./elements/panels/WrapPanel.js');
|
|
28
|
+
var RowDefinition = require('./elements/panels/RowDefinition.js');
|
|
29
|
+
var ColumnDefinition = require('./elements/panels/ColumnDefinition.js');
|
|
30
|
+
var Grid = require('./elements/panels/Grid.js');
|
|
21
31
|
var Layout = require('./layouts/Layout.js');
|
|
22
32
|
var Slot = require('./layouts/Slot.js');
|
|
23
33
|
var FlowArrangement = require('./layouts/FlowArrangement.js');
|
|
@@ -62,6 +72,10 @@ exports.HorizontalAlignment = HorizontalAlignment.HorizontalAlignment;
|
|
|
62
72
|
exports.VerticalAlignment = VerticalAlignment.VerticalAlignment;
|
|
63
73
|
exports.Visibility = Visibility.Visibility;
|
|
64
74
|
exports.BindingExpressionPropertyNames = BindingExpression.BindingExpressionPropertyNames;
|
|
75
|
+
exports.Orientation = Orientation.Orientation;
|
|
76
|
+
exports.Dock = Dock.Dock;
|
|
77
|
+
exports.GridUnitType = GridUnitType.GridUnitType;
|
|
78
|
+
exports.GridLengthPropertyNames = GridLength.GridLengthPropertyNames;
|
|
65
79
|
exports.WidthSizeClass = WidthSizeClass.WidthSizeClass;
|
|
66
80
|
exports.HeightSizeClass = HeightSizeClass.HeightSizeClass;
|
|
67
81
|
exports.SizeClassPropertyNames = SizeClass.SizeClassPropertyNames;
|
|
@@ -73,6 +87,12 @@ exports.PanelPropertyNames = Panel.PanelPropertyNames;
|
|
|
73
87
|
exports.ItemsControlPropertyNames = ItemsControl.ItemsControlPropertyNames;
|
|
74
88
|
exports.ContentControlPropertyNames = ContentControl.ContentControlPropertyNames;
|
|
75
89
|
exports.ExternalComponentPropertyNames = ExternalComponent.ExternalComponentPropertyNames;
|
|
90
|
+
exports.StackPanelPropertyNames = StackPanel.StackPanelPropertyNames;
|
|
91
|
+
exports.DockPanelPropertyNames = DockPanel.DockPanelPropertyNames;
|
|
92
|
+
exports.WrapPanelPropertyNames = WrapPanel.WrapPanelPropertyNames;
|
|
93
|
+
exports.RowDefinitionPropertyNames = RowDefinition.RowDefinitionPropertyNames;
|
|
94
|
+
exports.ColumnDefinitionPropertyNames = ColumnDefinition.ColumnDefinitionPropertyNames;
|
|
95
|
+
exports.GridPropertyNames = Grid.GridPropertyNames;
|
|
76
96
|
exports.LayoutPropertyNames = Layout.LayoutPropertyNames;
|
|
77
97
|
exports.SlotPropertyNames = Slot.SlotPropertyNames;
|
|
78
98
|
exports.FlowArrangementPropertyNames = FlowArrangement.FlowArrangementPropertyNames;
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"Dock.d.ts","sourceRoot":"","sources":["../../../common/Dock.ts"],"names":[],"mappings":"AAMA,oBAAY,IAAI;IACZ,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,MAAM,WAAW;CACpB"}
|
|
@@ -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 edge of a dock panel a child is docked against.
|
|
5
|
+
*/ var Dock = /*#__PURE__*/ function(Dock) {
|
|
6
|
+
Dock["Left"] = "Left";
|
|
7
|
+
Dock["Top"] = "Top";
|
|
8
|
+
Dock["Right"] = "Right";
|
|
9
|
+
Dock["Bottom"] = "Bottom";
|
|
10
|
+
return Dock;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
export { Dock };
|
|
14
|
+
//# sourceMappingURL=Dock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dock.js","sources":["../../../common/Dock.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 edge of a dock panel a child is docked against.\n */\nexport enum Dock {\n Left = 'Left',\n Top = 'Top',\n Right = 'Right',\n Bottom = 'Bottom',\n}\n"],"names":["Dock"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,IAAAA,iBAAAA,SAAAA,IAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,IAAAA;AAKX,CAAA,CAAA,EAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridLength.d.ts","sourceRoot":"","sources":["../../../common/GridLength.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,YAAY,CAAC;CAC1B;AAED,eAAO,MAAM,uBAAuB,EAAE,CAAC,MAAM,UAAU,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 GridLengthPropertyNames = [
|
|
4
|
+
'value',
|
|
5
|
+
'unitType'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { GridLengthPropertyNames };
|
|
9
|
+
//# sourceMappingURL=GridLength.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridLength.js","sources":["../../../common/GridLength.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 { GridUnitType } from './GridUnitType';\n\n/**\n * The length of a grid row or column, which can be absolute, sized to its content, or a weighted\n * share of the space the absolute and content-sized tracks leave behind.\n */\nexport interface GridLength {\n value: number;\n unitType: GridUnitType;\n}\n\nexport const GridLengthPropertyNames: (keyof GridLength)[] = ['value', 'unitType'];\n"],"names":["GridLengthPropertyNames"],"mappings":"AAAA;AACA;MAaaA,uBAAAA,GAAgD;AAAC,IAAA,OAAA;AAAS,IAAA;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridUnitType.d.ts","sourceRoot":"","sources":["../../../common/GridUnitType.ts"],"names":[],"mappings":"AAMA,oBAAY,YAAY;IACpB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,IAAI,SAAS;CAChB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* How a {@link GridLength}'s value is interpreted.
|
|
5
|
+
*/ var GridUnitType = /*#__PURE__*/ function(GridUnitType) {
|
|
6
|
+
GridUnitType["Auto"] = "Auto";
|
|
7
|
+
GridUnitType["Absolute"] = "Absolute";
|
|
8
|
+
GridUnitType["Star"] = "Star";
|
|
9
|
+
return GridUnitType;
|
|
10
|
+
}({});
|
|
11
|
+
|
|
12
|
+
export { GridUnitType };
|
|
13
|
+
//# sourceMappingURL=GridUnitType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridUnitType.js","sources":["../../../common/GridUnitType.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 GridLength}'s value is interpreted.\n */\nexport enum GridUnitType {\n Auto = 'Auto',\n Absolute = 'Absolute',\n Star = 'Star',\n}\n"],"names":["GridUnitType"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,YAAAA,iBAAAA,SAAAA,YAAAA,EAAAA;;;;AAAAA,IAAAA,OAAAA,YAAAA;AAIX,CAAA,CAAA,EAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Orientation.d.ts","sourceRoot":"","sources":["../../../common/Orientation.ts"],"names":[],"mappings":"AAMA,oBAAY,WAAW;IACnB,UAAU,eAAe;IACzB,QAAQ,aAAa;CACxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* The direction an element lays its children out in.
|
|
5
|
+
*/ var Orientation = /*#__PURE__*/ function(Orientation) {
|
|
6
|
+
Orientation["Horizontal"] = "Horizontal";
|
|
7
|
+
Orientation["Vertical"] = "Vertical";
|
|
8
|
+
return Orientation;
|
|
9
|
+
}({});
|
|
10
|
+
|
|
11
|
+
export { Orientation };
|
|
12
|
+
//# sourceMappingURL=Orientation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Orientation.js","sources":["../../../common/Orientation.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 direction an element lays its children out in.\n */\nexport enum Orientation {\n Horizontal = 'Horizontal',\n Vertical = 'Vertical',\n}\n"],"names":["Orientation"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,WAAAA,iBAAAA,SAAAA,WAAAA,EAAAA;;;AAAAA,IAAAA,OAAAA,WAAAA;AAGX,CAAA,CAAA,EAAA;;;;"}
|
|
@@ -5,4 +5,8 @@ export * from './HorizontalAlignment';
|
|
|
5
5
|
export * from './VerticalAlignment';
|
|
6
6
|
export * from './Visibility';
|
|
7
7
|
export * from './BindingExpression';
|
|
8
|
+
export * from './Orientation';
|
|
9
|
+
export * from './Dock';
|
|
10
|
+
export * from './GridUnitType';
|
|
11
|
+
export * from './GridLength';
|
|
8
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../common/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../common/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
|
package/dist/esm/common/index.js
CHANGED
|
@@ -5,4 +5,8 @@ export * from './HorizontalAlignment';
|
|
|
5
5
|
export * from './VerticalAlignment';
|
|
6
6
|
export * from './Visibility';
|
|
7
7
|
export * from './BindingExpression';
|
|
8
|
+
export * from './Orientation';
|
|
9
|
+
export * from './Dock';
|
|
10
|
+
export * from './GridUnitType';
|
|
11
|
+
export * from './GridLength';
|
|
8
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../common/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../common/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../elements/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../elements/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../elements/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../elements/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GridLength } from '../../common';
|
|
2
|
+
export interface ColumnDefinition {
|
|
3
|
+
width: GridLength;
|
|
4
|
+
minimumWidth: number;
|
|
5
|
+
maximumWidth: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const ColumnDefinitionPropertyNames: (keyof ColumnDefinition)[];
|
|
8
|
+
//# sourceMappingURL=ColumnDefinition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnDefinition.d.ts","sourceRoot":"","sources":["../../../../elements/panels/ColumnDefinition.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,UAAU,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,6BAA6B,EAAE,CAAC,MAAM,gBAAgB,CAAC,EAA8C,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 ColumnDefinitionPropertyNames = [
|
|
4
|
+
'width',
|
|
5
|
+
'minimumWidth',
|
|
6
|
+
'maximumWidth'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export { ColumnDefinitionPropertyNames };
|
|
10
|
+
//# sourceMappingURL=ColumnDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnDefinition.js","sources":["../../../../elements/panels/ColumnDefinition.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 { GridLength } from '../../common';\n\n/**\n * One column of a {@link Grid}.\n */\nexport interface ColumnDefinition {\n width: GridLength;\n minimumWidth: number;\n maximumWidth: number;\n}\n\nexport const ColumnDefinitionPropertyNames: (keyof ColumnDefinition)[] = ['width', 'minimumWidth', 'maximumWidth'];\n"],"names":["ColumnDefinitionPropertyNames"],"mappings":"AAAA;AACA;MAaaA,6BAAAA,GAA4D;AAAC,IAAA,OAAA;AAAS,IAAA,cAAA;AAAgB,IAAA;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DockPanel.d.ts","sourceRoot":"","sources":["../../../../elements/panels/DockPanel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAMjC,MAAM,WAAW,SAAU,SAAQ,KAAK;IACpC,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,EAAE,CAAC,MAAM,SAAS,CAAC,EAAsB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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 DockPanelPropertyNames = [
|
|
4
|
+
'lastChildFill'
|
|
5
|
+
];
|
|
6
|
+
|
|
7
|
+
export { DockPanelPropertyNames };
|
|
8
|
+
//# sourceMappingURL=DockPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DockPanel.js","sources":["../../../../elements/panels/DockPanel.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 { Panel } from '../Panel';\n\n/**\n * Lays its children out against its edges, each child stating which edge through the `Dock` key\n * of its `properties`.\n */\nexport interface DockPanel extends Panel {\n lastChildFill: boolean;\n}\n\nexport const DockPanelPropertyNames: (keyof DockPanel)[] = ['lastChildFill'];\n"],"names":["DockPanelPropertyNames"],"mappings":"AAAA;AACA;MAYaA,sBAAAA,GAA8C;AAAC,IAAA;;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Panel } from '../Panel';
|
|
2
|
+
import { RowDefinition } from './RowDefinition';
|
|
3
|
+
import { ColumnDefinition } from './ColumnDefinition';
|
|
4
|
+
export interface Grid extends Panel {
|
|
5
|
+
rows: RowDefinition[];
|
|
6
|
+
columns: ColumnDefinition[];
|
|
7
|
+
}
|
|
8
|
+
export declare const GridPropertyNames: (keyof Grid)[];
|
|
9
|
+
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../elements/panels/Grid.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAMtD,MAAM,WAAW,IAAK,SAAQ,KAAK;IAC/B,IAAI,EAAE,aAAa,EAAE,CAAC;IACtB,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,EAAwB,CAAC"}
|