ru.coon 2.8.3 → 2.8.6

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,9 +1,23 @@
1
+ # Version 2.8.6, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/71b44f6acfbe1db484173ac579218ed8c494ad3e)
2
+ * update: CHANGELOG.md ([0b6d30], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0b6d304fb344aaceedb55d591c80e4a815f339f0))
3
+
4
+ # Version 2.8.5, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/224b99c8b4b9674f6732b71e76aa06961fd4e91d)
5
+ * ## Fixes
6
+ * <span style='color:red'>fix modified state for characteristic record, HT-10117</span> ([2f8762], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2f876261d0065a0a02810ac5866f2832b2a36672))
7
+
8
+ * update: CHANGELOG.md ([1e5402], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1e5402b30bb754e5f58c5c3ccf70859dd6906f66))
9
+
10
+ # Version 2.8.4, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/79f9eb3363e07fb47ac3ac23659b94b34c7423b9)
11
+ * TR-69542 fix: восстановление утраченной авторизации по токену. ([402a8a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/402a8a5e63da1342b44b6e95a7eed96d5b9a42aa))
12
+ * update: CHANGELOG.md ([b11b4c], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b11b4c53ff53f0dde24c4e017e09046a77609ac4))
13
+
1
14
  # Version 2.8.3, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f2bd405e3421aa5e65c5c112ce39cd61806e1e09)
2
15
  * update: CHANGELOG.md ([f52e7b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f52e7b66d3bb410cfe89272d0eccd0632d1c30e3))
3
16
 
4
17
  # Version 2.8.2, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b2e3da084c82fa409dca30ef2388bab2f3ef267b)
5
18
  * ## Features
6
19
  * <span style='color:green'>feat: Added createFromString function. Related to BFL-15767.</span> ([cea621], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/cea6218e44b5768116718379e25cc52706ef8a75))
20
+ * <span style='color:green'>feat: HT-9649 Доработка DatePickerPresetsField (убран trigger clear)</span> ([4559c6], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/4559c6c4a8479928271e1b3daa34fc63a4eff8cb))
7
21
 
8
22
  * ## Fixes
9
23
  * <span style='color:red'> Разрешены html теги в колонке "Описание". Related to BFL-13996.</span> ([8a1793], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8a1793a93a87dcb10f92d854d491c31aefcd2563))
@@ -13,6 +27,9 @@
13
27
  * update: CHANGELOG.md ([ad61a8], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ad61a8c449000e7b9ff6e921d39eecd97ddabea2))
14
28
 
15
29
  # Version 2.8.1, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/88c146ad577ce2a14d194c245e3d5151081af6af)
30
+ * ## Features
31
+ * <span style='color:green'>feat: HT-9649 Доработка DatePickerPresetsField</span> ([0f172e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0f172e42774d9f42ad8e228e5eda37880fd3b206))
32
+
16
33
  * ## Fixes
17
34
  * <span style='color:red'> HT-9264 CoonChart lite fix</span> ([d8e2d7], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d8e2d7a5994649ea9707fd6e901d1201813bbc36))
18
35
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "2.8.3",
7
+ "version": "2.8.6",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
@@ -196,25 +196,41 @@ Ext.define('Coon.app.Application', {
196
196
  });
197
197
  },
198
198
 
199
-
200
199
  launch: function() {
201
200
  this.appRouter.onBeforeRouteEnterFn = this.isAuthenticated.bind(this);
202
201
  Ext.on('auth:logout', this.onLogout, this);
203
- this.checkAuth().then(() => {
204
- Ext.get('splash').fadeOut({
205
- duration: 1000,
206
- listeners: {
207
- afteranimate: {
208
- fn: this.afterLoad,
209
- single: true,
210
- scope: this,
211
- },
212
- },
202
+ let jwtToken;
203
+ let beforeAuth = () => Promise.resolve();
204
+ if (Ext.isFunction(this.checkJwtAuth)) {
205
+ jwtToken = this.appRouter.getAuthToken();
206
+ if (jwtToken) {
207
+ beforeAuth = this.checkJwtAuth;
208
+ }
209
+ }
210
+
211
+ beforeAuth.call(this, jwtToken)
212
+ .then(this.checkAuth.bind(this))
213
+ .then(() => {
214
+ this.stopAnimation();
215
+ this.afterCheckAuth();
213
216
  });
214
- this.afterCheckAuth();
215
- });
217
+
216
218
  this.afterLaunch();
217
219
  },
220
+
221
+ stopAnimation() {
222
+ Ext.get('splash').fadeOut({
223
+ duration: 1000,
224
+ listeners: {
225
+ afteranimate: {
226
+ fn: this.afterLoad,
227
+ single: true,
228
+ scope: this,
229
+ },
230
+ },
231
+ });
232
+ },
233
+
218
234
  afterAuthorized() {},
219
235
 
220
236
  afterLaunch() {},
package/src/app/Router.js CHANGED
@@ -75,5 +75,14 @@ Ext.define('Coon.app.Router', {
75
75
  const routerView = this.getRouterView();
76
76
  return routerView && routerView.getLayout().getActiveItem();
77
77
  },
78
+ getAuthToken() {
79
+ const search = document.location.search;
80
+ let jwtToken;
81
+ if (Ext.isString(search) && search.includes('?')) {
82
+ const urlParameters = Ext.Object.fromQueryString(search);
83
+ jwtToken = urlParameters.jwtToken;
84
+ }
85
+ return jwtToken;
86
+ },
78
87
 
79
88
  });
@@ -86,8 +86,10 @@ Ext.define('Coon.common.component.editor.CharacteristicGridCopyPlugin', {
86
86
  if (!masterRecord) {
87
87
  return;
88
88
  }
89
-
90
- slaveRecord.set('value', masterRecord.get('value'));
91
- slaveRecord.set('valueDescription', masterRecord.get('valueDescription') || '');
89
+ slaveRecord.set({
90
+ markToCommit: true,
91
+ value: masterRecord.get('value'),
92
+ valueDescription: masterRecord.get('valueDescription') || '',
93
+ });
92
94
  },
93
95
  });
@@ -9,9 +9,6 @@ Ext.define('Coon.common.field.DatePickerPresetsField', {
9
9
  prevYears: 10,
10
10
  nextYears: 0,
11
11
  },
12
- viewModel: {
13
- data: {},
14
- },
15
12
  inclinedMonthNames: [
16
13
  'января',
17
14
  'февраля',
@@ -255,5 +252,4 @@ Ext.define('Coon.common.field.DatePickerPresetsField', {
255
252
  }
256
253
  },
257
254
  },
258
-
259
255
  });
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '2.8.3',
3
+ number: '2.8.6',
4
4
  });