@cratis/scene.components 4.14.0 → 4.16.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 (75) hide show
  1. package/cratisComponentsDescriptors.ts +5 -0
  2. package/cratisComponentsPackage.ts +9 -123
  3. package/cratisComponentsPackageManifest.ts +106 -0
  4. package/cratisComponentsRuntimePackage.ts +22 -0
  5. package/designTime/cratisComponentsDesignTime.ts +22 -0
  6. package/dist/cjs/cratisComponentsDescriptors.js +18 -0
  7. package/dist/cjs/cratisComponentsDescriptors.js.map +1 -1
  8. package/dist/cjs/cratisComponentsPackage.js +10 -141
  9. package/dist/cjs/cratisComponentsPackage.js.map +1 -1
  10. package/dist/cjs/cratisComponentsPackageManifest.js +126 -0
  11. package/dist/cjs/cratisComponentsPackageManifest.js.map +1 -0
  12. package/dist/cjs/cratisComponentsRuntimePackage.js +24 -0
  13. package/dist/cjs/cratisComponentsRuntimePackage.js.map +1 -0
  14. package/dist/cjs/designTime/cratisComponentsDesignTime.js +24 -0
  15. package/dist/cjs/designTime/cratisComponentsDesignTime.js.map +1 -0
  16. package/dist/cjs/forms/CommandFormLayoutEditor.js +73 -0
  17. package/dist/cjs/forms/CommandFormLayoutEditor.js.map +1 -0
  18. package/dist/cjs/forms/CommandFormRuntime.js +5 -3
  19. package/dist/cjs/forms/CommandFormRuntime.js.map +1 -1
  20. package/dist/cjs/forms/SceneCommandForm.js +5 -1
  21. package/dist/cjs/forms/SceneCommandForm.js.map +1 -1
  22. package/dist/cjs/forms/generateCommandFieldsAction.js +10 -1
  23. package/dist/cjs/forms/generateCommandFieldsAction.js.map +1 -1
  24. package/dist/cjs/index.js +6 -1
  25. package/dist/cjs/index.js.map +1 -1
  26. package/dist/cjs/runtime.js +15 -0
  27. package/dist/cjs/runtime.js.map +1 -0
  28. package/dist/esm/cratisComponentsDescriptors.d.ts.map +1 -1
  29. package/dist/esm/cratisComponentsDescriptors.js +18 -0
  30. package/dist/esm/cratisComponentsDescriptors.js.map +1 -1
  31. package/dist/esm/cratisComponentsPackage.d.ts +1 -2
  32. package/dist/esm/cratisComponentsPackage.d.ts.map +1 -1
  33. package/dist/esm/cratisComponentsPackage.js +10 -141
  34. package/dist/esm/cratisComponentsPackage.js.map +1 -1
  35. package/dist/esm/cratisComponentsPackageManifest.d.ts +3 -0
  36. package/dist/esm/cratisComponentsPackageManifest.d.ts.map +1 -0
  37. package/dist/esm/cratisComponentsPackageManifest.js +124 -0
  38. package/dist/esm/cratisComponentsPackageManifest.js.map +1 -0
  39. package/dist/esm/cratisComponentsRuntimePackage.d.ts +3 -0
  40. package/dist/esm/cratisComponentsRuntimePackage.d.ts.map +1 -0
  41. package/dist/esm/cratisComponentsRuntimePackage.js +22 -0
  42. package/dist/esm/cratisComponentsRuntimePackage.js.map +1 -0
  43. package/dist/esm/designTime/cratisComponentsDesignTime.d.ts +3 -0
  44. package/dist/esm/designTime/cratisComponentsDesignTime.d.ts.map +1 -0
  45. package/dist/esm/designTime/cratisComponentsDesignTime.js +22 -0
  46. package/dist/esm/designTime/cratisComponentsDesignTime.js.map +1 -0
  47. package/dist/esm/forms/CommandFormLayoutEditor.d.ts +3 -0
  48. package/dist/esm/forms/CommandFormLayoutEditor.d.ts.map +1 -0
  49. package/dist/esm/forms/CommandFormLayoutEditor.js +71 -0
  50. package/dist/esm/forms/CommandFormLayoutEditor.js.map +1 -0
  51. package/dist/esm/forms/CommandFormRuntime.d.ts +2 -1
  52. package/dist/esm/forms/CommandFormRuntime.d.ts.map +1 -1
  53. package/dist/esm/forms/CommandFormRuntime.js +6 -4
  54. package/dist/esm/forms/CommandFormRuntime.js.map +1 -1
  55. package/dist/esm/forms/SceneCommandForm.d.ts.map +1 -1
  56. package/dist/esm/forms/SceneCommandForm.js +6 -2
  57. package/dist/esm/forms/SceneCommandForm.js.map +1 -1
  58. package/dist/esm/forms/generateCommandFieldsAction.js +10 -1
  59. package/dist/esm/forms/generateCommandFieldsAction.js.map +1 -1
  60. package/dist/esm/index.d.ts +2 -0
  61. package/dist/esm/index.d.ts.map +1 -1
  62. package/dist/esm/index.js +4 -1
  63. package/dist/esm/index.js.map +1 -1
  64. package/dist/esm/runtime.d.ts +5 -0
  65. package/dist/esm/runtime.d.ts.map +1 -0
  66. package/dist/esm/runtime.js +5 -0
  67. package/dist/esm/runtime.js.map +1 -0
  68. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  69. package/forms/CommandFormLayoutEditor.tsx +49 -0
  70. package/forms/CommandFormRuntime.tsx +9 -5
  71. package/forms/SceneCommandForm.tsx +2 -0
  72. package/forms/generateCommandFieldsAction.ts +5 -1
  73. package/index.ts +2 -0
  74. package/package.json +12 -7
  75. package/runtime.ts +9 -0
