playbook_ui 14.18.0.pre.alpha.dropdownautocomplete7493 → 14.18.0.pre.alpha.play1736highchartslinegraphdefaultrebuild7431
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +21 -304
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +1 -5
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +1 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.md +6 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows_no_subrows_react.jsx → _advanced_table_selectable_rows_no_subrows.jsx} +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows_rails.md +1 -5
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.md +2 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +5 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +2 -3
- data/app/pb_kits/playbook/pb_advanced_table/index.js +11 -228
- data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +1 -9
- data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +3 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +2 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.html.erb +2 -2
- data/app/pb_kits/playbook/pb_draggable/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_draggable/draggable.rb +1 -9
- data/app/pb_kits/playbook/pb_draggable/index.js +142 -139
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +0 -5
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +16 -5
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.html.erb +2 -5
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +64 -17
- data/app/pb_kits/playbook/pb_dropdown/docs/{_dropdown_with_autocomplete_with_subcomponents.jsx → _dropdown_with_autocomplete_and_custom_display.jsx} +25 -11
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.md +1 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_hook.jsx +79 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +4 -7
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +2 -2
- data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +0 -4
- data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +1 -45
- data/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +0 -10
- data/app/pb_kits/playbook/pb_dropdown/dropdown_container.rb +0 -3
- data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb +2 -12
- data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.rb +1 -3
- data/app/pb_kits/playbook/pb_dropdown/index.js +0 -57
- data/app/pb_kits/playbook/pb_dropdown/keyboard_accessibility.js +0 -26
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownContainer.tsx +2 -1
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownTrigger.tsx +4 -4
- data/app/pb_kits/playbook/pb_filter/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_form_group/_error_state_mixin.scss +18 -22
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx +1 -1
- data/app/pb_kits/playbook/pb_line_graph/lineGraphTheme.js +49 -0
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +0 -13
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +1 -3
- data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +0 -3
- data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js +0 -19
- data/app/pb_kits/playbook/pb_popover/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_popover/index.ts +1 -13
- data/app/pb_kits/playbook/pb_popover/popover.rb +0 -2
- data/app/pb_kits/playbook/pb_select/docs/_select_error.html.erb +1 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.html.erb +1 -1
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.html.erb +1 -5
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_error_state.html.erb +1 -8
- data/dist/chunks/{_typeahead-D8CsVBZO.js → _typeahead-0GuhDCLl.js} +2 -2
- data/dist/chunks/_weekday_stacked-DGgA3ilU.js +45 -0
- data/dist/chunks/{lib-BmTAc7Nc.js → lib-C8GLwWXp.js} +1 -1
- data/dist/chunks/{pb_form_validation-BWjy4bFn.js → pb_form_validation-Eul4XODx.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +16 -38
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.jsx +0 -80
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.md +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.html.erb +0 -58
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.md +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/flat_advanced_table.js +0 -106
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.html.erb +0 -43
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.html.erb +0 -55
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors_rails.md +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.html.erb +0 -28
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.html.erb +0 -58
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.md +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_external_control.md +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search.jsx +0 -61
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search.md +0 -2
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search_rails.html.erb +0 -52
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search_rails.md +0 -2
- data/app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.html.erb +0 -41
- data/app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.md +0 -1
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md +0 -1
- data/app/pb_kits/playbook/pb_line_graph/lineGraphTheme.ts +0 -110
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_country_search.html.erb +0 -10
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_country_search.jsx +0 -20
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_country_search.md +0 -1
- data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.html.erb +0 -46
- data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.md +0 -1
- data/dist/chunks/_weekday_stacked-Da8b-KUp.js +0 -45
- /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows_rails.html.erb → _advanced_table_selectable_rows.html.erb} +0 -0
- /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows_no_subrows_rails.html.erb → _advanced_table_selectable_rows_no_subrows.html.erb} +0 -0
- /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows.md → _advanced_table_selectable_rows_react.md} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_drop_zones_react.md → _draggable_drop_zones.md} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_drop_zones_colors_react.md → _draggable_drop_zones_colors.md} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d78c525af9420178f8164784e8a40900e53019c1bc40e9a166d1344d2ffa5e0a
|
4
|
+
data.tar.gz: fd328a2fb678d8011decad133fe86bc9906cec3d42b40c243609e0bd3face89d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a35c420eae17362abe96f14342a2da06f1b44bf5885020b0e995f9a4bf0db82a20c08ecf2e32e6d447ae193bb7fed9b019ad365cb248049f3506731e9f7e5e2e
|
7
|
+
data.tar.gz: e329136643397969ba9f0d7f6bec4f2aff534476ea73e152da63f912c5dee03d7fbbabdee5d5d5e4208381b68d4a1ab60794c7c71a4e7c55dd69122fca866e84
|
@@ -13,26 +13,6 @@
|
|
13
13
|
.pb_advanced_table {
|
14
14
|
$border-color: 1px solid $border_light;
|
15
15
|
|
16
|
-
// Base vertical border color variable setup
|
17
|
-
--column-border-color: #{$border_light};
|
18
|
-
|
19
|
-
// Define color tokens once
|
20
|
-
$border_color_options: (
|
21
|
-
"text_lt_default": $text_lt_default,
|
22
|
-
"text_lt_light": $text_lt_light,
|
23
|
-
"text_lt_lighter": $text_lt_lighter,
|
24
|
-
"text_dk_default": $text_dk_default,
|
25
|
-
"text_dk_light": $text_dk_light,
|
26
|
-
"text_dk_lighter": $text_dk_lighter
|
27
|
-
);
|
28
|
-
|
29
|
-
// Generate classes for each color option
|
30
|
-
@each $color_name, $color_value in $border_color_options {
|
31
|
-
&.column-group-border-#{$color_name} {
|
32
|
-
--column-border-color: #{$color_value};
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
16
|
[id$="-span"] {
|
37
17
|
word-wrap: normal;
|
38
18
|
}
|
@@ -366,133 +346,13 @@
|
|
366
346
|
}
|
367
347
|
}
|
368
348
|
|
369
|
-
//
|
349
|
+
// Vertical separator
|
370
350
|
.table-header-cells:first-child,
|
371
351
|
.table-header-cells-custom:first-child,
|
372
352
|
td:first-child,
|
373
353
|
.pb_table_td:first-child,
|
374
354
|
.checkbox-cell.checkbox-cell-header:first-child {
|
375
|
-
box-shadow: 1px 0px 0px 0px
|
376
|
-
}
|
377
|
-
|
378
|
-
// Color for collapsible trail
|
379
|
-
.collapsible-trail {
|
380
|
-
background-color: $border_light !important;
|
381
|
-
position: absolute;
|
382
|
-
top: 0;
|
383
|
-
bottom: 0;
|
384
|
-
width: 2px;
|
385
|
-
}
|
386
|
-
|
387
|
-
// Make sure all horizontal borders use the default border color
|
388
|
-
tr, th, td {
|
389
|
-
border-top-color: $border_light !important;
|
390
|
-
border-bottom-color: $border_light !important;
|
391
|
-
}
|
392
|
-
|
393
|
-
// Apply border colors when columnGroupBorderColor is set
|
394
|
-
&[class*="column-group-border-"] {
|
395
|
-
// For top-level column groups
|
396
|
-
.pb_advanced_table_header {
|
397
|
-
// The main column group headers
|
398
|
-
> tr:first-child {
|
399
|
-
th[colspan]:not([colspan="1"]):not(:last-child) {
|
400
|
-
border-right: 1px solid var(--column-border-color) !important;
|
401
|
-
}
|
402
|
-
}
|
403
|
-
|
404
|
-
// Subgroup headers
|
405
|
-
> tr:nth-child(2) {
|
406
|
-
th[colspan]:not([colspan="1"]):not(:last-child) {
|
407
|
-
border-right: 1px solid var(--column-border-color) !important;
|
408
|
-
}
|
409
|
-
|
410
|
-
// Last cell in each subgroup
|
411
|
-
th.last-header-cell:not(:last-child) {
|
412
|
-
border-right: 1px solid var(--column-border-color) !important;
|
413
|
-
}
|
414
|
-
}
|
415
|
-
|
416
|
-
// Individual column headers at subgroup boundaries
|
417
|
-
> tr:last-child {
|
418
|
-
// Last cell in each subgroup
|
419
|
-
th.last-header-cell:not(:last-child) {
|
420
|
-
border-right: 1px solid var(--column-border-color) !important;
|
421
|
-
}
|
422
|
-
}
|
423
|
-
}
|
424
|
-
|
425
|
-
// For data cells at column group boundaries
|
426
|
-
.pb_advanced_table_body {
|
427
|
-
// Apply to cells that are at column group boundaries
|
428
|
-
td.last-cell:not(:last-child),
|
429
|
-
.pb_table_td.last-cell:not(:last-child) {
|
430
|
-
border-right: 1px solid var(--column-border-color) !important;
|
431
|
-
}
|
432
|
-
|
433
|
-
// Virtualized row cells at column group boundaries
|
434
|
-
tr.virtualized-table-row {
|
435
|
-
td.last-cell:not(:last-child) {
|
436
|
-
border-right: 1px solid var(--column-border-color) !important;
|
437
|
-
}
|
438
|
-
}
|
439
|
-
}
|
440
|
-
|
441
|
-
// Sub-row headers
|
442
|
-
.toggle-content {
|
443
|
-
td {
|
444
|
-
border-bottom: 1px solid $border_light !important;
|
445
|
-
}
|
446
|
-
}
|
447
|
-
}
|
448
|
-
|
449
|
-
// Restore vertical border styling when verticalBorder is true
|
450
|
-
.pb_table[data-vertical-border="true"] {
|
451
|
-
.pb_advanced_table_header {
|
452
|
-
> tr:not(:first-child) {
|
453
|
-
th:not(:last-child) {
|
454
|
-
border-right: 1px solid $border_light !important;
|
455
|
-
}
|
456
|
-
}
|
457
|
-
}
|
458
|
-
|
459
|
-
.pb_advanced_table_body {
|
460
|
-
td:not(:last-child),
|
461
|
-
.pb_table_td:not(:last-child) {
|
462
|
-
border-right: 1px solid $border_light !important;
|
463
|
-
}
|
464
|
-
}
|
465
|
-
|
466
|
-
tr.virtualized-table-row {
|
467
|
-
td:not(:last-child) {
|
468
|
-
border-right: 1px solid $border_light !important;
|
469
|
-
}
|
470
|
-
}
|
471
|
-
|
472
|
-
// When both verticalBorder AND columnGroupBorderColor are set,
|
473
|
-
// override the default border-light with the custom color
|
474
|
-
&.pb_advanced_table[class*="column-group-border-"] {
|
475
|
-
.pb_advanced_table_header {
|
476
|
-
> tr:not(:first-child) {
|
477
|
-
th:not(:last-child) {
|
478
|
-
border-right: 1px solid var(--column-border-color) !important;
|
479
|
-
}
|
480
|
-
}
|
481
|
-
}
|
482
|
-
|
483
|
-
.pb_advanced_table_body {
|
484
|
-
td:not(:last-child),
|
485
|
-
.pb_table_td:not(:last-child) {
|
486
|
-
border-right: 1px solid var(--column-border-color) !important;
|
487
|
-
}
|
488
|
-
}
|
489
|
-
|
490
|
-
tr.virtualized-table-row {
|
491
|
-
td:not(:last-child) {
|
492
|
-
border-right: 1px solid var(--column-border-color) !important;
|
493
|
-
}
|
494
|
-
}
|
495
|
-
}
|
355
|
+
box-shadow: 1px 0px 0px 0px $border_light !important;
|
496
356
|
}
|
497
357
|
|
498
358
|
@include chrome_styles($border-color);
|
@@ -515,25 +375,12 @@
|
|
515
375
|
height: auto;
|
516
376
|
}
|
517
377
|
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
$color_value,
|
525
|
-
$white,
|
526
|
-
lighten($silver, $opacity_7)
|
527
|
-
);
|
528
|
-
} @else if $theme == "dark" {
|
529
|
-
@include advanced-table-sticky-mixin(
|
530
|
-
$color_value,
|
531
|
-
$bg_dark_card,
|
532
|
-
$bg_dark
|
533
|
-
);
|
534
|
-
}
|
535
|
-
}
|
536
|
-
}
|
378
|
+
.collapsible-trail {
|
379
|
+
background-color: $border_light;
|
380
|
+
position: absolute;
|
381
|
+
top: 0;
|
382
|
+
bottom: 0;
|
383
|
+
width: 2px;
|
537
384
|
}
|
538
385
|
|
539
386
|
// Sticky Left Columns Styling
|
@@ -550,9 +397,6 @@
|
|
550
397
|
$white,
|
551
398
|
lighten($silver, $opacity_7)
|
552
399
|
);
|
553
|
-
|
554
|
-
// Apply border colors for sticky columns
|
555
|
-
@include apply-sticky-colors("light");
|
556
400
|
}
|
557
401
|
|
558
402
|
// Responsive Styles
|
@@ -560,29 +404,13 @@
|
|
560
404
|
&[class*="advanced-table-responsive-scroll"] {
|
561
405
|
overflow-x: auto;
|
562
406
|
width: 100%;
|
563
|
-
|
564
|
-
// These are the responsive borders that should NOT inherit the custom color
|
565
407
|
@include advanced-table-sticky-mixin(
|
566
408
|
$border_light,
|
567
409
|
$white,
|
568
410
|
lighten($silver, $opacity_7)
|
569
411
|
);
|
570
|
-
|
571
|
-
// Override any columnGroupBorderColor inheritance for responsive borders
|
572
|
-
.sticky-left {
|
573
|
-
box-shadow: $shadow_deep !important;
|
574
|
-
}
|
575
|
-
|
576
|
-
.pb_advanced_table_header,
|
577
|
-
.pb_advanced_table_body {
|
578
|
-
th.sticky-left,
|
579
|
-
td.sticky-left {
|
580
|
-
border-right: 1px solid $border_light !important;
|
581
|
-
}
|
582
|
-
}
|
583
412
|
}
|
584
413
|
}
|
585
|
-
|
586
414
|
@media only screen and (min-width: $screen-xl-min) {
|
587
415
|
&[class*="advanced-table-responsive-scroll"] {
|
588
416
|
overflow-x: visible;
|
@@ -590,20 +418,6 @@
|
|
590
418
|
}
|
591
419
|
|
592
420
|
&.dark {
|
593
|
-
// Override default border color for dark mode
|
594
|
-
--column-border-color: #{$border_dark};
|
595
|
-
|
596
|
-
// Dark mode default border colors for trails and horizontal borders
|
597
|
-
.collapsible-trail {
|
598
|
-
background-color: $border_dark !important;
|
599
|
-
}
|
600
|
-
|
601
|
-
// Make sure all horizontal borders use the default border color in dark mode
|
602
|
-
tr, th, td {
|
603
|
-
border-top-color: $border_dark !important;
|
604
|
-
border-bottom-color: $border_dark !important;
|
605
|
-
}
|
606
|
-
|
607
421
|
.bg-white {
|
608
422
|
background: $bg_dark_card;
|
609
423
|
}
|
@@ -632,104 +446,13 @@
|
|
632
446
|
}
|
633
447
|
|
634
448
|
.table-header-cells:first-child,
|
635
|
-
.table-header-cells-custom:first-child,
|
636
449
|
td:first-child,
|
637
|
-
.pb_table_td:first-child
|
638
|
-
|
639
|
-
box-shadow: 1px 0px 0px 0px var(--column-border-color) !important;
|
450
|
+
.pb_table_td:first-child {
|
451
|
+
box-shadow: 1px 0px 0px 0px $border_dark !important;
|
640
452
|
}
|
641
453
|
|
642
|
-
|
643
|
-
|
644
|
-
// For top-level column groups (ENROLLMENT DATA, PERFORMANCE DATA)
|
645
|
-
.pb_advanced_table_header {
|
646
|
-
// The main column group headers - NOT the last column
|
647
|
-
> tr:first-child {
|
648
|
-
th[colspan]:not([colspan="1"]):not(:last-child) {
|
649
|
-
border-right: 1px solid var(--column-border-color) !important;
|
650
|
-
}
|
651
|
-
}
|
652
|
-
|
653
|
-
// Subgroup headers
|
654
|
-
> tr:nth-child(2) {
|
655
|
-
th[colspan]:not([colspan="1"]):not(:last-child) {
|
656
|
-
border-right: 1px solid var(--column-border-color) !important;
|
657
|
-
}
|
658
|
-
|
659
|
-
// Last cell in each subgroup
|
660
|
-
th.last-header-cell:not(:last-child) {
|
661
|
-
border-right: 1px solid var(--column-border-color) !important;
|
662
|
-
}
|
663
|
-
}
|
664
|
-
|
665
|
-
// Individual column headers at subgroup boundaries
|
666
|
-
> tr:last-child {
|
667
|
-
// Last cell in each subgroup
|
668
|
-
th.last-header-cell:not(:last-child) {
|
669
|
-
border-right: 1px solid var(--column-border-color) !important;
|
670
|
-
}
|
671
|
-
}
|
672
|
-
}
|
673
|
-
|
674
|
-
// For data cells at column group boundaries in dark mode
|
675
|
-
.pb_advanced_table_body {
|
676
|
-
// Apply to cells that are at column group boundaries
|
677
|
-
td.last-cell:not(:last-child),
|
678
|
-
.pb_table_td.last-cell:not(:last-child) {
|
679
|
-
border-right: 1px solid var(--column-border-color) !important;
|
680
|
-
}
|
681
|
-
|
682
|
-
// Virtualized row cells at column group boundaries
|
683
|
-
tr.virtualized-table-row {
|
684
|
-
td.last-cell:not(:last-child) {
|
685
|
-
border-right: 1px solid var(--column-border-color) !important;
|
686
|
-
}
|
687
|
-
}
|
688
|
-
}
|
689
|
-
|
690
|
-
// Sub-row headers
|
691
|
-
.toggle-content {
|
692
|
-
td {
|
693
|
-
border-bottom: 1px solid $border_dark !important;
|
694
|
-
}
|
695
|
-
}
|
696
|
-
}
|
697
|
-
|
698
|
-
// Restore vertical border styling in dark mode when verticalBorder is true
|
699
|
-
.pb_table[data-vertical-border="true"] {
|
700
|
-
.pb_advanced_table_header {
|
701
|
-
> tr:not(:first-child) {
|
702
|
-
th:not(:last-child) {
|
703
|
-
border-right: 1px solid $border_dark !important;
|
704
|
-
}
|
705
|
-
}
|
706
|
-
}
|
707
|
-
|
708
|
-
.pb_advanced_table_body {
|
709
|
-
td:not(:last-child),
|
710
|
-
.pb_table_td:not(:last-child) {
|
711
|
-
border-right: 1px solid $border_dark !important;
|
712
|
-
}
|
713
|
-
}
|
714
|
-
|
715
|
-
// When both verticalBorder AND columnGroupBorderColor are set in dark mode,
|
716
|
-
// override the default border-dark with the custom color
|
717
|
-
&.pb_advanced_table[class*="column-group-border-"] {
|
718
|
-
.pb_advanced_table_header {
|
719
|
-
> tr:not(:first-child) {
|
720
|
-
th:not(:last-child) {
|
721
|
-
border-right: 1px solid var(--column-border-color) !important;
|
722
|
-
}
|
723
|
-
}
|
724
|
-
}
|
725
|
-
|
726
|
-
.pb_advanced_table_body {
|
727
|
-
td:not(:last-child),
|
728
|
-
.pb_table_td:not(:last-child) {
|
729
|
-
border-right: 1px solid var(--column-border-color) !important;
|
730
|
-
}
|
731
|
-
}
|
732
|
-
}
|
454
|
+
.collapsible-trail {
|
455
|
+
background-color: $border_dark !important;
|
733
456
|
}
|
734
457
|
|
735
458
|
.sort-button-icon,
|
@@ -761,6 +484,15 @@
|
|
761
484
|
}
|
762
485
|
}
|
763
486
|
|
487
|
+
// Vertical separator
|
488
|
+
.table-header-cells:first-child,
|
489
|
+
.table-header-cells-custom:first-child,
|
490
|
+
td:first-child,
|
491
|
+
.pb_table_td:first-child,
|
492
|
+
.checkbox-cell.checkbox-cell-header:first-child {
|
493
|
+
box-shadow: 1px 0px 0px 0px $border_dark !important;
|
494
|
+
}
|
495
|
+
|
764
496
|
// Fullscreen
|
765
497
|
&.advanced-table-fullscreen {
|
766
498
|
background: $bg_dark;
|
@@ -794,26 +526,11 @@
|
|
794
526
|
}
|
795
527
|
}
|
796
528
|
}
|
797
|
-
|
798
|
-
// These are the responsive borders that should NOT inherit the custom color
|
799
529
|
@include advanced-table-sticky-mixin(
|
800
530
|
$border_dark,
|
801
531
|
$bg_dark_card,
|
802
532
|
$bg_dark
|
803
533
|
);
|
804
|
-
|
805
|
-
// Override any columnGroupBorderColor inheritance for responsive borders in dark mode
|
806
|
-
.sticky-left {
|
807
|
-
box-shadow: $shadow_deep !important;
|
808
|
-
}
|
809
|
-
|
810
|
-
.pb_advanced_table_header,
|
811
|
-
.pb_advanced_table_body {
|
812
|
-
th.sticky-left,
|
813
|
-
td.sticky-left {
|
814
|
-
border-right: 1px solid $border_dark !important;
|
815
|
-
}
|
816
|
-
}
|
817
534
|
}
|
818
535
|
}
|
819
536
|
}
|
@@ -34,7 +34,6 @@ type AdvancedTableProps = {
|
|
34
34
|
children?: React.ReactNode | React.ReactNode[]
|
35
35
|
className?: string
|
36
36
|
columnDefinitions: GenericObject[]
|
37
|
-
columnGroupBorderColor?: "text_lt_default" | "text_lt_light" | "text_lt_lighter" | "text_dk_default" | "text_dk_light" | "text_dk_lighter"
|
38
37
|
dark?: boolean
|
39
38
|
data?: { [key: string]: string }
|
40
39
|
enableToggleExpansion?: "all" | "header" | "none"
|
@@ -72,7 +71,6 @@ const AdvancedTable = (props: AdvancedTableProps) => {
|
|
72
71
|
children,
|
73
72
|
className,
|
74
73
|
columnDefinitions,
|
75
|
-
columnGroupBorderColor,
|
76
74
|
dark = false,
|
77
75
|
data = {},
|
78
76
|
enableToggleExpansion = "header",
|
@@ -241,7 +239,6 @@ const AdvancedTable = (props: AdvancedTableProps) => {
|
|
241
239
|
'advanced-table-allow-fullscreen': allowFullScreen
|
242
240
|
},
|
243
241
|
{'advanced-table-sticky-left-columns': stickyLeftColumn && stickyLeftColumn.length > 0},
|
244
|
-
columnGroupBorderColor ? `column-group-border-${columnGroupBorderColor}` : '',
|
245
242
|
globalProps(props),
|
246
243
|
className
|
247
244
|
);
|
@@ -285,7 +282,6 @@ const AdvancedTable = (props: AdvancedTableProps) => {
|
|
285
282
|
{renderFullscreenHeader()}
|
286
283
|
<AdvancedTableProvider
|
287
284
|
columnDefinitions={columnDefinitions}
|
288
|
-
columnGroupBorderColor={columnGroupBorderColor}
|
289
285
|
enableToggleExpansion={enableToggleExpansion}
|
290
286
|
enableVirtualization={virtualizedRows}
|
291
287
|
expandByDepth={expandByDepth}
|
@@ -338,7 +334,7 @@ const AdvancedTable = (props: AdvancedTableProps) => {
|
|
338
334
|
</Table>
|
339
335
|
</React.Fragment>
|
340
336
|
</AdvancedTableProvider>
|
341
|
-
|
337
|
+
|
342
338
|
</div>
|
343
339
|
{/* Bottom Pagination */}
|
344
340
|
{pagination && (
|
@@ -7,9 +7,6 @@ module Playbook
|
|
7
7
|
default: []
|
8
8
|
prop :column_definitions, type: Playbook::Props::Array,
|
9
9
|
default: []
|
10
|
-
prop :column_group_border_color, type: Playbook::Props::Enum,
|
11
|
-
values: %w[text_lt_default text_lt_light text_lt_lighter text_dk_default text_dk_light text_dk_lighter none],
|
12
|
-
default: "none"
|
13
10
|
prop :enable_toggle_expansion, type: Playbook::Props::Enum,
|
14
11
|
values: %w[all header none],
|
15
12
|
default: "header"
|
@@ -27,9 +24,7 @@ module Playbook
|
|
27
24
|
default: false
|
28
25
|
|
29
26
|
def classname
|
30
|
-
|
31
|
-
additional_classes << "column-group-border-#{column_group_border_color}" if column_group_border_color != "none"
|
32
|
-
generate_classname("pb_advanced_table", *additional_classes, separator: " ")
|
27
|
+
generate_classname("pb_advanced_table", responsive_classname, max_height_classname, separator: " ")
|
33
28
|
end
|
34
29
|
|
35
30
|
def responsive_classname
|
@@ -1,3 +1,9 @@
|
|
1
|
+
**BETA VERSION**
|
2
|
+
This kit's Rails version is currently under development. Some features may not work as expected, and breaking changes may still occur; use with caution.
|
3
|
+
<br />
|
4
|
+
<br />
|
5
|
+
<br />
|
6
|
+
|
1
7
|
The AdvancedTable kit accepts tree data and automatically renders expansion controls for nested subrows, to any depth, based on the data it is given. In it's simplest form, __the kit has two required props__:
|
2
8
|
|
3
9
|
### table_data
|
@@ -2,7 +2,7 @@ import React from "react"
|
|
2
2
|
import AdvancedTable from '../../pb_advanced_table/_advanced_table'
|
3
3
|
import MOCK_DATA from "./advanced_table_mock_data_no_subrows.json"
|
4
4
|
|
5
|
-
const
|
5
|
+
const AdvancedTableSelectableRowsNoSubrows = (props) => {
|
6
6
|
const columnDefinitions = [
|
7
7
|
{
|
8
8
|
accessor: "year",
|
@@ -49,4 +49,4 @@ const AdvancedTableSelectableRowsNoSubrowsReact = (props) => {
|
|
49
49
|
)
|
50
50
|
}
|
51
51
|
|
52
|
-
export default
|
52
|
+
export default AdvancedTableSelectableRowsNoSubrows
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows_rails.md
CHANGED
@@ -1,5 +1 @@
|
|
1
|
-
`selectable_rows` can also be used with tables without nested row data. Set `enable_toggle_expansion: none` to adjust the Advanced Table styling to fit a table without subrows.
|
2
|
-
|
3
|
-
The data attribute `data-selected-rows` on the parent `pb_advanced_table` div will update dynamically with each selection to show an array of ids corresponding to the current selection.
|
4
|
-
|
5
|
-
__NOTE__: Each object within the `table_data` Array must contain a unique id in order to attach an id to all Rows for this to function.
|
1
|
+
`selectable_rows` can also be used with tables without nested row data. Set `enable_toggle_expansion: none` to adjust the Advanced Table styling to fit a table without subrows.
|
@@ -2,6 +2,5 @@
|
|
2
2
|
|
3
3
|
When a parent row is clicked, it will check all nested children rows, Children rows can be manually checked or unchecked as well.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
__NOTE__: Each object within the `table_data` Array must contain a unique id in order to attach an id to all Rows for this to function.
|
5
|
+
__ALERT TO DEVS__: UPDATE THIS PARAGRAPH IN THE FOLLOW UP STORY WHEN CHECKBOX FUNCTIONALITY IS SET PLEASE
|
6
|
+
The `onRowSelectionChange` prop returns an array of ids of all Rows that have been selected. Open the console on this example and check and uncheck checkboxes to see this is action! __NOTE__: Each object within the `tableData`Array must contain a unique id in order to attach an id to all Rows for this to function.
|
@@ -12,9 +12,9 @@ examples:
|
|
12
12
|
- advanced_table_custom_cell_rails: Custom Components for Cells
|
13
13
|
- advanced_table_column_headers: Multi-Header Columns
|
14
14
|
- advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
|
15
|
-
-
|
16
|
-
-
|
17
|
-
|
15
|
+
# - advanced_table_selectable_rows: Selectable Rows
|
16
|
+
# - advanced_table_selectable_rows_no_subrows: Selectable Rows (No Subrows)
|
17
|
+
|
18
18
|
|
19
19
|
react:
|
20
20
|
- advanced_table_default: Default (Required Props)
|
@@ -39,11 +39,10 @@ examples:
|
|
39
39
|
- advanced_table_column_headers: Multi-Header Columns
|
40
40
|
- advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
|
41
41
|
- advanced_table_column_headers_custom_cell: Multi-Header Columns with Custom Cells
|
42
|
-
- advanced_table_column_border_color: Column Group Border Color
|
43
42
|
# - advanced_table_no_subrows: Table with No Subrows
|
44
43
|
- advanced_table_selectable_rows: Selectable Rows
|
45
|
-
-
|
44
|
+
- advanced_table_selectable_rows_no_subrows: Selectable Rows (No Subrows)
|
46
45
|
- advanced_table_selectable_rows_actions: Selectable Rows (With Actions)
|
47
46
|
- advanced_table_selectable_rows_header: Selectable Rows (No Actions Bar)
|
48
47
|
- advanced_table_inline_editing: Inline Cell Editing
|
49
|
-
- advanced_table_fullscreen: Fullscreen
|
48
|
+
- advanced_table_fullscreen: Fullscreen
|
@@ -15,7 +15,7 @@ export { default as AdvancedTablePaginationWithProps } from './_advanced_table_p
|
|
15
15
|
export { default as AdvancedTableColumnHeaders } from './_advanced_table_column_headers.jsx'
|
16
16
|
export { default as AdvancedTableColumnHeadersMultiple } from './_advanced_table_column_headers_multiple.jsx'
|
17
17
|
export { default as AdvancedTableSelectableRows } from './_advanced_table_selectable_rows.jsx'
|
18
|
-
export { default as
|
18
|
+
export { default as AdvancedTableSelectableRowsNoSubrows } from './_advanced_table_selectable_rows_no_subrows.jsx'
|
19
19
|
export { default as AdvancedTableNoSubrows } from './_advanced_table_no_subrows.jsx'
|
20
20
|
export { default as AdvancedTableSelectableRowsHeader } from './_advanced_table_selectable_rows_header.jsx'
|
21
21
|
export { default as AdvancedTableSelectableRowsActions } from './_advanced_table_selectable_rows_actions.jsx'
|
@@ -26,5 +26,4 @@ export { default as AdvancedTableFullscreen } from './_advanced_table_fullscreen
|
|
26
26
|
export { default as AdvancedTableStickyColumns } from './_advanced_table_sticky_columns.jsx'
|
27
27
|
export { default as AdvancedTableStickyHeader } from './_advanced_table_sticky_header.jsx'
|
28
28
|
export { default as AdvancedTableStickyColumnsAndHeader } from './_advanced_table_sticky_columns_and_header.jsx'
|
29
|
-
export { default as AdvancedTableExpandByDepth } from './_advanced_table_expand_by_depth.jsx'
|
30
|
-
export { default as AdvancedTableColumnBorderColor} from './_advanced_table_column_border_color.jsx'
|
29
|
+
export { default as AdvancedTableExpandByDepth } from './_advanced_table_expand_by_depth.jsx'
|