@singularsystems/neo-react 1.0.12 → 1.0.13

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.
@@ -10,7 +10,7 @@ export declare abstract class DropDownBase<T, TProps> extends ComponentBase<TPro
10
10
  protected cachedDataSource: Data.IDataCacheEntry | null;
11
11
  protected fieldInfoContainer: Model.IModelFieldInfoContainer | null;
12
12
  protected getItems(itemSource: ItemSource<T>): T[];
13
- afterRender(): Promise<void>;
13
+ afterRender(isInitial: boolean): Promise<void>;
14
14
  private fieldDisplayInfo;
15
15
  protected setFieldInfo(bindProperty: Model.IPropertyInstance, displayValue: string, readableName?: string): void;
16
16
  }
@@ -52,12 +52,12 @@ var DropDownBase = /** @class */ (function (_super) {
52
52
  }
53
53
  return items;
54
54
  };
55
- DropDownBase.prototype.afterRender = function () {
55
+ DropDownBase.prototype.afterRender = function (isInitial) {
56
56
  return __awaiter(this, void 0, void 0, function () {
57
57
  var _a, bindProperty, displayValue, readableName, fieldInfo;
58
58
  return __generator(this, function (_b) {
59
59
  if (this.cachedDataSource) {
60
- this.dataSource = this.cachedDataSource.get();
60
+ this.dataSource = this.cachedDataSource.get(isInitial);
61
61
  }
62
62
  else if (this.dataSource) {
63
63
  this.dataSource.fetchInitial();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-react",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
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",
@@ -31,7 +31,7 @@
31
31
  "typescript": "5.4.2"
32
32
  },
33
33
  "dependencies": {
34
- "@singularsystems/neo-core": "1.0.9",
34
+ "@singularsystems/neo-core": "1.0.10",
35
35
  "@types/rc-slider": "^8.6.5",
36
36
  "@types/react-color": "^3.0.1",
37
37
  "axios": "1.6.7",
@@ -49,7 +49,7 @@
49
49
  "tslib": "2.5.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "@singularsystems/neo-core": ">=1.0.9",
52
+ "@singularsystems/neo-core": ">=1.0.10",
53
53
  "axios": ">=1.6.2",
54
54
  "inversify": ">=5.0.1",
55
55
  "mobx": ">=6.9.0",