qms-angular 1.1.13 → 1.1.14

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 (66) hide show
  1. package/bundles/qms-angular.umd.js +1088 -18
  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/components/breadcrumb/breadcrumb.js +7 -5
  5. package/esm2015/lib/components/select-access-dialog/common/animation.js +10 -0
  6. package/esm2015/lib/components/select-access-dialog/common/option-select-access.enum.js +7 -0
  7. package/esm2015/lib/components/select-access-dialog/index.js +2 -0
  8. package/esm2015/lib/components/select-access-dialog/model/access-item.model.js +6 -0
  9. package/esm2015/lib/components/select-access-dialog/model/option-select-access.model.js +3 -0
  10. package/esm2015/lib/components/select-access-dialog/model/select-access-data.js +16 -0
  11. package/esm2015/lib/components/select-access-dialog/public-api.js +8 -0
  12. package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +288 -0
  13. package/esm2015/lib/components/select-access-dialog/select-access-dialog.module.js +56 -0
  14. package/esm2015/lib/components/select-access-dialog/service/select-access-global.service.js +11 -0
  15. package/esm2015/lib/components/select-department/common/animation.js +30 -0
  16. package/esm2015/lib/components/select-department/index.js +2 -0
  17. package/esm2015/lib/components/select-department/model/select-department-popup-data.model.js +12 -0
  18. package/esm2015/lib/components/select-department/public-api.js +5 -0
  19. package/esm2015/lib/components/select-department/select-department.component.js +84 -0
  20. package/esm2015/lib/components/select-department/select-department.module.js +60 -0
  21. package/esm2015/lib/components/select-department/service/select-department-global.service.js +22 -0
  22. package/esm2015/lib/components/select-department-tree/index.js +2 -0
  23. package/esm2015/lib/components/select-department-tree/model/select-department-tree.config.js +10 -0
  24. package/esm2015/lib/components/select-department-tree/public-api.js +5 -0
  25. package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +379 -0
  26. package/esm2015/lib/components/select-department-tree/select-department-tree.module.js +50 -0
  27. package/esm2015/lib/components/select-department-tree/service/select-department-tree-global.service.js +22 -0
  28. package/esm2015/lib/components/select-include-children/services/select-include-children-global.service.js +1 -1
  29. package/esm2015/lib/model/en.js +14 -1
  30. package/esm2015/lib/model/no.js +14 -1
  31. package/esm2015/lib/services/translation-registry.service.js +2 -2
  32. package/esm2015/public-api.js +4 -1
  33. package/fesm2015/qms-angular.js +1004 -16
  34. package/fesm2015/qms-angular.js.map +1 -1
  35. package/lib/common/models/qms-flat-node.model.d.ts +3 -0
  36. package/lib/components/select-access-dialog/common/animation.d.ts +1 -0
  37. package/lib/components/select-access-dialog/common/option-select-access.enum.d.ts +5 -0
  38. package/lib/components/select-access-dialog/index.d.ts +1 -0
  39. package/lib/components/select-access-dialog/model/access-item.model.d.ts +7 -0
  40. package/lib/components/select-access-dialog/model/option-select-access.model.d.ts +5 -0
  41. package/lib/components/select-access-dialog/model/select-access-data.d.ts +14 -0
  42. package/lib/components/select-access-dialog/public-api.d.ts +7 -0
  43. package/lib/components/select-access-dialog/select-access-dialog.component.d.ts +64 -0
  44. package/lib/components/select-access-dialog/select-access-dialog.module.d.ts +2 -0
  45. package/lib/components/select-access-dialog/service/select-access-global.service.d.ts +2 -0
  46. package/lib/components/select-department/common/animation.d.ts +1 -0
  47. package/lib/components/select-department/index.d.ts +1 -0
  48. package/lib/components/select-department/model/select-department-popup-data.model.d.ts +14 -0
  49. package/lib/components/select-department/public-api.d.ts +4 -0
  50. package/lib/components/select-department/select-department.component.d.ts +31 -0
  51. package/lib/components/select-department/select-department.module.d.ts +2 -0
  52. package/lib/components/select-department/service/select-department-global.service.d.ts +9 -0
  53. package/lib/components/select-department-tree/index.d.ts +1 -0
  54. package/lib/components/select-department-tree/model/select-department-tree.config.d.ts +9 -0
  55. package/lib/components/select-department-tree/public-api.d.ts +4 -0
  56. package/lib/components/select-department-tree/select-department-tree.component.d.ts +84 -0
  57. package/lib/components/select-department-tree/select-department-tree.module.d.ts +2 -0
  58. package/lib/components/select-department-tree/service/select-department-tree-global.service.d.ts +9 -0
  59. package/lib/model/en.d.ts +13 -0
  60. package/lib/model/no.d.ts +13 -0
  61. package/package.json +1 -1
  62. package/public-api.d.ts +3 -0
  63. package/qms-angular.metadata.json +1 -1
  64. package/src/lib/components/select-access-dialog/select-access-dialog.component.scss +205 -0
  65. package/src/lib/components/select-department/select-department.component.scss +193 -0
  66. package/src/lib/components/select-department-tree/select-department-tree.component.scss +265 -0