@@ -1 +1 @@
1
- {"version":3,"file":"cratisComponentsDescriptors.js","sources":["../../cratisComponentsDescriptors.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 { BindingMode, BindingSourceKind, ComponentDescriptor, DesignTimeActionPlacement, PropertyDescriptor, PropertyValueType, QueryResultShape } from '@cratis/scene.model';\nimport { componentRegistryKey } from '@cratis/scene.react';\n\n// The package name, spelled out so describing components does not pull every adapter (and its UI dependencies) in\n// with it; the bundle's validation checks each key against the manifest.\nconst key = (name: string) => componentRegistryKey('Cratis.Components', name);\n\n/**\n * The properties every query-bound data table shares: which query feeds it, and the few settings that shape how\n * it shows the result.\n *\n * `query` is a `QueryReference`, so an editor binds it to a host-supplied query candidate and validates the\n * arguments against it. What is stored is a `QueryBinding`; a plain query name - what screens carried before\n * bindings existed - is still read, as a binding with no explicit connections. The columns are not properties:\n * they are the `content` slot's children, edited as nodes.\n */\nconst dataTableProperties: PropertyDescriptor[] = [\n {\n path: 'query', label: 'Query', group: 'Data', valueType: PropertyValueType.QueryReference, editorKind: 'queryBinding',\n description: 'The collection query that feeds the table.',\n constraints: { required: true, resultShapes: [QueryResultShape.Collection] },\n },\n { path: 'emptyMessage', label: 'Empty message', group: 'Content', valueType: PropertyValueType.String, default: '' },\n {\n path: 'dataKey', label: 'Row identity', group: 'Data', valueType: PropertyValueType.String, editorKind: 'resultField',\n description: 'The result field that identifies a row.',\n },\n {\n path: 'globalFilterFields', label: 'Searchable fields', group: 'Data', valueType: PropertyValueType.Object, editorKind: 'resultFieldList',\n description: 'The result fields the table\\'s search box looks in.',\n },\n {\n path: 'selectedItem', label: 'Selected item', group: 'Outputs', valueType: PropertyValueType.Object, readOnly: true,\n output: true, bindingMode: BindingMode.OneWay,\n description: 'The currently selected row, or null after selection is cleared.',\n },\n];\n\nconst commandFormProperties: PropertyDescriptor[] = [\n {\n path: 'command', label: 'Command', group: 'Command', valueType: PropertyValueType.String, editorKind: 'commandBinding',\n constraints: { required: true },\n description: 'The Arc command proxy rendered through the native command form runtime.',\n },\n {\n path: 'mode', label: 'Mode', group: 'Layout', valueType: PropertyValueType.Enum,\n choices: [{ value: 'auto', label: 'Auto' }, { value: 'manual', label: 'Manual' }], default: 'auto',\n description: 'Auto follows command metadata; manual renders explicit inputs inside the same native form boundary.',\n },\n { path: 'columns', label: 'Legacy columns', group: 'Layout', valueType: PropertyValueType.Number, default: 1, description: 'Backward-compatible column count used when no typed layout metadata is authored.' },\n { path: 'layout', label: 'Layout', group: 'Layout', valueType: PropertyValueType.Object, editorKind: 'commandFormLayout', description: 'Typed command-form geometry: columns, gaps and field placements. Independent of auto/manual field generation.' },\n { path: 'fieldWidths', label: 'Legacy field widths', group: 'Layout', valueType: PropertyValueType.Object, editorKind: 'fieldWidths' },\n {\n path: 'inputs', label: 'Fields', group: 'Layout', valueType: PropertyValueType.Collection, editorKind: 'commandFields',\n acceptedBindingKinds: [BindingSourceKind.DataContext, BindingSourceKind.ComponentProperty],\n item: {\n label: 'Field',\n properties: [\n { path: 'property', label: 'Property', group: 'Field', valueType: PropertyValueType.String },\n { path: 'type', label: 'Type', group: 'Field', valueType: PropertyValueType.Enum, choices: [{ value: 'string', label: 'String' }, { value: 'guid', label: 'Guid' }] },\n { path: 'label', label: 'Label', group: 'Field', valueType: PropertyValueType.String },\n { path: 'column', label: 'Legacy column', group: 'Layout', valueType: PropertyValueType.Number },\n { path: 'width', label: 'Legacy width token', group: 'Layout', valueType: PropertyValueType.String },\n { path: 'placement', label: 'Placement', group: 'Layout', valueType: PropertyValueType.Object, editorKind: 'commandFormFieldPlacement' },\n ],\n },\n },\n {\n path: 'exclude', label: 'Excluded fields', group: 'Command', valueType: PropertyValueType.Collection,\n item: { label: 'Excluded field', properties: [{ path: 'property', label: 'Property', group: 'Field', valueType: PropertyValueType.String }] },\n },\n { path: 'submitLabel', label: 'Submit label', group: 'Content', valueType: PropertyValueType.String, default: 'Submit' },\n];\n\n/**\n * What can be edited on the `Cratis.Components` package's components.\n *\n * Only the query-bound tables are described so far; the form, dialog and editor composites carry\n * Arc proxy classes by name and are configured through their own tooling. A package adds a descriptor here the\n * same way it adds a component to the manifest.\n */\nexport const cratisComponentsDescriptors: ComponentDescriptor[] = [\n { component: key('dataTable'), displayName: 'Data table', properties: dataTableProperties },\n { component: key('table'), displayName: 'Table', properties: dataTableProperties },\n { component: key('observableDataTable'), displayName: 'Live data table', properties: dataTableProperties },\n {\n component: key('commandForm'),\n displayName: 'Command form',\n editorKind: 'commandFormDesigner',\n properties: commandFormProperties,\n actions: [{\n id: 'Cratis.Components.commandForm.generateFields',\n label: 'Generate fields',\n placement: DesignTimeActionPlacement.Toolbar,\n availability: 'commandForm.canGenerateFields',\n description: 'Creates a deterministic editable field layout from the selected command metadata.',\n }],\n },\n];\n"],"names":["key","name","componentRegistryKey","dataTableProperties","path","label","group","valueType","PropertyValueType","QueryReference","editorKind","description","constraints","required","resultShapes","QueryResultShape","Collection","String","default","Object","readOnly","output","bindingMode","BindingMode","OneWay","commandFormProperties","Enum","choices","value","Number","acceptedBindingKinds","BindingSourceKind","DataContext","ComponentProperty","item","properties","cratisComponentsDescriptors","component","displayName","actions","id","placement","DesignTimeActionPlacement","Toolbar","availability"],"mappings":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,iBAAA;QAAmBH,UAAAA,EAAYhC;AAAoB,KAAA;AACzG,IAAA;AACIkC,QAAAA,SAAAA,EAAWrC,GAAAA,CAAI,aAAA,CAAA;QACfsC,WAAAA,EAAa,cAAA;QACb5B,UAAAA,EAAY,qBAAA;QACZyB,UAAAA,EAAYV,qBAAAA;QACZc,OAAAA,EAAS;AAAC,YAAA;gBACNC,EAAAA,EAAI,8CAAA;gBACJnC,KAAAA,EAAO,iBAAA;AACPoC,gBAAAA,SAAAA,EAAWC,0BAA0BC,OAAO;gBAC5CC,YAAAA,EAAc,+BAAA;gBACdjC,WAAAA,EAAa;AACjB;AAAE;AACN;;;"}
1
+ {"version":3,"file":"cratisComponentsDescriptors.js","sources":["../../cratisComponentsDescriptors.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 { BindingMode, BindingSourceKind, ComponentDescriptor, DesignTimeActionPlacement, PropertyDescriptor, PropertyValueType, QueryResultShape } from '@cratis/scene.model';\nimport { componentRegistryKey } from '@cratis/scene.react';\n\n// The package name, spelled out so describing components does not pull every adapter (and its UI dependencies) in\n// with it; the bundle's validation checks each key against the manifest.\nconst key = (name: string) => componentRegistryKey('Cratis.Components', name);\n\n/**\n * The properties every query-bound data table shares: which query feeds it, and the few settings that shape how\n * it shows the result.\n *\n * `query` is a `QueryReference`, so an editor binds it to a host-supplied query candidate and validates the\n * arguments against it. What is stored is a `QueryBinding`; a plain query name - what screens carried before\n * bindings existed - is still read, as a binding with no explicit connections. The columns are not properties:\n * they are the `content` slot's children, edited as nodes.\n */\nconst dataTableProperties: PropertyDescriptor[] = [\n {\n path: 'query', label: 'Query', group: 'Data', valueType: PropertyValueType.QueryReference, editorKind: 'queryBinding',\n description: 'The collection query that feeds the table.',\n constraints: { required: true, resultShapes: [QueryResultShape.Collection] },\n },\n { path: 'emptyMessage', label: 'Empty message', group: 'Content', valueType: PropertyValueType.String, default: '' },\n {\n path: 'dataKey', label: 'Row identity', group: 'Data', valueType: PropertyValueType.String, editorKind: 'resultField',\n description: 'The result field that identifies a row.',\n },\n {\n path: 'globalFilterFields', label: 'Searchable fields', group: 'Data', valueType: PropertyValueType.Object, editorKind: 'resultFieldList',\n description: 'The result fields the table\\'s search box looks in.',\n },\n {\n path: 'selectedItem', label: 'Selected item', group: 'Outputs', valueType: PropertyValueType.Object, readOnly: true,\n output: true, bindingMode: BindingMode.OneWay,\n description: 'The currently selected row, or null after selection is cleared.',\n },\n];\n\nconst commandFormProperties: PropertyDescriptor[] = [\n {\n path: 'command', label: 'Command', group: 'Command', valueType: PropertyValueType.String, editorKind: 'commandBinding',\n constraints: { required: true },\n description: 'The Arc command proxy rendered through the native command form runtime.',\n },\n {\n path: 'mode', label: 'Mode', group: 'Layout', valueType: PropertyValueType.Enum,\n choices: [{ value: 'auto', label: 'Auto' }, { value: 'manual', label: 'Manual' }], default: 'auto',\n description: 'Auto follows command metadata; manual renders explicit inputs inside the same native form boundary.',\n },\n { path: 'columns', label: 'Legacy columns', group: 'Layout', valueType: PropertyValueType.Number, default: 1, description: 'Backward-compatible column count used when no typed layout metadata is authored.' },\n { path: 'layout', label: 'Layout', group: 'Layout', valueType: PropertyValueType.Object, editorKind: 'commandFormLayout', description: 'Typed command-form geometry: columns, gaps and field placements. Independent of auto/manual field generation.' },\n {\n path: 'widthSizeClass', label: 'Width size class', group: 'Layout', valueType: PropertyValueType.Enum, default: 'Regular',\n choices: [{ value: 'Regular', label: 'Regular' }, { value: 'Compact', label: 'Compact' }],\n description: 'The width size class the host evaluated. At Compact the fields of a manual form stack in one column in reading order.',\n },\n { path: 'fieldWidths', label: 'Legacy field widths', group: 'Layout', valueType: PropertyValueType.Object, editorKind: 'fieldWidths' },\n {\n path: 'inputs', label: 'Fields', group: 'Layout', valueType: PropertyValueType.Collection, editorKind: 'commandFields',\n acceptedBindingKinds: [BindingSourceKind.DataContext, BindingSourceKind.ComponentProperty],\n item: {\n label: 'Field',\n properties: [\n { path: 'property', label: 'Property', group: 'Field', valueType: PropertyValueType.String },\n { path: 'type', label: 'Type', group: 'Field', valueType: PropertyValueType.Enum, choices: [{ value: 'string', label: 'String' }, { value: 'guid', label: 'Guid' }] },\n { path: 'label', label: 'Label', group: 'Field', valueType: PropertyValueType.String },\n { path: 'column', label: 'Legacy column', group: 'Layout', valueType: PropertyValueType.Number },\n { path: 'width', label: 'Legacy width token', group: 'Layout', valueType: PropertyValueType.String },\n { path: 'placement', label: 'Placement', group: 'Layout', valueType: PropertyValueType.Object, editorKind: 'commandFormFieldPlacement' },\n ],\n },\n },\n {\n path: 'exclude', label: 'Excluded fields', group: 'Command', valueType: PropertyValueType.Collection,\n item: { label: 'Excluded field', properties: [{ path: 'property', label: 'Property', group: 'Field', valueType: PropertyValueType.String }] },\n },\n { path: 'submitLabel', label: 'Submit label', group: 'Content', valueType: PropertyValueType.String, default: 'Submit' },\n];\n\n/**\n * What can be edited on the `Cratis.Components` package's components.\n *\n * Only the query-bound tables are described so far; the form, dialog and editor composites carry\n * Arc proxy classes by name and are configured through their own tooling. A package adds a descriptor here the\n * same way it adds a component to the manifest.\n */\nexport const cratisComponentsDescriptors: ComponentDescriptor[] = [\n { component: key('dataTable'), displayName: 'Data table', properties: dataTableProperties },\n { component: key('table'), displayName: 'Table', properties: dataTableProperties },\n { component: key('observableDataTable'), displayName: 'Live data table', properties: dataTableProperties },\n {\n component: key('commandForm'),\n displayName: 'Command form',\n editorKind: 'commandFormDesigner',\n properties: commandFormProperties,\n actions: [{\n id: 'Cratis.Components.commandForm.generateFields',\n label: 'Generate fields',\n placement: DesignTimeActionPlacement.Toolbar,\n availability: 'commandForm.canGenerateFields',\n description: 'Creates a deterministic editable field layout from the selected command metadata.',\n }],\n },\n];\n"],"names":["key","name","componentRegistryKey","dataTableProperties","path","label","group","valueType","PropertyValueType","QueryReference","editorKind","description","constraints","required","resultShapes","QueryResultShape","Collection","String","default","Object","readOnly","output","bindingMode","BindingMode","OneWay","commandFormProperties","Enum","choices","value","Number","acceptedBindingKinds","BindingSourceKind","DataContext","ComponentProperty","item","properties","cratisComponentsDescriptors","component","displayName","actions","id","placement","DesignTimeActionPlacement","Toolbar","availability"],"mappings":";;;AAAA;AACA;AAKA;AACA;AACA,MAAMA,GAAAA,GAAM,CAACC,IAAAA,GAAiBC,oBAAAA,CAAqB,mBAAA,EAAqBD,IAAAA,CAAAA;AAExE;;;;;;;;AAQC,IACD,MAAME,mBAAAA,GAA4C;AAC9C,IAAA;QACIC,IAAAA,EAAM,OAAA;QAASC,KAAAA,EAAO,OAAA;QAASC,KAAAA,EAAO,MAAA;AAAQC,QAAAA,SAAAA,EAAWC,kBAAkBC,cAAc;QAAEC,UAAAA,EAAY,cAAA;QACvGC,WAAAA,EAAa,4CAAA;QACbC,WAAAA,EAAa;YAAEC,QAAAA,EAAU,IAAA;YAAMC,YAAAA,EAAc;AAACC,gBAAAA,gBAAAA,CAAiBC;AAAW;AAAC;AAC/E,KAAA;AACA,IAAA;QAAEZ,IAAAA,EAAM,cAAA;QAAgBC,KAAAA,EAAO,eAAA;QAAiBC,KAAAA,EAAO,SAAA;AAAWC,QAAAA,SAAAA,EAAWC,kBAAkBS,MAAM;QAAEC,OAAAA,EAAS;AAAG,KAAA;AACnH,IAAA;QACId,IAAAA,EAAM,SAAA;QAAWC,KAAAA,EAAO,cAAA;QAAgBC,KAAAA,EAAO,MAAA;AAAQC,QAAAA,SAAAA,EAAWC,kBAAkBS,MAAM;QAAEP,UAAAA,EAAY,aAAA;QACxGC,WAAAA,EAAa;AACjB,KAAA;AACA,IAAA;QACIP,IAAAA,EAAM,oBAAA;QAAsBC,KAAAA,EAAO,mBAAA;QAAqBC,KAAAA,EAAO,MAAA;AAAQC,QAAAA,SAAAA,EAAWC,kBAAkBW,MAAM;QAAET,UAAAA,EAAY,iBAAA;QACxHC,WAAAA,EAAa;AACjB,KAAA;AACA,IAAA;QACIP,IAAAA,EAAM,cAAA;QAAgBC,KAAAA,EAAO,eAAA;QAAiBC,KA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,KAAAA,EAAO,SAAA;AAAWC,QAAAA,SAAAA,EAAWC,kBAAkBS,MAAM;QAAEC,OAAAA,EAAS;AAAS;AAC1H,CAAA;AAED;;;;;;UAOakB,2BAAAA,GAAqD;AAC9D,IAAA;AAAEC,QAAAA,SAAAA,EAAWrC,GAAAA,CAAI,WAAA,CAAA;QAAcsC,WAAAA,EAAa,YAAA;QAAcH,UAAAA,EAAYhC;AAAoB,KAAA;AAC1F,IAAA;AAAEkC,QAAAA,SAAAA,EAAWrC,GAAAA,CAAI,OAAA,CAAA;QAAUsC,WAAAA,EAAa,OAAA;QAASH,UAAAA,EAAYhC;AAAoB,KAAA;AACjF,IAAA;AAAEkC,QAAAA,SAAAA,EAAWrC,GAAAA,CAAI,qBAAA,CAAA;QAAwBsC,WAAAA,EAAa,iBAAA;QAAmBH,UAAAA,EAAYhC;AAAoB,KAAA;AACzG,IAAA;AACIkC,QAAAA,SAAAA,EAAWrC,GAAAA,CAAI,aAAA,CAAA;QACfsC,WAAAA,EAAa,cAAA;QACb5B,UAAAA,EAAY,qBAAA;QACZyB,UAAAA,EAAYV,qBAAAA;QACZc,OAAAA,EAAS;AAAC,YAAA;gBACNC,EAAAA,EAAI,8CAAA;gBACJnC,KAAAA,EAAO,iBAAA;AACPoC,gBAAAA,SAAAA,EAAWC,0BAA0BC,OAAO;gBAC5CC,YAAAA,EAAc,+BAAA;gBACdjC,WAAAA,EAAa;AACjB;AAAE;AACN;;;"}
@@ -1,5 +1,4 @@
1
- import { ScenePackage } from '@cratis/scene.model';
2
1
  import { ScenePackageBundle } from '@cratis/scene.react';
3
- export declare const cratisComponentsPackageManifest: ScenePackage;
2
+ export { cratisComponentsPackageManifest } from './cratisComponentsPackageManifest';
4
3
  export declare const cratisComponentsPackage: ScenePackageBundle;
5
4
  //# sourceMappingURL=cratisComponentsPackage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cratisComponentsPackage.d.ts","sourceRoot":"","sources":["../../cratisComponentsPackage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AA0BzD,eAAO,MAAM,+BAA+B,EAAE,YA+E7C,CAAC;AASF,eAAO,MAAM,uBAAuB,EAAE,kBAerC,CAAC"}
1
+ {"version":3,"file":"cratisComponentsPackage.d.ts","sourceRoot":"","sources":["../../cratisComponentsPackage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAIzD,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AASpF,eAAO,MAAM,uBAAuB,EAAE,kBAGrC,CAAC"}
@@ -1,150 +1,19 @@
1
- import { PackageKind } from '@cratis/scene.model';
2
- import { cratisComponents, cratisComponentsPackageName } from './cratisComponents.js';
3
- import { cratisComponentsDescriptors } from './cratisComponentsDescriptors.js';
4
- import { CommandFieldPropertyEditor } from './forms/CommandFieldPropertyEditor.js';
5
- import { CommandFormDesigner } from './forms/CommandFormDesigner.js';
6
- import { generateCommandFieldsAction } from './forms/generateCommandFieldsAction.js';
1
+ import { cratisComponentsDesignTime } from './designTime/cratisComponentsDesignTime.js';
2
+ import { cratisComponentsRuntimePackage } from './cratisComponentsRuntimePackage.js';
3
+ export { cratisComponentsPackageManifest } from './cratisComponentsPackageManifest.js';
7
4
 
8
5
  // Copyright (c) Cratis. All rights reserved.
9
6
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
10
7
  /**
11
- * The `Cratis.Components` package's declaration - what a profile gets when it lists this package.
8
+ * The `Cratis.Components` package as a loadable bundle - the manifest, the React components behind the names
9
+ * it declares, and the design-time contributions a designer loads.
12
10
  *
13
- * This is the concrete case the whole package-dependency mechanism exists for. `@cratis/components` is
14
- * not a self-contained library: every component in it is a wrapper over a PrimeReact widget, and its own
15
- * styling is a `--cratis-*` token layer (`@cratis/components/tokens`) plus the component stylesheets and
16
- * compiled Tailwind utilities in `@cratis/components/styles`. Activate it in a profile without PrimeReact
17
- * and nothing renders; activate it without Tailwind and everything renders unstyled. Both are stated as
18
- * dependencies so a package picker can say so while the profile is being configured, instead of leaving
19
- * it to be discovered when the page opens.
20
- *
21
- * The version ranges are the real ones the library carries. `>=11.0.0` for PrimeReact: version 3.0.0
22
- * declares `primereact@^11` as a peer dependency and is built against version 11's component set, so the
23
- * span across the major boundary that the previous `>=10.9.0` range described is over. The `--cratis-*`
24
- * tokens still resolve a version 10 theme variable as their last fallback, but that is an upgrade-window
25
- * courtesy for an application with a compiled version 10 stylesheet still on the page - not a version of
26
- * PrimeReact this package can be activated against. `^4.0.0` for Tailwind, because the utility sheet is
27
- * compiled against Tailwind 4.
28
- */ const cratisComponentsPackageManifest = {
29
- name: cratisComponentsPackageName,
30
- version: '3.0.0',
31
- kind: PackageKind.ComponentLibrary,
32
- dependencies: [
33
- {
34
- name: 'PrimeReact',
35
- versionRange: '>=11.0.0'
36
- },
37
- {
38
- name: 'Tailwind',
39
- versionRange: '^4.0.0'
40
- }
41
- ],
42
- components: [
43
- 'page',
44
- 'dataPage',
45
- 'formElement',
46
- 'singleResult',
47
- 'queryInputForm',
48
- 'dataTable',
49
- 'table',
50
- 'observableDataTable',
51
- 'commandForm',
52
- 'inputTextField',
53
- 'numberField',
54
- 'checkboxField',
55
- 'textAreaField',
56
- 'dropdownField',
57
- 'sliderField',
58
- 'calendarField',
59
- 'colorPickerField',
60
- 'multiSelectField',
61
- 'chipsField',
62
- 'radioButtonField',
63
- 'radioGroupField',
64
- 'dialog',
65
- 'confirmationDialog',
66
- 'busyIndicatorDialog',
67
- 'commandDialog',
68
- 'stepperCommandDialog',
69
- 'icon',
70
- 'tooltip',
71
- 'dropdown',
72
- 'errorBoundary',
73
- 'objectContentEditor',
74
- 'objectNavigationalBar',
75
- 'schemaEditor',
76
- 'timeMachine',
77
- 'filterPanel',
78
- 'toolbar',
79
- 'toolbarButton',
80
- 'toolbarGroup',
81
- 'toolbarSeparator'
82
- ],
83
- // A component library ships components, and nothing else. Layouts, screen templates and dialog
84
- // templates all belong to a Blueprint: they are decisions about what an application looks like as a
85
- // whole, and this package deliberately makes none of them - it provides the Arc-bound composites a
86
- // template is *built from*, so that a blueprint can place a `dataPage` in a slot and configure it,
87
- // rather than shipping one opinionated data page nobody can rearrange.
88
- layouts: [],
89
- screenTemplates: [],
90
- dialogTemplates: [],
91
- // No themes either, for a different reason: `@cratis/components` has no palette of its own. It reads
92
- // a `--cratis-*` variable layer that resolves whatever is in front of it - the `--p-*` properties a
93
- // PrimeReact 11 preset emits at runtime, or a Scene theme through this package's token bridge.
94
- // Shipping a theme here would be this library asserting a look it was specifically built not to have.
95
- themes: [],
96
- displayName: 'Cratis Components',
97
- description: "Cratis' Arc-bound data, form and dialog composites, built on PrimeReact and Tailwind. dataTable and table accept optional object-valued queryArguments for collection queries. singleResult displays one read-only scalar own resultField of an optional model using an explicit query, object queryArguments and enabled: true. queryInputForm commits explicit string inputs on submit to the same optional-single runtime; drafts never execute a query.",
98
- module: '@cratis/scene.components',
99
- license: 'MIT',
100
- licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',
101
- designTime: {
102
- previews: [],
103
- designers: [
104
- 'commandFormDesigner'
105
- ],
106
- propertyEditors: [
107
- 'commandBinding',
108
- 'commandFields',
109
- 'fieldWidths'
110
- ],
111
- propertyDisplays: [],
112
- actions: [
113
- 'Cratis.Components.commandForm.generateFields'
114
- ]
115
- },
116
- assets: [
117
- '@cratis/components/styles',
118
- '@cratis/components/tokens'
119
- ],
120
- runtimeSingletons: [
121
- 'react',
122
- '@cratis/arc',
123
- '@cratis/components'
124
- ]
125
- };
126
- /**
127
- * The `Cratis.Components` package as a loadable bundle - the manifest above, plus the React components
128
- * behind the names it declares.
129
- *
130
- * No `layouts`, `screenTemplates`, `dialogTemplates` or `themes` are provided, matching a manifest that
131
- * declares none of them; `validatePackageBundle` is what proves the two halves agree.
11
+ * A runtime host that must not load design-time code imports `cratisComponentsRuntimePackage` from
12
+ * `@cratis/scene.components/runtime` instead; that entry reaches no designer, editor or action.
132
13
  */ const cratisComponentsPackage = {
133
- manifest: cratisComponentsPackageManifest,
134
- components: cratisComponents,
135
- descriptors: cratisComponentsDescriptors,
136
- designTime: {
137
- designers: {
138
- commandFormDesigner: CommandFormDesigner
139
- },
140
- propertyEditors: {
141
- commandBinding: CommandFieldPropertyEditor
142
- },
143
- actions: {
144
- [generateCommandFieldsAction.descriptor.id]: generateCommandFieldsAction
145
- }
146
- }
14
+ ...cratisComponentsRuntimePackage,
15
+ designTime: cratisComponentsDesignTime
147
16
  };
148
17
 
149
- export { cratisComponentsPackage, cratisComponentsPackageManifest };
18
+ export { cratisComponentsPackage };
150
19
  //# sourceMappingURL=cratisComponentsPackage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cratisComponentsPackage.js","sources":["../../cratisComponentsPackage.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 { PackageKind, ScenePackage } from '@cratis/scene.model';\nimport { ScenePackageBundle } from '@cratis/scene.react';\nimport { cratisComponents, cratisComponentsPackageName } from './cratisComponents';\nimport { cratisComponentsDescriptors } from './cratisComponentsDescriptors';\nimport { CommandFieldPropertyEditor } from './forms/CommandFieldPropertyEditor';\nimport { CommandFormDesigner } from './forms/CommandFormDesigner';\nimport { generateCommandFieldsAction } from './forms/generateCommandFieldsAction';\n\n/**\n * The `Cratis.Components` package's declaration - what a profile gets when it lists this package.\n *\n * This is the concrete case the whole package-dependency mechanism exists for. `@cratis/components` is\n * not a self-contained library: every component in it is a wrapper over a PrimeReact widget, and its own\n * styling is a `--cratis-*` token layer (`@cratis/components/tokens`) plus the component stylesheets and\n * compiled Tailwind utilities in `@cratis/components/styles`. Activate it in a profile without PrimeReact\n * and nothing renders; activate it without Tailwind and everything renders unstyled. Both are stated as\n * dependencies so a package picker can say so while the profile is being configured, instead of leaving\n * it to be discovered when the page opens.\n *\n * The version ranges are the real ones the library carries. `>=11.0.0` for PrimeReact: version 3.0.0\n * declares `primereact@^11` as a peer dependency and is built against version 11's component set, so the\n * span across the major boundary that the previous `>=10.9.0` range described is over. The `--cratis-*`\n * tokens still resolve a version 10 theme variable as their last fallback, but that is an upgrade-window\n * courtesy for an application with a compiled version 10 stylesheet still on the page - not a version of\n * PrimeReact this package can be activated against. `^4.0.0` for Tailwind, because the utility sheet is\n * compiled against Tailwind 4.\n */\nexport const cratisComponentsPackageManifest: ScenePackage = {\n name: cratisComponentsPackageName,\n version: '3.0.0',\n kind: PackageKind.ComponentLibrary,\n dependencies: [\n { name: 'PrimeReact', versionRange: '>=11.0.0' },\n { name: 'Tailwind', versionRange: '^4.0.0' },\n ],\n components: [\n 'page',\n 'dataPage',\n 'formElement',\n 'singleResult',\n 'queryInputForm',\n 'dataTable',\n 'table',\n 'observableDataTable',\n 'commandForm',\n 'inputTextField',\n 'numberField',\n 'checkboxField',\n 'textAreaField',\n 'dropdownField',\n 'sliderField',\n 'calendarField',\n 'colorPickerField',\n 'multiSelectField',\n 'chipsField',\n 'radioButtonField',\n 'radioGroupField',\n 'dialog',\n 'confirmationDialog',\n 'busyIndicatorDialog',\n 'commandDialog',\n 'stepperCommandDialog',\n 'icon',\n 'tooltip',\n 'dropdown',\n 'errorBoundary',\n 'objectContentEditor',\n 'objectNavigationalBar',\n 'schemaEditor',\n 'timeMachine',\n 'filterPanel',\n 'toolbar',\n 'toolbarButton',\n 'toolbarGroup',\n 'toolbarSeparator',\n ],\n\n // A component library ships components, and nothing else. Layouts, screen templates and dialog\n // templates all belong to a Blueprint: they are decisions about what an application looks like as a\n // whole, and this package deliberately makes none of them - it provides the Arc-bound composites a\n // template is *built from*, so that a blueprint can place a `dataPage` in a slot and configure it,\n // rather than shipping one opinionated data page nobody can rearrange.\n layouts: [],\n screenTemplates: [],\n dialogTemplates: [],\n\n // No themes either, for a different reason: `@cratis/components` has no palette of its own. It reads\n // a `--cratis-*` variable layer that resolves whatever is in front of it - the `--p-*` properties a\n // PrimeReact 11 preset emits at runtime, or a Scene theme through this package's token bridge.\n // Shipping a theme here would be this library asserting a look it was specifically built not to have.\n themes: [],\n\n displayName: 'Cratis Components',\n description: \"Cratis' Arc-bound data, form and dialog composites, built on PrimeReact and Tailwind. dataTable and table accept optional object-valued queryArguments for collection queries. singleResult displays one read-only scalar own resultField of an optional model using an explicit query, object queryArguments and enabled: true. queryInputForm commits explicit string inputs on submit to the same optional-single runtime; drafts never execute a query.\",\n module: '@cratis/scene.components',\n license: 'MIT',\n licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',\n designTime: {\n previews: [],\n designers: ['commandFormDesigner'],\n propertyEditors: ['commandBinding', 'commandFields', 'fieldWidths'],\n propertyDisplays: [],\n actions: ['Cratis.Components.commandForm.generateFields'],\n },\n assets: ['@cratis/components/styles', '@cratis/components/tokens'],\n runtimeSingletons: ['react', '@cratis/arc', '@cratis/components'],\n};\n\n/**\n * The `Cratis.Components` package as a loadable bundle - the manifest above, plus the React components\n * behind the names it declares.\n *\n * No `layouts`, `screenTemplates`, `dialogTemplates` or `themes` are provided, matching a manifest that\n * declares none of them; `validatePackageBundle` is what proves the two halves agree.\n */\nexport const cratisComponentsPackage: ScenePackageBundle = {\n manifest: cratisComponentsPackageManifest,\n components: cratisComponents,\n descriptors: cratisComponentsDescriptors,\n designTime: {\n designers: {\n commandFormDesigner: CommandFormDesigner,\n },\n propertyEditors: {\n commandBinding: CommandFieldPropertyEditor,\n },\n actions: {\n [generateCommandFieldsAction.descriptor.id]: generateCommandFieldsAction,\n },\n },\n};\n"],"names":["cratisComponentsPackageManifest","name","cratisComponentsPackageName","version","kind","PackageKind","ComponentLibrary","dependencies","versionRange","components","layouts","screenTemplates","dialogTemplates","themes","displayName","description","module","license","licenseUrl","designTime","previews","designers","propertyEditors","propertyDisplays","actions","assets","runtimeSingletons","cratisComponentsPackage","manifest","cratisComponents","descriptors","cratisComponentsDescriptors","commandFormDesigner","CommandFormDesigner","commandBinding","CommandFieldPropertyEditor","generateCommandFieldsAction","descriptor","id"],"mappings":";;;;;;;AAAA;AACA;AAUA;;;;;;;;;;;;;;;;;;UAmBaA,+BAAAA,GAAgD;IACzDC,IAAAA,EAAMC,2BAAAA;IACNC,OAAAA,EAAS,OAAA;AACTC,IAAAA,IAAAA,EAAMC,YAAYC,gBAAgB;IAClCC,YAAAA,EAAc;AACV,QAAA;YAAEN,IAAAA,EAAM,YAAA;YAAcO,YAAAA,EAAc;AAAW,SAAA;AAC/C,QAAA;YAAEP,IAAAA,EAAM,UAAA;YAAYO,YAAAA,EAAc;AAAS;AAC9C,KAAA;IACDC,UAAAA,EAAY;AACR,QAAA,MAAA;AACA,QAAA,UAAA;AACA,QAAA,aAAA;AACA,QAAA,cAAA;AACA,QAAA,gBAAA;AACA,QAAA,WAAA;AACA,QAAA,OAAA;AACA,QAAA,qBAAA;AACA,QAAA,aAAA;AACA,QAAA,gBAAA;AACA,QAAA,aAAA;AACA,QAAA,eAAA;AACA,QAAA,eAAA;AACA,QAAA,eAAA;AACA,QAAA,aAAA;AACA,QAAA,eAAA;AACA,QAAA,kBAAA;AACA,QAAA,kBAAA;AACA,QAAA,YAAA;AACA,QAAA,kBAAA;AACA,QAAA,iBAAA;AACA,QAAA,QAAA;AACA,QAAA,oBAAA;AACA,QAAA,qBAAA;AACA,QAAA,eAAA;AACA,QAAA,sBAAA;AACA,QAAA,MAAA;AACA,QAAA,SAAA;AACA,QAAA,UAAA;AACA,QAAA,eAAA;AACA,QAAA,qBAAA;AACA,QAAA,uBAAA;AACA,QAAA,cAAA;AACA,QAAA,aAAA;AACA,QAAA,aAAA;AACA,QAAA,SAAA;AACA,QAAA,eAAA;AACA,QAAA,cAAA;AACA,QAAA;AACH,KAAA;;;;;;AAODC,IAAAA,OAAAA,EAAS,EAAE;AACXC,IAAAA,eAAAA,EAAiB,EAAE;AACnBC,IAAAA,eAAAA,EAAiB,EAAE;;;;;AAMnBC,IAAAA,MAAAA,EAAQ,EAAE;IAEVC,WAAAA,EAAa,mBAAA;IACbC,WAAAA,EAAa,6bAAA;IACbC,MAAAA,EAAQ,0BAAA;IACRC,OAAAA,EAAS,KAAA;IACTC,UAAAA,EAAY,mDAAA;IACZC,UAAAA,EAAY;AACRC,QAAAA,QAAAA,EAAU,EAAE;QACZC,SAAAA,EAAW;AAAC,YAAA;AAAsB,SAAA;QAClCC,eAAAA,EAAiB;AAAC,YAAA,gBAAA;AAAkB,YAAA,eAAA;AAAiB,YAAA;AAAc,SAAA;AACnEC,QAAAA,gBAAAA,EAAkB,EAAE;QACpBC,OAAAA,EAAS;AAAC,YAAA;AAA+C;AAC7D,KAAA;IACAC,MAAAA,EAAQ;AAAC,QAAA,2BAAA;AAA6B,QAAA;AAA4B,KAAA;IAClEC,iBAAAA,EAAmB;AAAC,QAAA,OAAA;AAAS,QAAA,aAAA;AAAe,QAAA;AAAqB;AACrE;AAEA;;;;;;UAOaC,uBAAAA,GAA8C;IACvDC,QAAAA,EAAU5B,+BAAAA;IACVS,UAAAA,EAAYoB,gBAAAA;IACZC,WAAAA,EAAaC,2BAAAA;IACbZ,UAAAA,EAAY;QACRE,SAAAA,EAAW;YACPW,mBAAAA,EAAqBC;AACzB,SAAA;QACAX,eAAAA,EAAiB;YACbY,cAAAA,EAAgBC;AACpB,SAAA;QACAX,OAAAA,EAAS;AACL,YAAA,CAACY,2BAAAA,CAA4BC,UAAU,CAACC,EAAE,GAAGF;AACjD;AACJ;AACJ;;"}
1
+ {"version":3,"file":"cratisComponentsPackage.js","sources":["../../cratisComponentsPackage.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 { ScenePackageBundle } from '@cratis/scene.react';\nimport { cratisComponentsDesignTime } from './designTime/cratisComponentsDesignTime';\nimport { cratisComponentsRuntimePackage } from './cratisComponentsRuntimePackage';\n\nexport { cratisComponentsPackageManifest } from './cratisComponentsPackageManifest';\n\n/**\n * The `Cratis.Components` package as a loadable bundle - the manifest, the React components behind the names\n * it declares, and the design-time contributions a designer loads.\n *\n * A runtime host that must not load design-time code imports `cratisComponentsRuntimePackage` from\n * `@cratis/scene.components/runtime` instead; that entry reaches no designer, editor or action.\n */\nexport const cratisComponentsPackage: ScenePackageBundle = {\n ...cratisComponentsRuntimePackage,\n designTime: cratisComponentsDesignTime,\n};\n"],"names":["cratisComponentsPackage","cratisComponentsRuntimePackage","designTime","cratisComponentsDesignTime"],"mappings":";;;;AAAA;AACA;AAQA;;;;;;UAOaA,uBAAAA,GAA8C;AACvD,IAAA,GAAGC,8BAA8B;IACjCC,UAAAA,EAAYC;AAChB;;"}
@@ -0,0 +1,3 @@
1
+ import { ScenePackage } from '@cratis/scene.model';
2
+ export declare const cratisComponentsPackageManifest: ScenePackage;
3
+ //# sourceMappingURL=cratisComponentsPackageManifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cratisComponentsPackageManifest.d.ts","sourceRoot":"","sources":["../../cratisComponentsPackageManifest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAsBhE,eAAO,MAAM,+BAA+B,EAAE,YAgF7C,CAAC"}
@@ -0,0 +1,124 @@
1
+ import { PackageKind } from '@cratis/scene.model';
2
+ import { cratisComponentsPackageName } from './cratisComponents.js';
3
+
4
+ // Copyright (c) Cratis. All rights reserved.
5
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
6
+ /**
7
+ * The `Cratis.Components` package's declaration - what a profile gets when it lists this package.
8
+ *
9
+ * This is the concrete case the whole package-dependency mechanism exists for. `@cratis/components` is
10
+ * not a self-contained library: every component in it is a wrapper over a PrimeReact widget, and its own
11
+ * styling is a `--cratis-*` token layer (`@cratis/components/tokens`) plus the component stylesheets and
12
+ * compiled Tailwind utilities in `@cratis/components/styles`. Activate it in a profile without PrimeReact
13
+ * and nothing renders; activate it without Tailwind and everything renders unstyled. Both are stated as
14
+ * dependencies so a package picker can say so while the profile is being configured, instead of leaving
15
+ * it to be discovered when the page opens.
16
+ *
17
+ * The version ranges are the real ones the library carries. `>=11.0.0` for PrimeReact: version 3.0.0
18
+ * declares `primereact@^11` as a peer dependency and is built against version 11's component set, so the
19
+ * span across the major boundary that the previous `>=10.9.0` range described is over. The `--cratis-*`
20
+ * tokens still resolve a version 10 theme variable as their last fallback, but that is an upgrade-window
21
+ * courtesy for an application with a compiled version 10 stylesheet still on the page - not a version of
22
+ * PrimeReact this package can be activated against. `^4.0.0` for Tailwind, because the utility sheet is
23
+ * compiled against Tailwind 4.
24
+ */ const cratisComponentsPackageManifest = {
25
+ name: cratisComponentsPackageName,
26
+ version: '3.0.0',
27
+ kind: PackageKind.ComponentLibrary,
28
+ dependencies: [
29
+ {
30
+ name: 'PrimeReact',
31
+ versionRange: '>=11.0.0'
32
+ },
33
+ {
34
+ name: 'Tailwind',
35
+ versionRange: '^4.0.0'
36
+ }
37
+ ],
38
+ components: [
39
+ 'page',
40
+ 'dataPage',
41
+ 'formElement',
42
+ 'singleResult',
43
+ 'queryInputForm',
44
+ 'dataTable',
45
+ 'table',
46
+ 'observableDataTable',
47
+ 'commandForm',
48
+ 'inputTextField',
49
+ 'numberField',
50
+ 'checkboxField',
51
+ 'textAreaField',
52
+ 'dropdownField',
53
+ 'sliderField',
54
+ 'calendarField',
55
+ 'colorPickerField',
56
+ 'multiSelectField',
57
+ 'chipsField',
58
+ 'radioButtonField',
59
+ 'radioGroupField',
60
+ 'dialog',
61
+ 'confirmationDialog',
62
+ 'busyIndicatorDialog',
63
+ 'commandDialog',
64
+ 'stepperCommandDialog',
65
+ 'icon',
66
+ 'tooltip',
67
+ 'dropdown',
68
+ 'errorBoundary',
69
+ 'objectContentEditor',
70
+ 'objectNavigationalBar',
71
+ 'schemaEditor',
72
+ 'timeMachine',
73
+ 'filterPanel',
74
+ 'toolbar',
75
+ 'toolbarButton',
76
+ 'toolbarGroup',
77
+ 'toolbarSeparator'
78
+ ],
79
+ // A component library ships components, and nothing else. Layouts, screen templates and dialog
80
+ // templates all belong to a Blueprint: they are decisions about what an application looks like as a
81
+ // whole, and this package deliberately makes none of them - it provides the Arc-bound composites a
82
+ // template is *built from*, so that a blueprint can place a `dataPage` in a slot and configure it,
83
+ // rather than shipping one opinionated data page nobody can rearrange.
84
+ layouts: [],
85
+ screenTemplates: [],
86
+ dialogTemplates: [],
87
+ // No themes either, for a different reason: `@cratis/components` has no palette of its own. It reads
88
+ // a `--cratis-*` variable layer that resolves whatever is in front of it - the `--p-*` properties a
89
+ // PrimeReact 11 preset emits at runtime, or a Scene theme through this package's token bridge.
90
+ // Shipping a theme here would be this library asserting a look it was specifically built not to have.
91
+ themes: [],
92
+ displayName: 'Cratis Components',
93
+ description: "Cratis' Arc-bound data, form and dialog composites, built on PrimeReact and Tailwind. dataTable and table accept optional object-valued queryArguments for collection queries. singleResult displays one read-only scalar own resultField of an optional model using an explicit query, object queryArguments and enabled: true. queryInputForm commits explicit string inputs on submit to the same optional-single runtime; drafts never execute a query.",
94
+ module: '@cratis/scene.components',
95
+ license: 'MIT',
96
+ licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',
97
+ designTime: {
98
+ previews: [],
99
+ designers: [
100
+ 'commandFormDesigner'
101
+ ],
102
+ // `commandFields` and `fieldWidths` are host editor kinds (Studio implements them); the package does not ship them.
103
+ propertyEditors: [
104
+ 'commandBinding',
105
+ 'commandFormLayout'
106
+ ],
107
+ propertyDisplays: [],
108
+ actions: [
109
+ 'Cratis.Components.commandForm.generateFields'
110
+ ]
111
+ },
112
+ assets: [
113
+ '@cratis/components/styles',
114
+ '@cratis/components/tokens'
115
+ ],
116
+ runtimeSingletons: [
117
+ 'react',
118
+ '@cratis/arc',
119
+ '@cratis/components'
120
+ ]
121
+ };
122
+
123
+ export { cratisComponentsPackageManifest };
124
+ //# sourceMappingURL=cratisComponentsPackageManifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cratisComponentsPackageManifest.js","sources":["../../cratisComponentsPackageManifest.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 { PackageKind, ScenePackage } from '@cratis/scene.model';\nimport { cratisComponentsPackageName } from './cratisComponents';\n\n/**\n * The `Cratis.Components` package's declaration - what a profile gets when it lists this package.\n *\n * This is the concrete case the whole package-dependency mechanism exists for. `@cratis/components` is\n * not a self-contained library: every component in it is a wrapper over a PrimeReact widget, and its own\n * styling is a `--cratis-*` token layer (`@cratis/components/tokens`) plus the component stylesheets and\n * compiled Tailwind utilities in `@cratis/components/styles`. Activate it in a profile without PrimeReact\n * and nothing renders; activate it without Tailwind and everything renders unstyled. Both are stated as\n * dependencies so a package picker can say so while the profile is being configured, instead of leaving\n * it to be discovered when the page opens.\n *\n * The version ranges are the real ones the library carries. `>=11.0.0` for PrimeReact: version 3.0.0\n * declares `primereact@^11` as a peer dependency and is built against version 11's component set, so the\n * span across the major boundary that the previous `>=10.9.0` range described is over. The `--cratis-*`\n * tokens still resolve a version 10 theme variable as their last fallback, but that is an upgrade-window\n * courtesy for an application with a compiled version 10 stylesheet still on the page - not a version of\n * PrimeReact this package can be activated against. `^4.0.0` for Tailwind, because the utility sheet is\n * compiled against Tailwind 4.\n */\nexport const cratisComponentsPackageManifest: ScenePackage = {\n name: cratisComponentsPackageName,\n version: '3.0.0',\n kind: PackageKind.ComponentLibrary,\n dependencies: [\n { name: 'PrimeReact', versionRange: '>=11.0.0' },\n { name: 'Tailwind', versionRange: '^4.0.0' },\n ],\n components: [\n 'page',\n 'dataPage',\n 'formElement',\n 'singleResult',\n 'queryInputForm',\n 'dataTable',\n 'table',\n 'observableDataTable',\n 'commandForm',\n 'inputTextField',\n 'numberField',\n 'checkboxField',\n 'textAreaField',\n 'dropdownField',\n 'sliderField',\n 'calendarField',\n 'colorPickerField',\n 'multiSelectField',\n 'chipsField',\n 'radioButtonField',\n 'radioGroupField',\n 'dialog',\n 'confirmationDialog',\n 'busyIndicatorDialog',\n 'commandDialog',\n 'stepperCommandDialog',\n 'icon',\n 'tooltip',\n 'dropdown',\n 'errorBoundary',\n 'objectContentEditor',\n 'objectNavigationalBar',\n 'schemaEditor',\n 'timeMachine',\n 'filterPanel',\n 'toolbar',\n 'toolbarButton',\n 'toolbarGroup',\n 'toolbarSeparator',\n ],\n\n // A component library ships components, and nothing else. Layouts, screen templates and dialog\n // templates all belong to a Blueprint: they are decisions about what an application looks like as a\n // whole, and this package deliberately makes none of them - it provides the Arc-bound composites a\n // template is *built from*, so that a blueprint can place a `dataPage` in a slot and configure it,\n // rather than shipping one opinionated data page nobody can rearrange.\n layouts: [],\n screenTemplates: [],\n dialogTemplates: [],\n\n // No themes either, for a different reason: `@cratis/components` has no palette of its own. It reads\n // a `--cratis-*` variable layer that resolves whatever is in front of it - the `--p-*` properties a\n // PrimeReact 11 preset emits at runtime, or a Scene theme through this package's token bridge.\n // Shipping a theme here would be this library asserting a look it was specifically built not to have.\n themes: [],\n\n displayName: 'Cratis Components',\n description: \"Cratis' Arc-bound data, form and dialog composites, built on PrimeReact and Tailwind. dataTable and table accept optional object-valued queryArguments for collection queries. singleResult displays one read-only scalar own resultField of an optional model using an explicit query, object queryArguments and enabled: true. queryInputForm commits explicit string inputs on submit to the same optional-single runtime; drafts never execute a query.\",\n module: '@cratis/scene.components',\n license: 'MIT',\n licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',\n designTime: {\n previews: [],\n designers: ['commandFormDesigner'],\n // `commandFields` and `fieldWidths` are host editor kinds (Studio implements them); the package does not ship them.\n propertyEditors: ['commandBinding', 'commandFormLayout'],\n propertyDisplays: [],\n actions: ['Cratis.Components.commandForm.generateFields'],\n },\n assets: ['@cratis/components/styles', '@cratis/components/tokens'],\n runtimeSingletons: ['react', '@cratis/arc', '@cratis/components'],\n};\n"],"names":["cratisComponentsPackageManifest","name","cratisComponentsPackageName","version","kind","PackageKind","ComponentLibrary","dependencies","versionRange","components","layouts","screenTemplates","dialogTemplates","themes","displayName","description","module","license","licenseUrl","designTime","previews","designers","propertyEditors","propertyDisplays","actions","assets","runtimeSingletons"],"mappings":";;;AAAA;AACA;AAKA;;;;;;;;;;;;;;;;;;UAmBaA,+BAAAA,GAAgD;IACzDC,IAAAA,EAAMC,2BAAAA;IACNC,OAAAA,EAAS,OAAA;AACTC,IAAAA,IAAAA,EAAMC,YAAYC,gBAAgB;IAClCC,YAAAA,EAAc;AACV,QAAA;YAAEN,IAAAA,EAAM,YAAA;YAAcO,YAAAA,EAAc;AAAW,SAAA;AAC/C,QAAA;YAAEP,IAAAA,EAAM,UAAA;YAAYO,YAAAA,EAAc;AAAS;AAC9C,KAAA;IACDC,UAAAA,EAAY;AACR,QAAA,MAAA;AACA,QAAA,UAAA;AACA,QAAA,aAAA;AACA,QAAA,cAAA;AACA,QAAA,gBAAA;AACA,QAAA,WAAA;AACA,QAAA,OAAA;AACA,QAAA,qBAAA;AACA,QAAA,aAAA;AACA,QAAA,gBAAA;AACA,QAAA,aAAA;AACA,QAAA,eAAA;AACA,QAAA,eAAA;AACA,QAAA,eAAA;AACA,QAAA,aAAA;AACA,QAAA,eAAA;AACA,QAAA,kBAAA;AACA,QAAA,kBAAA;AACA,QAAA,YAAA;AACA,QAAA,kBAAA;AACA,QAAA,iBAAA;AACA,QAAA,QAAA;AACA,QAAA,oBAAA;AACA,QAAA,qBAAA;AACA,QAAA,eAAA;AACA,QAAA,sBAAA;AACA,QAAA,MAAA;AACA,QAAA,SAAA;AACA,QAAA,UAAA;AACA,QAAA,eAAA;AACA,QAAA,qBAAA;AACA,QAAA,uBAAA;AACA,QAAA,cAAA;AACA,QAAA,aAAA;AACA,QAAA,aAAA;AACA,QAAA,SAAA;AACA,QAAA,eAAA;AACA,QAAA,cAAA;AACA,QAAA;AACH,KAAA;;;;;;AAODC,IAAAA,OAAAA,EAAS,EAAE;AACXC,IAAAA,eAAAA,EAAiB,EAAE;AACnBC,IAAAA,eAAAA,EAAiB,EAAE;;;;;AAMnBC,IAAAA,MAAAA,EAAQ,EAAE;IAEVC,WAAAA,EAAa,mBAAA;IACbC,WAAAA,EAAa,6bAAA;IACbC,MAAAA,EAAQ,0BAAA;IACRC,OAAAA,EAAS,KAAA;IACTC,UAAAA,EAAY,mDAAA;IACZC,UAAAA,EAAY;AACRC,QAAAA,QAAAA,EAAU,EAAE;QACZC,SAAAA,EAAW;AAAC,YAAA;AAAsB,SAAA;;QAElCC,eAAAA,EAAiB;AAAC,YAAA,gBAAA;AAAkB,YAAA;AAAoB,SAAA;AACxDC,QAAAA,gBAAAA,EAAkB,EAAE;QACpBC,OAAAA,EAAS;AAAC,YAAA;AAA+C;AAC7D,KAAA;IACAC,MAAAA,EAAQ;AAAC,QAAA,2BAAA;AAA6B,QAAA;AAA4B,KAAA;IAClEC,iBAAAA,EAAmB;AAAC,QAAA,OAAA;AAAS,QAAA,aAAA;AAAe,QAAA;AAAqB;AACrE;;"}
@@ -0,0 +1,3 @@
1
+ import { ScenePackageBundle } from '@cratis/scene.react';
2
+ export declare const cratisComponentsRuntimePackage: ScenePackageBundle;
3
+ //# sourceMappingURL=cratisComponentsRuntimePackage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cratisComponentsRuntimePackage.d.ts","sourceRoot":"","sources":["../../cratisComponentsRuntimePackage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAczD,eAAO,MAAM,8BAA8B,EAAE,kBAI5C,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { cratisComponents } from './cratisComponents.js';
2
+ import { cratisComponentsDescriptors } from './cratisComponentsDescriptors.js';
3
+ import { cratisComponentsPackageManifest } from './cratisComponentsPackageManifest.js';
4
+
5
+ // Copyright (c) Cratis. All rights reserved.
6
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
7
+ /**
8
+ * The `Cratis.Components` package without design-time contributions: the manifest, the components and their
9
+ * descriptors. The manifest still names the design-time extensions - that is data a host reads without
10
+ * loading them - but no designer, editor or action module is reachable from this bundle, which is what a
11
+ * runtime host imports from `@cratis/scene.components/runtime`.
12
+ *
13
+ * No `layouts`, `screenTemplates`, `dialogTemplates` or `themes` are provided, matching a manifest that
14
+ * declares none of them; `validatePackageBundle` is what proves the two halves agree.
15
+ */ const cratisComponentsRuntimePackage = {
16
+ manifest: cratisComponentsPackageManifest,
17
+ components: cratisComponents,
18
+ descriptors: cratisComponentsDescriptors
19
+ };
20
+
21
+ export { cratisComponentsRuntimePackage };
22
+ //# sourceMappingURL=cratisComponentsRuntimePackage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cratisComponentsRuntimePackage.js","sources":["../../cratisComponentsRuntimePackage.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 { ScenePackageBundle } from '@cratis/scene.react';\nimport { cratisComponents } from './cratisComponents';\nimport { cratisComponentsDescriptors } from './cratisComponentsDescriptors';\nimport { cratisComponentsPackageManifest } from './cratisComponentsPackageManifest';\n\n/**\n * The `Cratis.Components` package without design-time contributions: the manifest, the components and their\n * descriptors. The manifest still names the design-time extensions - that is data a host reads without\n * loading them - but no designer, editor or action module is reachable from this bundle, which is what a\n * runtime host imports from `@cratis/scene.components/runtime`.\n *\n * No `layouts`, `screenTemplates`, `dialogTemplates` or `themes` are provided, matching a manifest that\n * declares none of them; `validatePackageBundle` is what proves the two halves agree.\n */\nexport const cratisComponentsRuntimePackage: ScenePackageBundle = {\n manifest: cratisComponentsPackageManifest,\n components: cratisComponents,\n descriptors: cratisComponentsDescriptors,\n};\n"],"names":["cratisComponentsRuntimePackage","manifest","cratisComponentsPackageManifest","components","cratisComponents","descriptors","cratisComponentsDescriptors"],"mappings":";;;;AAAA;AACA;AAOA;;;;;;;;UASaA,8BAAAA,GAAqD;IAC9DC,QAAAA,EAAUC,+BAAAA;IACVC,UAAAA,EAAYC,gBAAAA;IACZC,WAAAA,EAAaC;AACjB;;"}
@@ -0,0 +1,3 @@
1
+ import { DesignTimeBundle } from '@cratis/scene.react';
2
+ export declare const cratisComponentsDesignTime: DesignTimeBundle;
3
+ //# sourceMappingURL=cratisComponentsDesignTime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cratisComponentsDesignTime.d.ts","sourceRoot":"","sources":["../../../designTime/cratisComponentsDesignTime.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAOvD,eAAO,MAAM,0BAA0B,EAAE,gBAWxC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { CommandFieldPropertyEditor } from '../forms/CommandFieldPropertyEditor.js';
2
+ import { CommandFormDesigner } from '../forms/CommandFormDesigner.js';
3
+ import { CommandFormLayoutEditor } from '../forms/CommandFormLayoutEditor.js';
4
+ import { generateCommandFieldsAction } from '../forms/generateCommandFieldsAction.js';
5
+
6
+ // Copyright (c) Cratis. All rights reserved.
7
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
8
+ /** Every design-time contribution of `Cratis.Components`, under the names its manifest declares. */ const cratisComponentsDesignTime = {
9
+ designers: {
10
+ commandFormDesigner: CommandFormDesigner
11
+ },
12
+ propertyEditors: {
13
+ commandBinding: CommandFieldPropertyEditor,
14
+ commandFormLayout: CommandFormLayoutEditor
15
+ },
16
+ actions: {
17
+ [generateCommandFieldsAction.descriptor.id]: generateCommandFieldsAction
18
+ }
19
+ };
20
+
21
+ export { cratisComponentsDesignTime };
22
+ //# sourceMappingURL=cratisComponentsDesignTime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cratisComponentsDesignTime.js","sources":["../../../designTime/cratisComponentsDesignTime.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 { DesignTimeBundle } from '@cratis/scene.react';\nimport { CommandFieldPropertyEditor } from '../forms/CommandFieldPropertyEditor';\nimport { CommandFormDesigner } from '../forms/CommandFormDesigner';\nimport { CommandFormLayoutEditor } from '../forms/CommandFormLayoutEditor';\nimport { generateCommandFieldsAction } from '../forms/generateCommandFieldsAction';\n\n/** Every design-time contribution of `Cratis.Components`, under the names its manifest declares. */\nexport const cratisComponentsDesignTime: DesignTimeBundle = {\n designers: {\n commandFormDesigner: CommandFormDesigner,\n },\n propertyEditors: {\n commandBinding: CommandFieldPropertyEditor,\n commandFormLayout: CommandFormLayoutEditor,\n },\n actions: {\n [generateCommandFieldsAction.descriptor.id]: generateCommandFieldsAction,\n },\n};\n"],"names":["cratisComponentsDesignTime","designers","commandFormDesigner","CommandFormDesigner","propertyEditors","commandBinding","CommandFieldPropertyEditor","commandFormLayout","CommandFormLayoutEditor","actions","generateCommandFieldsAction","descriptor","id"],"mappings":";;;;;AAAA;AACA;AAQA,qGACO,MAAMA,0BAAAA,GAA+C;IACxDC,SAAAA,EAAW;QACPC,mBAAAA,EAAqBC;AACzB,KAAA;IACAC,eAAAA,EAAiB;QACbC,cAAAA,EAAgBC,0BAAAA;QAChBC,iBAAAA,EAAmBC;AACvB,KAAA;IACAC,OAAAA,EAAS;AACL,QAAA,CAACC,2BAAAA,CAA4BC,UAAU,CAACC,EAAE,GAAGF;AACjD;AACJ;;"}
@@ -0,0 +1,3 @@
1
+ import { DesignTimePropertyEditorProps } from '@cratis/scene.react';
2
+ export declare function CommandFormLayoutEditor({ context, property, value, setValue }: DesignTimePropertyEditorProps): import("react").JSX.Element;
3
+ //# sourceMappingURL=CommandFormLayoutEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandFormLayoutEditor.d.ts","sourceRoot":"","sources":["../../../forms/CommandFormLayoutEditor.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAUpE,wBAAgB,uBAAuB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,6BAA6B,+BAgC5G"}
@@ -0,0 +1,71 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { useState } from 'react';
3
+ import { SceneEditKind } from '@cratis/scene.model';
4
+ import { CommandFormLayoutKey, applyCommandFormLayoutKey } from '@cratis/scene.engine';
5
+ import { commandFormLayout } from './commandFormLayout.js';
6
+
7
+ const layoutKeys = new Set(Object.values(CommandFormLayoutKey));
8
+ /**
9
+ * Arranges a command form's fields from the keyboard. Each placed field is a focusable cell: the arrow keys
10
+ * move it one cell, and Shift with an arrow key resizes it. A valid change is submitted as one canonical
11
+ * edit of the `layout` property; an invalid one is announced and the committed layout is kept.
12
+ */ function CommandFormLayoutEditor({ context, property, value, setValue }) {
13
+ const layout = commandFormLayout({
14
+ layout: value
15
+ });
16
+ const [problem, setProblem] = useState();
17
+ if (!layout) return /*#__PURE__*/ jsxs("p", {
18
+ role: "note",
19
+ children: [
20
+ property.label,
21
+ ": no layout is authored yet."
22
+ ]
23
+ });
24
+ const onKeyDown = (field)=>(event)=>{
25
+ if (!layoutKeys.has(event.key)) return;
26
+ event.preventDefault();
27
+ const draft = applyCommandFormLayoutKey(layout, field, event.key, event.shiftKey, layout.placements.map((placement)=>placement.field));
28
+ if (!draft) return;
29
+ if (!draft.isValid) {
30
+ setProblem(draft.diagnostics[0].message);
31
+ return;
32
+ }
33
+ setProblem(undefined);
34
+ commit(draft.draft);
35
+ };
36
+ const commit = (next)=>{
37
+ setValue(next);
38
+ context.submitEdits([
39
+ {
40
+ kind: SceneEditKind.SetProperty,
41
+ nodeId: context.element.id,
42
+ path: property.path,
43
+ value: next
44
+ }
45
+ ]);
46
+ };
47
+ return /*#__PURE__*/ jsxs("div", {
48
+ role: "group",
49
+ "aria-label": property.label,
50
+ "aria-describedby": `${context.element.id}-layout-help`,
51
+ children: [
52
+ /*#__PURE__*/ jsx("p", {
53
+ id: `${context.element.id}-layout-help`,
54
+ children: "Arrow keys move a field. Shift and an arrow key resize it."
55
+ }),
56
+ layout.placements.map((placement)=>/*#__PURE__*/ jsx("button", {
57
+ type: "button",
58
+ onKeyDown: onKeyDown(placement.field),
59
+ "aria-label": `${placement.field}: row ${placement.row}, column ${placement.column}, spans ${placement.columnSpan ?? 1} column(s) and ${placement.rowSpan ?? 1} row(s)`,
60
+ children: placement.field
61
+ }, placement.field)),
62
+ problem && /*#__PURE__*/ jsx("p", {
63
+ role: "alert",
64
+ children: problem
65
+ })
66
+ ]
67
+ });
68
+ }
69
+
70
+ export { CommandFormLayoutEditor };
71
+ //# sourceMappingURL=CommandFormLayoutEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandFormLayoutEditor.js","sources":["../../../forms/CommandFormLayoutEditor.tsx"],"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 { KeyboardEvent, useState } from 'react';\nimport { CommandFormLayout, SceneEditKind } from '@cratis/scene.model';\nimport { CommandFormLayoutKey, applyCommandFormLayoutKey } from '@cratis/scene.engine';\nimport { DesignTimePropertyEditorProps } from '@cratis/scene.react';\nimport { commandFormLayout } from './commandFormLayout';\n\nconst layoutKeys = new Set<string>(Object.values(CommandFormLayoutKey));\n\n/**\n * Arranges a command form's fields from the keyboard. Each placed field is a focusable cell: the arrow keys\n * move it one cell, and Shift with an arrow key resizes it. A valid change is submitted as one canonical\n * edit of the `layout` property; an invalid one is announced and the committed layout is kept.\n */\nexport function CommandFormLayoutEditor({ context, property, value, setValue }: DesignTimePropertyEditorProps) {\n const layout = commandFormLayout({ layout: value });\n const [problem, setProblem] = useState<string>();\n if (!layout) return <p role='note'>{property.label}: no layout is authored yet.</p>;\n\n const onKeyDown = (field: string) => (event: KeyboardEvent<HTMLButtonElement>) => {\n if (!layoutKeys.has(event.key)) return;\n event.preventDefault();\n const draft = applyCommandFormLayoutKey(layout, field, event.key as CommandFormLayoutKey, event.shiftKey, layout.placements.map(placement => placement.field));\n if (!draft) return;\n if (!draft.isValid) {\n setProblem(draft.diagnostics[0].message);\n return;\n }\n\n setProblem(undefined);\n commit(draft.draft);\n };\n\n const commit = (next: CommandFormLayout) => {\n setValue(next);\n context.submitEdits([{ kind: SceneEditKind.SetProperty, nodeId: context.element.id, path: property.path, value: next }]);\n };\n\n return <div role='group' aria-label={property.label} aria-describedby={`${context.element.id}-layout-help`}>\n <p id={`${context.element.id}-layout-help`}>Arrow keys move a field. Shift and an arrow key resize it.</p>\n {layout.placements.map(placement => <button key={placement.field} type='button' onKeyDown={onKeyDown(placement.field)}\n aria-label={`${placement.field}: row ${placement.row}, column ${placement.column}, spans ${placement.columnSpan ?? 1} column(s) and ${placement.rowSpan ?? 1} row(s)`}>\n {placement.field}\n </button>)}\n {problem && <p role='alert'>{problem}</p>}\n </div>;\n}\n"],"names":["layoutKeys","Set","Object","values","CommandFormLayoutKey","CommandFormLayoutEditor","context","property","value","setValue","layout","commandFormLayout","problem","setProblem","useState","_jsxs","p","role","label","onKeyDown","field","event","has","key","preventDefault","draft","applyCommandFormLayoutKey","shiftKey","placements","map","placement","isValid","diagnostics","message","undefined","commit","next","submitEdits","kind","SceneEditKind","SetProperty","nodeId","element","id","path","div","aria-label","aria-describedby","_jsx","button","type","row","column","columnSpan","rowSpan"],"mappings":";;;;;;AASA,MAAMA,UAAAA,GAAa,IAAIC,GAAAA,CAAYC,MAAAA,CAAOC,MAAM,CAACC,oBAAAA,CAAAA,CAAAA;AAEjD;;;;IAKO,SAASC,uBAAAA,CAAwB,EAAEC,OAAO,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,QAAQ,EAAiC,EAAA;AACzG,IAAA,MAAMC,SAASC,iBAAAA,CAAkB;QAAED,MAAAA,EAAQF;AAAM,KAAA,CAAA;IACjD,MAAM,CAACI,OAAAA,EAASC,UAAAA,CAAW,GAAGC,QAAAA,EAAAA;IAC9B,IAAI,CAACJ,MAAAA,EAAQ,qBAAOK,IAAA,CAACC,GAAAA,EAAAA;QAAEC,IAAAA,EAAK,MAAA;;AAAQV,YAAAA,QAAAA,CAASW,KAAK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C,OAAAA,CAAQoC,OAAO,CAACC,EAAE,CAAC,YAAY,CAAC;;0BACtGK,GAAA,CAAChC,GAAAA,EAAAA;AAAE2B,gBAAAA,EAAAA,EAAI,GAAGrC,OAAAA,CAAQoC,OAAO,CAACC,EAAE,CAAC,YAAY,CAAC;AAAE,gBAAA,QAAA,EAAA;;AAC3CjC,YAAAA,MAAAA,CAAOkB,UAAU,CAACC,GAAG,CAACC,CAAAA,0BAAakB,GAAA,CAACC,QAAAA,EAAAA;oBAA6BC,IAAAA,EAAK,QAAA;oBAAS/B,SAAAA,EAAWA,SAAAA,CAAUW,UAAUV,KAAK,CAAA;oBAChH0B,YAAAA,EAAY,CAAA,EAAGhB,SAAAA,CAAUV,KAAK,CAAC,MAAM,EAAEU,SAAAA,CAAUqB,GAAG,CAAC,SAAS,EAAErB,SAAAA,CAAUsB,MAAM,CAAC,QAAQ,EAAEtB,SAAAA,CAAUuB,UAAU,IAAI,CAAA,CAAE,eAAe,EAAEvB,SAAAA,CAAUwB,OAAO,IAAI,CAAA,CAAE,OAAO,CAAC;AACpKxB,oBAAAA,QAAAA,EAAAA,SAAAA,CAAUV;AAFkCU,iBAAAA,EAAAA,SAAAA,CAAUV,KAAK,CAAA,CAAA;AAI/DR,YAAAA,OAAAA,kBAAWoC,GAAA,CAAChC,GAAAA,EAAAA;gBAAEC,IAAAA,EAAK,OAAA;AAASL,gBAAAA,QAAAA,EAAAA;;;;AAErC;;"}
@@ -8,7 +8,8 @@ interface CommandFormRuntimeProps {
8
8
  submitLabel: string;
9
9
  columns?: number;
10
10
  layout?: CommandFormLayout;
11
+ compact?: boolean;
11
12
  }
12
- export default function CommandFormRuntime({ command, inputs, exclude, submitLabel, columns, layout }: CommandFormRuntimeProps): import("react").JSX.Element;
13
+ export default function CommandFormRuntime({ command, inputs, exclude, submitLabel, columns, layout, compact }: CommandFormRuntimeProps): import("react").JSX.Element;
13
14
  export {};
14
15
  //# sourceMappingURL=CommandFormRuntime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommandFormRuntime.d.ts","sourceRoot":"","sources":["../../../forms/CommandFormRuntime.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAI7D,UAAU,uBAAuB;IAC7B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AA4CD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,OAAW,EAAE,MAAM,EAAE,EAAE,uBAAuB,+BAiBjI"}
1
+ {"version":3,"file":"CommandFormRuntime.d.ts","sourceRoot":"","sources":["../../../forms/CommandFormRuntime.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAI7D,UAAU,uBAAuB;IAC7B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAG3B,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AA4CD,MAAM,C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