@cratis/scene.model 4.27.0 → 4.29.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.
Files changed (42) hide show
  1. package/dist/cjs/index.js +6 -0
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/structure/SliceNode.js +3 -1
  4. package/dist/cjs/structure/SliceNode.js.map +1 -1
  5. package/dist/cjs/toolbar/Toolbar.js +10 -0
  6. package/dist/cjs/toolbar/Toolbar.js.map +1 -0
  7. package/dist/cjs/toolbar/ToolbarButton.js +15 -0
  8. package/dist/cjs/toolbar/ToolbarButton.js.map +1 -0
  9. package/dist/cjs/toolbar/ToolbarEmphasis.js +15 -0
  10. package/dist/cjs/toolbar/ToolbarEmphasis.js.map +1 -0
  11. package/dist/esm/index.d.ts +1 -0
  12. package/dist/esm/index.d.ts.map +1 -1
  13. package/dist/esm/index.js +3 -0
  14. package/dist/esm/index.js.map +1 -1
  15. package/dist/esm/structure/SliceNode.d.ts +2 -0
  16. package/dist/esm/structure/SliceNode.d.ts.map +1 -1
  17. package/dist/esm/structure/SliceNode.js +3 -1
  18. package/dist/esm/structure/SliceNode.js.map +1 -1
  19. package/dist/esm/toolbar/Toolbar.d.ts +6 -0
  20. package/dist/esm/toolbar/Toolbar.d.ts.map +1 -0
  21. package/dist/esm/toolbar/Toolbar.js +8 -0
  22. package/dist/esm/toolbar/Toolbar.js.map +1 -0
  23. package/dist/esm/toolbar/ToolbarButton.d.ts +11 -0
  24. package/dist/esm/toolbar/ToolbarButton.d.ts.map +1 -0
  25. package/dist/esm/toolbar/ToolbarButton.js +13 -0
  26. package/dist/esm/toolbar/ToolbarButton.js.map +1 -0
  27. package/dist/esm/toolbar/ToolbarEmphasis.d.ts +6 -0
  28. package/dist/esm/toolbar/ToolbarEmphasis.d.ts.map +1 -0
  29. package/dist/esm/toolbar/ToolbarEmphasis.js +13 -0
  30. package/dist/esm/toolbar/ToolbarEmphasis.js.map +1 -0
  31. package/dist/esm/toolbar/index.d.ts +4 -0
  32. package/dist/esm/toolbar/index.d.ts.map +1 -0
  33. package/dist/esm/toolbar/index.js +4 -0
  34. package/dist/esm/toolbar/index.js.map +1 -0
  35. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  36. package/index.ts +1 -0
  37. package/package.json +1 -1
  38. package/structure/SliceNode.ts +7 -1
  39. package/toolbar/Toolbar.ts +14 -0
  40. package/toolbar/ToolbarButton.ts +36 -0
  41. package/toolbar/ToolbarEmphasis.ts +16 -0
  42. package/toolbar/index.ts +6 -0
package/dist/cjs/index.js CHANGED
@@ -193,6 +193,9 @@ var ApplicationLogo = require('./navigation/ApplicationLogo.js');
193
193
  var ApplicationNavigation = require('./navigation/ApplicationNavigation.js');
194
194
  var ModuleNavigation = require('./navigation/ModuleNavigation.js');
195
195
  var NavigationModel = require('./navigation/NavigationModel.js');
196
+ var ToolbarEmphasis = require('./toolbar/ToolbarEmphasis.js');
197
+ var ToolbarButton = require('./toolbar/ToolbarButton.js');
198
+ var Toolbar = require('./toolbar/Toolbar.js');
196
199
 
197
200
 
198
201
 
@@ -399,4 +402,7 @@ exports.ApplicationLogoPropertyNames = ApplicationLogo.ApplicationLogoPropertyNa
399
402
  exports.ApplicationNavigationPropertyNames = ApplicationNavigation.ApplicationNavigationPropertyNames;
400
403
  exports.ModuleNavigationPropertyNames = ModuleNavigation.ModuleNavigationPropertyNames;
401
404
  exports.NavigationModelPropertyNames = NavigationModel.NavigationModelPropertyNames;
405
+ exports.ToolbarEmphasis = ToolbarEmphasis.ToolbarEmphasis;
406
+ exports.ToolbarButtonPropertyNames = ToolbarButton.ToolbarButtonPropertyNames;
407
+ exports.ToolbarPropertyNames = Toolbar.ToolbarPropertyNames;
402
408
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -5,7 +5,9 @@
5
5
  const SliceNodePropertyNames = [
6
6
  'id',
7
7
  'name',
8
- 'kind'
8
+ 'kind',
9
+ 'command',
10
+ 'dialogTemplate'
9
11
  ];
