ru.coon 2.8.36 → 2.8.37

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,3 +1,10 @@
1
+ # Version 2.8.37, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c1a016edfea1ebf863a02984d5a9589c69d75de3)
2
+ * ## Fixes
3
+ * <span style='color:red'>fix edit user roles</span> ([e034fb], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e034fb3df5b31733e39f07c33ebc5b9404b757fe))
4
+ * <span style='color:red'>fix edit user roles</span> ([dca366], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/dca36619ae38ddbcbb4ac05353e59b4f0235f7b8))
5
+
6
+ * update: CHANGELOG.md ([ff3de8], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ff3de8796fab3136358fed8cffd0ff1825a4b7e1))
7
+
1
8
  # Version 2.8.36, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ac608fdca962cfa8af527838d308dcfd40f85f39)
2
9
  * ## Fixes
3
10
  * <span style='color:red'>fix edit user roles</span> ([23141a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/23141ac0b09283e97e0f7351f45feac800e5276a))
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "2.8.36",
7
+ "version": "2.8.37",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
@@ -40,7 +40,7 @@ Ext.define('Coon.security.securitySettingComponent.report.RoleEditReportControll
40
40
  },
41
41
 
42
42
  onEditReportGridButtonHandler(store) {
43
- const selection = this.lookup('reportsGrid').getSelection()[0];
43
+ const selection = this.lookup('reportsGrid').selection;
44
44
  if (!selection) {
45
45
  return;
46
46
  }
@@ -98,8 +98,8 @@ Ext.define('Coon.security.securitySettingComponent.report.RoleEditReportControll
98
98
  },
99
99
 
100
100
  deleteReportPluginRecordHandler() {
101
- const selectedReportPluginRecord = this.lookup('reportPluginsGrid').getSelection()[0];
102
- const masterReport = this.lookup('reportsGrid').getSelection()[0].get('report');
101
+ const selectedReportPluginRecord = this.lookup('reportPluginsGrid').selection;
102
+ const masterReport = this.lookup('reportsGrid').selection && this.lookup('reportsGrid').selection.get('report');
103
103
  const plugin = selectedReportPluginRecord.get('plugin');
104
104
  const pluginArray = this.reportGitDataContent[masterReport][this.role];
105
105
  if (pluginArray && pluginArray.length) {
@@ -50,14 +50,15 @@ Ext.define('Coon.security.securitySettingComponent.uiCP.RoleEditUiCPController',
50
50
  return JSON.stringify(this.uiCpGitDataContent);
51
51
  },
52
52
 
53
+ // чтобы исходная запись удалилась из объекта uiCpGitDataContent
53
54
  beforeEditUICPButtonRecordHandler(editor, context) {
54
55
  if (context.value) {
55
- this.deleteUICPButtonRecordHandler();
56
+ this.removeUICPButtonFromGitObject();
56
57
  }
57
58
  },
58
59
 
59
60
  onEditUICPGridButtonHandler(store) {
60
- const selection = this.lookup('uiCpGrid').getSelection()[0];
61
+ const selection = this.lookup('uiCpGrid').selection;
61
62
  if (!selection) {
62
63
  return;
63
64
  }
@@ -123,9 +124,9 @@ Ext.define('Coon.security.securitySettingComponent.uiCP.RoleEditUiCPController',
123
124
  uiCpGrid.getStore().remove(selectedRecord);
124
125
  },
125
126
 
126
- deleteUICPButtonRecordHandler() {
127
- const selectedUICPButtonRecord = this.lookup('UICPButtonsGrid').getSelection()[0];
128
- const masterUiElement = this.lookup('uiCpGrid').getSelection()[0].get('uiElement');
127
+ removeUICPButtonFromGitObject() {
128
+ const selectedUICPButtonRecord = this.lookup('UICPButtonsGrid').selection;
129
+ const masterUiElement = this.lookup('uiCpGrid').selection && this.lookup('uiCpGrid').selection.get('uiElement');
129
130
  const button = selectedUICPButtonRecord.get('button');
130
131
  const buttonArray = this.uiCpGitDataContent[masterUiElement] && this.uiCpGitDataContent[masterUiElement]['buttons'][button];
131
132
  if (buttonArray && buttonArray.length) {
@@ -138,7 +139,12 @@ Ext.define('Coon.security.securitySettingComponent.uiCP.RoleEditUiCPController',
138
139
  delete this.uiCpGitDataContent[masterUiElement];
139
140
  }
140
141
  }
141
- // this.lookup('UICPButtonsGrid').getStore().remove(selectedUICPButtonRecord);
142
+ },
143
+
144
+ deleteUICPButtonRecordHandler() {
145
+ const selectedUICPButtonRecord = this.lookup('UICPButtonsGrid').selection;
146
+ this.removeUICPButtonFromGitObject();
147
+ this.lookup('UICPButtonsGrid').getStore().remove(selectedUICPButtonRecord);
142
148
  },
143
149
 
144
150
  });
@@ -45,21 +45,27 @@ Ext.define('Coon.security.securitySettingComponent.user.RoleEditUserController',
45
45
  this.getView().getStore().add({});
46
46
  },
47
47
 
48
+ // чтобы исходная запись удалилась из объекта userRoleGitDataContent
48
49
  beforeEditUserNameGridHandler(editor, context) {
49
50
  if (context.value) {
50
- this.deleteUserNameRecordHandler();
51
+ this.removeUserNameFromGitObject();
51
52
  }
52
53
  },
53
54
 
54
- deleteUserNameRecordHandler() {
55
- const selectedUserRecord = this.getView().getSelection()[0];
55
+ removeUserNameFromGitObject() {
56
+ const selectedUserRecord = this.getView().selection;
56
57
  const userName = selectedUserRecord.get('userName');
57
58
  if (!this.userRoleGitDataContent[userName]) {
58
59
  return;
59
60
  }
60
61
  const index = this.userRoleGitDataContent[userName].findIndex((el) => el === this.role);
61
62
  index !== -1 && this.userRoleGitDataContent[userName].splice(index, 1);
62
- // this.getView().getStore().remove(selectedUserRecord);
63
+ },
64
+
65
+ deleteUserNameRecordHandler() {
66
+ const selectedUserRecord = this.getView().selection;
67
+ this.removeUserNameFromGitObject();
68
+ this.getView().getStore().remove(selectedUserRecord);
63
69
  },
64
70
 
65
71
  getUserRoleGitDataContent() {
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '2.8.36',
3
+ number: '2.8.37',
4
4
  });
package/sass/src/all.scss DELETED
File without changes
package/sass/var/all.scss DELETED
@@ -1,80 +0,0 @@
1
- $base-color : #1E3B4C;
2
- $base-color-dark : #112B39;
3
- $base-color-light : #3D6780;
4
- $active-color: #9A2D2A;
5
- $default-font-family: "Roboto" !default;
6
- $test-font-family: "Roboto" !default;
7
-
8
- $primary-color-text: #ffffff !default;
9
- $primary-background-color-hover: #2a4859 !default;
10
- $primary-background-color-active: #697f8a !default;
11
- $primary-color-text-disabled: #828282 !default;
12
- $primary-background-color-disabled: #dcdcdc !default;
13
- $primary-border-color-disabled: #dcdcdc !default;
14
- $primary-background-color: #3d6780 !default;
15
- $primary-border-color: #3d6780 !default;
16
- $primary-hovered-color: #3d6780 !default;
17
- $primary-box-shadow-color: #3d6780 !default;
18
- $primary-box-shadow-color-hover: rgba(17, 17, 17, 0.25) !default;
19
- $primary-box-shadow-color-active: rgba(0, 0, 0, 0.25) !default;
20
- $primary-icon-color: #ffffff !default;
21
- $primary-with-icon-box-shadow-color: rgba(0, 0, 0, 0.25) !default;
22
- $primary-icon-color-disabled: #828282 !default;
23
- $primary-only-icon-box-shadow-color-active: rgba(0, 0, 0, 0.25) !default;
24
-
25
- $secondary-background-color: #ffffff !default;
26
- $secondary-border-color-text: #3d6780 !default;
27
- $secondary-color-text: #3d6780 !default;
28
- $secondary-background-color-hover: #f2f4f5 !default;
29
- $secondary-background-color-active: #bccad2 !default;
30
- $secondary-background-color-disabled: #ffffff !default;
31
- $secondary-background-color-pressed: #3d6780 !default;
32
- $secondary-color-text-disabled: #979797 !default;
33
- $secondary-color-text-pressed: #ffffff !default;
34
- $secondary-border-color-disabled: #979797 !default;
35
- $secondary-icon-color: #3d6780 !default;
36
- $secondary-icon-color-disabled: #979797 !default;
37
-
38
- $tertiary-color-text: #3d6780 !default;
39
- $tertiary-background-color-hover: rgba(61, 103, 128, 0.04) !default;
40
- $tertiary-background-color-active: rgba(61, 103, 128, 0.12) !default;
41
- $tertiary-color-text-disabled: #979797 !default;
42
- $tertiary-icon-color: #3d6780 !default;
43
- $tertiary-icon-color-disabled: #979797 !default;
44
-
45
- $success-color-text: #ffffff !default;
46
- $success-background-color: #4caf50 !default;
47
- $success-border-color: #4caf50 !default;
48
- $success-background-color-hover: #388e3c !default;
49
- $success-background-color-active: rgba(129, 199, 132, 0.72) !default;
50
- $sucsess-color-text-disabled: #828282 !default;
51
- $sucsess-background-color-disabled: #dcdcdc !default;
52
- $sucsess-border-color-disabled: #dcdcdc !default;
53
-
54
- $success-outline-background-color: #ffffff !default;
55
- $success-outline-border-color: #4caf50 !default;
56
- $success-outline-text-color: #4caf50 !default;
57
- $success-outline-background-color-hover: rgb(221, 239, 219) !default;
58
- $success-outline-background-color-active: rgb(187, 225, 187) !default;
59
- $success-outline-background-color-disabled: #ffffff !default;
60
- $success-outline-border-color-disabled: #979797 !default;
61
- $success-outline-text-color-disabled: #979797 !default;
62
-
63
- $error-background-color: #b02121 !default;
64
- $error-border-color: #b02121 !default;
65
- $error-color-text: #ffffff !default;
66
- $error-background-color-hover: #7b1717 !default;
67
- $error-base-color-active: #bf4d4d !default;
68
- $error-color-text-disabled: #828282 !default;
69
- $error-background-color-disabled: #dcdcdc !default;
70
- $error-border-color-disabled: #dcdcdc !default;
71
- $error-box-shadow-color: rgba(0, 0, 0, 0.25) !default;
72
-
73
- $error-outline-background-color: #ffffff !default;
74
- $error-outline-border-color: #b02121 !default;
75
- $error-outline-text-color: #b02121 !default;
76
- $error-outline-background-color-hover: rgb(228, 209, 211) !default;
77
- $error-outline-background-color-active: rgb(222, 167, 165) !default;
78
- $error-outline-background-color-disabled: #ffffff !default;
79
- $error-outline-border-color-disabled: #979797 !default;
80
- $error-outline-text-color-disabled: #979797 !default;