@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
@@ -52,6 +52,11 @@ const commandFormProperties: PropertyDescriptor[] = [
52
52
  },
53
53
  { 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.' },
54
54
  { 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.' },
55
+ {
56
+ path: 'widthSizeClass', label: 'Width size class', group: 'Layout', valueType: PropertyValueType.Enum, default: 'Regular',
57
+ choices: [{ value: 'Regular', label: 'Regular' }, { value: 'Compact', label: 'Compact' }],
58
+ description: 'The width size class the host evaluated. At Compact the fields of a manual form stack in one column in reading order.',
59
+ },
55
60
  { path: 'fieldWidths', label: 'Legacy field widths', group: 'Layout', valueType: PropertyValueType.Object, editorKind: 'fieldWidths' },
56
61
  {
57
62
  path: 'inputs', label: 'Fields', group: 'Layout', valueType: PropertyValueType.Collection, editorKind: 'commandFields',
@@ -1,134 +1,20 @@
1
1
  // Copyright (c) Cratis. All rights reserved.
2
2
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
 
4
- import { PackageKind, ScenePackage } from '@cratis/scene.model';
5
4
  import { ScenePackageBundle } from '@cratis/scene.react';
6
- import { cratisComponents, cratisComponentsPackageName } from './cratisComponents';
7
- import { cratisComponentsDescriptors } from './cratisComponentsDescriptors';
8
- import { CommandFieldPropertyEditor } from './forms/CommandFieldPropertyEditor';
9
- import { CommandFormDesigner } from './forms/CommandFormDesigner';
10
- import { generateCommandFieldsAction } from './forms/generateCommandFieldsAction';
5
+ import { cratisComponentsDesignTime } from './designTime/cratisComponentsDesignTime';
6
+ import { cratisComponentsRuntimePackage } from './cratisComponentsRuntimePackage';
11
7
 
12
- /**
13
- * The `Cratis.Components` package's declaration - what a profile gets when it lists this package.
14
- *
15
- * This is the concrete case the whole package-dependency mechanism exists for. `@cratis/components` is
16
- * not a self-contained library: every component in it is a wrapper over a PrimeReact widget, and its own
17
- * styling is a `--cratis-*` token layer (`@cratis/components/tokens`) plus the component stylesheets and
18
- * compiled Tailwind utilities in `@cratis/components/styles`. Activate it in a profile without PrimeReact
19
- * and nothing renders; activate it without Tailwind and everything renders unstyled. Both are stated as
20
- * dependencies so a package picker can say so while the profile is being configured, instead of leaving
21
- * it to be discovered when the page opens.
22
- *
23
- * The version ranges are the real ones the library carries. `>=11.0.0` for PrimeReact: version 3.0.0
24
- * declares `primereact@^11` as a peer dependency and is built against version 11's component set, so the
25
- * span across the major boundary that the previous `>=10.9.0` range described is over. The `--cratis-*`
26
- * tokens still resolve a version 10 theme variable as their last fallback, but that is an upgrade-window
27
- * courtesy for an application with a compiled version 10 stylesheet still on the page - not a version of
28
- * PrimeReact this package can be activated against. `^4.0.0` for Tailwind, because the utility sheet is
29
- * compiled against Tailwind 4.
30
- */
31
- export const cratisComponentsPackageManifest: ScenePackage = {
32
- name: cratisComponentsPackageName,
33
- version: '3.0.0',
34
- kind: PackageKind.ComponentLibrary,
35
- dependencies: [
36
- { name: 'PrimeReact', versionRange: '>=11.0.0' },
37
- { name: 'Tailwind', versionRange: '^4.0.0' },
38
- ],
39
- components: [
40
- 'page',
41
- 'dataPage',
42
- 'formElement',
43
- 'singleResult',
44
- 'queryInputForm',
45
- 'dataTable',
46
- 'table',
47
- 'observableDataTable',
48
- 'commandForm',
49
- 'inputTextField',
50
- 'numberField',
51
- 'checkboxField',
52
- 'textAreaField',
53
- 'dropdownField',
54
- 'sliderField',
55
- 'calendarField',
56
- 'colorPickerField',
57
- 'multiSelectField',
58
- 'chipsField',
59
- 'radioButtonField',
60
- 'radioGroupField',
61
- 'dialog',
62
- 'confirmationDialog',
63
- 'busyIndicatorDialog',
64
- 'commandDialog',
65
- 'stepperCommandDialog',
66
- 'icon',
67
- 'tooltip',
68
- 'dropdown',
69
- 'errorBoundary',
70
- 'objectContentEditor',
71
- 'objectNavigationalBar',
72
- 'schemaEditor',
73
- 'timeMachine',
74
- 'filterPanel',
75
- 'toolbar',
76
- 'toolbarButton',
77
- 'toolbarGroup',
78
- 'toolbarSeparator',
79
- ],
80
-
81
- // A component library ships components, and nothing else. Layouts, screen templates and dialog
82
- // templates all belong to a Blueprint: they are decisions about what an application looks like as a
83
- // whole, and this package deliberately makes none of them - it provides the Arc-bound composites a
84
- // template is *built from*, so that a blueprint can place a `dataPage` in a slot and configure it,
85
- // rather than shipping one opinionated data page nobody can rearrange.
86
- layouts: [],
87
- screenTemplates: [],
88
- dialogTemplates: [],
89
-
90
- // No themes either, for a different reason: `@cratis/components` has no palette of its own. It reads
91
- // a `--cratis-*` variable layer that resolves whatever is in front of it - the `--p-*` properties a
92
- // PrimeReact 11 preset emits at runtime, or a Scene theme through this package's token bridge.
93
- // Shipping a theme here would be this library asserting a look it was specifically built not to have.
94
- themes: [],
95
-
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: ['commandFormDesigner'],
104
- propertyEditors: ['commandBinding', 'commandFields', 'fieldWidths'],
105
- propertyDisplays: [],
106
- actions: ['Cratis.Components.commandForm.generateFields'],
107
- },
108
- assets: ['@cratis/components/styles', '@cratis/components/tokens'],
109
- runtimeSingletons: ['react', '@cratis/arc', '@cratis/components'],
110
- };
8
+ export { cratisComponentsPackageManifest } from './cratisComponentsPackageManifest';
111
9
 
112
10
  /**
113
- * The `Cratis.Components` package as a loadable bundle - the manifest above, plus the React components
114
- * behind the names it declares.
11
+ * The `Cratis.Components` package as a loadable bundle - the manifest, the React components behind the names
12
+ * it declares, and the design-time contributions a designer loads.
115
13
  *
116
- * No `layouts`, `screenTemplates`, `dialogTemplates` or `themes` are provided, matching a manifest that
117
- * declares none of them; `validatePackageBundle` is what proves the two halves agree.
14
+ * A runtime host that must not load design-time code imports `cratisComponentsRuntimePackage` from
15
+ * `@cratis/scene.components/runtime` instead; that entry reaches no designer, editor or action.
118
16
  */
119
17
  export const cratisComponentsPackage: ScenePackageBundle = {
120
- manifest: cratisComponentsPackageManifest,
121
- components: cratisComponents,
122
- descriptors: cratisComponentsDescriptors,
123
- designTime: {
124
- designers: {
125
- commandFormDesigner: CommandFormDesigner,
126
- },
127
- propertyEditors: {
128
- commandBinding: CommandFieldPropertyEditor,
129
- },
130
- actions: {
131
- [generateCommandFieldsAction.descriptor.id]: generateCommandFieldsAction,
132
- },
133
- },
18
+ ...cratisComponentsRuntimePackage,
19
+ designTime: cratisComponentsDesignTime,
134
20
  };
@@ -0,0 +1,106 @@
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 { PackageKind, ScenePackage } from '@cratis/scene.model';
5
+ import { cratisComponentsPackageName } from './cratisComponents';
6
+
7
+ /**
8
+ * The `Cratis.Components` package's declaration - what a profile gets when it lists this package.
9
+ *
10
+ * This is the concrete case the whole package-dependency mechanism exists for. `@cratis/components` is
11
+ * not a self-contained library: every component in it is a wrapper over a PrimeReact widget, and its own
12
+ * styling is a `--cratis-*` token layer (`@cratis/components/tokens`) plus the component stylesheets and
13
+ * compiled Tailwind utilities in `@cratis/components/styles`. Activate it in a profile without PrimeReact
14
+ * and nothing renders; activate it without Tailwind and everything renders unstyled. Both are stated as
15
+ * dependencies so a package picker can say so while the profile is being configured, instead of leaving
16
+ * it to be discovered when the page opens.
17
+ *
18
+ * The version ranges are the real ones the library carries. `>=11.0.0` for PrimeReact: version 3.0.0
19
+ * declares `primereact@^11` as a peer dependency and is built against version 11's component set, so the
20
+ * span across the major boundary that the previous `>=10.9.0` range described is over. The `--cratis-*`
21
+ * tokens still resolve a version 10 theme variable as their last fallback, but that is an upgrade-window
22
+ * courtesy for an application with a compiled version 10 stylesheet still on the page - not a version of
23
+ * PrimeReact this package can be activated against. `^4.0.0` for Tailwind, because the utility sheet is
24
+ * compiled against Tailwind 4.
25
+ */
26
+ export const cratisComponentsPackageManifest: ScenePackage = {
27
+ name: cratisComponentsPackageName,
28
+ version: '3.0.0',
29
+ kind: PackageKind.ComponentLibrary,
30
+ dependencies: [
31
+ { name: 'PrimeReact', versionRange: '>=11.0.0' },
32
+ { name: 'Tailwind', versionRange: '^4.0.0' },
33
+ ],
34
+ components: [
35
+ 'page',
36
+ 'dataPage',
37
+ 'formElement',
38
+ 'singleResult',
39
+ 'queryInputForm',
40
+ 'dataTable',
41
+ 'table',
42
+ 'observableDataTable',
43
+ 'commandForm',
44
+ 'inputTextField',
45
+ 'numberField',
46
+ 'checkboxField',
47
+ 'textAreaField',
48
+ 'dropdownField',
49
+ 'sliderField',
50
+ 'calendarField',
51
+ 'colorPickerField',
52
+ 'multiSelectField',
53
+ 'chipsField',
54
+ 'radioButtonField',
55
+ 'radioGroupField',
56
+ 'dialog',
57
+ 'confirmationDialog',
58
+ 'busyIndicatorDialog',
59
+ 'commandDialog',
60
+ 'stepperCommandDialog',
61
+ 'icon',
62
+ 'tooltip',
63
+ 'dropdown',
64
+ 'errorBoundary',
65
+ 'objectContentEditor',
66
+ 'objectNavigationalBar',
67
+ 'schemaEditor',
68
+ 'timeMachine',
69
+ 'filterPanel',
70
+ 'toolbar',
71
+ 'toolbarButton',
72
+ 'toolbarGroup',
73
+ 'toolbarSeparator',
74
+ ],
75
+
76
+ // A component library ships components, and nothing else. Layouts, screen templates and dialog
77
+ // templates all belong to a Blueprint: they are decisions about what an application looks like as a
78
+ // whole, and this package deliberately makes none of them - it provides the Arc-bound composites a
79
+ // template is *built from*, so that a blueprint can place a `dataPage` in a slot and configure it,
80
+ // rather than shipping one opinionated data page nobody can rearrange.
81
+ layouts: [],
82
+ screenTemplates: [],
83
+ dialogTemplates: [],
84
+
85
+ // No themes either, for a different reason: `@cratis/components` has no palette of its own. It reads
86
+ // a `--cratis-*` variable layer that resolves whatever is in front of it - the `--p-*` properties a
87
+ // PrimeReact 11 preset emits at runtime, or a Scene theme through this package's token bridge.
88
+ // Shipping a theme here would be this library asserting a look it was specifically built not to have.
89
+ themes: [],
90
+
91
+ displayName: 'Cratis Components',
92
+ 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.",
93
+ module: '@cratis/scene.components',
94
+ license: 'MIT',
95
+ licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',
96
+ designTime: {
97
+ previews: [],
98
+ designers: ['commandFormDesigner'],
99
+ // `commandFields` and `fieldWidths` are host editor kinds (Studio implements them); the package does not ship them.
100
+ propertyEditors: ['commandBinding', 'commandFormLayout'],
101
+ propertyDisplays: [],
102
+ actions: ['Cratis.Components.commandForm.generateFields'],
103
+ },
104
+ assets: ['@cratis/components/styles', '@cratis/components/tokens'],
105
+ runtimeSingletons: ['react', '@cratis/arc', '@cratis/components'],
106
+ };
@@ -0,0 +1,22 @@
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 { ScenePackageBundle } from '@cratis/scene.react';
5
+ import { cratisComponents } from './cratisComponents';
6
+ import { cratisComponentsDescriptors } from './cratisComponentsDescriptors';
7
+ import { cratisComponentsPackageManifest } from './cratisComponentsPackageManifest';
8
+
9
+ /**
10
+ * The `Cratis.Components` package without design-time contributions: the manifest, the components and their
11
+ * descriptors. The manifest still names the design-time extensions - that is data a host reads without
12
+ * loading them - but no designer, editor or action module is reachable from this bundle, which is what a
13
+ * runtime host imports from `@cratis/scene.components/runtime`.
14
+ *
15
+ * No `layouts`, `screenTemplates`, `dialogTemplates` or `themes` are provided, matching a manifest that
16
+ * declares none of them; `validatePackageBundle` is what proves the two halves agree.
17
+ */
18
+ export const cratisComponentsRuntimePackage: ScenePackageBundle = {
19
+ manifest: cratisComponentsPackageManifest,
20
+ components: cratisComponents,
21
+ descriptors: cratisComponentsDescriptors,
22
+ };
@@ -0,0 +1,22 @@
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 { DesignTimeBundle } from '@cratis/scene.react';
5
+ import { CommandFieldPropertyEditor } from '../forms/CommandFieldPropertyEditor';
6
+ import { CommandFormDesigner } from '../forms/CommandFormDesigner';
7
+ import { CommandFormLayoutEditor } from '../forms/CommandFormLayoutEditor';
8
+ import { generateCommandFieldsAction } from '../forms/generateCommandFieldsAction';
9
+
10
+ /** Every design-time contribution of `Cratis.Components`, under the names its manifest declares. */
11
+ export const cratisComponentsDesignTime: DesignTimeBundle = {
12
+ designers: {
13
+ commandFormDesigner: CommandFormDesigner,
14
+ },
15
+ propertyEditors: {
16
+ commandBinding: CommandFieldPropertyEditor,
17
+ commandFormLayout: CommandFormLayoutEditor,
18
+ },
19
+ actions: {
20
+ [generateCommandFieldsAction.descriptor.id]: generateCommandFieldsAction,
21
+ },
22
+ };
@@ -111,6 +111,24 @@ const commandFormProperties = [
111
111
  editorKind: 'commandFormLayout',
112
112
  description: 'Typed command-form geometry: columns, gaps and field placements. Independent of auto/manual field generation.'
113
113
  },
114
+ {
115
+ path: 'widthSizeClass',
116
+ label: 'Width size class',
117
+ group: 'Layout',
118
+ valueType: scene_model.PropertyValueType.Enum,
119
+ default: 'Regular',
120
+ choices: [
121
+ {
122
+ value: 'Regular',
123
+ label: 'Regular'
124
+ },
125
+ {
126
+ value: 'Compact',
127
+ label: 'Compact'
128
+ }
129
+ ],
130
+ description: 'The width size class the host evaluated. At Compact the fields of a manual form stack in one column in reading order.'
131
+ },
114
132
  {
115
133
  path: 'fieldWidths',
116
134
  label: 'Legacy field widths',
@@ -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","DesignTimeActionPlac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A;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,sCAA0BC,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,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;QACxGC,WAAAA,EAAa;AACjB,KAAA;AACA,IAAA;QACIP,IAAAA,EAAM,oBAAA;QAAsBC,KAAAA,EAAO,mBAAA;QAAqBC,KAAAA,EAAO,MAAA;AAAQC,QAAAA,SAAAA,EAAWC,8BAAkBW,MAAM;QAAET,UAAAA,EAAY,iBAAA;QACxHC,WAAAA,EAAa;AACjB,KAAA;AACA,IAAA;QACIP,IAAAA,EAAM,cAAA;QAAgBC,KAA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,KAAAA,EAAO,cAAA;QAAgBC,KAAAA,EAAO,SAAA;AAAWC,QAAAA,SAAAA,EAAWC,8BAAkBS,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,sCAA0BC,OAAO;gBAC5CC,YAAAA,EAAc,+BAAA;gBACdjC,WAAAA,EAAa;AACjB;AAAE;AACN;;;"}
@@ -1,153 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var scene_model = require('@cratis/scene.model');
4
- var cratisComponents = require('./cratisComponents.js');
5
- var cratisComponentsDescriptors = require('./cratisComponentsDescriptors.js');
6
- var CommandFieldPropertyEditor = require('./forms/CommandFieldPropertyEditor.js');
7
- var CommandFormDesigner = require('./forms/CommandFormDesigner.js');
8
- var generateCommandFieldsAction = require('./forms/generateCommandFieldsAction.js');
3
+ var cratisComponentsDesignTime = require('./designTime/cratisComponentsDesignTime.js');
4
+ var cratisComponentsRuntimePackage = require('./cratisComponentsRuntimePackage.js');
5
+ var cratisComponentsPackageManifest = require('./cratisComponentsPackageManifest.js');
9
6
 
10
7
  // Copyright (c) Cratis. All rights reserved.
11
8
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
12
9
  /**
13
- * The `Cratis.Components` package's declaration - what a profile gets when it lists this package.
10
+ * The `Cratis.Components` package as a loadable bundle - the manifest, the React components behind the names
11
+ * it declares, and the design-time contributions a designer loads.
14
12
  *
15
- * This is the concrete case the whole package-dependency mechanism exists for. `@cratis/components` is
16
- * not a self-contained library: every component in it is a wrapper over a PrimeReact widget, and its own
17
- * styling is a `--cratis-*` token layer (`@cratis/components/tokens`) plus the component stylesheets and
18
- * compiled Tailwind utilities in `@cratis/components/styles`. Activate it in a profile without PrimeReact
19
- * and nothing renders; activate it without Tailwind and everything renders unstyled. Both are stated as
20
- * dependencies so a package picker can say so while the profile is being configured, instead of leaving
21
- * it to be discovered when the page opens.
22
- *
23
- * The version ranges are the real ones the library carries. `>=11.0.0` for PrimeReact: version 3.0.0
24
- * declares `primereact@^11` as a peer dependency and is built against version 11's component set, so the
25
- * span across the major boundary that the previous `>=10.9.0` range described is over. The `--cratis-*`
26
- * tokens still resolve a version 10 theme variable as their last fallback, but that is an upgrade-window
27
- * courtesy for an application with a compiled version 10 stylesheet still on the page - not a version of
28
- * PrimeReact this package can be activated against. `^4.0.0` for Tailwind, because the utility sheet is
29
- * compiled against Tailwind 4.
30
- */ const cratisComponentsPackageManifest = {
31
- name: cratisComponents.cratisComponentsPackageName,
32
- version: '3.0.0',
33
- kind: scene_model.PackageKind.ComponentLibrary,
34
- dependencies: [
35
- {
36
- name: 'PrimeReact',
37
- versionRange: '>=11.0.0'
38
- },
39
- {
40
- name: 'Tailwind',
41
- versionRange: '^4.0.0'
42
- }
43
- ],
44
- components: [
45
- 'page',
46
- 'dataPage',
47
- 'formElement',
48
- 'singleResult',
49
- 'queryInputForm',
50
- 'dataTable',
51
- 'table',
52
- 'observableDataTable',
53
- 'commandForm',
54
- 'inputTextField',
55
- 'numberField',
56
- 'checkboxField',
57
- 'textAreaField',
58
- 'dropdownField',
59
- 'sliderField',
60
- 'calendarField',
61
- 'colorPickerField',
62
- 'multiSelectField',
63
- 'chipsField',
64
- 'radioButtonField',
65
- 'radioGroupField',
66
- 'dialog',
67
- 'confirmationDialog',
68
- 'busyIndicatorDialog',
69
- 'commandDialog',
70
- 'stepperCommandDialog',
71
- 'icon',
72
- 'tooltip',
73
- 'dropdown',
74
- 'errorBoundary',
75
- 'objectContentEditor',
76
- 'objectNavigationalBar',
77
- 'schemaEditor',
78
- 'timeMachine',
79
- 'filterPanel',
80
- 'toolbar',
81
- 'toolbarButton',
82
- 'toolbarGroup',
83
- 'toolbarSeparator'
84
- ],
85
- // A component library ships components, and nothing else. Layouts, screen templates and dialog
86
- // templates all belong to a Blueprint: they are decisions about what an application looks like as a
87
- // whole, and this package deliberately makes none of them - it provides the Arc-bound composites a
88
- // template is *built from*, so that a blueprint can place a `dataPage` in a slot and configure it,
89
- // rather than shipping one opinionated data page nobody can rearrange.
90
- layouts: [],
91
- screenTemplates: [],
92
- dialogTemplates: [],
93
- // No themes either, for a different reason: `@cratis/components` has no palette of its own. It reads
94
- // a `--cratis-*` variable layer that resolves whatever is in front of it - the `--p-*` properties a
95
- // PrimeReact 11 preset emits at runtime, or a Scene theme through this package's token bridge.
96
- // Shipping a theme here would be this library asserting a look it was specifically built not to have.
97
- themes: [],
98
- displayName: 'Cratis Components',
99
- 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.",
100
- module: '@cratis/scene.components',
101
- license: 'MIT',
102
- licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',
103
- designTime: {
104
- previews: [],
105
- designers: [
106
- 'commandFormDesigner'
107
- ],
108
- propertyEditors: [
109
- 'commandBinding',
110
- 'commandFields',
111
- 'fieldWidths'
112
- ],
113
- propertyDisplays: [],
114
- actions: [
115
- 'Cratis.Components.commandForm.generateFields'
116
- ]
117
- },
118
- assets: [
119
- '@cratis/components/styles',
120
- '@cratis/components/tokens'
121
- ],
122
- runtimeSingletons: [
123
- 'react',
124
- '@cratis/arc',
125
- '@cratis/components'
126
- ]
127
- };
128
- /**
129
- * The `Cratis.Components` package as a loadable bundle - the manifest above, plus the React components
130
- * behind the names it declares.
131
- *
132
- * No `layouts`, `screenTemplates`, `dialogTemplates` or `themes` are provided, matching a manifest that
133
- * declares none of them; `validatePackageBundle` is what proves the two halves agree.
13
+ * A runtime host that must not load design-time code imports `cratisComponentsRuntimePackage` from
14
+ * `@cratis/scene.components/runtime` instead; that entry reaches no designer, editor or action.
134
15
  */ const cratisComponentsPackage = {
135
- manifest: cratisComponentsPackageManifest,
136
- components: cratisComponents.cratisComponents,
137
- descriptors: cratisComponentsDescriptors.cratisComponentsDescriptors,
138
- designTime: {
139
- designers: {
140
- commandFormDesigner: CommandFormDesigner.CommandFormDesigner
141
- },
142
- propertyEditors: {
143
- commandBinding: CommandFieldPropertyEditor.CommandFieldPropertyEditor
144
- },
145
- actions: {
146
- [generateCommandFieldsAction.generateCommandFieldsAction.descriptor.id]: generateCommandFieldsAction.generateCommandFieldsAction
147
- }
148
- }
16
+ ...cratisComponentsRuntimePackage.cratisComponentsRuntimePackage,
17
+ designTime: cratisComponentsDesignTime.cratisComponentsDesignTime
149
18
  };
150
19
 
20
+ exports.cratisComponentsPackageManifest = cratisComponentsPackageManifest.cratisComponentsPackageManifest;
151
21
  exports.cratisComponentsPackage = cratisComponentsPackage;
152
- exports.cratisComponentsPackageManifest = cratisComponentsPackageManifest;
153
22
  //# 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,4CAAAA;IACNC,OAAAA,EAAS,OAAA;AACTC,IAAAA,IAAAA,EAAMC,wBAAYC,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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AA;AAAe,QAAA;AAAqB;AACrE;AAEA;;;;;;UAOaC,uBAAAA,GAA8C;IACvDC,QAAAA,EAAU5B,+BAAAA;IACVS,UAAAA,EAAYoB,iCAAAA;IACZC,WAAAA,EAAaC,uDAAAA;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,uDAAAA,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,6DAA8B;IACjCC,UAAAA,EAAYC;AAChB;;;"}