qms-angular 1.1.19 → 1.1.21

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.
Files changed (70) hide show
  1. package/bundles/qms-angular.umd.js +883 -590
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/common/models/qms-flat-node.model.js +1 -1
  4. package/esm2015/lib/common/models/qms-tree-node.model.js +1 -1
  5. package/esm2015/lib/components/select-access-dialog/common/animation.js +27 -3
  6. package/esm2015/lib/components/select-access-dialog/model/access-paging.model.js +12 -0
  7. package/esm2015/lib/components/select-access-dialog/model/filter-person.model.js +3 -0
  8. package/esm2015/lib/components/select-access-dialog/model/select-access-config.model.js +2 -1
  9. package/esm2015/lib/components/select-access-dialog/model/select-access-data.js +4 -3
  10. package/esm2015/lib/components/select-access-dialog/public-api.js +4 -1
  11. package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +201 -125
  12. package/esm2015/lib/components/select-access-dialog/select-access-dialog.module.js +4 -2
  13. package/esm2015/lib/components/select-department/common/animation.js +26 -2
  14. package/esm2015/lib/components/select-department/select-department.component.js +21 -21
  15. package/esm2015/lib/components/select-department/select-department.module.js +2 -2
  16. package/esm2015/lib/components/select-department-tree/animation/animation.js +2 -2
  17. package/esm2015/lib/components/select-department-tree/model/department-paging.model.js +9 -0
  18. package/esm2015/lib/components/select-department-tree/model/selection-change.model.js +2 -0
  19. package/esm2015/lib/components/select-department-tree/public-api.js +3 -1
  20. package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +312 -236
  21. package/esm2015/lib/components/select-one/select-one.component.js +7 -16
  22. package/esm2015/lib/components/tree/model/tree-flat-node.model.js +1 -1
  23. package/esm2015/lib/components/tree/model/tree-node.model.js +1 -1
  24. package/esm2015/lib/components/tree/tree.component.js +18 -79
  25. package/esm2015/lib/components/tree/tree.function.js +2 -1
  26. package/esm2015/lib/directives/content-changes.directive.js +32 -0
  27. package/esm2015/lib/directives/tooltip/tooltip-elipsify.directive.js +51 -0
  28. package/esm2015/lib/directives/tooltip/tooltip-renderer.directive.js +1 -1
  29. package/esm2015/lib/model/en.js +3 -2
  30. package/esm2015/lib/model/no.js +3 -2
  31. package/esm2015/lib/qms-angular.module.js +9 -3
  32. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.js +1 -1
  33. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +62 -50
  34. package/esm2015/public-api.js +3 -1
  35. package/fesm2015/qms-angular.js +828 -578
  36. package/fesm2015/qms-angular.js.map +1 -1
  37. package/lib/common/models/qms-flat-node.model.d.ts +2 -0
  38. package/lib/common/models/qms-tree-node.model.d.ts +5 -0
  39. package/lib/components/select-access-dialog/model/access-paging.model.d.ts +9 -0
  40. package/lib/components/select-access-dialog/model/filter-person.model.d.ts +6 -0
  41. package/lib/components/select-access-dialog/model/select-access-config.model.d.ts +1 -0
  42. package/lib/components/select-access-dialog/model/select-access-data.d.ts +4 -2
  43. package/lib/components/select-access-dialog/public-api.d.ts +3 -0
  44. package/lib/components/select-access-dialog/select-access-dialog.component.d.ts +41 -18
  45. package/lib/components/select-department/select-department.component.d.ts +7 -6
  46. package/lib/components/select-department-tree/model/department-paging.model.d.ts +5 -0
  47. package/lib/components/select-department-tree/model/selection-change.model.d.ts +4 -0
  48. package/lib/components/select-department-tree/public-api.d.ts +2 -0
  49. package/lib/components/select-department-tree/select-department-tree.component.d.ts +24 -15
  50. package/lib/components/select-one/select-one.component.d.ts +0 -1
  51. package/lib/components/tree/model/tree-flat-node.model.d.ts +1 -0
  52. package/lib/components/tree/model/tree-node.model.d.ts +1 -0
  53. package/lib/components/tree/tree.component.d.ts +4 -1
  54. package/lib/directives/content-changes.directive.d.ts +9 -0
  55. package/lib/directives/tooltip/tooltip-elipsify.directive.d.ts +13 -0
  56. package/lib/directives/tooltip/tooltip-renderer.directive.d.ts +2 -2
  57. package/lib/model/en.d.ts +2 -1
  58. package/lib/model/no.d.ts +2 -1
  59. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.d.ts +1 -1
  60. package/lib/qms-ckeditor-components/qms-ckeditor.component.d.ts +6 -0
  61. package/package.json +1 -1
  62. package/public-api.d.ts +2 -0
  63. package/qms-angular.metadata.json +1 -1
  64. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -1
  65. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js.map +1 -1
  66. package/src/assets/qms-ckeditor-plugin/src/plugins/template/loadtemplatedialogcommand.js +5 -1
  67. package/src/lib/components/select-access-dialog/select-access-dialog.component.scss +103 -41
  68. package/src/lib/components/select-department/select-department.component.scss +12 -0
  69. package/src/lib/components/select-department-tree/select-department-tree.component.scss +1 -1
  70. package/src/lib/components/select-one/select-one.component.scss +77 -80
