@kineticdata/bundle-queue 5.0.16 → 5.1.0

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 (41) hide show
  1. package/assets/styles/_assignments.scss +5 -1
  2. package/assets/styles/_queue_item_details.scss +23 -37
  3. package/assets/styles/_queue_list.scss +179 -90
  4. package/assets/styles/_status.scss +6 -17
  5. package/assets/styles/_submissions.scss +60 -9
  6. package/assets/styles/_temp.scss +4 -0
  7. package/lib/App.js +71 -72
  8. package/lib/components/FormPreview.js +62 -0
  9. package/lib/components/filter_menu/FilterMenuAbstract.js +112 -70
  10. package/lib/components/filter_menu/FilterMenuModal.js +316 -0
  11. package/lib/components/filter_menu/FilterMenuToolbar.js +309 -0
  12. package/lib/components/new_item_menu/NewItemMenu.js +15 -4
  13. package/lib/components/new_item_menu/NewItemMenuContainer.js +5 -12
  14. package/lib/components/queue_item/QueueItem.js +118 -39
  15. package/lib/components/queue_item/QueueItemDetails.js +179 -132
  16. package/lib/components/queue_list/BulkAssignModal.js +93 -0
  17. package/lib/components/queue_list/BulkStatusModal.js +169 -0
  18. package/lib/components/queue_list/BulkWorkModal.js +74 -0
  19. package/lib/components/queue_list/QueueList.js +52 -107
  20. package/lib/components/queue_list/QueueListContainer.js +35 -131
  21. package/lib/components/queue_list/QueueListItem.js +113 -24
  22. package/lib/components/queue_list/QueueListPagination.js +105 -14
  23. package/lib/components/queue_list/QueueListSelection.js +251 -0
  24. package/lib/components/queue_list/QueueListSidebar.js +114 -0
  25. package/lib/components/settings/QueueSettings.js +19 -26
  26. package/lib/components/settings/Settings.js +29 -46
  27. package/lib/components/settings/forms/FormActivity.js +29 -40
  28. package/lib/components/settings/forms/FormList.js +19 -37
  29. package/lib/components/settings/forms/FormSettings.js +33 -48
  30. package/lib/components/settings/forms/FormSubmissions.js +30 -47
  31. package/lib/components/shared/PageTitle.js +10 -3
  32. package/lib/components/shared/StatusContent.js +29 -28
  33. package/lib/components/work_menu/WorkMenu.js +4 -5
  34. package/lib/index.js +3 -0
  35. package/lib/records.js +5 -4
  36. package/lib/redux/modules/filterMenu.js +13 -11
  37. package/lib/redux/modules/queue.js +193 -89
  38. package/lib/redux/modules/queueApp.js +8 -2
  39. package/lib/redux/sagas/queue.js +518 -179
  40. package/lib/utils.js +0 -14
  41. package/package.json +4 -5
@@ -31,7 +31,7 @@
31
31
  &.focus {
32
32
  outline: none;
33
33
  border-color: $gray50;
34
- box-shadow: 0 0 1px 4px rgba($orange-kinops, .25);
34
+ box-shadow: 0 0 1px 4px rgba($orange-kinops, 0.25);
35
35
  }
36
36
 
37
37
  &.read-only .badge {
@@ -53,3 +53,7 @@
53
53
  cursor: default;
54
54
  }
55
55
  }
56
+ .btn-back .assignment-badge {
57
+ margin: -0.8125rem 0 -0.8125rem 1.5rem;
58
+ border: none;
59
+ }
@@ -7,9 +7,9 @@
7
7
 
