@cratis/scene.model 2.0.0 → 3.1.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/cjs/packages/ScenePackage.js +3 -1
- package/dist/cjs/packages/ScenePackage.js.map +1 -1
- package/dist/cjs/profiles/Theme.js +2 -1
- package/dist/cjs/profiles/Theme.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/packages/ScenePackage.d.ts +2 -0
- package/dist/esm/packages/ScenePackage.d.ts.map +1 -1
- package/dist/esm/packages/ScenePackage.js +3 -1
- package/dist/esm/packages/ScenePackage.js.map +1 -1
- package/dist/esm/profiles/Theme.d.ts +1 -0
- package/dist/esm/profiles/Theme.d.ts.map +1 -1
- package/dist/esm/profiles/Theme.js +2 -1
- package/dist/esm/profiles/Theme.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/packages/ScenePackage.ts +16 -0
- package/profiles/Theme.ts +6 -0
|
@@ -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"}
|
|
@@ -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 GridPropertyNames = [
|
|
4
|
+
'rows',
|
|
5
|
+
'columns'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { GridPropertyNames };
|
|
9
|
+
//# 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,8 @@
|
|
|
1
|
+
import { GridLength } from '../../common';
|
|
2
|
+
export interface RowDefinition {
|
|
3
|
+
height: GridLength;
|
|
4
|
+
minimumHeight: number;
|
|
5
|
+
maximumHeight: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const RowDefinitionPropertyNames: (keyof RowDefinition)[];
|
|
8
|
+
//# sourceMappingURL=RowDefinition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowDefinition.d.ts","sourceRoot":"","sources":["../../../../elements/panels/RowDefinition.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,UAAU,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,EAAE,CAAC,MAAM,aAAa,CAAC,EAAiD,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 RowDefinitionPropertyNames = [
|
|
4
|
+
'height',
|
|
5
|
+
'minimumHeight',
|
|
6
|
+
'maximumHeight'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export { RowDefinitionPropertyNames };
|
|
10
|
+
//# 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,8 @@
|
|
|
1
|
+
import { Panel } from '../Panel';
|
|
2
|
+
import { Orientation } from '../../common';
|
|
3
|
+
export interface StackPanel extends Panel {
|
|
4
|
+
orientation: Orientation;
|
|
5
|
+
spacing: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const StackPanelPropertyNames: (keyof StackPanel)[];
|
|
8
|
+
//# sourceMappingURL=StackPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackPanel.d.ts","sourceRoot":"","sources":["../../../../elements/panels/StackPanel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK3C,MAAM,WAAW,UAAW,SAAQ,KAAK;IACrC,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,uBAAuB,EAAE,CAAC,MAAM,UAAU,CAAC,EAA+B,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 StackPanelPropertyNames = [
|
|
4
|
+
'orientation',
|
|
5
|
+
'spacing'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { StackPanelPropertyNames };
|
|
9
|
+
//# 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,9 @@
|
|
|
1
|
+
import { Panel } from '../Panel';
|
|
2
|
+
import { Orientation } from '../../common';
|
|
3
|
+
export interface WrapPanel extends Panel {
|
|
4
|
+
orientation: Orientation;
|
|
5
|
+
itemWidth?: number;
|
|
6
|
+
itemHeight?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const WrapPanelPropertyNames: (keyof WrapPanel)[];
|
|
9
|
+
//# sourceMappingURL=WrapPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WrapPanel.d.ts","sourceRoot":"","sources":["../../../../elements/panels/WrapPanel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK3C,MAAM,WAAW,SAAU,SAAQ,KAAK;IACpC,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,sBAAsB,EAAE,CAAC,MAAM,SAAS,CAAC,EAA+C,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 WrapPanelPropertyNames = [
|
|
4
|
+
'orientation',
|
|
5
|
+
'itemWidth',
|
|
6
|
+
'itemHeight'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export { WrapPanelPropertyNames };
|
|
10
|
+
//# 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;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../elements/panels/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../elements/panels/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -5,6 +5,10 @@ export { HorizontalAlignment } from './common/HorizontalAlignment.js';
|
|
|
5
5
|
export { VerticalAlignment } from './common/VerticalAlignment.js';
|
|
6
6
|
export { Visibility } from './common/Visibility.js';
|
|
7
7
|
export { BindingExpressionPropertyNames } from './common/BindingExpression.js';
|
|
8
|
+
export { Orientation } from './common/Orientation.js';
|
|
9
|
+
export { Dock } from './common/Dock.js';
|
|
10
|
+
export { GridUnitType } from './common/GridUnitType.js';
|
|
11
|
+
export { GridLengthPropertyNames } from './common/GridLength.js';
|
|
8
12
|
export { WidthSizeClass } from './sizeClasses/WidthSizeClass.js';
|
|
9
13
|
export { HeightSizeClass } from './sizeClasses/HeightSizeClass.js';
|
|
10
14
|
export { SizeClassPropertyNames } from './sizeClasses/SizeClass.js';
|
|
@@ -16,6 +20,12 @@ export { PanelPropertyNames } from './elements/Panel.js';
|
|
|
16
20
|
export { ItemsControlPropertyNames } from './elements/ItemsControl.js';
|
|
17
21
|
export { ContentControlPropertyNames } from './elements/ContentControl.js';
|
|
18
22
|
export { ExternalComponentPropertyNames } from './elements/ExternalComponent.js';
|
|
23
|
+
export { StackPanelPropertyNames } from './elements/panels/StackPanel.js';
|
|
24
|
+
export { DockPanelPropertyNames } from './elements/panels/DockPanel.js';
|
|
25
|
+
export { WrapPanelPropertyNames } from './elements/panels/WrapPanel.js';
|
|
26
|
+
export { RowDefinitionPropertyNames } from './elements/panels/RowDefinition.js';
|
|
27
|
+
export { ColumnDefinitionPropertyNames } from './elements/panels/ColumnDefinition.js';
|
|
28
|
+
export { GridPropertyNames } from './elements/panels/Grid.js';
|
|
19
29
|
export { LayoutPropertyNames } from './layouts/Layout.js';
|
|
20
30
|
export { SlotPropertyNames } from './layouts/Slot.js';
|
|
21
31
|
export { FlowArrangementPropertyNames } from './layouts/FlowArrangement.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -13,6 +13,8 @@ export interface ScenePackage {
|
|
|
13
13
|
displayName?: string;
|
|
14
14
|
description?: string;
|
|
15
15
|
module?: string;
|
|
16
|
+
license?: string;
|
|
17
|
+
licenseUrl?: string;
|
|
16
18
|
}
|
|
17
19
|
export declare const ScenePackagePropertyNames: (keyof ScenePackage)[];
|
|
18
20
|
//# sourceMappingURL=ScenePackage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScenePackage.d.ts","sourceRoot":"","sources":["../../../packages/ScenePackage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAO5C,MAAM,WAAW,YAAY;IAIzB,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,EAAE,MAAM,CAAC;IAKhB,IAAI,EAAE,WAAW,CAAC;IAKlB,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAKlC,UAAU,EAAE,MAAM,EAAE,CAAC;IAMrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAMlB,eAAe,EAAE,MAAM,EAAE,CAAC;IAK1B,eAAe,EAAE,MAAM,EAAE,CAAC;IAK1B,MAAM,EAAE,MAAM,EAAE,CAAC;IAKjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ScenePackage.d.ts","sourceRoot":"","sources":["../../../packages/ScenePackage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAO5C,MAAM,WAAW,YAAY;IAIzB,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,EAAE,MAAM,CAAC;IAKhB,IAAI,EAAE,WAAW,CAAC;IAKlB,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAKlC,UAAU,EAAE,MAAM,EAAE,CAAC;IAMrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAMlB,eAAe,EAAE,MAAM,EAAE,CAAC;IAK1B,eAAe,EAAE,MAAM,EAAE,CAAC;IAK1B,MAAM,EAAE,MAAM,EAAE,CAAC;IAKjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAOhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAOjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,yBAAyB,EAAE,CAAC,MAAM,YAAY,CAAC,EAe3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScenePackage.js","sources":["../../../packages/ScenePackage.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PackageDependency } from './PackageDependency';\nimport { PackageKind } from './PackageKind';\n\n/**\n * What a {@link UiProfile}'s `packages` entry actually names. A profile lists packages by name only;\n * this is the declaration behind the name - what it contributes, and what else has to be active for it\n * to work.\n */\nexport interface ScenePackage {\n /**\n * The name a {@link UiProfile} lists, and the name a {@link PackageDependency} refers to.\n */\n name: string;\n\n /**\n * The package's own version, so a {@link PackageDependency.versionRange} has something to check against.\n */\n version: string;\n\n /**\n * What the package contributes.\n */\n kind: PackageKind;\n\n /**\n * Other packages that must be active in the same profile for this one to work.\n */\n dependencies: PackageDependency[];\n\n /**\n * The component names this package declares - the catalog entry {@link UiProfile} resolution walks.\n */\n components: string[];\n\n /**\n * The names of the {@link Layout}s this package provides — an application's base navigational shells.\n * Empty for anything that is not a {@link PackageKind.Blueprint}.\n */\n layouts: string[];\n\n /**\n * The names of the {@link ScreenTemplate}s this package provides — the shapes that go inside a layout,\n * at module, feature and slice level.\n */\n screenTemplates: string[];\n\n /**\n * The names of the {@link DialogTemplate}s this package provides.\n */\n dialogTemplates: string[];\n\n /**\n * The names of the {@link Theme}s this package ships, empty for a package that ships none.\n */\n themes: string[];\n\n /**\n * A human-readable name for a package picker, falling back to `name` when absent.\n */\n displayName?: string;\n\n /**\n * A one-line description for a package picker.\n */\n description?: string;\n\n /**\n * The module that implements the package - an npm package name for a web renderer. Design-time\n * tooling needs it to know what to import; the model itself never loads anything.\n */\n module?: string;\n}\n\nexport const ScenePackagePropertyNames: (keyof ScenePackage)[] = [\n 'name',\n 'version',\n 'kind',\n 'dependencies',\n 'components',\n 'layouts',\n 'screenTemplates',\n 'dialogTemplates',\n 'themes',\n 'displayName',\n 'description',\n 'module',\n];\n"],"names":["ScenePackagePropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"ScenePackage.js","sources":["../../../packages/ScenePackage.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PackageDependency } from './PackageDependency';\nimport { PackageKind } from './PackageKind';\n\n/**\n * What a {@link UiProfile}'s `packages` entry actually names. A profile lists packages by name only;\n * this is the declaration behind the name - what it contributes, and what else has to be active for it\n * to work.\n */\nexport interface ScenePackage {\n /**\n * The name a {@link UiProfile} lists, and the name a {@link PackageDependency} refers to.\n */\n name: string;\n\n /**\n * The package's own version, so a {@link PackageDependency.versionRange} has something to check against.\n */\n version: string;\n\n /**\n * What the package contributes.\n */\n kind: PackageKind;\n\n /**\n * Other packages that must be active in the same profile for this one to work.\n */\n dependencies: PackageDependency[];\n\n /**\n * The component names this package declares - the catalog entry {@link UiProfile} resolution walks.\n */\n components: string[];\n\n /**\n * The names of the {@link Layout}s this package provides — an application's base navigational shells.\n * Empty for anything that is not a {@link PackageKind.Blueprint}.\n */\n layouts: string[];\n\n /**\n * The names of the {@link ScreenTemplate}s this package provides — the shapes that go inside a layout,\n * at module, feature and slice level.\n */\n screenTemplates: string[];\n\n /**\n * The names of the {@link DialogTemplate}s this package provides.\n */\n dialogTemplates: string[];\n\n /**\n * The names of the {@link Theme}s this package ships, empty for a package that ships none.\n */\n themes: string[];\n\n /**\n * A human-readable name for a package picker, falling back to `name` when absent.\n */\n displayName?: string;\n\n /**\n * A one-line description for a package picker.\n */\n description?: string;\n\n /**\n * The module that implements the package - an npm package name for a web renderer. Design-time\n * tooling needs it to know what to import; the model itself never loads anything.\n */\n module?: string;\n\n /**\n * The license the package is available under, as a short human-readable name (`MIT`,\n * `PrimeUI Community`). A package picker shows it, because \"what am I taking on by selecting this\"\n * is a question an author needs answered before they select it, not after.\n */\n license?: string;\n\n /**\n * Where the license terms actually live, so a reader can go and check rather than take `license` on\n * trust. Required in practice for anything that is not a permissive standard license — a name alone\n * tells an author nothing about eligibility or obligations.\n */\n licenseUrl?: string;\n}\n\nexport const ScenePackagePropertyNames: (keyof ScenePackage)[] = [\n 'name',\n 'version',\n 'kind',\n 'dependencies',\n 'components',\n 'layouts',\n 'screenTemplates',\n 'dialogTemplates',\n 'themes',\n 'displayName',\n 'description',\n 'module',\n 'license',\n 'licenseUrl',\n];\n"],"names":["ScenePackagePropertyNames"],"mappings":"AAAA;AACA;MAyFaA,yBAAAA,GAAoD;AAC7D,IAAA,MAAA;AACA,IAAA,SAAA;AACA,IAAA,MAAA;AACA,IAAA,cAAA;AACA,IAAA,YAAA;AACA,IAAA,SAAA;AACA,IAAA,iBAAA;AACA,IAAA,iBAAA;AACA,IAAA,QAAA;AACA,IAAA,aAAA;AACA,IAAA,aAAA;AACA,IAAA,QAAA;AACA,IAAA,SAAA;AACA,IAAA;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../profiles/Theme.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,KAAK;IAIlB,IAAI,EAAE,MAAM,CAAC;IAKb,cAAc,EAAE,MAAM,EAAE,CAAC;IAQzB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAKhC,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../profiles/Theme.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,KAAK;IAIlB,IAAI,EAAE,MAAM,CAAC;IAKb,cAAc,EAAE,MAAM,EAAE,CAAC;IAQzB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAKhC,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,kBAAkB,EAAE,CAAC,MAAM,KAAK,CAAC,EAU7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Theme.js","sources":["../../../profiles/Theme.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 token/styling layer, declaring which component packages it is known to work with. An\n * incompatible theme/package pairing is a warning, not an error — the theme might still work by\n * coincidence, but the gap must be visible.\n */\nexport interface Theme {\n /**\n * The theme's name.\n */\n name: string;\n\n /**\n * The component packages this theme is declared compatible with.\n */\n compatibleWith: string[];\n\n /**\n * The theme's design tokens, keyed by semantic name (`primary.color`, `surface.background`,\n * `content.borderColor`, ...). Deliberately semantic rather than CSS: a renderer decides how a token\n * becomes a custom property, a native style, or anything else. Absent for a theme a package applies\n * by its own means rather than through tokens.\n */\n tokens?: Record<string, string>;\n\n /**\n * Whether the theme is a dark scheme, so a picker can group and preview it correctly.\n */\n isDark?: boolean;\n\n /**\n * Who created the theme. A theme adopted from somewhere else — PrimeTek's free presets, a community\n * theme — must credit its original creator here rather than appear to be ours.\n */\n author?: string;\n\n /**\n * A link to the original creator or the theme's home, shown alongside `author`.\n */\n authorUrl?: string;\n\n /**\n * The license the theme is used under, so redistributing it stays honest.\n */\n license?: string;\n\n /**\n * A one-line description for a theme picker.\n */\n description?: string;\n}\n\nexport const ThemePropertyNames: (keyof Theme)[] = [\n 'name',\n 'compatibleWith',\n 'tokens',\n 'isDark',\n 'author',\n 'authorUrl',\n 'license',\n 'description',\n];\n"],"names":["ThemePropertyNames"],"mappings":"AAAA;AACA;AAEA;;;;
|
|
1
|
+
{"version":3,"file":"Theme.js","sources":["../../../profiles/Theme.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 token/styling layer, declaring which component packages it is known to work with. An\n * incompatible theme/package pairing is a warning, not an error — the theme might still work by\n * coincidence, but the gap must be visible.\n */\nexport interface Theme {\n /**\n * The theme's name.\n */\n name: string;\n\n /**\n * The component packages this theme is declared compatible with.\n */\n compatibleWith: string[];\n\n /**\n * The theme's design tokens, keyed by semantic name (`primary.color`, `surface.background`,\n * `content.borderColor`, ...). Deliberately semantic rather than CSS: a renderer decides how a token\n * becomes a custom property, a native style, or anything else. Absent for a theme a package applies\n * by its own means rather than through tokens.\n */\n tokens?: Record<string, string>;\n\n /**\n * Whether the theme is a dark scheme, so a picker can group and preview it correctly.\n */\n isDark?: boolean;\n\n /**\n * Who created the theme. A theme adopted from somewhere else — PrimeTek's free presets, a community\n * theme — must credit its original creator here rather than appear to be ours.\n */\n author?: string;\n\n /**\n * A link to the original creator or the theme's home, shown alongside `author`.\n */\n authorUrl?: string;\n\n /**\n * The license the theme is used under, so redistributing it stays honest.\n */\n license?: string;\n\n /**\n * A one-line description for a theme picker.\n */\n description?: string;\n\n /**\n * Where those license terms live, so a reader can check them rather than take `license` on trust.\n */\n licenseUrl?: string;\n}\n\nexport const ThemePropertyNames: (keyof Theme)[] = [\n 'name',\n 'compatibleWith',\n 'tokens',\n 'isDark',\n 'author',\n 'authorUrl',\n 'license',\n 'description',\n 'licenseUrl',\n];\n"],"names":["ThemePropertyNames"],"mappings":"AAAA;AACA;AAEA;;;;UAwDaA,kBAAAA,GAAsC;AAC/C,IAAA,MAAA;AACA,IAAA,gBAAA;AACA,IAAA,QAAA;AACA,IAAA,QAAA;AACA,IAAA,QAAA;AACA,IAAA,WAAA;AACA,IAAA,SAAA;AACA,IAAA,aAAA;AACA,IAAA;;;;;"}
|