@singularsystems/neo-react 1.4.1 → 1.4.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,18 @@
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.4.3 (22 April 2026)
6
+
7
+ - Fix variable usage in neo-react styles.
8
+ - Now uses bootstrap variable names instead of legacy custom variable names defined in end project.
9
+ - This change is to allow simplification of the variables file in the end project.
10
+ - Existing projects do not need to make changes to their variables files.
11
+
12
+ ## Version 1.4.2 (20 April 2026)
13
+
14
+ - Navigation helper
15
+ - Changed `openWindow` and `readOpenerState` to store state as string.
16
+
5
17
  ## Version 1.4.1 (17 April 2026)
6
18
 
7
19
  - AutoCompleteDropDown
@@ -58,7 +58,7 @@ var ColorPicker = /** @class */ (function (_super) {
58
58
  ColorPicker_1.render(this.state.selectedColor, this.handleChange),
59
59
  React.createElement("div", { className: "action-container" },
60
60
  React.createElement("div", { className: "btn btn-primary btn-sm", onClick: function () { return _this.accept(); } }, "Accept"),
61
- React.createElement("div", { className: "btn btn-secondary btn-sm ml-1", onClick: function () { return _this.cancel(); } }, "Cancel"))))))));
61
+ React.createElement("div", { className: "btn btn-secondary btn-sm ml-1 ms-1", onClick: function () { return _this.cancel(); } }, "Cancel"))))))));
62
62
  };
63
63
  /** Renders the inner color picker components without the modal */
64
64
  ColorPicker.render = function (color, onChange) {
@@ -74,7 +74,7 @@ var ContextMenu = /** @class */ (function (_super) {
74
74
  item.icon && _this.iconFactory.getIconComponent(item.icon, { fixedWidth: true }),
75
75
  item.text && React.createElement("span", { className: "neo-context-menu-text" }, item.text),
76
76
  item.header && React.createElement("span", { className: "neo-context-menu-text" }, item.header),
77
- item.items && React.createElement("i", { className: "fa-fw fa fa-angle-right child-indicator" }),
77
+ item.items && React.createElement("i", { className: "fa-fw fa fa-angle-right child-indicator neo-icon" }),
78
78
  item.items && _this.hoverItem === item && React.createElement(ContextMenu_1, { menuItems: item.items, show: _this.hoverItem === item, onClick: _this.props.onClick })))); })));
79
79
  };
80
80
  var ContextMenu_1;
