raise-common-lib 0.0.57 → 0.0.60

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/bundles/raise-common-lib.umd.js +99 -8
  2. package/bundles/raise-common-lib.umd.js.map +1 -1
  3. package/bundles/raise-common-lib.umd.min.js +2 -2
  4. package/bundles/raise-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/common-grid/grid-action/grid-action-item/grid-action-item.component.js +52 -0
  6. package/esm2015/lib/common-grid/grid-action/grid-action.component.js +25 -0
  7. package/esm2015/lib/layout/main-container/index.component.js +5 -5
  8. package/esm2015/lib/raise-common-lib.module.js +13 -1
  9. package/esm2015/public-api.js +3 -1
  10. package/esm2015/raise-common-lib.js +2 -2
  11. package/esm5/lib/common-grid/grid-action/grid-action-item/grid-action-item.component.js +58 -0
  12. package/esm5/lib/common-grid/grid-action/grid-action.component.js +27 -0
  13. package/esm5/lib/layout/main-container/index.component.js +5 -5
  14. package/esm5/lib/raise-common-lib.module.js +13 -1
  15. package/esm5/public-api.js +3 -1
  16. package/esm5/raise-common-lib.js +2 -2
  17. package/fesm2015/raise-common-lib.js +91 -6
  18. package/fesm2015/raise-common-lib.js.map +1 -1
  19. package/fesm5/raise-common-lib.js +97 -6
  20. package/fesm5/raise-common-lib.js.map +1 -1
  21. package/lib/common-grid/grid-action/grid-action-item/grid-action-item.component.d.ts +7 -0
  22. package/lib/common-grid/grid-action/grid-action.component.d.ts +11 -0
  23. package/package.json +1 -1
  24. package/public-api.d.ts +2 -0
  25. package/raise-common-lib.metadata.json +1 -1
  26. package/src/assets/img/grid-action-copy.svg +6 -0
  27. package/src/assets/img/grid-action-delete.svg +14 -0
  28. package/src/assets/img/grid-action-detail.svg +7 -0
  29. package/src/assets/img/grid-action-download.svg +7 -0
  30. package/src/assets/img/grid-action-edit.svg +4 -0
  31. package/src/assets/img/grid-action-export.svg +12 -0
  32. package/src/assets/img/grid-action-move.svg +8 -0
  33. package/src/assets/img/grid-action-note.svg +10 -0
  34. package/src/assets/img/grid-action-send.svg +5 -0
  35. package/src/assets/img/grid-action-settle.svg +13 -0
  36. package/src/assets/img/grid-pager-arrow-left.svg +3 -0
  37. package/src/assets/img/grid-pager-arrows-left.svg +4 -0
  38. package/src/assets/img/more.svg +5 -0
  39. package/src/assets/img/table-column-menu.svg +5 -0
  40. package/src/assets/img/table-sort-arrow.svg +6 -0
  41. package/src/assets/style/reset/grid.scss +465 -121
