ru.coon 3.0.57 → 3.0.58

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,14 @@
1
- # Version 3.0.57, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/28be9d312317e10260c5d784cf2eb09e83a30140)
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))
1
+ # Version 3.0.58, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/9f4087fb2aba17d56ea49774ac21340c1b414307)
2
+ * update: CHANGELOG.md ([fcea34], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/fcea34f891b7acc6a0b73200d9b6d7b60c383f46))
3
+
4
+ # Version 3.0.57, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f68b5e938b5f9deaceb1b28accb4153c604cac48)
5
+ * update: CHANGELOG.md ([d72a42], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d72a42a63d7b506db7cac423bfea512e215f64c7))
4
6
 
5
- # Version 3.0.56, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/74308acb16cf13c9793236b74d8fd025bd632cab)
7
+ # Version 3.0.56, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/6d42b7aef8ee61964f826099feaaf68cd7299303)
8
+ * ## Features
9
+ * <span style='color:green'>feat: add forceShowHeader</span> ([7ce368], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/7ce368898a1809f08aaa8331af2bdef4f40366da))
10
+
11
+ * HT-14299: изменение вида несохраненных изменений в вертикальных табах ([590315], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/59031554ed302eabdc194e916e44c3a8a3c77371))
6
12
  * HT-14580: повторный вход при завершении сессии ([66c811], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/66c81121345e02ec436a9ec3308db087030a25ac))
7
13
  * update: CHANGELOG.md ([0cd2cb], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0cd2cb99bbdcdf6d8cf83c29c744dd0f02daa497))
8
14
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "3.0.57",
7
+ "version": "3.0.58",
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: true}
176
+ {silent: false}
177
177
  );
178
178
  }, this);
179
179
  } else {
@@ -190,22 +190,4 @@ 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
-
211
193
  });
@@ -69,6 +69,21 @@ 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
+ }
72
87
  },
73
88
 
74
89
  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.57',
3
+ number: '3.0.58',
4
4
  });