@cratis/scene.model 4.26.0 → 4.28.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/CollectionOperation.ts +6 -0
- package/dist/cjs/descriptors/CollectionOperation.js +4 -0
- package/dist/cjs/descriptors/CollectionOperation.js.map +1 -1
- package/dist/cjs/exposure/InstanceContribution.js +2 -1
- package/dist/cjs/exposure/InstanceContribution.js.map +1 -1
- package/dist/cjs/index.js +22 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/navigation/ApplicationLogo.js +13 -0
- package/dist/cjs/navigation/ApplicationLogo.js.map +1 -0
- package/dist/cjs/navigation/ApplicationNavigation.js +11 -0
- package/dist/cjs/navigation/ApplicationNavigation.js.map +1 -0
- package/dist/cjs/navigation/ModuleNavigation.js +11 -0
- package/dist/cjs/navigation/ModuleNavigation.js.map +1 -0
- package/dist/cjs/navigation/NavItem.js +15 -0
- package/dist/cjs/navigation/NavItem.js.map +1 -0
- package/dist/cjs/navigation/NavigationModel.js +11 -0
- package/dist/cjs/navigation/NavigationModel.js.map +1 -0
- package/dist/cjs/navigation/NavigationRegion.js +12 -0
- package/dist/cjs/navigation/NavigationRegion.js.map +1 -0
- package/dist/cjs/navigation/NavigationRegionKind.js +14 -0
- package/dist/cjs/navigation/NavigationRegionKind.js.map +1 -0
- package/dist/cjs/navigation/NavigationRegionMode.js +15 -0
- package/dist/cjs/navigation/NavigationRegionMode.js.map +1 -0
- package/dist/cjs/structure/SliceNode.js +3 -1
- package/dist/cjs/structure/SliceNode.js.map +1 -1
- package/dist/cjs/toolbar/Toolbar.js +10 -0
- package/dist/cjs/toolbar/Toolbar.js.map +1 -0
- package/dist/cjs/toolbar/ToolbarButton.js +15 -0
- package/dist/cjs/toolbar/ToolbarButton.js.map +1 -0
- package/dist/cjs/toolbar/ToolbarEmphasis.js +15 -0
- package/dist/cjs/toolbar/ToolbarEmphasis.js.map +1 -0
- package/dist/esm/descriptors/CollectionOperation.d.ts +2 -1
- package/dist/esm/descriptors/CollectionOperation.d.ts.map +1 -1
- package/dist/esm/descriptors/CollectionOperation.js +4 -0
- package/dist/esm/descriptors/CollectionOperation.js.map +1 -1
- package/dist/esm/exposure/InstanceContribution.d.ts +1 -0
- package/dist/esm/exposure/InstanceContribution.d.ts.map +1 -1
- package/dist/esm/exposure/InstanceContribution.js +2 -1
- package/dist/esm/exposure/InstanceContribution.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/navigation/ApplicationLogo.d.ts +6 -0
- package/dist/esm/navigation/ApplicationLogo.d.ts.map +1 -0
- package/dist/esm/navigation/ApplicationLogo.js +11 -0
- package/dist/esm/navigation/ApplicationLogo.js.map +1 -0
- package/dist/esm/navigation/ApplicationNavigation.d.ts +8 -0
- package/dist/esm/navigation/ApplicationNavigation.d.ts.map +1 -0
- package/dist/esm/navigation/ApplicationNavigation.js +9 -0
- package/dist/esm/navigation/ApplicationNavigation.js.map +1 -0
- package/dist/esm/navigation/ModuleNavigation.d.ts +7 -0
- package/dist/esm/navigation/ModuleNavigation.d.ts.map +1 -0
- package/dist/esm/navigation/ModuleNavigation.js +9 -0
- package/dist/esm/navigation/ModuleNavigation.js.map +1 -0
- package/dist/esm/navigation/NavItem.d.ts +11 -0
- package/dist/esm/navigation/NavItem.d.ts.map +1 -0
- package/dist/esm/navigation/NavItem.js +13 -0
- package/dist/esm/navigation/NavItem.js.map +1 -0
- package/dist/esm/navigation/NavigationModel.d.ts +8 -0
- package/dist/esm/navigation/NavigationModel.d.ts.map +1 -0
- package/dist/esm/navigation/NavigationModel.js +9 -0
- package/dist/esm/navigation/NavigationModel.js.map +1 -0
- package/dist/esm/navigation/NavigationRegion.d.ts +10 -0
- package/dist/esm/navigation/NavigationRegion.d.ts.map +1 -0
- package/dist/esm/navigation/NavigationRegion.js +10 -0
- package/dist/esm/navigation/NavigationRegion.js.map +1 -0
- package/dist/esm/navigation/NavigationRegionKind.d.ts +5 -0
- package/dist/esm/navigation/NavigationRegionKind.d.ts.map +1 -0
- package/dist/esm/navigation/NavigationRegionKind.js +12 -0
- package/dist/esm/navigation/NavigationRegionKind.js.map +1 -0
- package/dist/esm/navigation/NavigationRegionMode.d.ts +6 -0
- package/dist/esm/navigation/NavigationRegionMode.d.ts.map +1 -0
- package/dist/esm/navigation/NavigationRegionMode.js +13 -0
- package/dist/esm/navigation/NavigationRegionMode.js.map +1 -0
- package/dist/esm/navigation/index.d.ts +9 -0
- package/dist/esm/navigation/index.d.ts.map +1 -0
- package/dist/esm/navigation/index.js +9 -0
- package/dist/esm/navigation/index.js.map +1 -0
- package/dist/esm/structure/SliceNode.d.ts +2 -0
- package/dist/esm/structure/SliceNode.d.ts.map +1 -1
- package/dist/esm/structure/SliceNode.js +3 -1
- package/dist/esm/structure/SliceNode.js.map +1 -1
- package/dist/esm/toolbar/Toolbar.d.ts +6 -0
- package/dist/esm/toolbar/Toolbar.d.ts.map +1 -0
- package/dist/esm/toolbar/Toolbar.js +8 -0
- package/dist/esm/toolbar/Toolbar.js.map +1 -0
- package/dist/esm/toolbar/ToolbarButton.d.ts +11 -0
- package/dist/esm/toolbar/ToolbarButton.d.ts.map +1 -0
- package/dist/esm/toolbar/ToolbarButton.js +13 -0
- package/dist/esm/toolbar/ToolbarButton.js.map +1 -0
- package/dist/esm/toolbar/ToolbarEmphasis.d.ts +6 -0
- package/dist/esm/toolbar/ToolbarEmphasis.d.ts.map +1 -0
- package/dist/esm/toolbar/ToolbarEmphasis.js +13 -0
- package/dist/esm/toolbar/ToolbarEmphasis.js.map +1 -0
- package/dist/esm/toolbar/index.d.ts +4 -0
- package/dist/esm/toolbar/index.d.ts.map +1 -0
- package/dist/esm/toolbar/index.js +4 -0
- package/dist/esm/toolbar/index.js.map +1 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/exposure/InstanceContribution.ts +8 -1
- package/index.ts +2 -0
- package/navigation/ApplicationLogo.ts +15 -0
- package/navigation/ApplicationNavigation.ts +18 -0
- package/navigation/ModuleNavigation.ts +17 -0
- package/navigation/NavItem.ts +32 -0
- package/navigation/NavigationModel.ts +18 -0
- package/navigation/NavigationRegion.ts +25 -0
- package/navigation/NavigationRegionKind.ts +13 -0
- package/navigation/NavigationRegionMode.ts +16 -0
- package/navigation/index.ts +11 -0
- package/package.json +1 -1
- package/structure/SliceNode.ts +7 -1
- package/toolbar/Toolbar.ts +14 -0
- package/toolbar/ToolbarButton.ts +36 -0
- package/toolbar/ToolbarEmphasis.ts +16 -0
- package/toolbar/index.ts +6 -0
|
@@ -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 NavigationModelPropertyNames = [
|
|
4
|
+
'application',
|
|
5
|
+
'modules'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { NavigationModelPropertyNames };
|
|
9
|
+
//# sourceMappingURL=NavigationModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationModel.js","sources":["../../../navigation/NavigationModel.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 { ApplicationNavigation } from './ApplicationNavigation';\nimport { ModuleNavigation } from './ModuleNavigation';\n\n/**\n * All the navigation an application declares: its own regions and the regions each module changes.\n */\nexport interface NavigationModel {\n /** The application-level navigation. */\n application: ApplicationNavigation;\n\n /** The per-module navigation; a module that is not listed inherits everything. */\n modules: ModuleNavigation[];\n}\n\nexport const NavigationModelPropertyNames: (keyof NavigationModel)[] = ['application', 'modules'];\n"],"names":["NavigationModelPropertyNames"],"mappings":"AAAA;AACA;MAgBaA,4BAAAA,GAA0D;AAAC,IAAA,aAAA;AAAe,IAAA;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NavigationRegionKind } from './NavigationRegionKind';
|
|
2
|
+
import { NavigationRegionMode } from './NavigationRegionMode';
|
|
3
|
+
import { NavItem } from './NavItem';
|
|
4
|
+
export interface NavigationRegion {
|
|
5
|
+
region: NavigationRegionKind;
|
|
6
|
+
mode?: NavigationRegionMode;
|
|
7
|
+
items: NavItem[];
|
|
8
|
+
}
|
|
9
|
+
export declare const NavigationRegionPropertyNames: (keyof NavigationRegion)[];
|
|
10
|
+
//# sourceMappingURL=NavigationRegion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationRegion.d.ts","sourceRoot":"","sources":["../../../navigation/NavigationRegion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,MAAM,WAAW,gBAAgB;IAE7B,MAAM,EAAE,oBAAoB,CAAC;IAM7B,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAG5B,KAAK,EAAE,OAAO,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,6BAA6B,EAAE,CAAC,MAAM,gBAAgB,CAAC,EAAgC,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 NavigationRegionPropertyNames = [
|
|
4
|
+
'region',
|
|
5
|
+
'mode',
|
|
6
|
+
'items'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export { NavigationRegionPropertyNames };
|
|
10
|
+
//# sourceMappingURL=NavigationRegion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationRegion.js","sources":["../../../navigation/NavigationRegion.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 { NavigationRegionKind } from './NavigationRegionKind';\nimport { NavigationRegionMode } from './NavigationRegionMode';\nimport { NavItem } from './NavItem';\n\n/**\n * The items one level (the application or a module) defines for one navigation region.\n */\nexport interface NavigationRegion {\n /** Which region the items belong to. */\n region: NavigationRegionKind;\n\n /**\n * How a module's items relate to the application's. Absent at the application level, which is the base, and\n * meaning `inherit` at a module.\n */\n mode?: NavigationRegionMode;\n\n /** The items, in order. */\n items: NavItem[];\n}\n\nexport const NavigationRegionPropertyNames: (keyof NavigationRegion)[] = ['region', 'mode', 'items'];\n"],"names":["NavigationRegionPropertyNames"],"mappings":"AAAA;AACA;MAuBaA,6BAAAA,GAA4D;AAAC,IAAA,QAAA;AAAU,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationRegionKind.d.ts","sourceRoot":"","sources":["../../../navigation/NavigationRegionKind.ts"],"names":[],"mappings":"AAMA,oBAAY,oBAAoB;IAE5B,MAAM,WAAW;IAGjB,OAAO,YAAY;CACtB"}
|
|
@@ -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 navigation regions an application shell has.
|
|
5
|
+
*/ var NavigationRegionKind = /*#__PURE__*/ function(NavigationRegionKind) {
|
|
6
|
+
/** The flat strip along the top. */ NavigationRegionKind["Topbar"] = "topbar";
|
|
7
|
+
/** The side list, whose items may have sub-items. */ NavigationRegionKind["Sidebar"] = "sidebar";
|
|
8
|
+
return NavigationRegionKind;
|
|
9
|
+
}({});
|
|
10
|
+
|
|
11
|
+
export { NavigationRegionKind };
|
|
12
|
+
//# sourceMappingURL=NavigationRegionKind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationRegionKind.js","sources":["../../../navigation/NavigationRegionKind.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 navigation regions an application shell has.\n */\nexport enum NavigationRegionKind {\n /** The flat strip along the top. */\n Topbar = 'topbar',\n\n /** The side list, whose items may have sub-items. */\n Sidebar = 'sidebar',\n}\n"],"names":["NavigationRegionKind"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,oBAAAA,iBAAAA,SAAAA,oBAAAA,EAAAA;yCAC0B,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;0DAGiB,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;AAJ3CA,IAAAA,OAAAA,oBAAAA;AAMX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationRegionMode.d.ts","sourceRoot":"","sources":["../../../navigation/NavigationRegionMode.ts"],"names":[],"mappings":"AAMA,oBAAY,oBAAoB;IAE5B,OAAO,YAAY;IAGnB,MAAM,WAAW;IAGjB,QAAQ,aAAa;CACxB"}
|
|
@@ -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 module's region relates to the application's items for the same region.
|
|
5
|
+
*/ var NavigationRegionMode = /*#__PURE__*/ function(NavigationRegionMode) {
|
|
6
|
+
/** Effective items are the application items; the module's own items are cleared. */ NavigationRegionMode["Inherit"] = "inherit";
|
|
7
|
+
/** Effective items are the application items followed by the module's items. */ NavigationRegionMode["Extend"] = "extend";
|
|
8
|
+
/** Effective items are the module's items only. */ NavigationRegionMode["Override"] = "override";
|
|
9
|
+
return NavigationRegionMode;
|
|
10
|
+
}({});
|
|
11
|
+
|
|
12
|
+
export { NavigationRegionMode };
|
|
13
|
+
//# sourceMappingURL=NavigationRegionMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationRegionMode.js","sources":["../../../navigation/NavigationRegionMode.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 module's region relates to the application's items for the same region.\n */\nexport enum NavigationRegionMode {\n /** Effective items are the application items; the module's own items are cleared. */\n Inherit = 'inherit',\n\n /** Effective items are the application items followed by the module's items. */\n Extend = 'extend',\n\n /** Effective items are the module's items only. */\n Override = 'override',\n}\n"],"names":["NavigationRegionMode"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,oBAAAA,iBAAAA,SAAAA,oBAAAA,EAAAA;0FAC2E,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;qFAGL,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;wDAG7B,oBAAA,CAAA,UAAA,CAAA,GAAA,UAAA;AAPzCA,IAAAA,OAAAA,oBAAAA;AASX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './NavigationRegionKind';
|
|
2
|
+
export * from './NavigationRegionMode';
|
|
3
|
+
export * from './NavItem';
|
|
4
|
+
export * from './NavigationRegion';
|
|
5
|
+
export * from './ApplicationLogo';
|
|
6
|
+
export * from './ApplicationNavigation';
|
|
7
|
+
export * from './ModuleNavigation';
|
|
8
|
+
export * from './NavigationModel';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../navigation/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './NavigationRegionKind';
|
|
2
|
+
export * from './NavigationRegionMode';
|
|
3
|
+
export * from './NavItem';
|
|
4
|
+
export * from './NavigationRegion';
|
|
5
|
+
export * from './ApplicationLogo';
|
|
6
|
+
export * from './ApplicationNavigation';
|
|
7
|
+
export * from './ModuleNavigation';
|
|
8
|
+
export * from './NavigationModel';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../navigation/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SliceNode.d.ts","sourceRoot":"","sources":["../../../structure/SliceNode.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,WAAW,SAAS;IAEtB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"SliceNode.d.ts","sourceRoot":"","sources":["../../../structure/SliceNode.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,WAAW,SAAS;IAEtB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,SAAS,CAAC;IAGhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,sBAAsB,EAAE,CAAC,MAAM,SAAS,CAAC,EAAwD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SliceNode.js","sources":["../../../structure/SliceNode.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 { SliceKind } from './SliceKind';\n\n/**\n * A slice in the application hierarchy.\n */\nexport interface SliceNode {\n /** The slice identity, unique among the siblings of its feature or module; its qualified form is `module.feature.Slice`. */\n id: string;\n\n /** The display name. */\n name: string;\n\n /** Whether the slice is a state change, a state view or an automation. */\n kind: SliceKind;\n}\n\nexport const SliceNodePropertyNames: (keyof SliceNode)[] = ['id', 'name', 'kind'];\n"],"names":["SliceNodePropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"SliceNode.js","sources":["../../../structure/SliceNode.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 { SliceKind } from './SliceKind';\n\n/**\n * A slice in the application hierarchy.\n */\nexport interface SliceNode {\n /** The slice identity, unique among the siblings of its feature or module; its qualified form is `module.feature.Slice`. */\n id: string;\n\n /** The display name. */\n name: string;\n\n /** Whether the slice is a state change, a state view or an automation. */\n kind: SliceKind;\n\n /** The command a state change slice accepts; the slice `id` when absent. */\n command?: string;\n\n /** The dialog template the slice opens as a task dialog; the host's default form dialog when absent. */\n dialogTemplate?: string;\n}\n\nexport const SliceNodePropertyNames: (keyof SliceNode)[] = ['id', 'name', 'kind', 'command', 'dialogTemplate'];\n"],"names":["SliceNodePropertyNames"],"mappings":"AAAA;AACA;MAwBaA,sBAAAA,GAA8C;AAAC,IAAA,IAAA;AAAM,IAAA,MAAA;AAAQ,IAAA,MAAA;AAAQ,IAAA,SAAA;AAAW,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../toolbar/Toolbar.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKhD,MAAM,WAAW,OAAO;IAEpB,OAAO,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,oBAAoB,EAAE,CAAC,MAAM,OAAO,CAAC,EAAgB,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 ToolbarPropertyNames = [
|
|
4
|
+
'buttons'
|
|
5
|
+
];
|
|
6
|
+
|
|
7
|
+
export { ToolbarPropertyNames };
|
|
8
|
+
//# sourceMappingURL=Toolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolbar.js","sources":["../../../toolbar/Toolbar.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 { ToolbarButton } from './ToolbarButton';\n\n/**\n * The buttons of a toolbar, in order.\n */\nexport interface Toolbar {\n /** The buttons. */\n buttons: ToolbarButton[];\n}\n\nexport const ToolbarPropertyNames: (keyof Toolbar)[] = ['buttons'];\n"],"names":["ToolbarPropertyNames"],"mappings":"AAAA;AACA;MAYaA,oBAAAA,GAA0C;AAAC,IAAA;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ToolbarEmphasis } from './ToolbarEmphasis';
|
|
2
|
+
export interface ToolbarButton {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
slice?: string;
|
|
6
|
+
emphasis?: ToolbarEmphasis;
|
|
7
|
+
icon?: string;
|
|
8
|
+
target?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ToolbarButtonPropertyNames: (keyof ToolbarButton)[];
|
|
11
|
+
//# sourceMappingURL=ToolbarButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarButton.d.ts","sourceRoot":"","sources":["../../../toolbar/ToolbarButton.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMpD,MAAM,WAAW,aAAa;IAE1B,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;IAMd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,QAAQ,CAAC,EAAE,eAAe,CAAC;IAG3B,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,0BAA0B,EAAE,CAAC,MAAM,aAAa,CAAC,EAA2D,CAAC"}
|
|
@@ -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
|
+
const ToolbarButtonPropertyNames = [
|
|
4
|
+
'id',
|
|
5
|
+
'title',
|
|
6
|
+
'slice',
|
|
7
|
+
'emphasis',
|
|
8
|
+
'icon',
|
|
9
|
+
'target'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
export { ToolbarButtonPropertyNames };
|
|
13
|
+
//# sourceMappingURL=ToolbarButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarButton.js","sources":["../../../toolbar/ToolbarButton.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 { ToolbarEmphasis } from './ToolbarEmphasis';\n\n/**\n * A toolbar button that invokes a state change slice. It is a `core:toolbarItem` with `kind: Action`, a `slice`\n * and an `emphasis`.\n */\nexport interface ToolbarButton {\n /** The button identity. */\n id: string;\n\n /** The text shown on the button. */\n title: string;\n\n /**\n * The qualified id of the state change slice the button invokes, for example `sales.orders.PlaceOrder`; absent\n * for a button that has none yet.\n */\n slice?: string;\n\n /** How prominent the button is; `secondary` when absent. */\n emphasis?: ToolbarEmphasis;\n\n /** Qualified icon reference, when the button has one. */\n icon?: string;\n\n /**\n * The command a hand-authored button names instead of a slice. It is turned into the slice that accepts the command\n * when exactly one does.\n */\n target?: string;\n}\n\nexport const ToolbarButtonPropertyNames: (keyof ToolbarButton)[] = ['id', 'title', 'slice', 'emphasis', 'icon', 'target'];\n"],"names":["ToolbarButtonPropertyNames"],"mappings":"AAAA;AACA;MAkCaA,0BAAAA,GAAsD;AAAC,IAAA,IAAA;AAAM,IAAA,OAAA;AAAS,IAAA,OAAA;AAAS,IAAA,UAAA;AAAY,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarEmphasis.d.ts","sourceRoot":"","sources":["../../../toolbar/ToolbarEmphasis.ts"],"names":[],"mappings":"AAMA,oBAAY,eAAe;IAEvB,OAAO,YAAY;IAGnB,SAAS,cAAc;IAGvB,KAAK,UAAU;CAClB"}
|
|
@@ -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 prominent a toolbar button is.
|
|
5
|
+
*/ var ToolbarEmphasis = /*#__PURE__*/ function(ToolbarEmphasis) {
|
|
6
|
+
/** The main action of the page: a solid, accented button. */ ToolbarEmphasis["Primary"] = "primary";
|
|
7
|
+
/** A regular action: an outlined button. The default. */ ToolbarEmphasis["Secondary"] = "secondary";
|
|
8
|
+
/** A minor action: a plain button without a frame. */ ToolbarEmphasis["Quiet"] = "quiet";
|
|
9
|
+
return ToolbarEmphasis;
|
|
10
|
+
}({});
|
|
11
|
+
|
|
12
|
+
export { ToolbarEmphasis };
|
|
13
|
+
//# sourceMappingURL=ToolbarEmphasis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarEmphasis.js","sources":["../../../toolbar/ToolbarEmphasis.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 prominent a toolbar button is.\n */\nexport enum ToolbarEmphasis {\n /** The main action of the page: a solid, accented button. */\n Primary = 'primary',\n\n /** A regular action: an outlined button. The default. */\n Secondary = 'secondary',\n\n /** A minor action: a plain button without a frame. */\n Quiet = 'quiet',\n}\n"],"names":["ToolbarEmphasis"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,eAAAA,iBAAAA,SAAAA,eAAAA,EAAAA;kEACmD,eAAA,CAAA,SAAA,CAAA,GAAA,SAAA;8DAGJ,eAAA,CAAA,WAAA,CAAA,GAAA,WAAA;2DAGH,eAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AAP5CA,IAAAA,OAAAA,eAAAA;AASX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../toolbar/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../toolbar/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
|