@singularsystems/neo-core 1.6.6 → 1.6.7

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
@@ -1,9 +1,9 @@
1
1
  # Neo core changelog
2
2
 
3
- ## Version 1.6.6 (5 October 2026)
3
+ ## Version 1.6.7 (5 October 2026)
4
4
 
5
5
  - Added `autoFocus` prop to form options.
6
- - Added `autoFocusForm` setting to global modal options to allow modals to focus first input by default.
6
+ - Added `autoFocus` setting to global modal options to allow modals to focus first input by default.
7
7
 
8
8
  ## Version 1.6.5 (28 September 2026)
9
9
 
@@ -30,11 +30,11 @@ export interface IModalOptionsBase {
30
30
  /** Called after the modal animation completes. */
31
31
  afterClose?: () => void;
32
32
  /**
33
- * Causes the inner form to automatically focus an element when it is opened.
33
+ * Causes the modal to automatically focus an element when it is opened.
34
34
  * If set to true, the first input will be focused.
35
35
  * If set to a string, it should be a CSS selector for the element to focus.
36
36
  */
37
- autoFocusForm?: boolean | string;
37
+ autoFocus?: boolean | string;
38
38
  }
39
39
  export default interface IModalOptions extends IModalOptionsBase {
40
40
  /** Controls the visibility of the modal. */
@@ -78,7 +78,8 @@ var ModalHelpers = /** @class */ (function () {
78
78
  onClose: function () { return resolve(ModalResult.Cancel); },
79
79
  acceptButton: { text: NeoStrings.modals.ok, onClick: function () { return resolve(ModalResult.Yes); } },
80
80
  closeButton: __assign(__assign({}, Settings.modal.cancelButton), { text: NeoStrings.modals.cancel, onClick: function () { return resolve(ModalResult.Cancel); } }),
81
- formProps: { model: model, autoFocus: true },
81
+ formProps: { model: model },
82
+ autoFocus: true,
82
83
  });
83
84
  });
84
85
  };
@@ -86,8 +86,8 @@ export declare const Settings: {
86
86
  closeButton: IButtonOptions;
87
87
  /** Settings for cancel button shown in footer. */
88
88
  cancelButton: IButtonOptions;
89
- /** Causes modals to focus the first element in the form when opened. Will not apply if the form is suppressed. */
90
- autoFocusForm: boolean;
89
+ /** Causes modals to focus the first element in the body when opened. */
90
+ autoFocus: boolean;
91
91
  };
92
92
  pager: {
93
93
  firstText: string;
package/dist/Settings.js CHANGED
@@ -113,8 +113,8 @@ export var Settings = {
113
113
  variant: "light",
114
114
  isOutline: false,
115
115
  },
116
- /** Causes modals to focus the first element in the form when opened. Will not apply if the form is suppressed. */
117
- autoFocusForm: false,
116
+ /** Causes modals to focus the first element in the body when opened. */
117
+ autoFocus: false,
118
118
  },
119
119
  pager: {
120
120
  firstText: "«",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-core",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "description": "Core functionality for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",