@singularsystems/neo-core 1.1.0 → 1.1.1
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.
|
@@ -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);
|
package/dist/Model/index.d.ts
CHANGED
|
@@ -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 };
|
package/dist/Settings.d.ts
CHANGED
|
@@ -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
|
};
|