@cratis/scene.model 4.10.0 → 4.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/forms/CommandFormLayout.js +13 -0
- package/dist/cjs/forms/CommandFormLayout.js.map +1 -0
- package/dist/cjs/forms/Form.js +2 -0
- package/dist/cjs/forms/Form.js.map +1 -1
- package/dist/cjs/forms/FormColumn.js +13 -0
- package/dist/cjs/forms/FormColumn.js.map +1 -0
- package/dist/cjs/forms/FormField.js +3 -6
- package/dist/cjs/forms/FormField.js.map +1 -1
- package/dist/cjs/forms/FormFieldPlacement.js +15 -0
- package/dist/cjs/forms/FormFieldPlacement.js.map +1 -0
- package/dist/cjs/forms/FormGenerationMode.js +14 -0
- package/dist/cjs/forms/FormGenerationMode.js.map +1 -0
- package/dist/cjs/forms/FormWidth.js +11 -0
- package/dist/cjs/forms/FormWidth.js.map +1 -0
- package/dist/cjs/forms/FormWidthUnit.js +16 -0
- package/dist/cjs/forms/FormWidthUnit.js.map +1 -0
- package/dist/cjs/index.js +12 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/forms/CommandFormLayout.d.ts +11 -0
- package/dist/esm/forms/CommandFormLayout.d.ts.map +1 -0
- package/dist/esm/forms/CommandFormLayout.js +11 -0
- package/dist/esm/forms/CommandFormLayout.js.map +1 -0
- package/dist/esm/forms/Form.d.ts +4 -0
- package/dist/esm/forms/Form.d.ts.map +1 -1
- package/dist/esm/forms/Form.js +2 -0
- package/dist/esm/forms/Form.js.map +1 -1
- package/dist/esm/forms/FormColumn.d.ts +9 -0
- package/dist/esm/forms/FormColumn.d.ts.map +1 -0
- package/dist/esm/forms/FormColumn.js +11 -0
- package/dist/esm/forms/FormColumn.js.map +1 -0
- package/dist/esm/forms/FormField.d.ts +2 -0
- package/dist/esm/forms/FormField.d.ts.map +1 -1
- package/dist/esm/forms/FormField.js +3 -6
- package/dist/esm/forms/FormField.js.map +1 -1
- package/dist/esm/forms/FormFieldPlacement.d.ts +11 -0
- package/dist/esm/forms/FormFieldPlacement.d.ts.map +1 -0
- package/dist/esm/forms/FormFieldPlacement.js +13 -0
- package/dist/esm/forms/FormFieldPlacement.js.map +1 -0
- package/dist/esm/forms/FormGenerationMode.d.ts +5 -0
- package/dist/esm/forms/FormGenerationMode.d.ts.map +1 -0
- package/dist/esm/forms/FormGenerationMode.js +12 -0
- package/dist/esm/forms/FormGenerationMode.js.map +1 -0
- package/dist/esm/forms/FormWidth.d.ts +7 -0
- package/dist/esm/forms/FormWidth.d.ts.map +1 -0
- package/dist/esm/forms/FormWidth.js +9 -0
- package/dist/esm/forms/FormWidth.js.map +1 -0
- package/dist/esm/forms/FormWidthUnit.d.ts +7 -0
- package/dist/esm/forms/FormWidthUnit.d.ts.map +1 -0
- package/dist/esm/forms/FormWidthUnit.js +14 -0
- package/dist/esm/forms/FormWidthUnit.js.map +1 -0
- package/dist/esm/forms/index.d.ts +6 -0
- package/dist/esm/forms/index.d.ts.map +1 -1
- package/dist/esm/forms/index.js +6 -0
- package/dist/esm/forms/index.js.map +1 -1
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/forms/CommandFormLayout.ts +18 -0
- package/forms/Form.ts +5 -1
- package/forms/FormColumn.ts +16 -0
- package/forms/FormField.ts +4 -1
- package/forms/FormFieldPlacement.ts +18 -0
- package/forms/FormGenerationMode.ts +10 -0
- package/forms/FormWidth.ts +16 -0
- package/forms/FormWidthUnit.ts +12 -0
- package/forms/index.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const CommandFormLayoutPropertyNames = [
|
|
6
|
+
'columns',
|
|
7
|
+
'placements',
|
|
8
|
+
'columnGap',
|
|
9
|
+
'rowGap'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.CommandFormLayoutPropertyNames = CommandFormLayoutPropertyNames;
|
|
13
|
+
//# sourceMappingURL=CommandFormLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandFormLayout.js","sources":["../../../forms/CommandFormLayout.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 { FormColumn } from './FormColumn';\nimport { FormFieldPlacement } from './FormFieldPlacement';\nimport { FormWidth } from './FormWidth';\n\n/**\n * Platform-neutral command-form geometry. It is independent of auto/manual field generation mode.\n */\nexport interface CommandFormLayout {\n columns: FormColumn[];\n placements: FormFieldPlacement[];\n columnGap?: FormWidth;\n rowGap?: FormWidth;\n}\n\nexport const CommandFormLayoutPropertyNames: (keyof CommandFormLayout)[] = ['columns', 'placements', 'columnGap', 'rowGap'];\n"],"names":["CommandFormLayoutPropertyNames"],"mappings":";;AAAA;AACA;MAgBaA,8BAAAA,GAA8D;AAAC,IAAA,SAAA;AAAW,IAAA,YAAA;AAAc,IAAA,WAAA;AAAa,IAAA;;;"}
|
package/dist/cjs/forms/Form.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.js","sources":["../../../forms/Form.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 { PopulateSource } from './PopulateSource';\nimport { FormField } from './FormField';\nimport { Behavior } from '../interactions';\n\n/**\n * The command-side counterpart to a table or summary: a named, typed form for one command.\n */\nexport interface Form {\n name: string;\n forCommand: string;\n populateSource?: PopulateSource;\n fields: FormField[];\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const FormPropertyNames: (keyof Form)[] = ['name', 'forCommand', 'populateSource', 'fields', 'behaviors'];\n"],"names":["FormPropertyNames"],"mappings":";;AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"Form.js","sources":["../../../forms/Form.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 { CommandFormLayout } from './CommandFormLayout';\nimport { FormGenerationMode } from './FormGenerationMode';\nimport { PopulateSource } from './PopulateSource';\nimport { FormField } from './FormField';\nimport { Behavior } from '../interactions';\n\n/**\n * The command-side counterpart to a table or summary: a named, typed form for one command.\n */\nexport interface Form {\n name: string;\n forCommand: string;\n populateSource?: PopulateSource;\n generationMode?: FormGenerationMode;\n layout?: CommandFormLayout;\n fields: FormField[];\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const FormPropertyNames: (keyof Form)[] = ['name', 'forCommand', 'populateSource', 'generationMode', 'layout', 'fields', 'behaviors'];\n"],"names":["FormPropertyNames"],"mappings":";;AAAA;AACA;MAyBaA,iBAAAA,GAAoC;AAAC,IAAA,MAAA;AAAQ,IAAA,YAAA;AAAc,IAAA,gBAAA;AAAkB,IAAA,gBAAA;AAAkB,IAAA,QAAA;AAAU,IAAA,QAAA;AAAU,IAAA;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const FormColumnPropertyNames = [
|
|
6
|
+
'index',
|
|
7
|
+
'width',
|
|
8
|
+
'minWidth',
|
|
9
|
+
'maxWidth'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.FormColumnPropertyNames = FormColumnPropertyNames;
|
|
13
|
+
//# sourceMappingURL=FormColumn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormColumn.js","sources":["../../../forms/FormColumn.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 { FormWidth } from './FormWidth';\n\n/**\n * One column in a command-form geometry grid. Indexes are one-based for authored stability.\n */\nexport interface FormColumn {\n index: number;\n width?: FormWidth;\n minWidth?: FormWidth;\n maxWidth?: FormWidth;\n}\n\nexport const FormColumnPropertyNames: (keyof FormColumn)[] = ['index', 'width', 'minWidth', 'maxWidth'];\n"],"names":["FormColumnPropertyNames"],"mappings":";;AAAA;AACA;MAcaA,uBAAAA,GAAgD;AAAC,IAAA,OAAA;AAAS,IAAA,OAAA;AAAS,IAAA,UAAA;AAAY,IAAA;;;"}
|
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
// Copyright (c) Cratis. All rights reserved.
|
|
4
4
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
-
|
|
6
|
-
* One field of a {@link Form}. Mirrors the three population tiers Screenplay's `form` construct
|
|
7
|
-
* establishes: auto-mapped by name (`sourceProperty` and `composeUsing` both undefined), explicitly
|
|
8
|
-
* renamed (`sourceProperty` set), or computed by a callback (`composeUsing` set).
|
|
9
|
-
*/ const FormFieldPropertyNames = [
|
|
5
|
+
const FormFieldPropertyNames = [
|
|
10
6
|
'name',
|
|
11
7
|
'sourceProperty',
|
|
12
8
|
'composeUsing',
|
|
13
|
-
'label'
|
|
9
|
+
'label',
|
|
10
|
+
'placement'
|
|
14
11
|
];
|
|
15
12
|
|
|
16
13
|
exports.FormFieldPropertyNames = FormFieldPropertyNames;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormField.js","sources":["../../../forms/FormField.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * One field of a {@link Form}. Mirrors the three population tiers Screenplay's `form` construct\n * establishes: auto-mapped by name (`sourceProperty` and `composeUsing` both undefined), explicitly\n * renamed (`sourceProperty` set), or computed by a callback (`composeUsing` set).\n */\nexport interface FormField {\n name: string;\n sourceProperty?: string;\n composeUsing?: string;\n label?: string;\n}\n\nexport const FormFieldPropertyNames: (keyof FormField)[] = ['name', 'sourceProperty', 'composeUsing', 'label'];\n"],"names":["FormFieldPropertyNames"],"mappings":";;AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"FormField.js","sources":["../../../forms/FormField.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 { FormFieldPlacement } from './FormFieldPlacement';\n\n/**\n * One field of a {@link Form}. Mirrors the three population tiers Screenplay's `form` construct\n * establishes: auto-mapped by name (`sourceProperty` and `composeUsing` both undefined), explicitly\n * renamed (`sourceProperty` set), or computed by a callback (`composeUsing` set).\n */\nexport interface FormField {\n name: string;\n sourceProperty?: string;\n composeUsing?: string;\n label?: string;\n placement?: FormFieldPlacement;\n}\n\nexport const FormFieldPropertyNames: (keyof FormField)[] = ['name', 'sourceProperty', 'composeUsing', 'label', 'placement'];\n"],"names":["FormFieldPropertyNames"],"mappings":";;AAAA;AACA;MAiBaA,sBAAAA,GAA8C;AAAC,IAAA,MAAA;AAAQ,IAAA,gBAAA;AAAkB,IAAA,cAAA;AAAgB,IAAA,OAAA;AAAS,IAAA;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const FormFieldPlacementPropertyNames = [
|
|
6
|
+
'field',
|
|
7
|
+
'row',
|
|
8
|
+
'column',
|
|
9
|
+
'rowSpan',
|
|
10
|
+
'columnSpan',
|
|
11
|
+
'width'
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
exports.FormFieldPlacementPropertyNames = FormFieldPlacementPropertyNames;
|
|
15
|
+
//# sourceMappingURL=FormFieldPlacement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFieldPlacement.js","sources":["../../../forms/FormFieldPlacement.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 { FormWidth } from './FormWidth';\n\n/**\n * Authored placement for one command-form field in a platform-neutral grid. Row and column are one-based.\n */\nexport interface FormFieldPlacement {\n field: string;\n row: number;\n column: number;\n rowSpan?: number;\n columnSpan?: number;\n width?: FormWidth;\n}\n\nexport const FormFieldPlacementPropertyNames: (keyof FormFieldPlacement)[] = ['field', 'row', 'column', 'rowSpan', 'columnSpan', 'width'];\n"],"names":["FormFieldPlacementPropertyNames"],"mappings":";;AAAA;AACA;MAgBaA,+BAAAA,GAAgE;AAAC,IAAA,OAAA;AAAS,IAAA,KAAA;AAAO,IAAA,QAAA;AAAU,IAAA,SAAA;AAAW,IAAA,YAAA;AAAc,IAAA;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* How a command form's fields are generated.
|
|
7
|
+
*/ var FormGenerationMode = /*#__PURE__*/ function(FormGenerationMode) {
|
|
8
|
+
FormGenerationMode["Auto"] = "auto";
|
|
9
|
+
FormGenerationMode["Manual"] = "manual";
|
|
10
|
+
return FormGenerationMode;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
exports.FormGenerationMode = FormGenerationMode;
|
|
14
|
+
//# sourceMappingURL=FormGenerationMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormGenerationMode.js","sources":["../../../forms/FormGenerationMode.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * How a command form's fields are generated.\n */\nexport enum FormGenerationMode {\n Auto = 'auto',\n Manual = 'manual',\n}\n"],"names":["FormGenerationMode"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,kBAAAA,iBAAAA,SAAAA,kBAAAA,EAAAA;;;AAAAA,IAAAA,OAAAA,kBAAAA;AAGX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const FormWidthPropertyNames = [
|
|
6
|
+
'unit',
|
|
7
|
+
'value'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
exports.FormWidthPropertyNames = FormWidthPropertyNames;
|
|
11
|
+
//# sourceMappingURL=FormWidth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormWidth.js","sources":["../../../forms/FormWidth.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 { FormWidthUnit } from './FormWidthUnit';\n\n/**\n * A platform-neutral width value for form geometry.\n */\nexport interface FormWidth {\n unit: FormWidthUnit;\n\n /** The numeric value for fraction, pixel and percent widths. Omitted for `auto`. */\n value?: number;\n}\n\nexport const FormWidthPropertyNames: (keyof FormWidth)[] = ['unit', 'value'];\n"],"names":["FormWidthPropertyNames"],"mappings":";;AAAA;AACA;MAcaA,sBAAAA,GAA8C;AAAC,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* The unit used by a command-form column, gap or field width.
|
|
7
|
+
*/ var FormWidthUnit = /*#__PURE__*/ function(FormWidthUnit) {
|
|
8
|
+
FormWidthUnit["Fraction"] = "fraction";
|
|
9
|
+
FormWidthUnit["Pixels"] = "pixels";
|
|
10
|
+
FormWidthUnit["Percent"] = "percent";
|
|
11
|
+
FormWidthUnit["Auto"] = "auto";
|
|
12
|
+
return FormWidthUnit;
|
|
13
|
+
}({});
|
|
14
|
+
|
|
15
|
+
exports.FormWidthUnit = FormWidthUnit;
|
|
16
|
+
//# sourceMappingURL=FormWidthUnit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormWidthUnit.js","sources":["../../../forms/FormWidthUnit.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * The unit used by a command-form column, gap or field width.\n */\nexport enum FormWidthUnit {\n Fraction = 'fraction',\n Pixels = 'pixels',\n Percent = 'percent',\n Auto = 'auto',\n}\n"],"names":["FormWidthUnit"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,aAAAA,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAKX,CAAA,CAAA,EAAA;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -53,8 +53,14 @@ var ElementPlacement = require('./layouts/ElementPlacement.js');
|
|
|
53
53
|
var FreeformSlotArrangement = require('./layouts/FreeformSlotArrangement.js');
|
|
54
54
|
var FreeformSlotVariant = require('./layouts/FreeformSlotVariant.js');
|
|
55
55
|
var SlotPlacement = require('./layouts/SlotPlacement.js');
|
|
56
|
+
var CommandFormLayout = require('./forms/CommandFormLayout.js');
|
|
56
57
|
var Form = require('./forms/Form.js');
|
|
58
|
+
var FormColumn = require('./forms/FormColumn.js');
|
|
57
59
|
var FormField = require('./forms/FormField.js');
|
|
60
|
+
var FormFieldPlacement = require('./forms/FormFieldPlacement.js');
|
|
61
|
+
var FormGenerationMode = require('./forms/FormGenerationMode.js');
|
|
62
|
+
var FormWidth = require('./forms/FormWidth.js');
|
|
63
|
+
var FormWidthUnit = require('./forms/FormWidthUnit.js');
|
|
58
64
|
var PopulateViaQuery = require('./forms/PopulateViaQuery.js');
|
|
59
65
|
var PopulateFromItem = require('./forms/PopulateFromItem.js');
|
|
60
66
|
var ContributionPoint = require('./contributionPoints/ContributionPoint.js');
|
|
@@ -213,8 +219,14 @@ exports.ElementPlacementPropertyNames = ElementPlacement.ElementPlacementPropert
|
|
|
213
219
|
exports.FreeformSlotArrangementPropertyNames = FreeformSlotArrangement.FreeformSlotArrangementPropertyNames;
|
|
214
220
|
exports.FreeformSlotVariantPropertyNames = FreeformSlotVariant.FreeformSlotVariantPropertyNames;
|
|
215
221
|
exports.SlotPlacementPropertyNames = SlotPlacement.SlotPlacementPropertyNames;
|
|
222
|
+
exports.CommandFormLayoutPropertyNames = CommandFormLayout.CommandFormLayoutPropertyNames;
|
|
216
223
|
exports.FormPropertyNames = Form.FormPropertyNames;
|
|
224
|
+
exports.FormColumnPropertyNames = FormColumn.FormColumnPropertyNames;
|
|
217
225
|
exports.FormFieldPropertyNames = FormField.FormFieldPropertyNames;
|
|
226
|
+
exports.FormFieldPlacementPropertyNames = FormFieldPlacement.FormFieldPlacementPropertyNames;
|
|
227
|
+
exports.FormGenerationMode = FormGenerationMode.FormGenerationMode;
|
|
228
|
+
exports.FormWidthPropertyNames = FormWidth.FormWidthPropertyNames;
|
|
229
|
+
exports.FormWidthUnit = FormWidthUnit.FormWidthUnit;
|
|
218
230
|
exports.PopulateViaQueryPropertyNames = PopulateViaQuery.PopulateViaQueryPropertyNames;
|
|
219
231
|
exports.PopulateFromItemPropertyNames = PopulateFromItem.PopulateFromItemPropertyNames;
|
|
220
232
|
exports.ContributionPointPropertyNames = ContributionPoint.ContributionPointPropertyNames;
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormColumn } from './FormColumn';
|
|
2
|
+
import { FormFieldPlacement } from './FormFieldPlacement';
|
|
3
|
+
import { FormWidth } from './FormWidth';
|
|
4
|
+
export interface CommandFormLayout {
|
|
5
|
+
columns: FormColumn[];
|
|
6
|
+
placements: FormFieldPlacement[];
|
|
7
|
+
columnGap?: FormWidth;
|
|
8
|
+
rowGap?: FormWidth;
|
|
9
|
+
}
|
|
10
|
+
export declare const CommandFormLayoutPropertyNames: (keyof CommandFormLayout)[];
|
|
11
|
+
//# sourceMappingURL=CommandFormLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandFormLayout.d.ts","sourceRoot":"","sources":["../../../forms/CommandFormLayout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,8BAA8B,EAAE,CAAC,MAAM,iBAAiB,CAAC,EAAqD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const CommandFormLayoutPropertyNames = [
|
|
4
|
+
'columns',
|
|
5
|
+
'placements',
|
|
6
|
+
'columnGap',
|
|
7
|
+
'rowGap'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
export { CommandFormLayoutPropertyNames };
|
|
11
|
+
//# sourceMappingURL=CommandFormLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandFormLayout.js","sources":["../../../forms/CommandFormLayout.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 { FormColumn } from './FormColumn';\nimport { FormFieldPlacement } from './FormFieldPlacement';\nimport { FormWidth } from './FormWidth';\n\n/**\n * Platform-neutral command-form geometry. It is independent of auto/manual field generation mode.\n */\nexport interface CommandFormLayout {\n columns: FormColumn[];\n placements: FormFieldPlacement[];\n columnGap?: FormWidth;\n rowGap?: FormWidth;\n}\n\nexport const CommandFormLayoutPropertyNames: (keyof CommandFormLayout)[] = ['columns', 'placements', 'columnGap', 'rowGap'];\n"],"names":["CommandFormLayoutPropertyNames"],"mappings":"AAAA;AACA;MAgBaA,8BAAAA,GAA8D;AAAC,IAAA,SAAA;AAAW,IAAA,YAAA;AAAc,IAAA,WAAA;AAAa,IAAA;;;"}
|
package/dist/esm/forms/Form.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CommandFormLayout } from './CommandFormLayout';
|
|
2
|
+
import { FormGenerationMode } from './FormGenerationMode';
|
|
1
3
|
import { PopulateSource } from './PopulateSource';
|
|
2
4
|
import { FormField } from './FormField';
|
|
3
5
|
import { Behavior } from '../interactions';
|
|
@@ -5,6 +7,8 @@ export interface Form {
|
|
|
5
7
|
name: string;
|
|
6
8
|
forCommand: string;
|
|
7
9
|
populateSource?: PopulateSource;
|
|
10
|
+
generationMode?: FormGenerationMode;
|
|
11
|
+
layout?: CommandFormLayout;
|
|
8
12
|
fields: FormField[];
|
|
9
13
|
behaviors?: Behavior[];
|
|
10
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../forms/Form.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAK3C,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,MAAM,EAAE,SAAS,EAAE,CAAC;IAKpB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC1B;AAED,eAAO,MAAM,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../forms/Form.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAK3C,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,MAAM,EAAE,SAAS,EAAE,CAAC;IAKpB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC1B;AAED,eAAO,MAAM,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,EAAgG,CAAC"}
|
package/dist/esm/forms/Form.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.js","sources":["../../../forms/Form.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 { PopulateSource } from './PopulateSource';\nimport { FormField } from './FormField';\nimport { Behavior } from '../interactions';\n\n/**\n * The command-side counterpart to a table or summary: a named, typed form for one command.\n */\nexport interface Form {\n name: string;\n forCommand: string;\n populateSource?: PopulateSource;\n fields: FormField[];\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const FormPropertyNames: (keyof Form)[] = ['name', 'forCommand', 'populateSource', 'fields', 'behaviors'];\n"],"names":["FormPropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"Form.js","sources":["../../../forms/Form.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 { CommandFormLayout } from './CommandFormLayout';\nimport { FormGenerationMode } from './FormGenerationMode';\nimport { PopulateSource } from './PopulateSource';\nimport { FormField } from './FormField';\nimport { Behavior } from '../interactions';\n\n/**\n * The command-side counterpart to a table or summary: a named, typed form for one command.\n */\nexport interface Form {\n name: string;\n forCommand: string;\n populateSource?: PopulateSource;\n generationMode?: FormGenerationMode;\n layout?: CommandFormLayout;\n fields: FormField[];\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const FormPropertyNames: (keyof Form)[] = ['name', 'forCommand', 'populateSource', 'generationMode', 'layout', 'fields', 'behaviors'];\n"],"names":["FormPropertyNames"],"mappings":"AAAA;AACA;MAyBaA,iBAAAA,GAAoC;AAAC,IAAA,MAAA;AAAQ,IAAA,YAAA;AAAc,IAAA,gBAAA;AAAkB,IAAA,gBAAA;AAAkB,IAAA,QAAA;AAAU,IAAA,QAAA;AAAU,IAAA;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormWidth } from './FormWidth';
|
|
2
|
+
export interface FormColumn {
|
|
3
|
+
index: number;
|
|
4
|
+
width?: FormWidth;
|
|
5
|
+
minWidth?: FormWidth;
|
|
6
|
+
maxWidth?: FormWidth;
|
|
7
|
+
}
|
|
8
|
+
export declare const FormColumnPropertyNames: (keyof FormColumn)[];
|
|
9
|
+
//# sourceMappingURL=FormColumn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormColumn.d.ts","sourceRoot":"","sources":["../../../forms/FormColumn.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,uBAAuB,EAAE,CAAC,MAAM,UAAU,CAAC,EAA+C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const FormColumnPropertyNames = [
|
|
4
|
+
'index',
|
|
5
|
+
'width',
|
|
6
|
+
'minWidth',
|
|
7
|
+
'maxWidth'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
export { FormColumnPropertyNames };
|
|
11
|
+
//# sourceMappingURL=FormColumn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormColumn.js","sources":["../../../forms/FormColumn.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 { FormWidth } from './FormWidth';\n\n/**\n * One column in a command-form geometry grid. Indexes are one-based for authored stability.\n */\nexport interface FormColumn {\n index: number;\n width?: FormWidth;\n minWidth?: FormWidth;\n maxWidth?: FormWidth;\n}\n\nexport const FormColumnPropertyNames: (keyof FormColumn)[] = ['index', 'width', 'minWidth', 'maxWidth'];\n"],"names":["FormColumnPropertyNames"],"mappings":"AAAA;AACA;MAcaA,uBAAAA,GAAgD;AAAC,IAAA,OAAA;AAAS,IAAA,OAAA;AAAS,IAAA,UAAA;AAAY,IAAA;;;"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { FormFieldPlacement } from './FormFieldPlacement';
|
|
1
2
|
export interface FormField {
|
|
2
3
|
name: string;
|
|
3
4
|
sourceProperty?: string;
|
|
4
5
|
composeUsing?: string;
|
|
5
6
|
label?: string;
|
|
7
|
+
placement?: FormFieldPlacement;
|
|
6
8
|
}
|
|
7
9
|
export declare const FormFieldPropertyNames: (keyof FormField)[];
|
|
8
10
|
//# sourceMappingURL=FormField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../forms/FormField.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../forms/FormField.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAO1D,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED,eAAO,MAAM,sBAAsB,EAAE,CAAC,MAAM,SAAS,CAAC,EAAqE,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
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
|
-
|
|
4
|
-
* One field of a {@link Form}. Mirrors the three population tiers Screenplay's `form` construct
|
|
5
|
-
* establishes: auto-mapped by name (`sourceProperty` and `composeUsing` both undefined), explicitly
|
|
6
|
-
* renamed (`sourceProperty` set), or computed by a callback (`composeUsing` set).
|
|
7
|
-
*/ const FormFieldPropertyNames = [
|
|
3
|
+
const FormFieldPropertyNames = [
|
|
8
4
|
'name',
|
|
9
5
|
'sourceProperty',
|
|
10
6
|
'composeUsing',
|
|
11
|
-
'label'
|
|
7
|
+
'label',
|
|
8
|
+
'placement'
|
|
12
9
|
];
|
|
13
10
|
|
|
14
11
|
export { FormFieldPropertyNames };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormField.js","sources":["../../../forms/FormField.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * One field of a {@link Form}. Mirrors the three population tiers Screenplay's `form` construct\n * establishes: auto-mapped by name (`sourceProperty` and `composeUsing` both undefined), explicitly\n * renamed (`sourceProperty` set), or computed by a callback (`composeUsing` set).\n */\nexport interface FormField {\n name: string;\n sourceProperty?: string;\n composeUsing?: string;\n label?: string;\n}\n\nexport const FormFieldPropertyNames: (keyof FormField)[] = ['name', 'sourceProperty', 'composeUsing', 'label'];\n"],"names":["FormFieldPropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"FormField.js","sources":["../../../forms/FormField.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 { FormFieldPlacement } from './FormFieldPlacement';\n\n/**\n * One field of a {@link Form}. Mirrors the three population tiers Screenplay's `form` construct\n * establishes: auto-mapped by name (`sourceProperty` and `composeUsing` both undefined), explicitly\n * renamed (`sourceProperty` set), or computed by a callback (`composeUsing` set).\n */\nexport interface FormField {\n name: string;\n sourceProperty?: string;\n composeUsing?: string;\n label?: string;\n placement?: FormFieldPlacement;\n}\n\nexport const FormFieldPropertyNames: (keyof FormField)[] = ['name', 'sourceProperty', 'composeUsing', 'label', 'placement'];\n"],"names":["FormFieldPropertyNames"],"mappings":"AAAA;AACA;MAiBaA,sBAAAA,GAA8C;AAAC,IAAA,MAAA;AAAQ,IAAA,gBAAA;AAAkB,IAAA,cAAA;AAAgB,IAAA,OAAA;AAAS,IAAA;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormWidth } from './FormWidth';
|
|
2
|
+
export interface FormFieldPlacement {
|
|
3
|
+
field: string;
|
|
4
|
+
row: number;
|
|
5
|
+
column: number;
|
|
6
|
+
rowSpan?: number;
|
|
7
|
+
columnSpan?: number;
|
|
8
|
+
width?: FormWidth;
|
|
9
|
+
}
|
|
10
|
+
export declare const FormFieldPlacementPropertyNames: (keyof FormFieldPlacement)[];
|
|
11
|
+
//# sourceMappingURL=FormFieldPlacement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFieldPlacement.d.ts","sourceRoot":"","sources":["../../../forms/FormFieldPlacement.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,+BAA+B,EAAE,CAAC,MAAM,kBAAkB,CAAC,EAAiE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const FormFieldPlacementPropertyNames = [
|
|
4
|
+
'field',
|
|
5
|
+
'row',
|
|
6
|
+
'column',
|
|
7
|
+
'rowSpan',
|
|
8
|
+
'columnSpan',
|
|
9
|
+
'width'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
export { FormFieldPlacementPropertyNames };
|
|
13
|
+
//# sourceMappingURL=FormFieldPlacement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFieldPlacement.js","sources":["../../../forms/FormFieldPlacement.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 { FormWidth } from './FormWidth';\n\n/**\n * Authored placement for one command-form field in a platform-neutral grid. Row and column are one-based.\n */\nexport interface FormFieldPlacement {\n field: string;\n row: number;\n column: number;\n rowSpan?: number;\n columnSpan?: number;\n width?: FormWidth;\n}\n\nexport const FormFieldPlacementPropertyNames: (keyof FormFieldPlacement)[] = ['field', 'row', 'column', 'rowSpan', 'columnSpan', 'width'];\n"],"names":["FormFieldPlacementPropertyNames"],"mappings":"AAAA;AACA;MAgBaA,+BAAAA,GAAgE;AAAC,IAAA,OAAA;AAAS,IAAA,KAAA;AAAO,IAAA,QAAA;AAAU,IAAA,SAAA;AAAW,IAAA,YAAA;AAAc,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormGenerationMode.d.ts","sourceRoot":"","sources":["../../../forms/FormGenerationMode.ts"],"names":[],"mappings":"AAMA,oBAAY,kBAAkB;IAC1B,IAAI,SAAS;IACb,MAAM,WAAW;CACpB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* How a command form's fields are generated.
|
|
5
|
+
*/ var FormGenerationMode = /*#__PURE__*/ function(FormGenerationMode) {
|
|
6
|
+
FormGenerationMode["Auto"] = "auto";
|
|
7
|
+
FormGenerationMode["Manual"] = "manual";
|
|
8
|
+
return FormGenerationMode;
|
|
9
|
+
}({});
|
|
10
|
+
|
|
11
|
+
export { FormGenerationMode };
|
|
12
|
+
//# sourceMappingURL=FormGenerationMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormGenerationMode.js","sources":["../../../forms/FormGenerationMode.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * How a command form's fields are generated.\n */\nexport enum FormGenerationMode {\n Auto = 'auto',\n Manual = 'manual',\n}\n"],"names":["FormGenerationMode"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,kBAAAA,iBAAAA,SAAAA,kBAAAA,EAAAA;;;AAAAA,IAAAA,OAAAA,kBAAAA;AAGX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormWidth.d.ts","sourceRoot":"","sources":["../../../forms/FormWidth.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKhD,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,aAAa,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,EAAE,CAAC,MAAM,SAAS,CAAC,EAAsB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const FormWidthPropertyNames = [
|
|
4
|
+
'unit',
|
|
5
|
+
'value'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { FormWidthPropertyNames };
|
|
9
|
+
//# sourceMappingURL=FormWidth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormWidth.js","sources":["../../../forms/FormWidth.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 { FormWidthUnit } from './FormWidthUnit';\n\n/**\n * A platform-neutral width value for form geometry.\n */\nexport interface FormWidth {\n unit: FormWidthUnit;\n\n /** The numeric value for fraction, pixel and percent widths. Omitted for `auto`. */\n value?: number;\n}\n\nexport const FormWidthPropertyNames: (keyof FormWidth)[] = ['unit', 'value'];\n"],"names":["FormWidthPropertyNames"],"mappings":"AAAA;AACA;MAcaA,sBAAAA,GAA8C;AAAC,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormWidthUnit.d.ts","sourceRoot":"","sources":["../../../forms/FormWidthUnit.ts"],"names":[],"mappings":"AAMA,oBAAY,aAAa;IACrB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CAChB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* The unit used by a command-form column, gap or field width.
|
|
5
|
+
*/ var FormWidthUnit = /*#__PURE__*/ function(FormWidthUnit) {
|
|
6
|
+
FormWidthUnit["Fraction"] = "fraction";
|
|
7
|
+
FormWidthUnit["Pixels"] = "pixels";
|
|
8
|
+
FormWidthUnit["Percent"] = "percent";
|
|
9
|
+
FormWidthUnit["Auto"] = "auto";
|
|
10
|
+
return FormWidthUnit;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
export { FormWidthUnit };
|
|
14
|
+
//# sourceMappingURL=FormWidthUnit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormWidthUnit.js","sources":["../../../forms/FormWidthUnit.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * The unit used by a command-form column, gap or field width.\n */\nexport enum FormWidthUnit {\n Fraction = 'fraction',\n Pixels = 'pixels',\n Percent = 'percent',\n Auto = 'auto',\n}\n"],"names":["FormWidthUnit"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,aAAAA,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAKX,CAAA,CAAA,EAAA;;"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
export * from './CommandFormLayout';
|
|
1
2
|
export * from './Form';
|
|
3
|
+
export * from './FormColumn';
|
|
2
4
|
export * from './FormField';
|
|
5
|
+
export * from './FormFieldPlacement';
|
|
6
|
+
export * from './FormGenerationMode';
|
|
7
|
+
export * from './FormWidth';
|
|
8
|
+
export * from './FormWidthUnit';
|
|
3
9
|
export * from './PopulateSource';
|
|
4
10
|
export * from './PopulateViaQuery';
|
|
5
11
|
export * from './PopulateFromItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../forms/index.ts"],"names":[],"mappings":"AAGA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../forms/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
package/dist/esm/forms/index.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
export * from './CommandFormLayout';
|
|
1
2
|
export * from './Form';
|
|
3
|
+
export * from './FormColumn';
|
|
2
4
|
export * from './FormField';
|
|
5
|
+
export * from './FormFieldPlacement';
|
|
6
|
+
export * from './FormGenerationMode';
|
|
7
|
+
export * from './FormWidth';
|
|
8
|
+
export * from './FormWidthUnit';
|
|
3
9
|
export * from './PopulateSource';
|
|
4
10
|
export * from './PopulateViaQuery';
|
|
5
11
|
export * from './PopulateFromItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../forms/index.ts"],"names":[],"mappings":"AAGA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../forms/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -51,8 +51,14 @@ export { ElementPlacementPropertyNames } from './layouts/ElementPlacement.js';
|
|
|
51
51
|
export { FreeformSlotArrangementPropertyNames } from './layouts/FreeformSlotArrangement.js';
|
|
52
52
|
export { FreeformSlotVariantPropertyNames } from './layouts/FreeformSlotVariant.js';
|
|
53
53
|
export { SlotPlacementPropertyNames } from './layouts/SlotPlacement.js';
|
|
54
|
+
export { CommandFormLayoutPropertyNames } from './forms/CommandFormLayout.js';
|
|
54
55
|
export { FormPropertyNames } from './forms/Form.js';
|
|
56
|
+
export { FormColumnPropertyNames } from './forms/FormColumn.js';
|
|
55
57
|
export { FormFieldPropertyNames } from './forms/FormField.js';
|
|
58
|
+
export { FormFieldPlacementPropertyNames } from './forms/FormFieldPlacement.js';
|
|
59
|
+
export { FormGenerationMode } from './forms/FormGenerationMode.js';
|
|
60
|
+
export { FormWidthPropertyNames } from './forms/FormWidth.js';
|
|
61
|
+
export { FormWidthUnit } from './forms/FormWidthUnit.js';
|
|
56
62
|
export { PopulateViaQueryPropertyNames } from './forms/PopulateViaQuery.js';
|
|
57
63
|
export { PopulateFromItemPropertyNames } from './forms/PopulateFromItem.js';
|
|
58
64
|
export { ContributionPointPropertyNames } from './contributionPoints/ContributionPoint.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|