@singularsystems/neo-core 1.1.0 → 1.1.2

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.
@@ -18,12 +18,14 @@ var AnimationHelper = /** @class */ (function () {
18
18
  * @param resizeContainer If true, resizes the container to be the same size as the child.
19
19
  */
20
20
  AnimationHelper.prototype.addChild = function (child, resizeContainer) {
21
- child.style.position = "absolute";
22
- child.style.zIndex = this.zIndex++;
23
- if (resizeContainer) {
24
- var computedStyle = window.getComputedStyle(child);
25
- this.container.style.width = (child.offsetWidth + parseFloat(computedStyle.marginLeft || "0") + parseFloat(computedStyle.marginRight || "0")) + "px";
26
- this.container.style.height = (child.offsetHeight + parseFloat(computedStyle.marginTop || "0") + parseFloat(computedStyle.marginBottom || "0")) + "px";
21
+ if (child.offsetWidth) {
22
+ child.style.position = "absolute";
23
+ child.style.zIndex = this.zIndex++;
24
+ if (resizeContainer) {
25
+ var computedStyle = window.getComputedStyle(child);
26
+ this.container.style.width = (child.offsetWidth + parseFloat(computedStyle.marginLeft || "0") + parseFloat(computedStyle.marginRight || "0")) + "px";
27
+ this.container.style.height = (child.offsetHeight + parseFloat(computedStyle.marginTop || "0") + parseFloat(computedStyle.marginBottom || "0")) + "px";
28
+ }
27
29
  }
28
30
  this.previousChild = this.currentChild;
29
31
  this.currentChild = child;
@@ -171,9 +171,10 @@ var TaskRunner = /** @class */ (function () {
171
171
  this.runningTasks.push({ name: name, promise: runningTask, options: options });
172
172
  return new Promise(function (resolve, reject) {
173
173
  runningTask.then(function (value) {
174
+ var _a;
174
175
  var axiosResponse = value;
175
176
  var allowPosts = options.allowPost;
176
- if (name === "" && !allowPosts && axiosResponse && axiosResponse.config) {
177
+ if (name === "" && !allowPosts && axiosResponse && axiosResponse.config && ((_a = axiosResponse.config) === null || _a === void 0 ? void 0 : _a.method) && axiosResponse.request) {
177
178
  if (axiosResponse.config.method !== "get") {
178
179
  var message = "The operation completed, but TaskRunner.waitFor() must only be used for get operations. Change your code to use TaskRunner.run()";
179
180
  ModalUtils.showMessage("Error", message);
@@ -5,6 +5,7 @@ import PropertyInfo from './PropertyInfo';
5
5
  export { IObservableValue, ObservableValue, ValueWrapper } from './ObservableValue';
6
6
  export { ObservableProperty } from './ObservableProperty';
7
7
  export { ISelectedItem } from './Misc';
8
+ export { IEnumItem } from './EnumHelper';
8
9
  export { ModelFieldInfo, IModelFieldInfoContainer } from './ModelFieldInfo';
9
10
  import * as GraphTraverser from './ModelGraphTraverser';
10
11
  export { GraphTraverser, PropertyInfo };
@@ -45,7 +45,9 @@ export declare const Settings: {
45
45
  viewButton: IButtonOptions;
46
46
  expandButton: IButtonOptions;
47
47
  boolTrueClass: string;
48
+ boolTrueIcon: any;
48
49
  boolFalseClass: string;
50
+ boolFalseIcon: any;
49
51
  /**
50
52
  * Will cause headers to stick to the top of the screen / scroll element when scrolling.
51
53
  * This will apply to all NeoGrids, but can be overridden per grid.
@@ -94,4 +96,8 @@ export declare const Settings: {
94
96
  isOutline: boolean;
95
97
  iconPosition: "body" | "left";
96
98
  };
99
+ buttons: {
100
+ /** Will prevent icons from displaying in buttons if the buttons text content is not empty. */
101
+ suppressIcons: boolean;
102
+ };
97
103
  };
package/dist/Settings.js CHANGED
@@ -68,7 +68,9 @@ export var Settings = {
68
68
  tabIndex: -1
69
69
  },
70
70
  boolTrueClass: "far fa-lg fa-check-square",
71
+ boolTrueIcon: undefined,
71
72
  boolFalseClass: "far fa-lg fa-square text-light",
73
+ boolFalseIcon: undefined,
72
74
  /**
73
75
  * Will cause headers to stick to the top of the screen / scroll element when scrolling.
74
76
  * This will apply to all NeoGrids, but can be overridden per grid.
@@ -125,5 +127,9 @@ export var Settings = {
125
127
  alerts: {
126
128
  isOutline: false,
127
129
  iconPosition: "body",
130
+ },
131
+ buttons: {
132
+ /** Will prevent icons from displaying in buttons if the buttons text content is not empty. */
133
+ suppressIcons: false,
128
134
  }
129
135
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-core",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Core functionality for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",