@singularsystems/neo-react 1.3.2 → 1.3.3
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file details all new features and changes to functionality. If you only need to see changes that require updates to your project, see the [breaking changes](./Breaking.md) readme.
|
|
4
4
|
|
|
5
|
+
## Version 1.3.3
|
|
6
|
+
|
|
7
|
+
- Minor type fixes.
|
|
8
|
+
|
|
5
9
|
## Version 1.3.2
|
|
6
10
|
|
|
7
11
|
- List - Added `activeItems` property which will return items that are not being deleted.
|
|
@@ -112,9 +112,9 @@ var Form = /** @class */ (function (_super) {
|
|
|
112
112
|
};
|
|
113
113
|
Form.prototype.render = function () {
|
|
114
114
|
var _this = this;
|
|
115
|
-
var _a = this.props, validationDisplayMode = _a.validationDisplayMode, allReadOnly = _a.allReadOnly, allDisabled = _a.allDisabled, model = _a.model, showSummaryModal = _a.showSummaryModal, invalidSummaryTitle = _a.invalidSummaryTitle, invalidSummaryText = _a.invalidSummaryText, native = __rest(_a, ["validationDisplayMode", "allReadOnly", "allDisabled", "model", "showSummaryModal", "invalidSummaryTitle", "invalidSummaryText"]);
|
|
115
|
+
var _a = this.props, validationDisplayMode = _a.validationDisplayMode, allReadOnly = _a.allReadOnly, allDisabled = _a.allDisabled, model = _a.model, showSummaryModal = _a.showSummaryModal, invalidSummaryTitle = _a.invalidSummaryTitle, invalidSummaryText = _a.invalidSummaryText, labelSizes = _a.labelSizes, suppressLabels = _a.suppressLabels, native = __rest(_a, ["validationDisplayMode", "allReadOnly", "allDisabled", "model", "showSummaryModal", "invalidSummaryTitle", "invalidSummaryText", "labelSizes", "suppressLabels"]);
|
|
116
116
|
return (React.createElement("form", __assign({}, native, { onSubmit: function (e) { return _this.onSubmit(e); } }),
|
|
117
|
-
React.createElement(FormContextProvider, { validationDisplayMode: validationDisplayMode !== null && validationDisplayMode !== void 0 ? validationDisplayMode : Misc.Settings.form.validationDisplayMode, allReadOnly: allReadOnly, allDisabled: allDisabled }, (this.props.children instanceof Function) ? this.props.children(model, model.meta) : this.props.children)));
|
|
117
|
+
React.createElement(FormContextProvider, { validationDisplayMode: validationDisplayMode !== null && validationDisplayMode !== void 0 ? validationDisplayMode : Misc.Settings.form.validationDisplayMode, allReadOnly: allReadOnly, allDisabled: allDisabled, labelSizes: labelSizes, suppressLabels: suppressLabels }, (this.props.children instanceof Function) ? this.props.children(model, model.meta) : this.props.children)));
|
|
118
118
|
};
|
|
119
119
|
Form = __decorate([
|
|
120
120
|
observer
|
|
@@ -13,14 +13,13 @@ export declare class FormContextParams implements Components.IFormContextOptions
|
|
|
13
13
|
allDisabled: boolean;
|
|
14
14
|
/** True if all labels should be hidden. */
|
|
15
15
|
suppressLabels?: boolean;
|
|
16
|
+
labelSizes?: Components.IColumnWidthBreakpoints;
|
|
16
17
|
/**
|
|
17
18
|
* The property the form group is bound to.
|
|
18
19
|
*/
|
|
19
20
|
bindProperty: Model.IPropertyInstance;
|
|
20
21
|
parentType: EditorParentType;
|
|
21
22
|
uniqueId?: string;
|
|
22
|
-
/** Number of columns labels of InlineFormGroups should use. */
|
|
23
|
-
labelSizes?: Components.IColumnWidthBreakpoints;
|
|
24
23
|
}
|
|
25
24
|
export declare const FormContext: React.Context<FormContextParams>;
|
|
26
25
|
/**
|