8
8
  .section--general {
9
9
  color: $blue-lake;
10
- padding: 1.5rem;
11
10
  display: flex;
12
11
  flex-direction: column;
12
+ margin-bottom: 3rem;
13
13
 
14
14
  .timestamps {
15
15
  display: flex;
@@ -26,7 +26,7 @@
26
26
  .value {
27
27
  color: $blue-lake;
28
28
  margin-left: 0.25rem;
29
- &:hover{
29
+ &:hover {
30
30
  text-decoration: underline;
31
31
  }
32
32
  }
@@ -81,44 +81,30 @@
81
81
  width: 100%;
82
82
  }
83
83
 
84
- .section--subtasks {
85
- margin: 1.5rem;
86
- @media (max-width: 767px) {
87
- margin-bottom: 4rem;
88
- }
89
-
90
- .submissions {
91
- border-top: 1px solid $border-color;
92
- }
84
+ .empty-subtasks {
85
+ border-radius: $border-radius-lg;
86
+ background-color: $gray3;
87
+ text-align: center;
88
+ padding: 1.5em;
93
89
 
94
- .submission {
95
- padding: 0.75rem;
90
+ &__title {
91
+ color: $blue-lake;
92
+ font-size: 14px;
93
+ font-size: 1.25rem;
94
+ font-weight: 600;
95
+ line-height: 1.5rem;
96
+ margin-top: 1.5rem;
97
+ margin-bottom: 1.5rem;
98
+ display: block;
96
99
  }
97
100
 
98
- .empty-subtasks {
99
- border-radius: $border-radius-lg;
100
- background-color: $gray3;
101
- text-align: center;
102
- padding: 1.5em;
103
-
104
- &__title {
105
- color: $blue-lake;
106
- font-size: 14px;
107
- font-size: 1.25rem;
108
- font-weight: 600;
109
- line-height: 1.5rem;
110
- margin-top: 1.5rem;
111
- margin-bottom: 1.5rem;display: block;
112
- }
113
-
114
- &__message {
115
- color: $gray60;
116
- font-size: 0.875rem;
117
- line-height: 1.5rem;
118
- margin-top: 1.5rem;
119
- margin-bottom: 1.5rem;display: block;
120
- }
101
+ &__message {
102
+ color: $gray60;
103
+ font-size: 0.875rem;
104
+ line-height: 1.5rem;
105
+ margin-top: 1.5rem;
106
+ margin-bottom: 1.5rem;
107
+ display: block;
121
108
  }
122
109
  }
123
-
124
110
  }
@@ -3,10 +3,10 @@
3
3
  *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
4
4
 
5
5
  .queue-controls {
6
- &__filter {
7
- padding: 0.75rem 1.5rem 0;
6
+ &__heading {
7
+ padding: 0.625rem 1.5rem 0;
8
8
  background-color: $white;
9
- border-bottom: 2px solid $gray8;
9
+ border-bottom: 1px solid $border-color;
10
10
  display: flex;
11
11
  flex: 1 0 auto;
12
12
  justify-content: flex-start;
@@ -17,71 +17,103 @@
17
17
  content: '*';
18
18
  }
19
19
  }
20
+ .filters-dropdown .dropdown-toggle.edited .name {
21
+ font-style: italic;
22
+ &:after {
23
+ content: '*';
24
+ }
25
+ }
20
26
  }
21
- &__shortcuts {
27
+ &__filter {
22
28
  position: relative;
23
29
  display: flex;
24
- align-items: center;
25
- flex: 0 0 auto;
26
- background-color: $gray3;
27
- justify-content: space-between;
28
- padding: 0;
29
- .btn-subtle {
30
- background-color: $white;
31
- border: none;
32
- &.inactive {
33
- background-color: transparent;
34
- color: rgba($gray80, 0.75);
35
- }
36
- }
37
- &:after,
38
- &:before {
39
- content: ' ';
40
- position: absolute;
41
- top: 0;
42
- height: 2.75rem;
43
- width: 1.5rem;
44
- }
45
- &:after {
46
- right: 0;
47
- @include horizontal-gradient(rgba($gray3, 0), $gray3);
48
- }
49
- &:before {
50
- left: 0;
51
- @include horizontal-gradient($gray3, rgba($gray3, 0));
30
+ background-color: $gray-100;
31
+ border-bottom: 1px solid $border-color;
32
+ padding: 0.625rem 1.5rem;
33
+ }
34
+ &__summary {
35
+ position: relative;
36
+ display: flex;
37
+ background-color: $gray-100;
38
+ padding: 0.625rem 1.5rem;
39
+ font-size: 0.8125rem;
40
+ font-style: italic;
41
+ button {
42
+ color: $gray-600;
43
+ text-align: left;
52
44
  }
53
45
  }
54
- &__sorting {
46
+ &__pagination {
55
47
  display: flex;
56
48
  align-items: center;
57
49
  flex: 0 0 auto;
58
- justify-content: space-between;
59
- padding: 0.5rem 1.5rem;
60
- background-color: $gray3;
61
- .btn-subtle {
62
- background-color: $white;
63
- border: none;
64
- font-size: 0.75rem;
65
- &.inactive {
66
- background-color: transparent;
67
- color: rgba($gray80, 0.75);
50
+ justify-content: center;
51
+ padding: 0.25rem 1.5rem;
52
+ background-color: $gray-100;
53
+ border-top: 1px solid $border-color;
54
+ line-height: 1.75rem;
55
+ .selection-mode {
56
+ button.btn.btn-icon {
57
+ display: flex;
58
+ align-items: center;
59
+ padding: 0.25rem;
60
+ .icon {
61
+ display: flex;
62
+ align-items: center;
63
+ position: relative;
64
+ .fa-toggle-on,
65
+ .fa-toggle-off {
66
+ font-size: 1.375rem;
67
+ &:after {
68
+ content: '\f00c';
69
+ font-size: 0.625rem;
70
+ position: absolute;
71
+ top: calc((100% - 0.8125rem) / 2);
72
+ left: 15%;
73
+ }
74
+ }
75
+ .fa-toggle-on {
76
+ color: $primary;
77
+ &:after {
78
+ left: 49%;
79
+ }
80
+ }
81
+ + span {
82
+ margin-left: 0.25rem;
83
+ }
84
+ }
68
85
  }
69
86
  }
70
- .btn-subtle--close {
71
- padding: 0 0.5rem;
87
+ .paging {
88
+ display: flex;
89
+ align-items: center;
90
+ justify-content: center;
91
+ flex: 1 0 auto;
72
92
  }
73
- .btn-icon {
74
- font-size: 0.75rem;
93
+ .page-size {
94
+ display: flex;
95
+ align-items: center;
96
+ flex: 0 0 auto;
97
+ select {
98
+ flex: 0 0 auto;
99
+ border: none;
100
+ background-color: transparent;
101
+ font-size: 0.8125rem;
102
+ color: $body-color;
103
+ text-align-last: right;
104
+ }
75
105
  }
76
106
  }
77
- &__pagination {
107
+ &__selection {
78
108
  display: flex;
79
109
  align-items: center;
80
- flex: 0 0 auto;
81
- justify-content: center;
82
- padding: 0.25rem 1.5rem;
83
- background-color: $gray3;
84
- line-height: 1.75rem;
110
+ background-color: rgba($info, 0.08);
111
+ border-top: 1px solid $border-color;
112
+ padding: 0.625rem 1.5rem;
113
+ .details {
114
+ font-size: 0.875rem;
115
+ font-weight: 600;
116
+ }
85
117
  }
86
118
  &__item {
87
119
  &--right,
@@ -93,15 +125,38 @@
93
125
 
94
126
  h2 {
95
127
  color: #333333;
96
- font-size: 14px;
128
+ font-size: 0.875rem;
97
129
  font-weight: 600;
98
- line-height: 24px;
99
- margin: 0 0 0.75rem;
100
- flex: 0 0 auto;
130
+ line-height: 1.5rem;
131
+ margin: 0 0 0.625rem;
132
+ flex: 0 1 auto;
101
133
  .btn {
102
134
  color: #333333;
103
135
  }
104
136
  }
137
+ .filters-dropdown {
138
+ flex: 0 1 auto;
139
+ margin: 0 0 0.625rem;
140
+ .dropdown-toggle {
141
+ white-space: normal;
142
+ border-radius: $border-radius;
143
+ border: 1px solid $subtle;
144
+ background-color: $white;
145
+ padding: 0.25rem 0.75rem;
146
+ font-size: 0.875rem;
147
+ font-weight: 600;
148
+ .group {
149
+ color: $gray-600;
150
+ }
151
+ &:hover {
152
+ background-color: $gray-100;
153
+ }
154
+ }
155
+ .dropdown-menu {
156
+ max-height: 75vh;
157
+ overflow: auto;
158
+ }
159
+ }
105
160
  h6 {
106
161
  color: $blue-lake;
107
162
  font-size: 0.875rem;
@@ -113,13 +168,40 @@
113
168
  }
114
169
 
115
170
  .buttons {
116
- // display: flex;
117
- // align-self: center;
171
+ flex: 0 0 auto;
118
172
  margin-left: auto;
119
- margin-bottom: 0.75rem;
173
+ margin-bottom: 0.625rem;
120
174
  button {
121
175
  padding: 0.25rem;
176
+ span.icon {
177
+ // vertical-align: middle;
178
+ > .fa {
179
+ font-size: 1.125rem;
180
+ color: $gray-600;
181
+ }
182
+ &.active > .fa {
183
+ color: $primary;
184
+ }
185
+ + span {
186
+ margin-left: 0.125rem;
187
+ }
188
+ }
189
+ &.text-danger span.icon > .fa {
190
+ color: inherit;
191
+ }
192
+ &.unavailable {
193
+ cursor: not-allowed;
194
+ }
122
195
  }
196
+ > button,
197
+ > span {
198
+ &:not(:last-child) {
199
+ margin-right: 0.5rem;
200
+ }
201
+ }
202
+ }
203
+ &__selection .buttons {
204
+ margin-bottom: 0;
123
205
  }
124
206
  .nav-buttons {
125
207
  font-size: 0.5rem;
@@ -128,19 +210,20 @@
128
210
 
129
211
  .queue-filter-list {
130
212
  list-style: none;
131
- margin: 0 0 0 1rem;
132
- padding: 0;
213
+ margin-bottom: -0.5rem;
133
214
  display: flex;
134
215
  flex-wrap: wrap;
135
216
  flex: 1 1 auto;
136
- button.btn-subtle {
137
- background-color: #f1f1f1;
138
- margin-bottom: 0.75rem;
139
- color: $gray80;
140
- border: none;
217
+ button.btn {
141
218
  overflow: hidden;
142
219
  font-size: 0.75rem;
143
220
  }
221
+ .btn-group {
222
+ button.btn:first-child:not(:last-child) {
223
+ border-top-right-radius: 0;
224
+ border-bottom-right-radius: 0;
225
+ }
226
+ }
144
227
 
145
228
  input[type='checkbox'],
146
229
  input[type='radio'] {
@@ -148,6 +231,7 @@
148
231
  }
149
232
  > * {
150
233
  margin-right: 1rem;
234
+ margin-bottom: 0.5rem;
151
235
  }
152
236
  &--mobile {
153
237
  flex-wrap: nowrap;
@@ -168,17 +252,6 @@
168
252
  }
169
253
  }
170
254
 
171
- .queue-filter-save {
172
- display: flex;
173
- flex: 0 0 auto;
174
- margin: 0 0 0.75rem 1rem;
175
- padding: 0;
176
- button {
177
- font-size: 0.75rem;
178
- border: none;
179
- }
180
- }
181
-
182
255
  .items-grouping {
183
256
  &__banner {
184
257
  background-color: rgba($blue-lake, 0.015);
@@ -186,11 +259,11 @@
186
259
  justify-content: center;
187
260
  flex-wrap: nowrap;
188
261
  // margin-top: 1rem;
189
- border-top: 1rem solid rgba($gray16, 0.5);
262
+ border-top: 1rem solid rgba($border-color, 0.5);
190
263
  span {
191
264
  font-size: 0.75rem;
192
265
  font-weight: 600;
193
- color: $gray80;
266
+ color: $gray-800;
194
267
  text-align: center;
195
268
  line-height: 24px;
196
269
  white-space: nowrap;
@@ -212,12 +285,12 @@
212
285
  font-size: 0.875rem;
213
286
  &:focus {
214
287
  outline: none;
215
- border-color: $gray50;
288
+ border-color: $gray-500;
216
289
  box-shadow: 0 0 1px 4px rgba($orange-kinops, 0.25);
217
290
  }
218
291
  input[type='text'] {
219
292
  background: $white;
220
- border: 1px solid $gray16;
293
+ border: 1px solid $border-color;
221
294
  border-radius: 3px;
222
295
  width: 100%;
223
296
  }
@@ -226,30 +299,30 @@
226
299
  input[type='radio'] {
227
300
  position: relative;
228
301
  box-sizing: border-box;
229
- width: 13px;
230
- height: 13px;
231
302
  padding: 0;
232
303
  margin-right: 0.5rem;
233
304
  margin-left: 0;
234
- vertical-align: middle;
235
- position: relative;
236
- top: -1px;
237
305
  }
238
306
  input[type='radio'] {
239
307
  border: 1px solid green;
240
308
  }
241
309
  select {
242
310
  margin-bottom: 0.5rem;
243
- border: 1px solid $gray16;
311
+ border: 1px solid $border-color;
244
312
  border-radius: 3px;
245
313
  padding: 0.25rem;
246
314
  }
247
315
  label {
316
+ display: flex;
317
+ align-items: center;
248
318
  margin-bottom: 0.5rem;
249
319
  font-weight: 400;
250
320
  color: $body-color;
251
321
  // padding-left: 0;
252
322
  }
323
+ small {
324
+ margin-bottom: 0.5rem;
325
+ }
253
326
  &__content,
254
327
  &__validations {
255
328
  display: flex;
@@ -268,7 +341,7 @@
268
341
  }
269
342
  &__content + .filter-menu-dropdown__content,
270
343
  &__validations {
271
- border-top: 1px solid $gray16;
344
+ border-top: 1px solid $border-color;
272
345
  margin: 0 -0.75rem;
273
346
  padding: 0.5rem 0.75rem 0;
274
347
  }
@@ -276,7 +349,7 @@
276
349
  margin-bottom: -0.5rem;
277
350
  }
278
351
  &__footer {
279
- border-top: 1px solid $gray16;
352
+ border-top: 1px solid $border-color;
280
353
  margin: 0 -0.75rem;
281
354
  padding: 0.5rem 0.75rem 0;
282
355
  justify-content: space-between;
@@ -288,3 +361,19 @@
288
361
  }
289
362
  }
290
363
  }
364
+
365
+ .queue-sidebar {
366
+ width: 16rem;
367
+
368
+ .nav-tabs--vertical {
369
+ .nav-item {
370
+ &--header {
371
+ padding: 0.25rem 1.5rem;
372
+ }
373
+ .nav-link {
374
+ padding: 0.5rem 1.5rem;
375
+ font-weight: 500;
376
+ }
377
+ }
378
+ }
379
+ }
@@ -2,8 +2,14 @@
2
2
  * Status ~ Queue
3
3
  *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
4
4
 
5
+ .status-reason {
6
+ font-weight: 400;
7
+ font-style: italic;
8
+ }
5
9
  .status-content {
10
+ display: flex;
6
11
  flex: 0 0 auto;
12
+ font-size: 1rem;
7
13
  &--is-active {
8
14
  }
9
15
  p {
@@ -25,23 +31,6 @@
25
31
  padding: 0.125rem 0.625rem;
26
32
  border-radius: 1rem;
27
33
  color: $gray80;
28
- // display: block;
29
- &--cancelled {
30
- color: darken($red, 18);
31
- background-color: rgba($red, 0.1);
32
- }
33
- &--complete {
34
- color: darken($blue, 12);
35
- background-color: rgba($blue, 0.2);
36
- }
37
- &--open {
38
- color: darken($green-grass, 18);
39
- background-color: rgba($green-grass, 0.2);
40
- }
41
- &--pending {
42
- color: darken($orange, 24);
43
- background-color: rgba($orange, 0.2);
44
- }
45
34
  &--reason {
46
35
  color: darken($blue-sky, 12);
47
36
  font-size: 0.875rem;
@@ -4,14 +4,35 @@
4
4
  .submissions {
5
5
  // This represents the overall submission "card" in the queue list view.
6
6
  .submission {
7
- border-bottom: 1px solid $gray8;
7
+ border-bottom: 1px solid $gray-200;
8
8
  color: $blue-lake;
9
9
  display: flex;
10
10
  flex-direction: row;
11
11
  flex-wrap: nowrap;
12
12
  align-items: flex-start;
13
- padding: 0.75rem 1.5rem;
13
+ padding: 1.125rem 1.5rem;
14
+ user-select: none;
14
15
  @include setBgColorAndHover($white);
16
+ &.selection {
17
+ &:hover {
18
+ background-color: rgba($info, 0.03);
19
+ }
20
+ }
21
+ &.selected {
22
+ background-color: rgba($info, 0.05);
23
+ &:hover {
24
+ background-color: rgba($info, 0.07);
25
+ }
26
+ }
27
+ &.selection-disabled {
28
+ > * {
29
+ cursor: default;
30
+ }
31
+ background-color: $gray-100;
32
+ &:hover {
33
+ background-color: $gray-100;
34
+ }
35
+ }
15
36
  // This is the details part of the card.
16
37
  &:last-child {
17
38
  border-bottom: none;
@@ -21,7 +42,7 @@
21
42
  text-decoration: none;
22
43
  }
23
44
  &__title {
24
- color: $gray80;
45
+ color: $gray-800;
25
46
  font-size: 1.125rem;
26
47
  font-weight: 600;
27
48
  margin: 0.25rem 0;
@@ -31,9 +52,39 @@
31
52
  font-size: 0.875rem;
32
53
  line-height: 1.3125rem;
33
54
  margin-bottom: 0;
34
- color: $gray60;
55
+ color: $gray-600;
35
56
  display: flex;
36
57
  align-items: center;
58
+ .selection-toggle {
59
+ display: flex;
60
+ justify-content: center;
61
+ align-items: center;
62
+ margin-right: 0.5rem;
63
+ font-size: 1.0625rem;
64
+ &:before {
65
+ content: '\f096';
66
+ }
67
+ &.checked {
68
+ color: $info;
69
+ &:before {
70
+ content: '\f046';
71
+ }
72
+ }
73
+ &.disabled {
74
+ color: $gray-500;
75
+ &:after {
76
+ color: $danger;
77
+ content: '\f00d';
78
+ position: absolute;
79
+ font-size: 0.65em;
80
+ }
81
+ }
82
+ }
83
+ }
84
+ &:hover .submission__meta {
85
+ .selection-toggle:not(.disabled) {
86
+ color: rgba($info, 0.89);
87
+ }
37
88
  }
38
89
  &__handler,
39
90
  &__assignment {
@@ -52,21 +103,21 @@
52
103
  display: flex;
53
104
  flex-direction: row;
54
105
  flex-wrap: wrap;
55
-
106
+
56
107
  .list-group-item {
57
108
  padding: 0;
58
- color: $gray60;
109
+ color: $gray-600;
59
110
  background-color: transparent;
60
111
  font-weight: 400;
61
112
  font-size: 0.875rem;
62
113
  &:not(:last-child):after {
63
114
  content: '\2022';
64
- color: $gray50;
115
+ color: $gray-600;
65
116
  margin: 0 0.3125rem;
66
117
  }
67
118
  .time-ago__text {
68
- color: $blue-lake;
69
- &:hover{
119
+ color: $link-color;
120
+ &:hover {
70
121
  text-decoration: underline;
71
122
  }
72
123
  }
@@ -3,3 +3,7 @@
3
3
  * -Used for development
4
4
  * -Move css into appropriate sass files when ready
5
5
  *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
6
+
7
+ // .page-container {
8
+ // overflow: auto;
9
+ // }