10
12
 
11
13
  exports.SliceNodePropertyNames = SliceNodePropertyNames;
@@ -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;MAkBaA,sBAAAA,GAA8C;AAAC,IAAA,IAAA;AAAM,IAAA,MAAA;AAAQ,IAAA;;;"}
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,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 ToolbarPropertyNames = [
6
+ 'buttons'
7
+ ];
8
+
9
+ exports.ToolbarPropertyNames = ToolbarPropertyNames;
10
+ //# 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,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
+ const ToolbarButtonPropertyNames = [
6
+ 'id',
7
+ 'title',
8
+ 'slice',
9
+ 'emphasis',
10
+ 'icon',
11
+ 'target'
12
+ ];
13
+
14
+ exports.ToolbarButtonPropertyNames = ToolbarButtonPropertyNames;
15
+ //# 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,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 prominent a toolbar button is.
7
+ */ var ToolbarEmphasis = /*#__PURE__*/ function(ToolbarEmphasis) {
8
+ /** The main action of the page: a solid, accented button. */ ToolbarEmphasis["Primary"] = "primary";
9
+ /** A regular action: an outlined button. The default. */ ToolbarEmphasis["Secondary"] = "secondary";
10
+ /** A minor action: a plain button without a frame. */ ToolbarEmphasis["Quiet"] = "quiet";
11
+ return ToolbarEmphasis;
12
+ }({});
13
+
14
+ exports.ToolbarEmphasis = ToolbarEmphasis;
15
+ //# 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;;"}
@@ -17,4 +17,5 @@ export * from './exposure';
17
17
  export * from './editing';
18
18
  export * from './structure';
19
19
  export * from './navigation';
20
+ export * from './toolbar';
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
package/dist/esm/index.js CHANGED
@@ -191,4 +191,7 @@ export { ApplicationLogoPropertyNames } from './navigation/ApplicationLogo.js';
191
191
  export { ApplicationNavigationPropertyNames } from './navigation/ApplicationNavigation.js';
192
192
  export { ModuleNavigationPropertyNames } from './navigation/ModuleNavigation.js';
193
193
  export { NavigationModelPropertyNames } from './navigation/NavigationModel.js';
194
+ export { ToolbarEmphasis } from './toolbar/ToolbarEmphasis.js';
195
+ export { ToolbarButtonPropertyNames } from './toolbar/ToolbarButton.js';
196
+ export { ToolbarPropertyNames } from './toolbar/Toolbar.js';
194
197
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,6 +3,8 @@ export interface SliceNode {
3
3
  id: string;
4
4
  name: string;
5
5
  kind: SliceKind;
6
+ command?: string;
7
+ dialogTemplate?: string;
6
8
  }
7
9
  export declare const SliceNodePropertyNames: (keyof SliceNode)[];
8
10
  //# sourceMappingURL=SliceNode.d.ts.map
@@ -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;CACnB;AAED,eAAO,MAAM,sBAAsB,EAAE,CAAC,MAAM,SAAS,CAAC,EAA2B,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"}
@@ -3,7 +3,9 @@
3
3
  const SliceNodePropertyNames = [
4
4
  'id',
5
5
  'name',
6
- 'kind'
6
+ 'kind',
7
+ 'command',
8
+ 'dialogTemplate'
7
9
  ];
8
10
 
9
11
  export { SliceNodePropertyNames };
@@ -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;MAkBaA,sBAAAA,GAA8C;AAAC,IAAA,IAAA;AAAM,IAAA,MAAA;AAAQ,IAAA;;;"}
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,6 @@
1
+ import { ToolbarButton } from './ToolbarButton';
2
+ export interface Toolbar {
3
+ buttons: ToolbarButton[];
4
+ }
5
+ export declare const ToolbarPropertyNames: (keyof Toolbar)[];
6
+ //# sourceMappingURL=Toolbar.d.ts.map
@@ -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,6 @@
1
+ export declare enum ToolbarEmphasis {
2
+ Primary = "primary",
3
+ Secondary = "secondary",
4
+ Quiet = "quiet"
5
+ }
6
+ //# sourceMappingURL=ToolbarEmphasis.d.ts.map
@@ -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,4 @@
1
+ export * from './ToolbarEmphasis';
2
+ export * from './ToolbarButton';
3
+ export * from './Toolbar';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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,4 @@
1
+ export * from './ToolbarEmphasis';
2
+ export * from './ToolbarButton';
3
+ export * from './Toolbar';
4
+ //# sourceMappingURL=index.js.map
@@ -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"}