ru.coon 3.0.56 → 3.0.57

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
@@ -1,8 +1,8 @@
1
- # Version 3.0.56, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/6d42b7aef8ee61964f826099feaaf68cd7299303)
2
- * ## Features
3
- * <span style='color:green'>feat: add forceShowHeader</span> ([7ce368], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/7ce368898a1809f08aaa8331af2bdef4f40366da))
4
-
1
+ # Version 3.0.57, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/28be9d312317e10260c5d784cf2eb09e83a30140)
5
2
  * HT-14299: изменение вида несохраненных изменений в вертикальных табах ([590315], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/59031554ed302eabdc194e916e44c3a8a3c77371))
3
+ * update: CHANGELOG.md ([62c8b4], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/62c8b40173f540191ba7eeb9aad48dae93dd5f57))
4
+
5
+ # Version 3.0.56, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/74308acb16cf13c9793236b74d8fd025bd632cab)
6
6
  * HT-14580: повторный вход при завершении сессии ([66c811], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/66c81121345e02ec436a9ec3308db087030a25ac))
7
7
  * update: CHANGELOG.md ([0cd2cb], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0cd2cb99bbdcdf6d8cf83c29c744dd0f02daa497))
8
8
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "3.0.56",
7
+ "version": "3.0.57",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
@@ -173,7 +173,7 @@ Ext.define('Coon.uielement.component.UiCustomController', {
173
173
  this.getViewModel().bind(`{${context}}`, function(contextValue) {
174
174
  setupTitle(
175
175
  this.makeComponentTitle(staticText, contextValue),
176
- {silent: false}
176
+ {silent: true}
177
177
  );
178
178
  }, this);
179
179
  } else {
@@ -190,4 +190,22 @@ Ext.define('Coon.uielement.component.UiCustomController', {
190
190
  setupTitle(title);
191
191
  }
192
192
  },
193
+
194
+ setupTitle(title, options = {}) {
195
+ if (!typeof title === 'string') {
196
+ return;
197
+ }
198
+ title = title || Coon.format.withHint('<span style="color:red">---</span>', 'заголовок не задан');
199
+ this.getView().titleText = title;
200
+ if (!options.silent) {
201
+ this.getView().fireEvent('titlechange', this.getView(), title);
202
+ }
203
+ if (
204
+ this.getView().tab &&
205
+ typeof this.getView().tab.setTooltip === 'function'
206
+ ) {
207
+ this.getView().tab.setTooltip(title);
208
+ }
209
+ },
210
+
193
211
  });
@@ -69,21 +69,6 @@ Ext.define('Coon.uielement.component.UiCustomPanel', {
69
69
  this.viewModel.setData(data);
70
70
  }
71
71
  this.callParent();
72
- if (this.componentTitle?.forceShowHeader) {
73
- this.on('titlechange', this.forceShowHeader, this);
74
- }
75
- },
76
-
77
- forceShowHeader(_, title) {
78
- if (typeof title !== 'string' || !title) {
79
- return;
80
- }
81
- if (this.header && typeof this.header.show === 'function') {
82
- this.header.show();
83
- } else {
84
- this.header = {title};
85
- this.updateHeader(true);
86
- }
87
72
  },
88
73
 
89
74
  convertRowData(rowData) {
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '3.0.56',
3
+ number: '3.0.57',
4
4
  });