playbook_ui_docs 16.9.0.pre.alpha.play3006saftleyremoveSVGconsoleerror17213 → 16.9.0.pre.alpha.play3006saftleyremoveSVGconsoleerror17306

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: 24da45a4a0f4fa9fd45e7737a6e8ffd68daad95448646ac183d1c01290cce722
4
- data.tar.gz: 7272620b38f8a3245f6f6430765ff691e61f8745a99e8bf556bb2db1672dbe58
3
+ metadata.gz: ebcdd1ab34426dc1d9eafdeec0f5cec8aab02e43206bb1f862e8839bed61e777
4
+ data.tar.gz: 8f841726c045bf2e8fa375ad13c6ef2c1fd5ebf7594503881322b58c29a6bacd
5
5
  SHA512:
6
- metadata.gz: d27701fdd1cfe613acb8d4079a74cb5a4202846ea05420ea1b4ca11b310e609e5f57f0763b0f543e916b8569c72c87537d8f4f98785b84abf1de624e5963c6f4
7
- data.tar.gz: 78d7542a2e66cd469f659afc62c18c0407c9aeea90def2e99457a6feedbe6669afaa88627d327d141ab9cefe469072cf86a75529da38eb75add99d01dce264c2
6
+ metadata.gz: e8ab8f4e5695fdf838e8837bf6e63a5f9579fa5ce373fa2be15335ae950efa85522904638dfd1f502a6fe848847ca0e533b0fd54d2d80e4b90fe66bc966b53bb
7
+ data.tar.gz: 446f0f4dcf7ff69e83338d0be8640447ae70d2ca61dcdd502ba272ba92a949b431939176d17fc1892f7fe5b2f8b38e6eb3f899fbbe91c16edb0675f253c9a6ef
@@ -1,6 +1,6 @@
1
1
  import React from "react"
2
2
  import AdvancedTable from '../_advanced_table'
3
- import MOCK_DATA from "./advanced_table_mock_data_with_id.json"
3
+ import MOCK_DATA_WITH_ID from "./advanced_table_mock_data_with_id.json"
4
4
  import colors from '../../tokens/exports/_colors.module.scss'
5
5
 
6
6
 
@@ -55,7 +55,7 @@ const rowStyling = [
55
55
  <AdvancedTable
56
56
  columnDefinitions={columnDefinitions}
57
57
  rowStyling={rowStyling}
58
- tableData={MOCK_DATA}
58
+ tableData={MOCK_DATA_WITH_ID}
59
59
  {...props}
60
60
  />
61
61
  </div>
@@ -1,47 +1,39 @@
1
1
  <% column_definitions = [
2
- {
3
- accessor: "year",
4
- label: "Year",
5
- },
6
- {
7
- accessor: "newEnrollments",
8
- label: "New Enrollments",
9
- },
10
- {
11
- accessor: "scheduledMeetings",
12
- label: "Scheduled Meetings",
13
- },
14
- {
15
- accessor: "attendanceRate",
16
- label: "Attendance Rate",
17
- },
18
- {
19
- accessor: "completedClasses",
20
- label: "Completed Classes",
21
- },
22
- {
23
- accessor: "classCompletionRate",
24
- label: "Class Completion Rate",
25
- },
26
- {
27
- accessor: "graduatedStudents",
28
- label: "Graduated Students",
29
- }
30
- ] %>
31
-
32
- <% table_data = 15.times.map do |index|
33
2
  {
34
- year: (2020 + index).to_s,
35
- id: (2020 + index).to_s,
36
- newEnrollments: (20 + index).to_s,
37
- scheduledMeetings: (10 + index).to_s,
38
- attendanceRate: "#{50 + index}%",
39
- completedClasses: (3 + index).to_s,
40
- classCompletionRate: "#{30 + index}%",
41
- graduatedStudents: (19 + index).to_s,
42
- }
43
- end %>
3
+ accessor: "year",
4
+ label: "Year",
5
+ cellAccessors: ["quarter", "month", "day"],
6
+ },
7
+ {
8
+ accessor: "newEnrollments",
9
+ label: "New Enrollments",
10
+ },
11
+ {
12
+ accessor: "scheduledMeetings",
13
+ label: "Scheduled Meetings",
14
+ },
15
+ {
16
+ accessor: "attendanceRate",
17
+ label: "Attendance Rate",
18
+ },
19
+ {
20
+ accessor: "completedClasses",
21
+ label: "Completed Classes",
22
+ },
23
+ {
24
+ accessor: "classCompletionRate",
25
+ label: "Class Completion Rate",
26
+ },
27
+ {
28
+ accessor: "graduatedStudents",
29
+ label: "Graduated Students",
30
+ },
31
+ ] %>
44
32
 