@@ -0,0 +1,205 @@
1
+ @import "../../../themes/core/variables";
2
+ @import "../../../themes/theme/variable";
3
+ @import "../../../themes/theme/mixins";
4
+ @import "../../../themes/qms-icon-font";
5
+
6
+
7
+ .select-access-dialog-container {
8
+ font-family: 'Open Sans';
9
+ .mat-expansion-panel .mat-expansion-panel-body {
10
+ padding-top: 0px !important;
11
+ }
12
+
13
+ .mat-expansion-panel-header {
14
+ font-size: 12px !important;
15
+ font-weight: 800 !important;
16
+ }
17
+
18
+ .w-100 {
19
+ width: 100%;
20
+ }
21
+
22
+ .h-100 {
23
+ height: 100%;
24
+ }
25
+
26
+ .pointer {
27
+ cursor: pointer;
28
+ }
29
+
30
+ .fw-600{
31
+ font-weight: 600;
32
+ }
33
+
34
+ .label-item{
35
+ font-weight: 600;
36
+ color: theme-apply($ws-text-primary);
37
+ }
38
+
39
+ .sub-label{
40
+ color: theme-apply($ws-text-secondary);
41
+ }
42
+
43
+ .fs-14{
44
+ font-size: 14px;
45
+ }
46
+
47
+ .fs-12{
48
+ font-size: 12px;
49
+ }
50
+
51
+ .header-title {
52
+ font-weight: 600;
53
+ color: theme-apply($ws-text-primary);
54
+ font-size: 16px;
55
+ }
56
+
57
+ .chip-item-result {
58
+ max-width: 250px;
59
+
60
+ &.item-department {
61
+ .qms-chip-body {
62
+ display: flex;
63
+ justify-content: center;
64
+ align-items: center;
65
+ }
66
+ }
67
+ }
68
+
69
+ .remove-chip-icon {
70
+ color: black(.3);
71
+ cursor: pointer;
72
+
73
+ &:hover {
74
+ color: black(.7);
75
+ }
76
+ }
77
+
78
+ .mat-form-field-wrapper {
79
+ padding-bottom: 5px !important;
80
+ }
81
+
82
+
83
+ .mat-expansion-panel {
84
+ border-radius: unset !important;
85
+ }
86
+
87
+ .mat-expansion-panel-header:not([aria-disabled=true]){
88
+ background: unset;
89
+ }
90
+
91
+ .mat-expansion-panel.mat-expanded .mat-expansion-panel-header {
92
+ background: #e5eefb;
93
+ .qms-line{
94
+ color: theme-apply($primary-light) !important;
95
+ }
96
+ }
97
+
98
+
99
+
100
+
101
+ .access-dialog-header {
102
+ display: flex;
103
+ justify-content: space-between;
104
+ align-items: center;
105
+ }
106
+
107
+ .access-dialog-wraper {
108
+ width: 100%;
109
+
110
+ .field-select-option {
111
+ .mat-form-field-wrapper{
112
+ padding-bottom: 16px !important;
113
+ }
114
+ .mat-form-field-underline{
115
+ bottom: 16px !important;
116
+ }
117
+ }
118
+ }
119
+
120
+ .mat-chip-list-wrapper {
121
+ margin: unset !important;
122
+ }
123
+
124
+ .result-selected-container {
125
+ max-height: 185px;
126
+ overflow-y: auto;
127
+ }
128
+
129
+ .item-list-wrapper {
130
+ max-height: 25vh;
131
+ padding-right: 4px;
132
+ overflow-y: auto;
133
+ .item{
134
+ min-height: 40px;
135
+ }
136
+ }
137
+
138
+ .confirm__button__groups {
139
+ .btn-add>.qms-btn-wrapper {
140
+ display: flex;
141
+ justify-content: center;
142
+ align-items: center;
143
+ }
144
+ }
145
+
146
+ .option-selected-content {
147
+ .group-filter-person-option {
148
+ display: flex;
149
+ flex-direction: row-reverse;
150
+ justify-content: center;
151
+ align-items: center;
152
+ gap: 8px;
153
+ }
154
+
155
+ }
156
+
157
+ span.chip-item__content_name {
158
+ display: inline-block;
159
+ max-width: 175px;
160
+ white-space: nowrap;
161
+ overflow: hidden;
162
+ text-overflow: ellipsis;
163
+ }
164
+
165
+ span.chip-item-children__count {
166
+ font-size: 0.75rem;
167
+ color: black(0.5);
168
+ font-weight: 600;
169
+ }
170
+ .mat-slide-toggle.qms-group-options{
171
+ padding: unset !important;
172
+ }
173
+
174
+ .input-option-filter{
175
+ .mat-form-field-wrapper{
176
+ padding-bottom: 8px !important;
177
+ }
178
+ .mat-form-field-underline{
179
+ bottom: 8px !important;
180
+ }
181
+ }
182
+ .slide-toggle{
183
+ margin-bottom: 8px;
184
+ }
185
+ .confirm__button__groups.none-option{
186
+ margin-top: 85px;
187
+ }
188
+
189
+ .btn-icon-clear{
190
+ position: relative;
191
+ padding: 0 1rem;
192
+ .qms-btn-icon{
193
+ margin-right: unset !important;
194
+ }
195
+ &::after{
196
+ position: absolute;
197
+ content: '';
198
+ left: 0;
199
+ top: 0;
200
+ height: 100%;
201
+ width: 1px;
202
+ background: black(.3);
203
+ }
204
+ }
205
+ }
@@ -0,0 +1,193 @@
1
+ @import "../../../themes/core/variables";
2
+ @import "../../../themes/theme/variable";
3
+ @import "../../../themes/theme/mixins";
4
+ @import "../../../themes/qms-icon-font";
5
+
6
+
7
+
8
+
9
+
10
+ .qms-select-department {
11
+
12
+ .cursor-pointer {
13
+ cursor: pointer;
14
+ }
15
+
16
+ .ml-5 {
17
+ margin-left: 10px;
18
+ }
19
+
20
+ .padding-5 {
21
+ padding: 5px;
22
+ }
23
+
24
+ .header-dialog {
25
+ display: flex;
26
+ justify-content: space-between;
27
+ align-items: center;
28
+ font-weight: 600;
29
+ font-size: 16px;
30
+ }
31
+
32
+ .input__field {
33
+ display: flex;
34
+ align-items: center;
35
+ position: relative;
36
+
37
+ input.input-search {
38
+ width: 100%;
39
+ padding: 10px;
40
+ outline: none;
41
+ border: none;
42
+ background: theme-apply($background-input-text);
43
+ }
44
+
45
+ .btn-search {
46
+ cursor: pointer;
47
+ vertical-align: middle;
48
+ position: absolute;
49
+ top: 50%;
50
+ right: 10px;
51
+ transform: translateY(-50%);
52
+ }
53
+ }
54
+
55
+ .line__divider {
56
+ border-bottom: 1px solid #ccc;
57
+ height: 1px;
58
+ margin-top: 10px;
59
+ min-width: 300px;
60
+ max-width: 100%;
61
+ }
62
+
63
+ .mat-expansion-panel-header {
64
+ height: 30px;
65
+ font-size: 12px;
66
+ letter-spacing: 1px;
67
+ font-family: 'Raleway';
68
+ font-weight: 600;
69
+ padding: 0;
70
+
71
+ .mat-expansion-panel-header-title {
72
+ align-items: center;
73
+ margin-left: 12px;
74
+ }
75
+ }
76
+
77
+ .mat-expansion-panel:not([class*="mat-elevation-z"]) {
78
+ box-shadow: none;
79
+ }
80
+
81
+ .panel__item {
82
+ max-height: 175px;
83
+ margin-top: 12px;
84
+ overflow-x: hidden;
85
+ overflow-y: auto;
86
+ padding-right: 5px;
87
+ width: 100%;
88
+ max-width: 100%;
89
+ display: flex;
90
+ flex-wrap: wrap;
91
+ align-content: flex-start;
92
+
93
+ .related__item__inline {
94
+ max-width: 100%;
95
+ }
96
+
97
+ .select__toggle-include {
98
+ width: 100%;
99
+
100
+ &.toggle-include-child .mat-slide-toggle.qms-group-options .mat-slide-toggle-thumb {
101
+ background-color: #5a5a5a !important;
102
+ }
103
+ }
104
+
105
+ .related__item__content {
106
+ height: 32px;
107
+ line-height: 32px;
108
+ background-color: theme-apply($related-item-background);
109
+ max-width: 100%;
110
+ margin-bottom: 5px;
111
+ margin-left: 2.5px;
112
+ margin-right: 2.5px;
113
+
114
+ .mat-icon {
115
+ color: theme-apply($related-mat-icon-color);
116
+ font-size: 24px;
117
+ }
118
+ }
119
+ }
120
+
121
+ .header-title {
122
+ font-weight: 600;
123
+ color: black(0.87);
124
+ }
125
+
126
+ .result-content {
127
+ padding-right: 0 !important;
128
+
129
+ .mat-chip-list {
130
+ min-height: 40px;
131
+
132
+ .mat-icon {
133
+ color: black(.3) !important;
134
+ cursor: pointer;
135
+
136
+ &:hover {
137
+ color: black(1) !important;
138
+ }
139
+ }
140
+ }
141
+
142
+ span.related__item__content_name {
143
+ display: inline-block;
144
+ min-width: calc(100% - 13px);
145
+ white-space: nowrap;
146
+ overflow: hidden;
147
+ text-overflow: ellipsis;
148
+ max-width: 320px;
149
+
150
+ .select__include-children__count {
151
+ font-size: 0.75rem;
152
+ color: black(0.5);
153
+ font-weight: 600;
154
+ }
155
+ }
156
+ }
157
+
158
+ .text-name {
159
+ position: relative;
160
+ overflow: hidden;
161
+ text-overflow: ellipsis;
162
+ display: -webkit-box;
163
+ -webkit-line-clamp: 2;
164
+ -webkit-box-orient: vertical;
165
+ cursor: pointer;
166
+ width: 100%;
167
+ }
168
+
169
+
170
+
171
+ ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row {
172
+ .mat-checkbox-layout {
173
+ white-space: normal;
174
+ }
175
+
176
+ .mat-checkbox-label {
177
+ flex-direction: row;
178
+ align-items: center;
179
+ position: relative;
180
+ padding-bottom: 2px;
181
+ }
182
+ }
183
+
184
+ .confirm__button__groups {
185
+ .btn-add>.qms-btn-wrapper {
186
+ display: flex;
187
+ justify-content: center;
188
+ align-items: center;
189
+ }
190
+ }
191
+
192
+
193
+ }
@@ -0,0 +1,265 @@
1
+ @import "../../../themes/core/variables";
2
+ @import "../../../themes/theme/variable";
3
+ @import "../../../themes/theme/mixins";
4
+ @import "../../../themes/qms-icon-font";
5
+
6
+
7
+ .qms-select-department-tree-container {
8
+ .mr10 {
9
+ margin-right: 10px;
10
+ }
11
+
12
+ .mt5 {
13
+ margin-bottom: 5px;
14
+ }
15
+
16
+ .mb5 {
17
+ margin-top: 5px;
18
+ }
19
+
20
+ .w100 {
21
+ width: 100%;
22
+ }
23
+
24
+ .text-right {
25
+ text-align: right;
26
+ }
27
+
28
+ .mt20 {
29
+ margin-top: 20px;
30
+ }
31
+
32
+ .text-selected {
33
+ color: black(0.6);
34
+ font-size: 12px;
35
+ line-height: 16px;
36
+ margin-top: 1rem;
37
+ }
38
+
39
+ .input__field {
40
+ display: flex;
41
+ align-items: center;
42
+ position: relative;
43
+
44
+ input.input-search {
45
+ width: 100%;
46
+ padding: 10px;
47
+ outline: none;
48
+ border: none;
49
+ background: theme-apply($background-input-text);
50
+ }
51
+
52
+ .btn-search {
53
+ cursor: pointer;
54
+ vertical-align: middle;
55
+ position: absolute;
56
+ top: 50%;
57
+ right: 10px;
58
+ transform: translateY(-50%);
59
+ }
60
+
61
+ .line__divider {
62
+ border-bottom: 1px solid #ccc;
63
+ height: 1px;
64
+ margin-top: 10px;
65
+ min-width: 300px;
66
+ max-width: 100%;
67
+ }
68
+ }
69
+
70
+ .tree-department-wrapper {
71
+ height: 375px;
72
+ overflow-y: auto;
73
+ }
74
+
75
+ // Tree
76
+ .mat-tree.select-department-tree {
77
+ .mat-tree-node {
78
+ &:hover {
79
+ background: black(0.08);
80
+ }
81
+
82
+ &:active {
83
+ background: black(0.12);
84
+ }
85
+
86
+ &.active {
87
+ color: theme-apply($primary);
88
+ background: theme-apply($primary-light-6-opacity);
89
+
90
+ &:active {
91
+ background: theme-apply($primary-light-12-opacity);
92
+ }
93
+
94
+ button,
95
+ .mat-icon-rtl-mirror,
96
+ .type-icon,
97
+ .text-name {
98
+ color: theme-apply($primary);
99
+ }
100
+ }
101
+ }
102
+
103
+ .mat-tree-node.collapse-node {
104
+ &.active {
105
+
106
+ button,
107
+ .mat-icon-rtl-mirror,
108
+ .type-icon,
109
+ .text-name {
110
+ color: theme-apply($primary);
111
+ }
112
+
113
+ &:hover {
114
+ background: theme-apply($primary-light-6-opacity);
115
+ }
116
+
117
+ &:active {
118
+ background: theme-apply($primary-light-12-opacity);
119
+ }
120
+ }
121
+ }
122
+
123
+ .mat-tree-node.expand-node {
124
+ color: theme-apply($primary);
125
+
126
+ button,
127
+ .mat-icon-rtl-mirror,
128
+ .type-icon,
129
+ .text-name {
130
+ color: theme-apply($primary);
131
+ }
132
+
133
+ &:hover {
134
+ background: theme-apply($primary-light-6-opacity);
135
+ }
136
+
137
+ &:active {
138
+ background: theme-apply($primary-light-12-opacity);
139
+ }
140
+ }
141
+
142
+ .type-icon {
143
+ margin-right: 5px;
144
+ color: theme-apply($ws-action-active);
145
+ }
146
+
147
+ .text-name {
148
+ color: theme-apply($default-color);
149
+ }
150
+
151
+ .mat-icon-rtl-mirror {
152
+ color: black(0.6);
153
+ }
154
+
155
+ .mat-icon-button.btn-toggle {
156
+ width: 35px;
157
+ height: 35px;
158
+ line-height: 35px;
159
+ }
160
+
161
+ .mat-tree-node {
162
+ &.mat-tree-node-disabled-all {
163
+ cursor: default !important;
164
+ pointer-events: none;
165
+ user-select: none;
166
+
167
+ button.mat-button-disabled,
168
+ .mat-icon-rtl-mirror,
169
+ .type-icon {
170
+ color: black(0.38);
171
+ }
172
+
173
+ .text-name {
174
+ &.disabled {
175
+ color: black(0.38);
176
+ cursor: default !important;
177
+ pointer-events: none;
178
+ user-select: none;
179
+ }
180
+ }
181
+
182
+ &.active {
183
+ background-color: transparent;
184
+ }
185
+ }
186
+
187
+ &.mat-tree-node-disabled {
188
+
189
+ button.mat-button-disabled,
190
+ .type-icon {
191
+ color: black(0.38);
192
+ }
193
+
194
+ .text-name {
195
+ &.disabled {
196
+ color: black(0.38);
197
+ cursor: default !important;
198
+ pointer-events: none;
199
+ user-select: none;
200
+ }
201
+ }
202
+
203
+ &.active,
204
+ &:hover,
205
+ &:active,
206
+ &.expand-node:hover,
207
+ &.expand-node:active {
208
+ background-color: transparent;
209
+ }
210
+ }
211
+
212
+ &>.node-content-wraper {
213
+ width: fit-content;
214
+ position: relative;
215
+ display: flex;
216
+ justify-content: center;
217
+ align-items: center;
218
+
219
+ &>.mat-progress-bar {
220
+ height: 3px;
221
+ width: 100%;
222
+ position: absolute;
223
+ bottom: 0;
224
+ left: 10px;
225
+
226
+ .mat-progress-bar-fill::after {
227
+ background: theme-apply($primary);
228
+ }
229
+ }
230
+ }
231
+ }
232
+ }
233
+
234
+ .text-name {
235
+ position: relative;
236
+ overflow: hidden;
237
+ text-overflow: ellipsis;
238
+ display: -webkit-box;
239
+ -webkit-line-clamp: 2;
240
+ -webkit-box-orient: vertical;
241
+ cursor: pointer;
242
+ width: 100%;
243
+ }
244
+
245
+ .cursor-pointer {
246
+ cursor: pointer;
247
+ }
248
+
249
+ .ml-5 {
250
+ margin-left: 10px;
251
+ }
252
+
253
+ ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row {
254
+ .mat-checkbox-layout {
255
+ white-space: normal;
256
+ }
257
+
258
+ .mat-checkbox-label {
259
+ flex-direction: row;
260
+ align-items: center;
261
+ position: relative;
262
+ padding-bottom: 2px;
263
+ }
264
+ }
265
+ }