playbook_ui 14.21.0 → 14.21.1.pre.alpha.PLAY2163roundedbottomcornersrails8143

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 238f79cc12714d5308f9c5313a0de643c70640fd43be04fe4836dbe2728d5041
4
- data.tar.gz: 958840963550c75488c8d2150609e48717d7438a5c470368df8a5fce4ee5ff90
3
+ metadata.gz: 261d49972260d48525638957d0bc576040c9f2af7dbf91813c2e3a1f52c9444e
4
+ data.tar.gz: b3fdc7f37fe205f50b8644e705381f11dbbf4f2e55322945e2f3d6f0a9e456b3
5
5
  SHA512:
6
- metadata.gz: 1bc844d45f1484a2010f47afb1399692251afe1a703e498d03fd85b6514a173ae00e2fcd2ac671379aad75887ee3994717467f7525385e69567ff7afe66181b3
7
- data.tar.gz: 17d63048ce235183acd0e78586247b70854cd7e66cecff34726bc3f7763198e31017cdef6b932113d1045bf570bffb2c822e0dedc28649ad38fe42ed2c7d6e72
6
+ metadata.gz: 1f004dab7f6f6b7d70d14fa26e965a01f238e90d6b64a8ffb63cf6666c424dfdeae33adad6fbcc215bfbcdf5ae56cebe820bc3e751de698cd4dac10dcda6bc8c
7
+ data.tar.gz: e87ea7b0af0db639203ed63f0d5125458903730f6b12de14e00af1c7a78f3eb307ad3c25092610796f915591bd5229330b6f9b38ec4b46df2b893f2d7834c81f
@@ -40,7 +40,7 @@
40
40
 
41
41
  -ms-overflow-style: none !important;
42
42
  scrollbar-width: thin !important;
43
- scrollbar-color: rgb(0 0 0 / .20) transparent;
43
+ scrollbar-color: #00000033 transparent !important;
44
44
  }
45
45
 
46
46
  [id$="-span"] {
@@ -563,6 +563,7 @@
563
563
  // Sticky Left Columns Styling
564
564
  &[class*="advanced-table-sticky-left-columns"] {
565
565
  overflow-x: scroll;
566
+ @include scrollbar-styling;
566
567
  .sticky-left {
567
568
  position: sticky !important;
568
569
  z-index: 2;
@@ -582,6 +583,7 @@
582
583
  &[class*="advanced-table-responsive-scroll"] {
583
584
  overflow-x: auto;
584
585
  width: 100%;
586
+ @include scrollbar-styling;
585
587
 
586
588
  // These are the responsive borders that should NOT inherit the custom color
587
589
  @include advanced-table-sticky-mixin(
@@ -620,6 +622,23 @@
620
622
  box-shadow: 0 4px 10px 0 rgba($shadow, 0.16) !important;
621
623
  }
622
624
 
625
+ // For Rails, we can't target the &:last-child since collapsed rows are display: none;
626
+ // With JS, we add a .last-visible-row class and add rounded corners to bottom row
627
+ .last-visible-row {
628
+ td, .pb_table_td {
629
+ border-width: 0 0 1px 0;
630
+
631
+ &:first-child {
632
+ border-radius: 0 0 0 4px;
633
+ border-width: 0 0 1px 1px;
634
+ }
635
+ &:last-child {
636
+ border-radius: 0 0 4px 0;
637
+ border-width: 0 1px 1px 0;
638
+ }
639
+ }
640
+ }
641
+
623
642
  &.dark {
624
643
  // Override default border color for dark mode
625
644
  --column-border-color: #{$border_dark};
@@ -51,7 +51,7 @@
51
51
  ]
52
52
  %>
53
53
 
54
- <%= pb_rails("advanced_table", props: { table_data: @table_data, column_definitions: column_definitions }) do %>
54
+ <%= pb_rails("advanced_table", props: { table_data: @table_data, column_definitions: column_definitions, id: "advanced_table_sorting" }) do %>
55
55
  <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
56
56
  <%= pb_rails("advanced_table/table_body", props: { id: "beta_sort", table_data: @table_data, column_definitions: column_definitions, enable_toggle_expansion: "all" }) %>
57
57
  <% end %>
@@ -34,7 +34,7 @@
34
34
  subrow_headers = ["Quarter", "Month", "Day"]
35
35
  %>
36
36
 
37
- <%= pb_rails("advanced_table", props: { table_data: @table_data, column_definitions: column_definitions }) do %>
37
+ <%= pb_rails("advanced_table", props: { table_data: @table_data, column_definitions: column_definitions, id: "subrow_headers" }) do %>
38
38
  <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
39
39
  <%= pb_rails("advanced_table/table_body", props: { id: "test_table", table_data: @table_data, column_definitions: column_definitions, subrow_headers: subrow_headers, enable_toggle_expansion: "all" }) %>
40
40
  <% end %>
@@ -55,4 +55,4 @@
55
55
  },
56
56
  ] %>
57
57
 
58
- <%= pb_rails("advanced_table", props: { id: "beta_table_with_muilti_headers", table_data: @table_data, column_definitions: column_definitions, column_group_border_color: "text_lt_default", table_props: { vertical_border: true } }) %>
58
+ <%= pb_rails("advanced_table", props: { id: "beta_table_with_color_headers", table_data: @table_data, column_definitions: column_definitions, column_group_border_color: "text_lt_default", table_props: { vertical_border: true } }) %>
@@ -30,4 +30,4 @@
30
30
  }
31
31
  ] %>
32
32
 
33
- <%= pb_rails("advanced_table", props: { id: "beta_table", table_data: @table_data, column_definitions: column_definitions, loading: true }) %>
33
+ <%= pb_rails("advanced_table", props: { id: "loading_table", table_data: @table_data, column_definitions: column_definitions, loading: true }) %>
@@ -30,4 +30,4 @@
30
30
  }
31
31
  ] %>
32
32
 
33
- <%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, max_height: "xs", table_props: { sticky: true }}) %>
33
+ <%= pb_rails("advanced_table", props: { id: "table_props_sticky_table", table_data: @table_data, column_definitions: column_definitions, max_height: "xs", table_props: { sticky: true }}) %>
@@ -266,6 +266,25 @@ export default class PbAdvancedTable extends PbEnhancedElement {
266
266
  this.updateTableSelectedRowsAttribute();
267
267
  });
268
268
  }
269
+ this.addBorderRadiusOnLastVisibleRow()
270
+ }
271
+
272
+ addBorderRadiusOnLastVisibleRow() {
273
+ const parentElement = this.element.closest('.pb_advanced_table');
274
+
275
+ const table = document.getElementById(parentElement.id);
276
+
277
+ if (table) {
278
+ const visibleRows = table.querySelectorAll('tr.is-visible, tr:not(.toggle-content)');
279
+
280
+ visibleRows.forEach(row => row.classList.remove('last-visible-row'));
281
+
282
+ const lastVisibleRow = visibleRows[visibleRows.length - 1];
283
+
284
+ if (lastVisibleRow) {
285
+ lastVisibleRow.classList.add('last-visible-row');
286
+ }
287
+ }
269
288
  }
270
289
 
271
290
 
@@ -367,6 +386,8 @@ export default class PbAdvancedTable extends PbEnhancedElement {
367
386
  row.classList.toggle("bg-silver", !isVisible);
368
387
  row.classList.toggle("bg-white", isVisible);
369
388
  }
389
+
390
+ this.addBorderRadiusOnLastVisibleRow();
370
391
  }
371
392
 
372
393
  displayDownArrow() {