playbook_ui_docs 16.7.0.pre.alpha.play2924tooltipmisalignment16298 → 16.7.0.pre.alpha.tablewidths16407
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/docs/_advanced_table_column_styling.jsx +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +10 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.json +182 -5839
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.overrides.json +5 -30
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_styling.json +6 -1
- data/app/pb_kits/playbook/pb_date_range_stacked/docs/_playground.json +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_default.html.erb +1 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_default.md +12 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_simple.html.erb +9 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_simple.md +8 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +2 -0
- metadata +6 -2
|
@@ -34,11 +34,6 @@
|
|
|
34
34
|
"columnDefinitionsFile": "advanced_table_column_definitions_standard.json",
|
|
35
35
|
"tableDataFile": "advanced_table_mock_data_no_subrows.json"
|
|
36
36
|
},
|
|
37
|
-
"pagination": {
|
|
38
|
-
"label": "Pagination Example",
|
|
39
|
-
"columnDefinitionsFile": "advanced_table_column_definitions_standard.json",
|
|
40
|
-
"tableDataFile": "advanced_table_pagination_mock_data.json"
|
|
41
|
-
},
|
|
42
37
|
"with_ids": {
|
|
43
38
|
"label": "Data with row IDs",
|
|
44
39
|
"columnDefinitionsFile": "advanced_table_column_definitions_standard.json",
|
|
@@ -80,15 +75,15 @@
|
|
|
80
75
|
"sortControl",
|
|
81
76
|
"fullScreenControl",
|
|
82
77
|
"expandedControl",
|
|
83
|
-
"allowFullScreen"
|
|
78
|
+
"allowFullScreen",
|
|
79
|
+
"pagination",
|
|
80
|
+
"paginationProps"
|
|
84
81
|
],
|
|
85
82
|
"requiredProps": {
|
|
86
83
|
"columnDefinitionsFile": "advanced_table_column_definitions_standard.json",
|
|
87
84
|
"tableDataFile": "advanced_table_mock_data.json"
|
|
88
85
|
},
|
|
89
86
|
"propSyncOnEnable": {
|
|
90
|
-
"pagination": { "dataPreset": "pagination" },
|
|
91
|
-
"paginationProps": { "dataPreset": "pagination" },
|
|
92
87
|
"inlineRowLoading": { "dataPreset": "inline_loading" },
|
|
93
88
|
"selectableRows": { "dataPreset": "with_ids" },
|
|
94
89
|
"onRowSelectionChange": { "dataPreset": "with_ids" },
|
|
@@ -144,10 +139,8 @@
|
|
|
144
139
|
]
|
|
145
140
|
},
|
|
146
141
|
{
|
|
147
|
-
"name": "
|
|
142
|
+
"name": "Loading",
|
|
148
143
|
"props": [
|
|
149
|
-
"pagination",
|
|
150
|
-
"paginationProps",
|
|
151
144
|
"loading",
|
|
152
145
|
"inlineRowLoading",
|
|
153
146
|
"initialLoadingRowsCount"
|
|
@@ -215,12 +208,6 @@
|
|
|
215
208
|
"enableSorting": true
|
|
216
209
|
}
|
|
217
210
|
},
|
|
218
|
-
{
|
|
219
|
-
"name": "With Pagination",
|
|
220
|
-
"props": {
|
|
221
|
-
"pagination": true
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
211
|
{
|
|
225
212
|
"name": "Selectable Rows",
|
|
226
213
|
"props": {
|
|
@@ -260,11 +247,6 @@
|
|
|
260
247
|
}
|
|
261
248
|
],
|
|
262
249
|
"conditionals": {
|
|
263
|
-
"paginationProps": {
|
|
264
|
-
"requires": {
|
|
265
|
-
"pagination": true
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
250
|
"initialLoadingRowsCount": {
|
|
269
251
|
"requires": {
|
|
270
252
|
"loading": true
|
|
@@ -350,13 +332,6 @@
|
|
|
350
332
|
"message": "Header sorting UI is only applied in \"Subcomponent Structure\" mode (explicit Header and Body). For sorting by column, pass columnDefinitions with enableSort: true to the columnDefinitions array. Click 'sorting by column' to see an example.",
|
|
351
333
|
"type": "info"
|
|
352
334
|
},
|
|
353
|
-
"pagination_info": {
|
|
354
|
-
"when": {
|
|
355
|
-
"pagination": true
|
|
356
|
-
},
|
|
357
|
-
"message": "Use paginationProps to customize page size and appearance.",
|
|
358
|
-
"type": "info"
|
|
359
|
-
},
|
|
360
335
|
"selectable_info": {
|
|
361
336
|
"when": {
|
|
362
337
|
"selectableRows": true
|
|
@@ -396,7 +371,7 @@
|
|
|
396
371
|
},
|
|
397
372
|
"column_styling_info": {
|
|
398
373
|
"presetName": "Column Styling",
|
|
399
|
-
"message": "This sample uses columnStyling on column definitions.
|
|
374
|
+
"message": "This sample uses columnStyling on column definitions. The Year column uses minWidth, width, and maxWidth for a compact, stable first column; other columns show background colors on headers and cells.",
|
|
400
375
|
"type": "info"
|
|
401
376
|
}
|
|
402
377
|
}
|
data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_styling.json
CHANGED
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
{
|
|
3
3
|
"accessor": "year",
|
|
4
4
|
"label": "Year",
|
|
5
|
-
"cellAccessors": ["quarter", "month", "day"]
|
|
5
|
+
"cellAccessors": ["quarter", "month", "day"],
|
|
6
|
+
"columnStyling": {
|
|
7
|
+
"minWidth": 108,
|
|
8
|
+
"width": 124,
|
|
9
|
+
"maxWidth": 168
|
|
10
|
+
}
|
|
6
11
|
},
|
|
7
12
|
{
|
|
8
13
|
"accessor": "newEnrollments",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<%= pb_rails("rich_text_editor", props: { input_options: { id: 'hidden_input_id', name: "hidden_input_name" }, value: "Add your text here. You can format your text, add links, quotes, and bullets." }) %>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
The Rails rich text editor is a TipTap surface with no React. The UI (toolbar, block-style menu, formatting actions) is rendered with Playbook Rails kits (`pb_rails`). The editor document is a vanilla TipTap `Editor` instance; HTML is synced to a hidden `<input>` so standard Rails forms can submit the value.
|
|
2
|
+
|
|
3
|
+
### How TipTap is loaded (Rails)
|
|
4
|
+
|
|
5
|
+
- The kit’s module script (`rich_text_editor_rails.js`) uses `import()` with **full URLs** on [esm.sh](https://esm.sh) (e.g. `@tiptap/core@2.8.0`). esm.sh resolves dependencies server-side, so **no `<script type="importmap">`** is required—this avoids conflicts when the host page already has an import map (e.g. Vite in dev, or another app map) because Firefox only applies one native map.
|
|
6
|
+
- You do not need TipTap in your app’s npm dependencies or Gemfile for this kit; the browser loads modules from esm.sh when the page runs.
|
|
7
|
+
- Ensure **CSP** allows loading scripts from `https://esm.sh` (and esm.sh’s redirected module URLs) if you use a strict `script-src` / `connect-src`.
|
|
8
|
+
|
|
9
|
+
### Relation to the React implementation
|
|
10
|
+
|
|
11
|
+
- Same core: both use TipTap v2 on top of ProseMirror; styling lives in Playbook SCSS (`_tiptap_styles.scss`) so the editor chrome lines up between platforms.
|
|
12
|
+
- Different shell: Rails uses ERB + Playbook Rails components + inline module script. React uses `RichTextEditor` / `_tiptap_editor.tsx` and TipTap wired through the bundled Playbook React package—see Advanced Default for that stack and when you need TipTap installed in your JavaScript bundle.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
### Simple toolbar (`simple: true`)
|
|
2
|
+
|
|
3
|
+
Pass **`simple: true`** for a compact toolbar: **Bold**, **Italic**, **Undo**, and **Redo** (same history controls as the full toolbar—plain buttons, not popovers).
|
|
4
|
+
|
|
5
|
+
- No block-style dropdown (no “Paragraph” / headings / lists in the menu).
|
|
6
|
+
- No **`pb_popover`** on the toolbar—useful in **native `<dialog>`** modals, turbo-loaded panels, or other tight layouts where the full block menu is awkward to position.
|
|
7
|
+
|
|
8
|
+
The underlying TipTap document still accepts the same HTML as the default Rails editor; `simple` only changes which **toolbar controls** are shown.
|
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.7.0.pre.alpha.
|
|
4
|
+
version: 16.7.0.pre.alpha.tablewidths16407
|
|
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-05-
|
|
12
|
+
date: 2026-05-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: playbook_ui
|
|
@@ -2140,6 +2140,10 @@ files:
|
|
|
2140
2140
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.md
|
|
2141
2141
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.jsx
|
|
2142
2142
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.md
|
|
2143
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_default.html.erb
|
|
2144
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_default.md
|
|
2145
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_simple.html.erb
|
|
2146
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_simple.md
|
|
2143
2147
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.jsx
|
|
2144
2148
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.md
|
|
2145
2149
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml
|