@@ -3,8 +3,12 @@ import * as QMSCKEditorConstant from '../common/qmsCKEditorConstant';
3
3
  import * as QMSCKEditorService from '../common/qmsCKEditorService';
4
4
 
5
5
  export default class LoadTemplateDialogCommand extends Command {
6
-
6
+ constructor( editor ) {
7
+ super( editor );
8
+ }
9
+
7
10
  execute() {
11
+ const editor = this.editor;
8
12
  QMSCKEditorService.loadTemplateNotify(null);
9
13
  window.addEventListener(QMSCKEditorConstant.QMSCK_LOAD_TEMPLATE_PLUGIN_RESP, function (evt) {
10
14
  editor.setData(evt.detail);
@@ -99,50 +99,22 @@
99
99
  }
100
100
  }
101
101
 
102
-
103
-
104
-
105
102
  .access-dialog-header {
106
103
  display: flex;
107
104
  justify-content: space-between;
108
105
  align-items: center;
109
106
  }
110
107
 
111
- .access-dialog-wraper {
112
- width: 100%;
113
-
114
- .field-select-option {
115
- .mat-form-field-wrapper{
116
- padding-bottom: 16px !important;
117
- }
118
- .mat-form-field-underline{
119
- bottom: 16px !important;
120
- }
121
- }
122
- }
123
-
124
108
  .mat-chip-list-wrapper {
125
109
  margin: unset !important;
126
110
  }
127
111
 
128
- .result-selected-container {
129
- max-height: 175px;
130
- overflow-y: auto;
131
- padding-right: 4px;
132
- }
133
-
134
112
  .item-list-wrapper {
135
- max-height: 28vh;
113
+ max-height: 45vh;
136
114
  padding: 4px 4px 4px 0;
137
115
  overflow-y: auto;
138
116
  &.no-result{
139
- height: 28vh;
140
- display: flex;
141
- justify-content: center;
142
- align-items: center;
143
- }
144
- &.no-result{
145
- height: 28vh;
117
+ height: 50vh;
146
118
  display: flex;
147
119
  justify-content: center;
148
120
  align-items: center;
@@ -180,6 +152,82 @@
180
152
  }
181
153
  }
182
154
 
155
+ .qms-dialog-content{
156
+ // display: flex;
157
+ display: grid;
158
+ column-gap: 8px;
159
+ &.active{
160
+ grid-template-columns: 2fr 1fr;
161
+ }
162
+
163
+ .access-dialog-wraper {
164
+ .field-select-option {
165
+ .mat-form-field-wrapper{
166
+ padding-bottom: 16px !important;
167
+ }
168
+ .mat-form-field-underline{
169
+ bottom: 16px !important;
170
+ }
171
+ }
172
+ }
173
+
174
+ .result-wrapper{
175
+ position: relative;
176
+ width: 100%;
177
+ margin-left: 8px;
178
+ &::after{
179
+ position: absolute;
180
+ content: '';
181
+ top: 0;
182
+ left: 0;
183
+ background-color: #0000001f;
184
+ height: 100%;
185
+ width: 1px;
186
+ }
187
+ }
188
+ .result-selected-container {
189
+ position: absolute;
190
+ top: 0;
191
+ right: 0;
192
+ bottom: 0;
193
+ left: 0;
194
+ overflow-y: auto;
195
+ padding: 0 8px;
196
+ // .mat-divider{
197
+ // margin-bottom: 12px;
198
+ // }
199
+ .result-header{
200
+ height: 51px;
201
+ display: flex;
202
+ align-items: center;
203
+ position: sticky;
204
+ top: 0;
205
+ z-index: 10;
206
+ padding: 0 !important;
207
+ background: white;
208
+ margin-bottom: 12px;
209
+ &::after{
210
+ position: absolute;
211
+ content: "";
212
+ bottom: 0;
213
+ left: 0;
214
+ width: 100%;
215
+ height: 1px;
216
+ background: rgba(0, 0, 0, 0.04);
217
+ }
218
+
219
+ .mat-card-content{
220
+ height: 51px;
221
+ width: 100%;
222
+ padding-left: 4px;
223
+ display: flex;
224
+ align-items: center;
225
+ background-color: rgba(0, 0, 0, 0.04);
226
+ }
227
+ }
228
+ }
229
+ }
230
+
183
231
  .option-selected-content {
184
232
  .group-filter-person-option {
185
233
  display: flex;
@@ -188,7 +236,6 @@
188
236
  align-items: center;
189
237
  gap: 8px;
190
238
  }
191
-
192
239
  }
193
240
 
194
241
  span.chip-item__content_name {
@@ -204,6 +251,7 @@
204
251
  color: black(0.5);
205
252
  font-weight: 600;
206
253
  }
254
+
207
255
  .mat-slide-toggle.qms-group-options{
208
256
  padding: unset !important;
209
257
  }
@@ -216,9 +264,11 @@
216
264
  bottom: 8px !important;
217
265
  }
218
266
  }
