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 +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +20 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/index.js +21 -0
- data/dist/chunks/{_typeahead-BlPRej0F.js → _typeahead-CoOpeYom.js} +2 -2
- data/dist/chunks/{_weekday_stacked-DqVFJsbt.js → _weekday_stacked-B_jpa2Rz.js} +1 -1
- data/dist/chunks/lazysizes-B7xYodB-.js +1 -0
- data/dist/chunks/lib-D7Va7yqa.js +29 -0
- data/dist/chunks/{pb_form_validation-DyvJ8iPe.js → pb_form_validation-DSkdRDMf.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 +2 -2
- metadata +7 -7
- data/dist/chunks/lazysizes-DHz07jlL.js +0 -1
- data/dist/chunks/lib-D4vXIZF5.js +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 261d49972260d48525638957d0bc576040c9f2af7dbf91813c2e3a1f52c9444e
|
4
|
+
data.tar.gz: b3fdc7f37fe205f50b8644e705381f11dbbf4f2e55322945e2f3d6f0a9e456b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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 %>
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb
CHANGED
@@ -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 %>
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.html.erb
CHANGED
@@ -55,4 +55,4 @@
|
|
55
55
|
},
|
56
56
|
] %>
|
57
57
|
|
58
|
-
<%= pb_rails("advanced_table", props: { id: "
|
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: "
|
33
|
+
<%= pb_rails("advanced_table", props: { id: "loading_table", table_data: @table_data, column_definitions: column_definitions, loading: true }) %>
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb
CHANGED
@@ -30,4 +30,4 @@
|
|
30
30
|
}
|
31
31
|
] %>
|
32
32
|
|
33
|
-
<%= pb_rails("advanced_table", props: { id: "
|
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() {
|