45
- <div style="max-height: 320px; overflow-y: auto;">
46
- <%= pb_rails("advanced_table", props: { id: "table_props_sticky_table", table_data: table_data, column_definitions: column_definitions, table_props: { sticky: true }}) %>
47
- </div>
33
+ <%= pb_rails("advanced_table", props: {
34
+ id: "table_props_sticky_table",
35
+ table_data: @table_data,
36
+ column_definitions: column_definitions,
37
+ max_height: "xs",
38
+ table_props: { sticky: true },
39
+ }) %>
@@ -1,21 +1,13 @@
1
1
  import React from "react"
2
2
  import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
-
4
- const tableData = Array.from({ length: 15 }, (_, index) => ({
5
- year: String(2020 + index),
6
- newEnrollments: String(20 + index),
7
- scheduledMeetings: String(10 + index),
8
- attendanceRate: `${50 + index}%`,
9
- completedClasses: String(3 + index),
10
- classCompletionRate: `${30 + index}%`,
11
- graduatedStudents: String(19 + index),
12
- }))
3
+ import MOCK_DATA from "./advanced_table_mock_data.json"
13
4
 
14
5
  const AdvancedTableTablePropsStickyHeader = (props) => {
15
6
  const columnDefinitions = [
16
7
  {
17
8
  accessor: "year",
18
9
  label: "Year",
10
+ cellAccessors: ["quarter", "month", "day"],
19
11
  },
20
12
  {
21
13
  accessor: "newEnrollments",
@@ -44,18 +36,17 @@ const AdvancedTableTablePropsStickyHeader = (props) => {
44
36
  ]
45
37
 
46
38
  const tableProps = {
47
- sticky: true
39
+ sticky: true,
48
40
  }
49
41
 
50
42
  return (
51
- <div style={{ maxHeight: "320px", overflowY: "auto" }}>
52
- <AdvancedTable
53
- columnDefinitions={columnDefinitions}
54
- tableData={tableData}
55
- tableProps={tableProps}
56
- {...props}
57
- />
58
- </div>
43
+ <AdvancedTable
44
+ columnDefinitions={columnDefinitions}
45
+ maxHeight="xs"
46
+ tableData={MOCK_DATA}
47
+ tableProps={tableProps}
48
+ {...props}
49
+ />
59
50
  )
60
51
  }
61
52
 
@@ -2,10 +2,6 @@ Create a sticky header that works for responsive Advanced Tables by setting `sti
2
2
 
3
3
  **NOTE**: This behavior requires a `max_height` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
4
4
 
5
- Scroll inside the table preview to see the header stick.
6
-
7
- This example builds flat table data inline for the docs preview. For typical `table_data` setup, see [Default (Required Props)](/kits/advanced_table/default/rails#advanced_table_beta).
8
-
9
5
  Expand the table above to see this in action.
10
6
 
11
7
  A sticky header on a nonresponsive table is demonstrated in the ["Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table#sticky-header) doc example above.
@@ -1,9 +1,7 @@
1
- Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `tableProps` and wrapping the table in a scroll container (or using `maxHeight`).
1
+ Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `tableProps` and giving the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/global_props/max_height) global prop.
2
2
 
3
- **NOTE**: The header is sticky within the table scroll area. The live example uses flat rows so you can scroll inside the preview without expanding subrows.
3
+ **NOTE**: This behavior requires a `maxHeight` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
4
4
 
5
- This example builds flat table data inline for the docs preview. For typical `tableData` setup, see [Default (Required Props)](/kits/advanced_table/default/react#advanced_table_default).
6
-
7
- Expand the table above to see responsive behavior in action.
5
+ Expand the table above to see this in action.
8
6
 
9
7
  A sticky header on a nonresponsive table is demonstrated in the ["Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table/react#sticky-header) doc example above.
@@ -233,11 +233,6 @@
233
233
  "customSort": true
234
234
  }
235
235
  },
236
- "fullScreenControl": {
237
- "requires": {
238
- "allowFullScreen": true
239
- }
240
- },
241
236
  "enableSortingRemoval": {
242
237
  "requires": {
243
238
  "enableSorting": true
@@ -2954,9 +2949,7 @@
2954
2949
  },
2955
2950
  "hiddenProps": [
2956
2951
  "sortControl",
2957
- "fullScreenControl",
2958
2952
  "expandedControl",
2959
- "allowFullScreen",
2960
2953
  "pagination",
2961
2954
  "paginationProps"
2962
2955
  ],
@@ -73,9 +73,7 @@
73
73
  },
74
74
  "hiddenProps": [
75
75
  "sortControl",
76
- "fullScreenControl",
77
76
  "expandedControl",
78
- "allowFullScreen",
79
77
  "pagination",
80
78
  "paginationProps"
81
79
  ],
@@ -291,11 +289,6 @@
291
289
  "customSort": true
292
290
  }
293
291
  },
294
- "fullScreenControl": {
295
- "requires": {
296
- "allowFullScreen": true
297
- }
298
- },
299
292
  "enableSortingRemoval": {
300
293
  "requires": {
301
294
  "enableSorting": true
@@ -23,7 +23,6 @@ export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_tabl
23
23
  export { default as AdvancedTableColumnHeadersCustomCell } from './_advanced_table_column_headers_custom_cell.jsx'
24
24
  export { default as AdvancedTableColumnHeadersVerticalBorder } from './_advanced_table_column_headers_vertical_border.jsx'
25
25
  export { default as AdvancedTableInlineEditing } from './_advanced_table_inline_editing.jsx'
26
- export { default as AdvancedTableFullscreen } from './_advanced_table_fullscreen.jsx'
27
26
  export { default as AdvancedTableStickyColumns } from './_advanced_table_sticky_columns.jsx'
28
27
  export { default as AdvancedTableStickyHeader } from './_advanced_table_sticky_header.jsx'
29
28
  export { default as AdvancedTableStickyColumnsAndHeader } from './_advanced_table_sticky_columns_and_header.jsx'
@@ -0,0 +1,35 @@
1
+ <% lists = [
2
+ {
3
+ title: "Morning Crew",
4
+ items: [
5
+ { id: "m1", name: "Alice Chen" },
6
+ { id: "m2", name: "Ben Ortiz" },
7
+ { id: "m3", name: "Cara Kim" },
8
+ ],
9
+ },
10
+ {
11
+ title: "Afternoon Crew",
12
+ items: [
13
+ { id: "a1", name: "Diana Patel" },
14
+ { id: "a2", name: "Evan Brooks" },
15
+ { id: "a3", name: "Fiona Lee" },
16
+ ],
17
+ },
18
+ ] %>
19
+
20
+ <%= pb_rails("flex", props: { gap: "md", justify_content: "center", wrap: true }) do %>
21
+ <% lists.each do |list| %>
22
+ <%= pb_rails("flex/flex_item", props: { fixed_size: "220px" }) do %>
23
+ <%= pb_rails("caption", props: { text: list[:title], text_align: "center", margin_bottom: "xs" }) %>
24
+ <%= pb_rails("draggable", props: { initial_items: list[:items] }) do %>
25
+ <%= pb_rails("draggable/draggable_container", props: { padding: "sm" }) do %>
26
+ <% list[:items].each do |item| %>
27
+ <%= pb_rails("draggable/draggable_item", props: { drag_id: item[:id], margin_bottom: "xs" }) do %>
28
+ <%= pb_rails("body", props: { text: item[:name] }) %>
29
+ <% end %>
30
+ <% end %>
31
+ <% end %>
32
+ <% end %>
33
+ <% end %>
34
+ <% end %>
35
+ <% end %>
@@ -0,0 +1,8 @@
1
+ Use a **separate** `draggable` kit for each list when items should reorder within their own column only.
2
+
3
+ Each instance creates its own drag boundary. Items stay inside that list on desktop and touch — they cannot be dropped into a neighboring list.
4
+
5
+ This is different from [Dragging Across Multiple Containers](#draggable_multiple_containers), which uses **one** `draggable` wrapping multiple `draggable/draggable_container` kits so items can move between columns.
6
+
7
+ On touch devices, drag from the grip handle. Swiping outside the handle scrolls as usual.
8
+
@@ -1 +1,3 @@
1
- The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure.
1
+ The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure — **one** `draggable` wrapping multiple `draggable/draggable_container` kits so items can move between columns.
2
+
3
+ For lists that should stay separate, see [Independent Draggable Containers](#draggable_independent_containers).
@@ -1 +1 @@
1
- The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure.
1
+ The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure.
@@ -17,6 +17,7 @@ examples:
17
17
  - draggable_with_list: Draggable with List Kit
18
18
  - draggable_with_selectable_list: Draggable with SelectableList Kit
19
19
  - draggable_with_cards: Draggable with Cards
20
+ - draggable_independent_containers: Independent Draggable Containers
20
21
  - draggable_with_table: Draggable with Table
21
22
  - draggable_drop_zones: Draggable Drop Zones
22
23
  - draggable_drop_zones_colors: Draggable Drop Zones Colors
@@ -117,6 +117,13 @@
117
117
  "isCollapsed",
118
118
  "onCollapse"
119
119
  ],
120
+ "requiredCodeProps": [
121
+ "filters",
122
+ "results",
123
+ "sortOptions",
124
+ "sortValue",
125
+ "onSortChange"
126
+ ],
120
127
  "presets": [
121
128
  {
122
129
  "name": "Single Filter",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.9.0.pre.alpha.play3006saftleyremoveSVGconsoleerror17213
4
+ version: 16.9.0.pre.alpha.play3006saftleyremoveSVGconsoleerror17306
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-06-22 00:00:00.000000000 Z
12
+ date: 2026-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -100,8 +100,6 @@ files:
100
100
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.md
101
101
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.jsx
102
102
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.md
103
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx
104
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md
105
103
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_grouped_headers_composition.jsx
106
104
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_grouped_headers_composition.md
107
105
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx
@@ -910,6 +908,8 @@ files:
910
908
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.jsx
911
909
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners_rails.md
912
910
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners_react.md
911
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_independent_containers.html.erb
912
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_independent_containers_rails.md
913
913
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.html.erb
914
914
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
915
915
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.jsx
@@ -1,92 +0,0 @@
1
- import React, { useState } from "react"
2
- import AdvancedTable from '../_advanced_table'
3
- import Flex from '../../pb_flex/_flex'
4
- import Button from '../../pb_button/_button'
5
- import MOCK_DATA from "./advanced_table_mock_data.json"
6
- import PAGINATION_MOCK_DATA from "./advanced_table_pagination_mock_data.json"
7
-
8
- const AdvancedTableFullscreen = (props) => {
9
- const [fullscreenToggleSmall, setFullscreenToggleSmall] = useState(null)
10
- const [fullscreenToggleLarge, setFullscreenToggleLarge] = useState(null)
11
-
12
- const columnDefinitions = [
13
- {
14
- accessor: "year",
15
- label: "Year",
16
- cellAccessors: ["quarter", "month", "day"],
17
- },
18
- {
19
- accessor: "newEnrollments",
20
- label: "New Enrollments",
21
- },
22
- {
23
- accessor: "scheduledMeetings",
24
- label: "Scheduled Meetings",
25
- },
26
- {
27
- accessor: "attendanceRate",
28
- label: "Attendance Rate",
29
- },
30
- {
31
- accessor: "completedClasses",
32
- label: "Completed Classes",
33
- },
34
- {
35
- accessor: "classCompletionRate",
36
- label: "Class Completion Rate",
37
- },
38
- {
39
- accessor: "graduatedStudents",
40
- label: "Graduated Students",
41
- },
42
- ]
43
-
44
- const tableProps = {
45
- sticky: true
46
- }
47
-
48
- return (
49
- <div>
50
- <Flex justify="end">
51
- <Button
52
- marginBottom="sm"
53
- onClick={() => fullscreenToggleSmall?.()}
54
- text="Fullscreen Small Table"
55
- variant="secondary"
56
- />
57
- </Flex>
58
- <AdvancedTable
59
- allowFullScreen
60
- columnDefinitions={columnDefinitions}
61
- fullScreenControl={({ toggleFullscreen }) => setFullscreenToggleSmall(() => toggleFullscreen)}
62
- tableData={MOCK_DATA}
63
- {...props}
64
- >
65
- <AdvancedTable.Header enableSorting />
66
- <AdvancedTable.Body />
67
- </AdvancedTable>
68
- <Flex justify="end">
69
- <Button
70
- marginY="sm"
71
- onClick={() => fullscreenToggleLarge?.()}
72
- text="Fullscreen Large Table"
73
- variant="secondary"
74
- />
75
- </Flex>
76
- <AdvancedTable
77
- allowFullScreen
78
- columnDefinitions={columnDefinitions}
79
- fullScreenControl={({ toggleFullscreen }) => setFullscreenToggleLarge(() => toggleFullscreen)}
80
- responsive="none"
81
- tableData={PAGINATION_MOCK_DATA}
82
- tableProps={tableProps}
83
- {...props}
84
- >
85
- <AdvancedTable.Header enableSorting />
86
- <AdvancedTable.Body />
87
- </AdvancedTable>
88
- </div>
89
- )
90
- }
91
-
92
- export default AdvancedTableFullscreen
@@ -1,3 +0,0 @@
1
- Trigger Fullscreen mode with the `allowFullScreen`and `fullScreenControl` props. `allowFullScreen` is a boolean that enables Fullscreen functionality for an Advanced Table. `fullScreenControl` is a callback function that receives an object containing the table's internal `toggleFullscreen` function, allowing you to store and trigger Fullscreen from the parent component. An external trigger (like a button) must be used to activate Fullscreen mode.
2
-
3
- Exit Fullscreen mode by clicking the minimize top-right-corner icon or by pressing the "Escape" keyboard key.