@singularsystems/neo-core 1.6.6 → 1.6.8
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,13 @@
|
|
|
1
1
|
# Neo core changelog
|
|
2
2
|
|
|
3
|
-
## Version 1.6.
|
|
3
|
+
## Version 1.6.8 (15 October 2026)
|
|
4
|
+
|
|
5
|
+
- Fixed sign out not clearing offline user data.
|
|
6
|
+
|
|
7
|
+
## Version 1.6.7 (5 October 2026)
|
|
4
8
|
|
|
5
9
|
- Added `autoFocus` prop to form options.
|
|
6
|
-
- Added `
|
|
10
|
+
- Added `autoFocus` setting to global modal options to allow modals to focus first input by default.
|
|
7
11
|
|
|
8
12
|
## Version 1.6.5 (28 September 2026)
|
|
9
13
|
|
|
@@ -30,11 +30,11 @@ export interface IModalOptionsBase {
|
|
|
30
30
|
/** Called after the modal animation completes. */
|
|
31
31
|
afterClose?: () => void;
|
|
32
32
|
/**
|
|
33
|
-
* Causes the
|
|
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
|
-
|
|
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
|
|
81
|
+
formProps: { model: model },
|
|
82
|
+
autoFocus: true,
|
|
82
83
|
});
|
|
83
84
|
});
|
|
84
85
|
};
|
|
@@ -278,6 +278,9 @@ var OidcAuthService = /** @class */ (function () {
|
|
|
278
278
|
;
|
|
279
279
|
OidcAuthService.prototype.signOutLocal = function () {
|
|
280
280
|
this.setUser(null);
|
|
281
|
+
if (this.config.supportsOffline) {
|
|
282
|
+
localStorage.removeItem(storageKey);
|
|
283
|
+
}
|
|
281
284
|
};
|
|
282
285
|
Object.defineProperty(OidcAuthService.prototype, "user", {
|
|
283
286
|
get: function () {
|
package/dist/Settings.d.ts
CHANGED
|
@@ -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
|
|
90
|
-
|
|
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
|
|
117
|
-
|
|
116
|
+
/** Causes modals to focus the first element in the body when opened. */
|
|
117
|
+
autoFocus: false,
|
|
118
118
|
},
|
|
119
119
|
pager: {
|
|
120
120
|
firstText: "«",
|