267
+
219
268
  .slide-toggle{
220
269
  margin-bottom: 8px;
221
270
  }
271
+
222
272
  .confirm__button__groups.none-option{
223
273
  margin-top: 85px;
224
274
  }
@@ -246,6 +296,13 @@
246
296
  align-items: center;
247
297
  justify-content: center;
248
298
  }
299
+
300
+ .qms-btn-icon{
301
+ width: 30px !important;
302
+ height: 30px !important;
303
+ line-height: 30px !important;
304
+ }
305
+
249
306
  .mat-form-field-wrapper{
250
307
  padding-bottom: 0;
251
308
  }
@@ -271,8 +328,8 @@
271
328
  }
272
329
 
273
330
  &> .qms-btn-icon-wrapper{
274
- width: 30px;
275
- height: 30px;
331
+ width: 30px !important;
332
+ height: 30px !important;
276
333
  display: flex;
277
334
  justify-content: center;
278
335
  align-items: center;
@@ -312,15 +369,23 @@
312
369
  margin: 0 !important;
313
370
  }
314
371
 
315
- .qms-btn-icon{
316
- width: 30px !important;
317
- height: 30px !important;
318
- line-height: 30px !important;
372
+
373
+ .access-department{
374
+ .qms-view-search-result{
375
+ height: 100% !important;
376
+ .result{
377
+ max-height: calc(100% - 80px) !important;
378
+ }
379
+ }
380
+ .loading-container{
381
+ height: calc(100% - 40px) !important;
382
+ }
319
383
  }
320
384
 
321
385
  // Loading animate
322
386
  .loading-container{
323
- height: 25vh;
387
+ height: 50vh;
388
+ overflow: hidden;
324
389
  display: grid;
325
390
  grid-template-rows: repeat(auto-fill, minmax(60px, 60px));
326
391
  .loader{
@@ -363,7 +428,4 @@
363
428
  }
364
429
  }
365
430
  }
366
-
367
431
  }
368
-
369
-
@@ -182,4 +182,16 @@
182
182
  align-items: center;
183
183
  }
184
184
  }
185
+
186
+ ::ng-deep .custom-department-tree{
187
+ .qms-view-search-result{
188
+ height: 100% !important;
189
+ .result{
190
+ max-height: calc(100% - 80px) !important;
191
+ }
192
+ }
193
+ .loading-container{
194
+ height: calc(100% - 40px) !important;
195
+ }
196
+ }
185
197
  }
@@ -482,7 +482,7 @@
482
482
  overflow: hidden;
483
483
  height: 100%;
484
484
  display: grid;
