dochub-sdk 0.1.184 → 0.1.185

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.
@@ -78,7 +78,7 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
78
78
  */
79
79
  @Watch('isPending') onPendingChanged() {
80
80
  if (this.isPending) this.freezeView();
81
- else this.unfreezeView();
81
+ else this.$nextTick(() => this.unfreezeView());
82
82
  }
83
83
 
84
84
  mounted() {
@@ -152,10 +152,10 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
152
152
  * Сохраняет текущие параметры визуализации для исключения дерганий при обновлении контента
153
153
  */
154
154
  saveUISate() {
155
- const element = this['$el'];
155
+ const element: any = this['$el'];
156
156
  this.savedUIState = {
157
157
  styleHeight: element.style.height,
158
- styleWidth: element.style.styleWidth,
158
+ styleWidth: element.style.width,
159
159
  styleFilter: element.style.filter
160
160
  }
161
161
  }
@@ -163,17 +163,17 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
163
163
  * Восстанавливает параметры визуализации из ранее сохраненных
164
164
  */
165
165
  loadUISate() {
166
- const element = this['$el'];
167
- element.style.height = this.savedUIState?.styleHeight || element.style.height;
168
- element.style.width = this.savedUIState?.styleWidth || element.style.width;
169
- element.style.filter = this.savedUIState?.styleFilter || element.style.filter;
166
+ const element: any = this['$el'];
167
+ element.style.height = this.savedUIState?.styleHeight;
168
+ element.style.width = this.savedUIState?.styleWidth;
169
+ element.style.filter = this.savedUIState?.styleFilter;
170
170
  }
171
171
  /**
172
172
  * "Замораживает" представление на период обновления
173
173
  */
174
174
  freezeView() {
175
175
  this.saveUISate();
176
- const element = this['$el'];
176
+ const element: any = this['$el'];
177
177
  element.style.height = `${element.clientHeight}px !important`;
178
178
  element.style.width = `${element.clientWidth}px !important`;
179
179
  element.style.filter = 'blur(8px)';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.184",
3
+ "version": "0.1.185",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",