@cratis/scene.components 4.23.0 → 4.24.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.
@@ -2,7 +2,8 @@
2
2
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
 
4
4
  import { BindingMode, BindingSourceKind, ComponentDescriptor, DesignTimeActionPlacement, PropertyDescriptor, PropertyValueType, QueryResultShape } from '@cratis/scene.model';
5
- import { componentRegistryKey } from '@cratis/scene.react';
5
+ import { componentRegistryKey, describeComponents } from '@cratis/scene.react';
6
+ import { cratisComponentsMetadata } from './cratisComponentsMetadata';
6
7
 
7
8
  // The package name, spelled out so describing components does not pull every adapter (and its UI dependencies) in
8
9
  // with it; the bundle's validation checks each key against the manifest.
@@ -102,7 +103,7 @@ const toolbarButtonProperties: PropertyDescriptor[] = [
102
103
  },
103
104
  ];
104
105
 
105
- export const cratisComponentsDescriptors: ComponentDescriptor[] = [
106
+ const describedCratisComponents: ComponentDescriptor[] = [
106
107
  { component: key('dataTable'), displayName: 'Data table', properties: dataTableProperties },
107
108
  { component: key('table'), displayName: 'Table', properties: dataTableProperties },
108
109
  { component: key('observableDataTable'), displayName: 'Live data table', properties: dataTableProperties },
@@ -121,3 +122,6 @@ export const cratisComponentsDescriptors: ComponentDescriptor[] = [
121
122
  },
122
123
  { component: key('toolbarButton'), displayName: 'Toolbar button', properties: toolbarButtonProperties },
123
124
  ];
125
+
126
+ /** The `Cratis.Components` descriptors: the hand-written ones above with every component's category, icon, keywords and design mode (CMP1). */
127
+ export const cratisComponentsDescriptors: ComponentDescriptor[] = describeComponents('Cratis.Components', describedCratisComponents, cratisComponentsMetadata);
@@ -0,0 +1,48 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ import { ComponentCategory } from '@cratis/scene.model';
5
+ import { ComponentMetadata, componentMetadata as m, toolbarDesignMode } from '@cratis/scene.react';
6
+
7
+ /** The category, icon, keywords and picker badge of every component of the package (CMP1), keyed by bare component name. */
8
+ export const cratisComponentsMetadata: Record<string, ComponentMetadata> = {
9
+ page: m('Page', ComponentCategory.Layout, 'panel-top', ['screen', 'view']),
10
+ dataPage: m('Data page', ComponentCategory.DataDisplay, 'table-properties', ['page', 'query', 'table']),
11
+ formElement: m('Form element', ComponentCategory.Forms, 'text-cursor-input', ['field', 'input']),
12
+ singleResult: m('Single result', ComponentCategory.DataDisplay, 'file-text', ['detail', 'record', 'read model']),
13
+ queryInputForm: m('Query input form', ComponentCategory.Forms, 'search', ['query', 'arguments', 'parameters']),
14
+ dataTable: m('Data table', ComponentCategory.DataDisplay, 'table', ['grid', 'list', 'rows', 'table', 'query'], 'Tb'),
15
+ table: m('Table', ComponentCategory.DataDisplay, 'table-2', ['grid', 'rows', 'list'], 'Tb'),
16
+ observableDataTable: m('Observable data table', ComponentCategory.DataDisplay, 'radio', ['live', 'realtime', 'observable', 'grid'], 'Ot'),
17
+ commandForm: m('Command form', ComponentCategory.Forms, 'square-pen', ['form', 'command', 'input'], 'Fm'),
18
+ inputTextField: m('Text field', ComponentCategory.Input, 'text-cursor-input', ['text', 'input', 'string']),
19
+ numberField: m('Number field', ComponentCategory.Input, 'hash', ['number', 'numeric', 'integer']),
20
+ checkboxField: m('Checkbox field', ComponentCategory.Input, 'square-check', ['checkbox', 'boolean', 'toggle']),
21
+ textAreaField: m('Text area field', ComponentCategory.Input, 'text-align-start', ['multiline', 'text', 'notes']),
22
+ dropdownField: m('Dropdown field', ComponentCategory.Input, 'chevron-down', ['select', 'choice', 'list']),
23
+ sliderField: m('Slider field', ComponentCategory.Input, 'sliders-horizontal', ['range', 'slider']),
24
+ calendarField: m('Date field', ComponentCategory.Input, 'calendar', ['date picker', 'calendar', 'time']),
25
+ colorPickerField: m('Color field', ComponentCategory.Input, 'palette', ['colour', 'picker']),
26
+ multiSelectField: m('Multi-select field', ComponentCategory.Input, 'list-checks', ['multiple', 'select', 'choices']),
27
+ chipsField: m('Tag input field', ComponentCategory.Input, 'tags', ['tags', 'chips', 'keywords'], 'Tg'),
28
+ radioButtonField: m('Radio button field', ComponentCategory.Input, 'circle-dot', ['radio', 'option']),
29
+ radioGroupField: m('Radio group field', ComponentCategory.Input, 'circle-dot-dashed', ['radio', 'options', 'choice']),
30
+ dialog: m('Dialog', ComponentCategory.Overlay, 'app-window', ['modal', 'popup', 'window']),
31
+ confirmationDialog: m('Confirmation dialog', ComponentCategory.Overlay, 'circle-question-mark', ['confirm', 'yes no', 'modal']),
32
+ busyIndicatorDialog: m('Busy indicator dialog', ComponentCategory.Overlay, 'loader', ['loading', 'wait', 'progress']),
33
+ commandDialog: m('Command dialog', ComponentCategory.Overlay, 'square-pen', ['command', 'form', 'modal']),
34
+ stepperCommandDialog: m('Stepper command dialog', ComponentCategory.Forms, 'list-ordered', ['wizard', 'steps', 'command']),
35
+ icon: m('Icon', ComponentCategory.DataDisplay, 'star', ['glyph', 'symbol']),
36
+ tooltip: m('Tooltip', ComponentCategory.Overlay, 'message-square', ['hint', 'hover', 'help']),
37
+ dropdown: m('Dropdown', ComponentCategory.Input, 'chevrons-up-down', ['select', 'choice', 'combo']),
38
+ errorBoundary: m('Error boundary', ComponentCategory.Feedback, 'triangle-alert', ['error', 'failure', 'fallback']),
39
+ objectContentEditor: m('Object content editor', ComponentCategory.Input, 'braces', ['json', 'object', 'editor']),
40
+ objectNavigationalBar: m('Object navigation bar', ComponentCategory.Navigation, 'navigation', ['breadcrumb', 'object', 'path']),
41
+ schemaEditor: m('Schema editor', ComponentCategory.Input, 'file-braces', ['json schema', 'schema', 'editor']),
42
+ timeMachine: m('Time machine', ComponentCategory.DataDisplay, 'rotate-ccw-clock', ['history', 'events', 'replay']),
43
+ filterPanel: m('Filter panel', ComponentCategory.Input, 'funnel', ['filter', 'search', 'refine']),
44
+ toolbar: m('Toolbar', ComponentCategory.Actions, 'wrench', ['actions', 'buttons', 'command bar'], 'Tl', toolbarDesignMode()),
45
+ toolbarButton: m('Toolbar button', ComponentCategory.Actions, 'mouse-pointer-click', ['button', 'action']),
46
+ toolbarGroup: m('Toolbar group', ComponentCategory.Actions, 'group', ['group', 'buttons']),
47
+ toolbarSeparator: m('Toolbar separator', ComponentCategory.Actions, 'minus', ['divider', 'separator']),
48
+ };
@@ -2,6 +2,7 @@
2
2
 
3
3
  var scene_model = require('@cratis/scene.model');
4
4
  var scene_react = require('@cratis/scene.react');
5
+ var cratisComponentsMetadata = require('./cratisComponentsMetadata.js');
5
6
 
6
7
  // Copyright (c) Cratis. All rights reserved.
7
8
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
@@ -292,7 +293,7 @@ const commandFormProperties = [
292
293
  description: 'The screen, slice or dialog the button opens - executed by the enclosing navigation host.'
293
294
  }
294
295
  ];