485
- grid-template-rows: repeat(auto-fill, minmax(60px, 60px));
485
+ grid-template-rows: repeat(auto-fit, minmax(60px, 60px));
486
486
  .loader{
487
487
  position: relative;
488
488
  width: 100%;
@@ -3,6 +3,21 @@
3
3
  @import "../../../themes/core/scrollbar.scss";
4
4
  @import "../../../themes/core/button.scss";
5
5
 
6
+ .qms-list-item.item-suggestion {
7
+ .image-square.wrap-image {
8
+ width: 2.5rem !important;
9
+ height: 100% !important;
10
+ background: transparent;
11
+ align-self: center;
12
+ margin-right: 0;
13
+ }
14
+ }
15
+
16
+ ::ng-deep .mat-option:hover:not(.mat-option-disabled),
17
+ .mat-option:focus:not(.mat-option-disabled) {
18
+ background: transparent !important;
19
+ }
20
+
6
21
  .qmslib__related__popup__container {
7
22
  .input__field {
8
23
  display: flex;
@@ -122,109 +137,91 @@
122
137
  }
123
138
  }
124
139
 
125
- cdk-virtual-scroll-viewport {
126
- overflow-x: hidden;
127
- .search__module-result {
128
- margin: 1.5rem;
129
- padding: 0 0 0.5rem 0px;
130
- .search__module-title {
131
- font-size: 14px;
132
- font-weight: 600;
133
- }
140
+ .search__module-result {
141
+ margin: 1.5rem;
142
+ padding: 0 0 0.5rem 0px;
143
+ .search__module-title {
144
+ font-size: 14px;
145
+ font-weight: 600;
146
+ }
147
+
148
+ .search__option {
149
+ height: auto;
150
+ line-height: normal;
151
+ padding: 0;
152
+ border-bottom: 1px solid #e0e0e0;
134
153
 
135
- .search__option {
154
+ .qms-list-item.mat-2-line.image-item {
136
155
  height: auto;
137
- line-height: normal;
138
- padding: 8px 0;
139
- border-bottom: 1px solid #e0e0e0;
156
+ }
157
+ .qms-list-item-content {
158
+ margin: 0;
159
+ border-bottom: none;
140
160
 
141
- .qms-list-item.mat-2-line.image-item {
142
- height: auto;
161
+ .material-icons-outlined.leading-icon,
162
+ mat-icon.leading-icon {
163
+ padding: 4px 0 4px 4px;
143
164
  }
144
- .qms-list-item-content {
145
- margin: 0;
146
- border-bottom: none;
147
- .wrap-image.image-square {
148
- width: 2.5rem;
149
- height: 100%;
150
- background: transparent;
151
- align-self: center;
152
- margin-right: 0;
153
- img {
154
- width: 24px;
155
- height: 24px;
156
- }
157
- }
158
-
159
- .material-icons-outlined.leading-icon,
160
- mat-icon.leading-icon {
161
- padding: 4px 0 4px 4px;
162
- }
163
165
 
164
- .subtitle {
165
- font-weight: 400;
166
- }
166
+ .caption {
167
+ overflow: hidden;
168
+ line-height: normal;
169
+ white-space: normal;
170
+ text-overflow: ellipsis;
171
+ display: -webkit-box;
172
+ -webkit-line-clamp: 2;
173
+ -webkit-box-orient: vertical;
174
+ padding: 0;
175
+ margin: 0;
167
176
 
168
- .caption {
177
+ span.search__result__parent-name {
178
+ display: inline-block;
179
+ width: auto;
180
+ width: calc(100% - 13px);
181
+ white-space: nowrap;
169
182
  overflow: hidden;
170
- line-height: normal;
171
- white-space: normal;
172
183
  text-overflow: ellipsis;
173
- display: -webkit-box;
174
- -webkit-line-clamp: 2;
175
- -webkit-box-orient: vertical;
176
- padding: 0;
177
- margin: 0;
178
-
179
- span.search__result__parent-name {
180
- display: inline-block;
181
- width: auto;
182
- width: calc(100% - 13px);
183
- white-space: nowrap;
184
- overflow: hidden;
185
- text-overflow: ellipsis;
186
- }
187
184
  }
185
+ }
188
186
 
189
- .default-subtitle {
190
- color: rgba($color: #000000, $alpha: 0.38);
191
- }
187
+ .default-subtitle {
188
+ color: rgba($color: #000000, $alpha: 0.38);
189
+ }
192
190
 
193
- .search__description-icon {
194
- margin-right: 0px;
195
- width: 12px;
196
- height: 12px;
197
- font-size: 12px;
198
- }
191
+ .search__description-icon {
192
+ margin-right: 0px;
193
+ width: 12px;
194
+ height: 12px;
195
+ font-size: 12px;
196
+ }
199
197
 
200
- .qms-list-text {
201
- border-bottom: none;
202
- height: auto;
203
- }
198
+ .qms-list-text {
199
+ border-bottom: none;
200
+ height: auto;
201
+ }
204
202
 
205
- .breadcrumb-container {
206
- .qms-breadcrumb-item {
207
- .mat-icon {
208
- font-size: 16px !important;
209
- padding-bottom: 1px;
210
- }
203
+ .breadcrumb-container {
204
+ .qms-breadcrumb-item {
205
+ .mat-icon {
206
+ font-size: 16px !important;
207
+ padding-bottom: 1px;
211
208
  }
212
209
  }
213
210
  }
214
-
215
- &.mat-option:hover:not(.mat-option-disabled), .mat-option:focus:not(.mat-option-disabled) {
216
- background: transparent !important;
217
- }
218
211
  }
219
212
 
220
- svg {
221
- display: block;
213
+ &.mat-option:hover:not(.mat-option-disabled),
214
+ .mat-option:focus:not(.mat-option-disabled) {
215
+ background: transparent !important;
222
216
  }
217
+ }
223
218
 
219
+ svg {
220
+ display: block;
224
221
  }
225
222
  }
226
223
 
227
- #qmslib_related_popup_header_001 {
224
+ .module-name {
228
225
  margin-bottom: 20px;
229
226
  padding: 0;
230
227
  font-weight: 600;