@@ -36,12 +36,12 @@ export default class NavigationHelper implements INavigationHelper {
36
36
  navigateToView<TParams extends RouteParameterObject<TParams>>(view: ViewConstructor<TParams>, paramValues?: ParamValues<TParams>): void;
37
37
  openWindow(path: string, state?: {
38
38
  name: string;
39
- value: object;
39
+ value: any;
40
40
  }, options?: {
41
41
  target?: string;
42
42
  features?: string;
43
43
  }): Window | null;
44
- readOpenerState(name: string, reset?: boolean): object | undefined;
44
+ readOpenerState(name: string, reset?: boolean): string | undefined;
45
45
  getPathForView<TParams extends RouteParameterObject<TParams>>(view: ViewConstructor<TParams>, paramValues?: ParamValues<TParams>): string;
46
46
  getCurrentViewPath(): string;
47
47
  private historyPopState;
@@ -78,8 +78,12 @@ var NavigationHelper = /** @class */ (function () {
78
78
  NavigationHelper.prototype.openWindow = function (path, state, options) {
79
79
  var newWindow = window.open(this.routingState.basePath + path, options === null || options === void 0 ? void 0 : options.target, options === null || options === void 0 ? void 0 : options.features);
80
80
  if (newWindow && state) {
81
+ var value = state.value;
82
+ if (typeof value === "object") {
83
+ value = JSON.stringify(value);
84
+ }
81
85
  // @ts-ignore
82
- newWindow["__neoOpenerState" + state.name] = state.value;
86
+ newWindow["__neoOpenerState" + state.name] = value;
83
87
  }
84
88
  return newWindow;
85
89
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-react",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "React application logic and components for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "typescript": "5.9.3"
28
28
  },
29
29
  "dependencies": {
30
- "@singularsystems/neo-core": "1.3.8",
30
+ "@singularsystems/neo-core": "1.4.1",
31
31
  "@types/react-color": "3.0.13",
32
32
  "axios": "1.13.5",
33
33
  "inversify": "6.0.2",
@@ -26,7 +26,7 @@ div.dropdown-menu {
26
26
 
27
27
  .dropdown-subtext {
28
28
  font-size: 13px;
29
- color: #888;
29
+ color: $body-secondary-color;
30
30
  max-width: 250px;
31
31
  white-space: wrap;
32
32
  }
@@ -4,7 +4,7 @@ div.color-picker {
4
4
  div.block-button {
5
5
  width: 20px;
6
6
  height: 20px;
7
- border: 1px solid $bs-secondary;
7
+ border: 1px solid $secondary;
8
8
  cursor: pointer;
9
9
  }
10
10
 
@@ -17,9 +17,8 @@ div.color-picker {
17
17
 
18
18
  div.picker-block {
19
19
  padding: 5px;
20
- background-color: $offGrey;
20
+ background-color: white;
21
21
  border-radius: 5px;
22
- border: 1px solid $concrete;
23
22
 
24
23
  div.action-container {
25
24
  text-align: right;
@@ -38,7 +37,7 @@ div.color-picker {
38
37
  top: 0;
39
38
  left: 0;
40
39
  z-index: 5000;
41
- background-color: $lightBlack;
40
+ background-color: $modal-backdrop-bg;
42
41
  opacity: 0.2;
43
42
  cursor: pointer;
44
43
  }
@@ -1,9 +1,9 @@
1
1
  .neo-context-menu {
2
2
  position: absolute;
3
3
  z-index: 1100;
4
- border: 1px solid #ccc;
4
+ border: 1px solid $dropdown-border-color;
5
5
  background: #fff;
6
- color: #212529;
6
+ color: initial;
7
7
  padding: 5px;
8
8
  border-radius: 2px;
9
9
  left: 100%;
@@ -32,8 +32,8 @@
32
32
  padding-right: 15px;
33
33
  }
34
34
 
35
- > i {
36
- color: #666;
35
+ > .neo-icon {
36
+ color: $body-secondary-color;
37
37
  font-size: 12px;
38
38
  }
39
39
 
@@ -51,17 +51,17 @@
51
51
  cursor: pointer;
52
52
 
53
53
  &:hover {
54
- background: transparentize($bs-primary, 0.75);
54
+ background: transparentize($primary, 0.75);
55
55
  }
56
56
  }
57
57
 
58
58
  &.header {
59
59
  background: rgba(0,0,0,0.65);
60
- color: #fff;
60
+ color: white;
61
61
  padding: 5px 4px;
62
62
 
63
- > i {
64
- color: #eee;
63
+ > .neo-icon {
64
+ color: white;
65
65
  }
66
66
  }
67
67
 
@@ -72,8 +72,9 @@
72
72
  }
73
73
 
74
74
  hr {
75
- border-top: 1px dashed #ddd;
75
+ border-top: 1px dashed $dropdown-border-color;
76
76
  margin: 1px 4px 1px 28px;
77
+ opacity: 1;
77
78
  }
78
79
  }
79
80
  }
@@ -125,15 +125,16 @@ $neo-include-datepicker: true !default;
125
125
 
126
126
  &.selectable:hover {
127
127
  cursor: pointer;
128
- background-color: adjust-color($form-focused-border, $lightness: 15%);
128
+ background-color: adjust-color($primary, $lightness: 15%);
129
+ color: #fff;
129
130
  }
130
131
 
131
132
  &.today {
132
- border: 1px solid $form-focused-border;
133
+ border: 1px solid $primary;
133
134
  }
134
135
 
135
136
  &.selected, &.selected:hover {
136
- background-color: $form-focused-border;
137
+ background-color: $primary;
137
138
  color: #fff;
138
139
  }
139
140
  }
package/styles/Forms.scss CHANGED
@@ -39,7 +39,7 @@ div.neo-form-group-floating {
39
39
  color: #495057;
40
40
  border: none;
41
41
  outline: none;
42
- border-bottom: 1px solid $form-border;
42
+ border-bottom: 1px solid $input-border-color;
43
43
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
44
44
  width: 100%;
45
45
  padding: 5px 0 3px 0;
@@ -56,7 +56,7 @@ div.neo-form-group-floating {
56
56
  position: absolute;
57
57
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
58
58
  width: 100%;
59
- border-bottom: 3px solid $form-focused-shadow-color;
59
+ border-bottom: 3px solid rgba($input-focus-border-color, 0.15);
60
60
  transform: scale(0);
61
61
  }
62
62
 
@@ -65,10 +65,10 @@ div.neo-form-group-floating {
65
65
  transform: scale(1);
66
66
  }
67
67
  label.neo-floating-label {
68
- color: color.adjust($form-focused-border, $lightness: -15%);
68
+ color: color.adjust($input-focus-border-color, $lightness: -15%);
69
69
  }
70
70
  .neo-forms-editor {
71
- border-bottom: 1px solid $form-focused-border;
71
+ border-bottom: 1px solid $input-focus-border-color;
72
72
  }
73
73
  }
74
74
 
@@ -109,7 +109,7 @@ div.neo-form-group-floating {
109
109
 
110
110
  .input-group.file-editor {
111
111
  .file-placeholder {
112
- color: $lightGrey;
112
+ color: $input-placeholder-color;
113
113
  user-select: none;
114
114
  padding: 0;
115
115
 
@@ -34,7 +34,7 @@ div.loader-container {
34
34
  z-index: 1;
35
35
 
36
36
  div.loader-inner {
37
- background: $bs-light;
37
+ background: $light;
38
38
  width: 100%;
39
39
  text-align: center;
40
40
  padding: 20px 15px;
package/styles/Misc.scss CHANGED
@@ -44,7 +44,7 @@ div.collapsable {
44
44
  position: absolute;
45
45
  top: -1000px;
46
46
  left: -1000px;
47
- background-color: $bs-dark;
47
+ background-color: $dark;
48
48
  color: #fff;
49
49
  z-index: 1060;
50
50
  font-size: 0.8rem;
@@ -118,11 +118,11 @@ div.tabs-header {
118
118
 
119
119
  /* File drop */
120
120
  .neo-file-drop {
121
- border: 2px dashed $concrete;
121
+ border: 2px dashed $input-border-color;
122
122
  padding: 15px;
123
123
 
124
124
  &.dragging {
125
- border-color: $bs-primary;
125
+ border-color: $primary;
126
126
  }
127
127
 
128
128
  button {
package/styles/Neo.scss CHANGED
@@ -1,3 +1,4 @@
1
+ @import './Variables.scss';
1
2
  @import './Badge.scss';
2
3
  @import './Button.scss';
3
4
  @import './Card.scss';
@@ -158,7 +158,7 @@ select.form-control.is-invalid {
158
158
  padding-right: 10px;
159
159
  }
160
160
  i {
161
- color: $bs-danger;
161
+ color: $danger;
162
162
  }
163
163
  ul {
164
164
  padding-left: 0;
@@ -0,0 +1,8 @@
1
+ // Legacy mappings:
2
+ $body-secondary-color: #6c757d !default;
3
+
4
+ $modal-backdrop-bg: black !default;
5
+ $dropdown-border-color: #ccc !default;
6
+ $input-border-color: $form-border !default;
7
+ $input-focus-border-color: $form-focused-border !default;
8
+ $input-placeholder-color: #dddddd !default;