295
- const cratisComponentsDescriptors = [
296
+ const describedCratisComponents = [
296
297
  {
297
298
  component: key('dataTable'),
298
299
  displayName: 'Data table',
@@ -329,6 +330,7 @@ const cratisComponentsDescriptors = [
329
330
  properties: toolbarButtonProperties
330
331
  }
331
332
  ];
333
+ /** The `Cratis.Components` descriptors: the hand-written ones above with every component's category, icon, keywords and design mode (CMP1). */ const cratisComponentsDescriptors = scene_react.describeComponents('Cratis.Components', describedCratisComponents, cratisComponentsMetadata.cratisComponentsMetadata);
332
334
 
333
335
  exports.cratisComponentsDescriptors = cratisComponentsDescriptors;
334
336
  //# sourceMappingURL=cratisComponentsDescriptors.js.map
@@ -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 {\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 */\nconst toolbarButtonProperties: PropertyDescriptor[] = [\n { path: 'title', label: 'Label', group: 'Content', valueType: PropertyValueType.String, description: 'The accessible name and tooltip.' },\n { path: 'icon', label: 'Icon', group: 'Content', valueType: PropertyValueType.Icon, editorKind: 'icon' },\n { path: 'text', label: 'Text', group: 'Content', valueType: PropertyValueType.String, description: 'Short text shown instead of the icon.' },\n { path: 'active', label: 'Active', group: 'Presentation', valueType: PropertyValueType.Boolean, default: false },\n {\n path: 'tooltipPosition', label: 'Tooltip position', group: 'Presentation', valueType: PropertyValueType.Enum, default: 'right',\n choices: [{ value: 'top', label: 'Top' }, { value: 'right', label: 'Right' }, { value: 'bottom', label: 'Bottom' }, { value: 'left', label: 'Left' }],\n },\n {\n path: 'destination', label: 'Destination', group: 'Navigation', valueType: PropertyValueType.Destination,\n description: 'The screen, slice or dialog the button opens - executed by the enclosing navigation host.',\n },\n];\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 { component: key('toolbarButton'), displayName: 'Toolbar button', properties: toolbarButtonProperties },\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","toolbarButtonProperties","Icon","Boolean","Destination","cratisComponentsDescriptors","component","displayName","actions","id","placement","DesignTimeActionPlacement","Tool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;AACA,IAAA;QACID,IAAAA,EAAM,aAAA;QAAeC,KAAAA,EAAO,aAAA;QAAeC,KAAAA,EAAO,YAAA;AAAcC,QAAAA,SAAAA,EAAWC,8BAAkB+B,WAAW;QACxG5B,WAAAA,EAAa;AACjB;AACH,CAAA;MAEY6B,2BAAAA,GAAqD;AAC9D,IAAA;AAAEC,QAAAA,SAAAA,EAAWzC,GAAAA,CAAI,WAAA,CAAA;QAAc0C,WAAAA,EAAa,YAAA;QAAcP,UAAAA,EAAYhC;AAAoB,KAAA;AAC1F,IAAA;AAAEsC,QAAAA,SAAAA,EAAWzC,GAAAA,CAAI,OAAA,CAAA;QAAU0C,WAAAA,EAAa,OAAA;QAASP,UAAAA,EAAYhC;AAAoB,KAAA;AACjF,IAAA;AAAEsC,QAAAA,SAAAA,EAAWzC,GAAAA,CAAI,qBAAA,CAAA;QAAwB0C,WAAAA,EAAa,iBAAA;QAAmBP,UAAAA,EAAYhC;AAAoB,KAAA;AACzG,IAAA;AACIsC,QAAAA,SAAAA,EAAWzC,GAAAA,CAAI,aAAA,CAAA;QACf0C,WAAAA,EAAa,cAAA;QACbhC,UAAAA,EAAY,qBAAA;QACZyB,UAAAA,EAAYV,qBAAAA;QACZkB,OAAAA,EAAS;AAAC,YAAA;gBACNC,EAAAA,EAAI,8CAAA;gBACJvC,KAAAA,EAAO,iBAAA;AACPwC,gBAAAA,SAAAA,EAAWC,sCAA0BC,OAAO;gBAC5CC,YAAAA,EAAc,+BAAA;gBACdrC,WAAAA,EAAa;AACjB;AAAE;AACN,KAAA;AACA,IAAA;AAAE8B,QAAAA,SAAAA,EAAWzC,GAAAA,CAAI,eAAA,CAAA;QAAkB0C,WAAAA,EAAa,gBAAA;QAAkBP,UAAAA,EAAYC;AAAwB;;;"}
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, describeComponents } from '@cratis/scene.react';\nimport { cratisComponentsMetadata } from './cratisComponentsMetadata';\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 */\nconst toolbarButtonProperties: PropertyDescriptor[] = [\n { path: 'title', label: 'Label', group: 'Content', valueType: PropertyValueType.String, description: 'The accessible name and tooltip.' },\n { path: 'icon', label: 'Icon', group: 'Content', valueType: PropertyValueType.Icon, editorKind: 'icon' },\n { path: 'text', label: 'Text', group: 'Content', valueType: PropertyValueType.String, description: 'Short text shown instead of the icon.' },\n { path: 'active', label: 'Active', group: 'Presentation', valueType: PropertyValueType.Boolean, default: false },\n {\n path: 'tooltipPosition', label: 'Tooltip position', group: 'Presentation', valueType: PropertyValueType.Enum, default: 'right',\n choices: [{ value: 'top', label: 'Top' }, { value: 'right', label: 'Right' }, { value: 'bottom', label: 'Bottom' }, { value: 'left', label: 'Left' }],\n },\n {\n path: 'destination', label: 'Destination', group: 'Navigation', valueType: PropertyValueType.Destination,\n description: 'The screen, slice or dialog the button opens - executed by the enclosing navigation host.',\n },\n];\n\nconst describedCratisComponents: 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 { component: key('toolbarButton'), displayName: 'Toolbar button', properties: toolbarButtonProperties },\n];\n\n/** The `Cratis.Components` descriptors: the hand-written ones above with every component's category, icon, keywords and design mode (CMP1). */\nexport const cratisComponentsDescriptors: ComponentDescriptor[] = describeComponents('Cratis.Components', describedCratisComponents, cratisComponentsMetadata);"],"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","toolbarButtonProperties","Icon","Boolean","Destination","describedCratisComponents","component","displayName","actions","id","placement","DesignTimeActionPlacement","Toolbar","availability","cratisComponentsDescriptors","describeComponents","cratisComponentsMetadata"],"mappings":";;;;;;AAAA;AACA;AAMA;AACA;AACA,MAAMA,GAAAA,GAAM,CAACC,IAAAA,GAAiBC,gCAAAA,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,8BAAkBC,cAAc;QAAEC,UAAAA,EAAY,cAAA;QACvGC,WAAAA,EAAa,4CAAA;QACbC,WAAAA,EAAa;YAAEC,QAAAA,EAAU,IAAA;YAAMC,YAAAA,EAAc;AAACC,gBAAAA,4BAAAA,CAAiBC;AAAW;AAAC;AAC/E,KAAA;AACA,IAAA;QAAEZ,IAAAA,EAAM,cAAA;QAAgBC,KAAAA,EAAO,eAAA;QAAiBC,KAAAA,EAAO,SAAA;AAAWC,QAAAA,SAAAA,EAAWC,8BAAkBS,MAAM;QAAEC,OAAAA,EAAS;AAAG,KAAA;AACnH,IAAA;QACId,IAAAA,EAAM,SAAA;QAAWC,KAAAA,EAAO,cAAA;QAAgBC,KAAAA,EAAO,MAAA;AAAQC,QAAAA,SAAAA,EAAWC,8BAAkBS,MAAM;QAAEP,UAAAA,EAAY,aAAA;QAC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AA,EAAO,iBAAA;AACPwC,gBAAAA,SAAAA,EAAWC,sCAA0BC,OAAO;gBAC5CC,YAAAA,EAAc,+BAAA;gBACdrC,WAAAA,EAAa;AACjB;AAAE;AACN,KAAA;AACA,IAAA;AAAE8B,QAAAA,SAAAA,EAAWzC,GAAAA,CAAI,eAAA,CAAA;QAAkB0C,WAAAA,EAAa,gBAAA;QAAkBP,UAAAA,EAAYC;AAAwB;AACzG,CAAA;AAED,gJACO,MAAMa,8BAAqDC,8BAAAA,CAAmB,mBAAA,EAAqBV,2BAA2BW,iDAAAA;;"}
@@ -0,0 +1,201 @@
1
+ 'use strict';
2
+
3
+ var scene_model = require('@cratis/scene.model');
4
+ var scene_react = require('@cratis/scene.react');
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
+ /** The category, icon, keywords and picker badge of every component of the package (CMP1), keyed by bare component name. */ const cratisComponentsMetadata = {
9
+ page: scene_react.componentMetadata('Page', scene_model.ComponentCategory.Layout, 'panel-top', [
10
+ 'screen',
11
+ 'view'
12
+ ]),
13
+ dataPage: scene_react.componentMetadata('Data page', scene_model.ComponentCategory.DataDisplay, 'table-properties', [
14
+ 'page',
15
+ 'query',
16
+ 'table'
17
+ ]),
18
+ formElement: scene_react.componentMetadata('Form element', scene_model.ComponentCategory.Forms, 'text-cursor-input', [
19
+ 'field',
20
+ 'input'
21
+ ]),
22
+ singleResult: scene_react.componentMetadata('Single result', scene_model.ComponentCategory.DataDisplay, 'file-text', [
23
+ 'detail',
24
+ 'record',
25
+ 'read model'
26
+ ]),
27
+ queryInputForm: scene_react.componentMetadata('Query input form', scene_model.ComponentCategory.Forms, 'search', [
28
+ 'query',
29
+ 'arguments',
30
+ 'parameters'
31
+ ]),
32
+ dataTable: scene_react.componentMetadata('Data table', scene_model.ComponentCategory.DataDisplay, 'table', [
33
+ 'grid',
34
+ 'list',
35
+ 'rows',
36
+ 'table',
37
+ 'query'
38
+ ], 'Tb'),
39
+ table: scene_react.componentMetadata('Table', scene_model.ComponentCategory.DataDisplay, 'table-2', [
40
+ 'grid',
41
+ 'rows',
42
+ 'list'
43
+ ], 'Tb'),
44
+ observableDataTable: scene_react.componentMetadata('Observable data table', scene_model.ComponentCategory.DataDisplay, 'radio', [
45
+ 'live',
46
+ 'realtime',
47
+ 'observable',
48
+ 'grid'
49
+ ], 'Ot'),
50
+ commandForm: scene_react.componentMetadata('Command form', scene_model.ComponentCategory.Forms, 'square-pen', [
51
+ 'form',
52
+ 'command',
53
+ 'input'
54
+ ], 'Fm'),
55
+ inputTextField: scene_react.componentMetadata('Text field', scene_model.ComponentCategory.Input, 'text-cursor-input', [
56
+ 'text',
57
+ 'input',
58
+ 'string'
59
+ ]),
60
+ numberField: scene_react.componentMetadata('Number field', scene_model.ComponentCategory.Input, 'hash', [
61
+ 'number',
62
+ 'numeric',
63
+ 'integer'
64
+ ]),
65
+ checkboxField: scene_react.componentMetadata('Checkbox field', scene_model.ComponentCategory.Input, 'square-check', [
66
+ 'checkbox',
67
+ 'boolean',
68
+ 'toggle'
69
+ ]),
70
+ textAreaField: scene_react.componentMetadata('Text area field', scene_model.ComponentCategory.Input, 'text-align-start', [
71
+ 'multiline',
72
+ 'text',
73
+ 'notes'
74
+ ]),
75
+ dropdownField: scene_react.componentMetadata('Dropdown field', scene_model.ComponentCategory.Input, 'chevron-down', [
76
+ 'select',
77
+ 'choice',
78
+ 'list'
79
+ ]),
80
+ sliderField: scene_react.componentMetadata('Slider field', scene_model.ComponentCategory.Input, 'sliders-horizontal', [
81
+ 'range',
82
+ 'slider'
83
+ ]),
84
+ calendarField: scene_react.componentMetadata('Date field', scene_model.ComponentCategory.Input, 'calendar', [
85
+ 'date picker',
86
+ 'calendar',
87
+ 'time'
88
+ ]),
89
+ colorPickerField: scene_react.componentMetadata('Color field', scene_model.ComponentCategory.Input, 'palette', [
90
+ 'colour',
91
+ 'picker'
92
+ ]),
93
+ multiSelectField: scene_react.componentMetadata('Multi-select field', scene_model.ComponentCategory.Input, 'list-checks', [
94
+ 'multiple',
95
+ 'select',
96
+ 'choices'
97
+ ]),
98
+ chipsField: scene_react.componentMetadata('Tag input field', scene_model.ComponentCategory.Input, 'tags', [
99
+ 'tags',
100
+ 'chips',
101
+ 'keywords'
102
+ ], 'Tg'),
103
+ radioButtonField: scene_react.componentMetadata('Radio button field', scene_model.ComponentCategory.Input, 'circle-dot', [
104
+ 'radio',
105
+ 'option'
106
+ ]),
107
+ radioGroupField: scene_react.componentMetadata('Radio group field', scene_model.ComponentCategory.Input, 'circle-dot-dashed', [
108
+ 'radio',
109
+ 'options',
110
+ 'choice'
111
+ ]),
112
+ dialog: scene_react.componentMetadata('Dialog', scene_model.ComponentCategory.Overlay, 'app-window', [
113
+ 'modal',
114
+ 'popup',
115
+ 'window'
116
+ ]),
117
+ confirmationDialog: scene_react.componentMetadata('Confirmation dialog', scene_model.ComponentCategory.Overlay, 'circle-question-mark', [
118
+ 'confirm',
119
+ 'yes no',
120
+ 'modal'
121
+ ]),
122
+ busyIndicatorDialog: scene_react.componentMetadata('Busy indicator dialog', scene_model.ComponentCategory.Overlay, 'loader', [
123
+ 'loading',
124
+ 'wait',
125
+ 'progress'
126
+ ]),
127
+ commandDialog: scene_react.componentMetadata('Command dialog', scene_model.ComponentCategory.Overlay, 'square-pen', [
128
+ 'command',
129
+ 'form',
130
+ 'modal'
131
+ ]),
132
+ stepperCommandDialog: scene_react.componentMetadata('Stepper command dialog', scene_model.ComponentCategory.Forms, 'list-ordered', [
133
+ 'wizard',
134
+ 'steps',
135
+ 'command'
136
+ ]),
137
+ icon: scene_react.componentMetadata('Icon', scene_model.ComponentCategory.DataDisplay, 'star', [
138
+ 'glyph',
139
+ 'symbol'
140
+ ]),
141
+ tooltip: scene_react.componentMetadata('Tooltip', scene_model.ComponentCategory.Overlay, 'message-square', [
142
+ 'hint',
143
+ 'hover',
144
+ 'help'
145
+ ]),
146
+ dropdown: scene_react.componentMetadata('Dropdown', scene_model.ComponentCategory.Input, 'chevrons-up-down', [
147
+ 'select',
148
+ 'choice',
149
+ 'combo'
150
+ ]),
151
+ errorBoundary: scene_react.componentMetadata('Error boundary', scene_model.ComponentCategory.Feedback, 'triangle-alert', [
152
+ 'error',
153
+ 'failure',
154
+ 'fallback'
155
+ ]),
156
+ objectContentEditor: scene_react.componentMetadata('Object content editor', scene_model.ComponentCategory.Input, 'braces', [
157
+ 'json',
158
+ 'object',
159
+ 'editor'
160
+ ]),
161
+ objectNavigationalBar: scene_react.componentMetadata('Object navigation bar', scene_model.ComponentCategory.Navigation, 'navigation', [
162
+ 'breadcrumb',
163
+ 'object',
164
+ 'path'
165
+ ]),
166
+ schemaEditor: scene_react.componentMetadata('Schema editor', scene_model.ComponentCategory.Input, 'file-braces', [
167
+ 'json schema',
168
+ 'schema',
169
+ 'editor'
170
+ ]),
171
+ timeMachine: scene_react.componentMetadata('Time machine', scene_model.ComponentCategory.DataDisplay, 'rotate-ccw-clock', [
172
+ 'history',
173
+ 'events',
174
+ 'replay'
175
+ ]),
176
+ filterPanel: scene_react.componentMetadata('Filter panel', scene_model.ComponentCategory.Input, 'funnel', [
177
+ 'filter',
178
+ 'search',
179
+ 'refine'
180
+ ]),
181
+ toolbar: scene_react.componentMetadata('Toolbar', scene_model.ComponentCategory.Actions, 'wrench', [
182
+ 'actions',
183
+ 'buttons',
184
+ 'command bar'
185
+ ], 'Tl', scene_react.toolbarDesignMode()),
186
+ toolbarButton: scene_react.componentMetadata('Toolbar button', scene_model.ComponentCategory.Actions, 'mouse-pointer-click', [
187
+ 'button',
188
+ 'action'
189
+ ]),
190
+ toolbarGroup: scene_react.componentMetadata('Toolbar group', scene_model.ComponentCategory.Actions, 'group', [
191
+ 'group',
192
+ 'buttons'
193
+ ]),
194
+ toolbarSeparator: scene_react.componentMetadata('Toolbar separator', scene_model.ComponentCategory.Actions, 'minus', [
195
+ 'divider',
196
+ 'separator'
197
+ ])
198
+ };
199
+
200
+ exports.cratisComponentsMetadata = cratisComponentsMetadata;
201
+ //# sourceMappingURL=cratisComponentsMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cratisComponentsMetadata.js","sources":["../../cratisComponentsMetadata.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 { ComponentCategory } from '@cratis/scene.model';\nimport { ComponentMetadata, componentMetadata as m, toolbarDesignMode } from '@cratis/scene.react';\n\n/** The category, icon, keywords and picker badge of every component of the package (CMP1), keyed by bare component name. */\nexport const cratisComponentsMetadata: Record<string, ComponentMetadata> = {\n page: m('Page', ComponentCategory.Layout, 'panel-top', ['screen', 'view']),\n dataPage: m('Data page', ComponentCategory.DataDisplay, 'table-properties', ['page', 'query', 'table']),\n formElement: m('Form element', ComponentCategory.Forms, 'text-cursor-input', ['field', 'input']),\n singleResult: m('Single result', ComponentCategory.DataDisplay, 'file-text', ['detail', 'record', 'read model']),\n queryInputForm: m('Query input form', ComponentCategory.Forms, 'search', ['query', 'arguments', 'parameters']),\n dataTable: m('Data table', ComponentCategory.DataDisplay, 'table', ['grid', 'list', 'rows', 'table', 'query'], 'Tb'),\n table: m('Table', ComponentCategory.DataDisplay, 'table-2', ['grid', 'rows', 'list'], 'Tb'),\n observableDataTable: m('Observable data table', ComponentCategory.DataDisplay, 'radio', ['live', 'realtime', 'observable', 'grid'], 'Ot'),\n commandForm: m('Command form', ComponentCategory.Forms, 'square-pen', ['form', 'command', 'input'], 'Fm'),\n inputTextField: m('Text field', ComponentCategory.Input, 'text-cursor-input', ['text', 'input', 'string']),\n numberField: m('Number field', ComponentCategory.Input, 'hash', ['number', 'numeric', 'integer']),\n checkboxField: m('Checkbox field', ComponentCategory.Input, 'square-check', ['checkbox', 'boolean', 'toggle']),\n textAreaField: m('Text area field', ComponentCategory.Input, 'text-align-start', ['multiline', 'text', 'notes']),\n dropdownField: m('Dropdown field', ComponentCategory.Input, 'chevron-down', ['select', 'choice', 'list']),\n sliderField: m('Slider field', ComponentCategory.Input, 'sliders-horizontal', ['range', 'slider']),\n calendarField: m('Date field', ComponentCategory.Input, 'calendar', ['date picker', 'calendar', 'time']),\n colorPickerField: m('Color field', ComponentCategory.Input, 'palette', ['colour', 'picker']),\n multiSelectField: m('Multi-select field', ComponentCategory.Input, 'list-checks', ['multiple', 'select', 'choices']),\n chipsField: m('Tag input field', ComponentCategory.Input, 'tags', ['tags', 'chips', 'keywords'], 'Tg'),\n radioButtonField: m('Radio button field', ComponentCategory.Input, 'circle-dot', ['radio', 'option']),\n radioGroupField: m('Radio group field', ComponentCategory.Input, 'circle-dot-dashed', ['radio', 'options', 'choice']),\n dialog: m('Dialog', ComponentCategory.Overlay, 'app-window', ['modal', 'popup', 'window']),\n confirmationDialog: m('Confirmation dialog', ComponentCategory.Overlay, 'circle-question-mark', ['confirm', 'yes no', 'modal']),\n busyIndicatorDialog: m('Busy indicator dialog', ComponentCategory.Overlay, 'loader', ['loading', 'wait', 'progress']),\n commandDialog: m('Command dialog', ComponentCategory.Overlay, 'square-pen', ['command', 'form', 'modal']),\n stepperCommandDialog: m('Stepper command dialog', ComponentCategory.Forms, 'list-ordered', ['wizard', 'steps', 'command']),\n icon: m('Icon', ComponentCategory.DataDisplay, 'star', ['glyph', 'symbol']),\n tooltip: m('Tooltip', ComponentCategory.Overlay, 'message-square', ['hint', 'hover', 'help']),\n dropdown: m('Dropdown', ComponentCategory.Input, 'chevrons-up-down', ['select', 'choice', 'combo']),\n errorBoundary: m('Error boundary', ComponentCategory.Feedback, 'triangle-alert', ['error', 'failure', 'fallback']),\n objectContentEditor: m('Object content editor', ComponentCategory.Input, 'braces', ['json', 'object', 'editor']),\n objectNavigationalBar: m('Object navigation bar', ComponentCategory.Navigation, 'navigation', ['breadcrumb', 'object', 'path']),\n schemaEditor: m('Schema editor', ComponentCategory.Input, 'file-braces', ['json schema', 'schema', 'editor']),\n timeMachine: m('Time machine', ComponentCategory.DataDisplay, 'rotate-ccw-clock', ['history', 'events', 'replay']),\n filterPanel: m('Filter panel', ComponentCategory.Input, 'funnel', ['filter', 'search', 'refine']),\n toolbar: m('Toolbar', ComponentCategory.Actions, 'wrench', ['actions', 'buttons', 'command bar'], 'Tl', toolbarDesignMode()),\n toolbarButton: m('Toolbar button', ComponentCategory.Actions, 'mouse-pointer-click', ['button', 'action']),\n toolbarGroup: m('Toolbar group', ComponentCategory.Actions, 'group', ['group', 'buttons']),\n toolbarSeparator: m('Toolbar separator', ComponentCategory.Actions, 'minus', ['divider', 'separator']),\n};\n"],"names":["cratisComponentsMetadata","page","m","ComponentCategory","Layout","dataPage","DataDisplay","formElement","Forms","singleResult","queryInputForm","dataTable","table","observableDataTable","commandForm","inputTextField","Input","numberField","checkboxField","textAreaField","dropdownField","sliderField","calendarField","colorPickerField","multiSelectField","chipsField","radioButtonField","radioGroupField","dialog","Overlay","confirmationDialog","busyIndicatorDialog","commandDialog","stepperCommandDialog","icon","tooltip","dropdown","errorBoundary","Feedback","objectContentEditor","objectNavigationalBar","Navigation","schemaEditor","timeMachine","filterPanel","toolbar","Actions","toolbarDesignMode","toolbarButton","toolbarGroup","toolbarSeparator"],"mappings":";;;;;AAAA;AACA;AAKA,6HACO,MAAMA,wBAAAA,GAA8D;AACvEC,IAAAA,IAAAA,EAAMC,6BAAAA,CAAE,MAAA,EAAQC,6BAAAA,CAAkBC,MAAM,EAAE,WAAA,EAAa;AAAC,QAAA,QAAA;AAAU,QAAA;AAAO,KAAA,CAAA;AACzEC,IAAAA,QAAAA,EAAUH,6BAAAA,CAAE,WAAA,EAAaC,6BAAAA,CAAkBG,WAAW,EAAE,kBAAA,EAAoB;AAAC,QAAA,MAAA;AAAQ,QAAA,OAAA;AAAS,QAAA;AAAQ,KAAA,CAAA;AACtGC,IAAAA,WAAAA,EAAaL,6BAAAA,CAAE,cAAA,EAAgBC,6BAAAA,CAAkBK,KAAK,EAAE,mBAAA,EAAqB;AAAC,QAAA,OAAA;AAAS,QAAA;AAAQ,KAAA,CAAA;AAC/FC,I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Descriptors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkC,mBAAmB,EAAsF,MAAM,qBAAqB,CAAC;AAqG9K,eAAO,MAAM,2BAA2B,EAAE,mBAAmB,EAkB5D,CAAC"}
1
+ {"version":3,"file":"cratisComponentsDescriptors.d.ts","sourceRoot":"","sources":["../../cratisComponentsDescriptors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkC,mBAAmB,EAAsF,MAAM,qBAAqB,CAAC;AA2H9K,eAAO,MAAM,2BAA2B,EAAE,mBAAmB,EAAiG,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { QueryResultShape, PropertyValueType, BindingMode, BindingSourceKind, DesignTimeActionPlacement } from '@cratis/scene.model';
2
- import { componentRegistryKey } from '@cratis/scene.react';
2
+ import { describeComponents, componentRegistryKey } from '@cratis/scene.react';
3
+ import { cratisComponentsMetadata } from './cratisComponentsMetadata.js';
3
4
 
4
5
  // Copyright (c) Cratis. All rights reserved.
5
6
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
@@ -290,7 +291,7 @@ const commandFormProperties = [
290
291
  description: 'The screen, slice or dialog the button opens - executed by the enclosing navigation host.'
291
292
  }
292
293
  ];
293
- const cratisComponentsDescriptors = [
294
+ const describedCratisComponents = [
294
295
  {
295
296
  component: key('dataTable'),
296
297
  displayName: 'Data table',
@@ -327,6 +328,7 @@ const cratisComponentsDescriptors = [
327
328
  properties: toolbarButtonProperties
328
329
  }
329
330
  ];
331
+ /** The `Cratis.Components` descriptors: the hand-written ones above with every component's category, icon, keywords and design mode (CMP1). */ const cratisComponentsDescriptors = describeComponents('Cratis.Components', describedCratisComponents, cratisComponentsMetadata);
330
332
 
331
333
  export { cratisComponentsDescriptors };
332
334
  //# sourceMappingURL=cratisComponentsDescriptors.js.map
@@ -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 {\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 */\nconst toolbarButtonProperties: PropertyDescriptor[] = [\n { path: 'title', label: 'Label', group: 'Content', valueType: PropertyValueType.String, description: 'The accessible name and tooltip.' },\n { path: 'icon', label: 'Icon', group: 'Content', valueType: PropertyValueType.Icon, editorKind: 'icon' },\n { path: 'text', label: 'Text', group: 'Content', valueType: PropertyValueType.String, description: 'Short text shown instead of the icon.' },\n { path: 'active', label: 'Active', group: 'Presentation', valueType: PropertyValueType.Boolean, default: false },\n {\n path: 'tooltipPosition', label: 'Tooltip position', group: 'Presentation', valueType: PropertyValueType.Enum, default: 'right',\n choices: [{ value: 'top', label: 'Top' }, { value: 'right', label: 'Right' }, { value: 'bottom', label: 'Bottom' }, { value: 'left', label: 'Left' }],\n },\n {\n path: 'destination', label: 'Destination', group: 'Navigation', valueType: PropertyValueType.Destination,\n description: 'The screen, slice or dialog the button opens - executed by the enclosing navigation host.',\n },\n];\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 { component: key('toolbarButton'), displayName: 'Toolbar button', properties: toolbarButtonProperties },\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","toolbarButtonProperties","Icon","Boolean","Destination","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;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AAA;QAAkB0C,WAAAA,EAAa,gBAAA;QAAkBP,UAAAA,EAAYC;AAAwB;;;"}
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, describeComponents } from '@cratis/scene.react';\nimport { cratisComponentsMetadata } from './cratisComponentsMetadata';\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 */\nconst toolbarButtonProperties: PropertyDescriptor[] = [\n { path: 'title', label: 'Label', group: 'Content', valueType: PropertyValueType.String, description: 'The accessible name and tooltip.' },\n { path: 'icon', label: 'Icon', group: 'Content', valueType: PropertyValueType.Icon, editorKind: 'icon' },\n { path: 'text', label: 'Text', group: 'Content', valueType: PropertyValueType.String, description: 'Short text shown instead of the icon.' },\n { path: 'active', label: 'Active', group: 'Presentation', valueType: PropertyValueType.Boolean, default: false },\n {\n path: 'tooltipPosition', label: 'Tooltip position', group: 'Presentation', valueType: PropertyValueType.Enum, default: 'right',\n choices: [{ value: 'top', label: 'Top' }, { value: 'right', label: 'Right' }, { value: 'bottom', label: 'Bottom' }, { value: 'left', label: 'Left' }],\n },\n {\n path: 'destination', label: 'Destination', group: 'Navigation', valueType: PropertyValueType.Destination,\n description: 'The screen, slice or dialog the button opens - executed by the enclosing navigation host.',\n },\n];\n\nconst describedCratisComponents: 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 { component: key('toolbarButton'), displayName: 'Toolbar button', properties: toolbarButtonProperties },\n];\n\n/** The `Cratis.Components` descriptors: the hand-written ones above with every component's category, icon, keywords and design mode (CMP1). */\nexport const cratisComponentsDescriptors: ComponentDescriptor[] = describeComponents('Cratis.Components', describedCratisComponents, cratisComponentsMetadata);"],"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","toolbarButtonProperties","Icon","Boolean","Destination","describedCratisComponents","component","displayName","actions","id","placement","DesignTimeActionPlacement","Toolbar","availability","cratisComponentsDescriptors","describeComponents","cratisComponentsMetadata"],"mappings":";;;;AAAA;AACA;AAMA;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,kBAA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,QAAAA,SAAAA,EAAWzC,GAAAA,CAAI,aAAA,CAAA;QACf0C,WAAAA,EAAa,cAAA;QACbhC,UAAAA,EAAY,qBAAA;QACZyB,UAAAA,EAAYV,qBAAAA;QACZkB,OAAAA,EAAS;AAAC,YAAA;gBACNC,EAAAA,EAAI,8CAAA;gBACJvC,KAAAA,EAAO,iBAAA;AACPwC,gBAAAA,SAAAA,EAAWC,0BAA0BC,OAAO;gBAC5CC,YAAAA,EAAc,+BAAA;gBACdrC,WAAAA,EAAa;AACjB;AAAE;AACN,KAAA;AACA,IAAA;AAAE8B,QAAAA,SAAAA,EAAWzC,GAAAA,CAAI,eAAA,CAAA;QAAkB0C,WAAAA,EAAa,gBAAA;QAAkBP,UAAAA,EAAYC;AAAwB;AACzG,CAAA;AAED,gJACO,MAAMa,8BAAqDC,kBAAAA,CAAmB,mBAAA,EAAqBV,2BAA2BW,wBAAAA;;"}
@@ -0,0 +1,3 @@
1
+ import { ComponentMetadata } from '@cratis/scene.react';
2
+ export declare const cratisComponentsMetadata: Record<string, ComponentMetadata>;
3
+ //# sourceMappingURL=cratisComponentsMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cratisComponentsMetadata.d.ts","sourceRoot":"","sources":["../../cratisComponentsMetadata.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAA6C,MAAM,qBAAqB,CAAC;AAGnG,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAwCtE,CAAC"}