@@ -4,66 +4,206 @@
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  border: 0;
7
- .e-headercell {
8
- height: var(--rs-grid-header-row-height);
9
- .e-headercelldiv {
10
- color: #44566c;
11
- font-family: Arial;
12
- font-size: var(--rs-grid-header-cell-font-size);
13
- font-weight: 700;
14
- line-height: 29px;
15
- height: 29px;
16
- }
17
- .e-rhandler {
18
- border-right: 0 !important;
19
- }
20
- .e-icons.e-columnmenu {
21
- color: #929dab !important;
22
- margin: 0;
23
- padding: 0;
24
- position: absolute;
25
- top: 0;
26
- right: 10px;
27
- height: 100%;
28
- display: flex;
29
- align-items: center;
30
- }
31
- .e-checkbox-wrapper {
32
- .e-icons {
7
+
8
+ .e-gridheader {
9
+ height: auto;
10
+ border-top: none;
11
+ border-bottom: none;
12
+
13
+ .e-headercell {
14
+ &:first-child {
15
+ padding-left: 8px;
16
+ }
17
+ height: 32px;
18
+ padding: 4px 8px;
19
+ --header-column-width: 0px;
20
+ --header-sort-width: 0px;
21
+
22
+ &.e-defaultcursor:first-child + .e-headercell {
23
+ padding-left: 0;
24
+ }
25
+
26
+ &.e-freezeleftborder {
27
+ border: none;
28
+ }
29
+
30
+ .e-rhandler {
31
+ border-right: 0 !important;
32
+ }
33
+
34
+ .e-icons.e-columnmenu {
35
+ position: absolute;
36
+ top: 50%;
37
+ right: 8px;
38
+ transform: translateY(-50%);
39
+ padding: 4px;
40
+ border-radius: 4px;
33
41
  margin: 0;
34
- display: none;
35
- &.e-check,
36
- &.e-stop {
42
+ float: unset;
43
+ }
44
+ .e-checkbox-wrapper {
45
+ .e-icons {
46
+ margin: 0;
47
+ display: none;
48
+ &.e-check,
49
+ &.e-stop {
50
+ display: inline-block;
51
+ color: #fff !important;
52
+ background-color: var(--rs-active-color);
53
+ border-color: var(--rs-active-color);
54
+ }
55
+ }
56
+ }
57
+ &:hover {
58
+ .e-checkbox-wrapper .e-icons {
37
59
  display: inline-block;
38
- color: #fff !important;
39
- background-color: var(--rs-active-color);
40
- border-color: var(--rs-active-color);
41
60
  }
42
61
  }
43
- }
44
- &:hover {
45
- .e-checkbox-wrapper .e-icons {
46
- display: inline-block;
62
+
63
+ .e-headercelldiv {
64
+ height: 24px;
65
+ padding: 4px;
66
+ padding-right: calc(
67
+ 4px + var(--header-column-width) + var(--header-sort-width)
68
+ );
69
+ margin: 0 !important;
70
+
71
+ border-radius: 4px;
72
+
73
+ display: flex;
74
+ flex-flow: row nowrap;
75
+ justify-content: flex-start;
76
+ align-items: center;
77
+
78
+ color: #44566c;
79
+ font-family: Arial;
80
+ font-size: var(--rs-grid-header-cell-font-size);
81
+ font-weight: 700;
82
+
83
+ &:hover {
84
+ background-color: rgba(31, 123, 255, 0.04);
85
+ }
86
+
87
+ &.e-headerchkcelldiv {
88
+ padding: 0;
89
+
90
+ .e-checkbox-wrapper {
91
+ width: 100%;
92
+ position: static;
93
+
94
+ display: flex;
95
+ flex-flow: row nowrap;
96
+ justify-content: center;
97
+ align-items: center;
98
+
99
+ .e-label {
100
+ display: none;
101
+ }
102
+ }
103
+ }
104
+
105
+ .e-headertext {
106
+ display: block;
107
+ width: 100%;
108
+ overflow: hidden;
109
+ }
110
+ }
111
+
112
+ &.e-ellipsistooltip .e-headercelldiv .e-headertext {
113
+ text-overflow: ellipsis;
114
+ }
115
+
116
+ .e-sortfilterdiv {
117
+ float: none;
118
+ clear: both;
119
+
120
+ width: 16px;
121
+ height: 16px;
122
+ padding: 0;
123
+ margin: 0;
124
+
125
+ position: absolute;
126
+ top: 50%;
127
+ right: 32px;
128
+ transform: translateY(-50%);
129
+
130
+ &.e-ascending::before,
131
+ &.e-descending::before {
132
+ content: " ";
133
+ display: block;
134
+ width: 16px;
135
+ height: 16px;
136
+ background-image: url("/assets/img/table-sort-arrow.svg");
137
+ background-repeat: no-repeat;
138
+ background-position: center center;
139
+ }
140
+
141
+ &.e-ascending::before {
142
+ transform: rotate(180deg);
143
+ }
144
+ }
145
+
146
+ &[aria-sort]:not(.e-rightalign):not([aria-sort="none"]) {
147
+ --header-sort-width: 16px;
148
+ }
149
+
150
+ &.e-mousepointer {
151
+ --header-column-width: 24px;
152
+ }
153
+
154
+ &.e-rightalign {
155
+ .e-headercelldiv {
156
+ justify-content: flex-end;
157
+ }
158
+
159
+ &[aria-sort]:not([aria-sort="none"]) .e-headercelldiv {
160
+ padding-left: 20px;
161
+ }
162
+
163
+ .e-sortfilterdiv {
164
+ right: auto;
165
+ left: 8px;
166
+ }
167
+ }
168
+
169
+ .e-headerchkcelldiv + .e-sortfilterdiv {
170
+ display: none;
171
+ }
172
+
173
+ .e-columnmenu {
174
+ position: absolute;
175
+ top: 50%;
176
+ right: 8px;
177
+ transform: translateY(-50%);
178
+
179
+ padding: 4px;
180
+ border-radius: 4px;
181
+
182
+ &:hover {
183
+ background-color: rgba(31, 123, 255, 0.08);
184
+ }
185
+
186
+ &::before {
187
+ content: url("/assets/img/table-column-menu.svg");
188
+ display: block;
189
+ width: 16px;
190
+ height: 16px;
191
+ }
192
+ }
193
+
194
+ &:not(.e-rcursor):hover .e-rhandler {
195
+ width: 8px;
196
+ border-right: 1px solid #dbe1e7;
197
+
198
+ &:hover {
199
+ border-color: #1f7bff;
200
+ }
47
201
  }
48
202
  }
49
203
  }
50
- .e-gridheader {
51
- border-bottom-color: transparent;
52
- padding-right: 5px;
53
- }
54
- .e-gridheader .e-fltr-icon .e-sortfilterdiv {
55
- color: #929dab !important;
56
- font-size: 13px !important;
57
- margin: 0;
58
- position: absolute;
59
- right: 30px;
60
- top: 0;
61
- height: 100%;
62
- display: flex;
63
- align-items: center;
64
- }
65
204
  .e-rowcell {
66
- padding: 2px 8px 3px;
205
+ padding: 2px 12px;
206
+
67
207
  &:not(.e-editedbatchcell):not(.e-updatedtd) {
68
208
  color: var(--rs-text-color);
69
209
  font-family: Arial;
@@ -85,17 +225,34 @@
85
225
  display: none;
86
226
  }
87
227
  .e-checkbox-wrapper {
228
+ width: 100%;
229
+ position: static;
230
+
231
+ display: flex;
232
+ flex-flow: row nowrap;
233
+ justify-content: center;
234
+ align-items: center;
235
+
236
+ .e-label {
237
+ display: none;
238
+ }
88
239
  .e-icons.e-check {
89
240
  color: #fff !important;
90
241
  background-color: var(--rs-active-color);
91
242
  border-color: var(--rs-active-color);
92
243
  }
93
244
  }
245
+ &.e-gridchkbox {
246
+ padding: 0;
247
+ &:first-child + .e-rowcell {
248
+ padding-left: 4px;
249
+ }
250
+ }
94
251
  }
95
- .e-gridchkbox{
252
+ .e-gridchkbox {
96
253
  &.e-active {
97
254
  .e-checkbox-wrapper {
98
- display: block;
255
+ display: flex;
99
256
  }
100
257
  }
101
258
  .e-checkbox-wrapper {
@@ -108,7 +265,7 @@
108
265
  ):not(.e-indentcell) {
109
266
  background-color: var(--rs-grid-row-hover-bg) !important; // hover bg
110
267
  .e-checkbox-wrapper {
111
- display: block;
268
+ display: flex;
112
269
  }
113
270
  .rowcell-menu {
114
271
  display: block;
@@ -133,82 +290,236 @@
133
290
  overflow: auto;
134
291
  }
135
292
  }
136
- }
137
- .e-pager {
138
- padding: 12px 0;
139
- height: 48px;
140
- font-family: Arial;
141
- border: 0;
142
- .e-pp,
143
- .e-pp:hover,
144
- .e-np,
145
- .e-np:hover,
146
- .e-parentmsgbar {
147
- padding: 0 !important;
148
- }
149
- .e-icons {
150
- padding: 5px !important;
151
- min-width: 20px !important;
152
- border: 0 !important;
293
+
294
+ .first-action-column {
295
+ display: inline-flex;
296
+ flex-flow: row nowrap;
297
+ align-items: center;
298
+
299
+ width: 100%;
300
+
301
+ .first-column-text {
302
+ flex: auto;
303
+ overflow: hidden;
304
+ text-overflow: ellipsis;
305
+
306
+ &.flex-text {
307
+ display: flex;
308
+ flex-flow: row nowrap;
309
+ }
310
+
311
+ .first-column-alert {
312
+ width: 4px;
313
+ margin-right: 8px;
314
+ color: red;
315
+ }
316
+ }
153
317
  }
154
- .e-pagercontainer,
155
- .e-parentmsgbar {
156
- line-height: 24px;
318
+ }
319
+ .e-gridpager {
320
+ position: relative;
321
+ padding: 12px 0 0;
322
+
323
+ display: flex;
324
+ flex-flow: row nowrap;
325
+ align-items: center;
326
+ gap: 16px;
327
+
328
+ .e-pagercontainer {
329
+ margin: 0;
157
330
  border: 0;
158
- color: #929dab;
159
- font-size: 10px;
160
- }
161
- .e-numericitem {
162
- &:hover {
163
- padding: 0 !important;
164
- }
165
- &.e-active {
166
- color: #1f3f5c;
331
+
332
+ display: flex;
333
+ flex-flow: row nowrap;
334
+ align-items: center;
335
+
336
+ .e-icons,
337
+ .e-spacing {
338
+ width: 24px;
339
+ min-width: 24px;
340
+ height: 24px;
341
+
342
+ border: none;
167
343
  border-radius: 6px;
168
- border: 1px solid rgba(31, 123, 255, 0.66);
344
+
345
+ display: flex;
346
+ flex-flow: row nowrap;
347
+ justify-content: center;
348
+ align-items: center;
349
+
350
+ color: #6c7c90;
351
+ font-family: Arial;
352
+ font-size: 11px;
353
+ font-style: normal;
354
+ font-weight: 400;
355
+ line-height: 14px;
356
+
357
+ &:hover,
358
+ &.e-focused {
359
+ background-color: #1f7bff0a;
360
+ }
361
+
362
+ &.e-disable {
363
+ opacity: 0.3;
364
+ cursor: not-allowed;
365
+ }
169
366
  }
170
- &.e-focused {
171
- background: #fff !important;
172
- box-shadow: none !important;
367
+
368
+ .e-icons {
369
+ &::before {
370
+ display: block;
371
+ width: 16px;
372
+ height: 16px;
373
+ }
374
+
375
+ &.e-first::before {
376
+ content: url("/assets/img/grid-pager-arrows-left.svg");
377
+ }
378
+
379
+ &.e-prev {
380
+ margin: 0 16px 0 12px;
381
+
382
+ &::before {
383
+ content: url("/assets/img/grid-pager-arrow-left.svg");
384
+ }
385
+ }
386
+
387
+ &.e-next {
388
+ margin: 0 12px 0 16px;
389
+
390
+ &::before {
391
+ content: url("/assets/img/grid-pager-arrow-left.svg");
392
+ transform: rotate(180deg);
393
+ }
394
+ }
395
+
396
+ &.e-last::before {
397
+ content: url("/assets/img/grid-pager-arrows-left.svg");
398
+ transform: rotate(180deg);
399
+ }
173
400
  }
174
- min-width: 24px;
175
- width: 24px;
176
- height: 24px;
177
- padding: 0 !important;
178
- line-height: 24px !important;
179
- border: 0;
180
- color: #6c7c90;
181
- font-size: 12px;
182
- }
183
- .e-numericcontainer {
184
- div {
185
- height: 24px;
401
+
402
+ .e-spacing {
403
+ &.e-pp {
404
+ margin-right: 12px;
405
+ }
406
+
407
+ &.e-np {
408
+ margin-left: 12px;
409
+ }
410
+
411
+ &.e-pp.e-disable,
412
+ &.e-np.e-disable {
413
+ display: none;
414
+ }
186
415
  }
187
- .e-currentitem {
188
- padding: 0;
189
- background: #fff;
416
+
417
+ .e-numericcontainer {
418
+ display: flex;
419
+ flex-flow: row nowrap;
420
+ justify-content: center;
421
+ align-items: center;
422
+
423
+ .e-numericitem {
424
+ border: 1px solid transparent;
425
+
426
+ &.e-currentitem {
427
+ border-color: #1f7bff66;
428
+ background-color: #fff;
429
+ }
430
+ }
431
+
432
+ div:not(:first-child) > .e-numericitem {
433
+ margin-left: 12px;
434
+ }
190
435
  }
191
436
  }
192
- .e-pagerconstant {
193
- margin: 0 0 0 16px;
194
- line-height: 24px;
437
+
438
+ .e-parentmsgbar {
439
+ float: none;
440
+ clear: both;
441
+
442
+ height: auto;
443
+ padding: 0;
444
+
445
+ position: absolute;
446
+ top: 50%;
447
+ right: 0;
448
+ transform: translateY(-50%);
449
+
195
450
  color: #929dab;
196
- font-size: 11px;
197
- }
198
- div.e-icons.e-pager-default {
199
- color: #6b6b6b;
200
- }
201
- .e-icons:not(.e-btn-icon) {
202
- color: #adb5bd;
203
- }
204
- .e-currentitem {
205
- font-size: 11px;
206
451
  font-family: Arial;
452
+ font-size: 11px;
453
+ font-style: normal;
454
+ font-weight: 400;
455
+ line-height: 14px;
207
456
  }
208
457
 
209
- .e-pagerdropdown {
210
- height: 24px !important;
211
- margin-top: -14px;
458
+ .e-pagesizes {
459
+ height: 24px;
460
+
461
+ display: flex;
462
+ flex-flow: row nowrap;
463
+ align-items: center;
464
+ gap: 8px;
465
+
466
+ .e-pagerdropdown {
467
+ margin: 0;
468
+ width: 60px;
469
+ height: 24px;
470
+
471
+ .e-input-group {
472
+ height: 24px;
473
+ padding: 0 0 0 8px;
474
+
475
+ border-radius: 4px;
476
+ border: 1px solid #eaedf0;
477
+ background-color: #fff;
478
+
479
+ display: flex;
480
+ flex-flow: row nowrap;
481
+ align-items: center;
482
+
483
+ &.e-icon-anim,
484
+ &:focus-within {
485
+ border-color: #1f7bffb8;
486
+ box-shadow: none;
487
+ }
488
+
489
+ &:hover {
490
+ border-color: #1f7bff80;
491
+ box-shadow: 0px 0px 3px 0px #1f7bff66;
492
+ }
493
+
494
+ &.e-icon-anim:hover,
495
+ &:not(.e-disabled):focus-within:hover {
496
+ border-color: #1f7bffb8;
497
+ }
498
+
499
+ .e-input {
500
+ height: 100%;
501
+ padding: 0;
502
+
503
+ color: #062c4f !important;
504
+ font-family: Arial;
505
+ font-size: 11px !important;
506
+ font-style: normal;
507
+ font-weight: 400;
508
+ line-height: 12px;
509
+ }
510
+ }
511
+ }
512
+
513
+ .e-pagerconstant {
514
+ margin: 0;
515
+
516
+ color: #929dab;
517
+ font-family: Arial;
518
+ font-size: 11px;
519
+ font-style: normal;
520
+ font-weight: 400;
521
+ line-height: 12px;
522
+ }
212
523
  }
213
524
  }
214
525
  .e-grid-menu {
@@ -274,9 +585,42 @@
274
585
  }
275
586
  .e-footer-content {
276
587
  display: flex;
277
- justify-content: space-between;
588
+ justify-content: flex-end;
278
589
  .e-btn {
279
- margin-left: 0;
590
+ font-family: var(--rs-font-family);
591
+ display: flex;
592
+ justify-content: center;
593
+ align-items: center;
594
+ gap: 6px;
595
+ font-style: normal;
596
+ border: 1px solid #adb5bd !important;
597
+ background: transparent !important;
598
+ color: var(--rs-cancel-btn-color) !important;
599
+ height: 32px;
600
+ min-width: 80px;
601
+ padding: 0 10px;
602
+ font-size: 12px;
603
+ border-radius: 4px;
604
+ box-shadow: none !important;
605
+ line-height: normal;
606
+ &.e-primary {
607
+ color: #fff !important;
608
+ border-color: var(--rs-primary-btn-bg) !important;
609
+ background: var(--rs-primary-btn-bg) !important;
610
+ font-weight: 700;
611
+ &:not([disabled]):hover,
612
+ &:not([disabled]):active,
613
+ &:not([disabled]):focus {
614
+ border-color: var(--rs-primary-btn-hover-bg) !important;
615
+ background: var(--rs-primary-btn-hover-bg) !important;
616
+ color: #fff !important;
617
+ }
618
+ &[disabled] {
619
+ color: #fff !important;
620
+ background: var(--rs-primary-btn-bg) !important;
621
+ border-color: var(--rs-primary-btn-bg) !important;
622
+ }
623
+ }
280
624
  }
281
625
  }
282
626
  }