playbook_ui 14.23.0.pre.rc.2 → 14.23.0
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/example.yml +7 -6
- data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_body/docs/_body_truncate.jsx +3 -3
- data/app/pb_kits/playbook/pb_body/docs/_body_truncate_react.md +4 -0
- data/app/pb_kits/playbook/pb_circle_chart/circleChartTheme.ts +36 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +71 -26
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +29 -16
- data/app/pb_kits/playbook/pb_circle_chart/docs/{_circle_chart_colors.md → _circle_chart_colors_rails.md} +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +2 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +28 -16
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +4 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +23 -15
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +81 -51
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +103 -75
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +3 -6
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +19 -13
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +30 -17
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +34 -20
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +29 -20
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +28 -20
- data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +1 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_draggable/context/index.tsx +12 -4
- data/app/pb_kits/playbook/pb_draggable/context/types.ts +5 -2
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +27 -17
- data/app/pb_kits/playbook/pb_title/docs/_title_truncate.jsx +3 -3
- data/app/pb_kits/playbook/pb_title/docs/_title_truncate_react.md +4 -0
- data/dist/chunks/_circle_chart-D01WLw-z.js +1 -0
- data/dist/chunks/_typeahead-mrBE9f17.js +22 -0
- data/dist/chunks/{_weekday_stacked-XhCaqWUk.js → _weekday_stacked-_LSSbN1y.js} +1 -1
- data/dist/chunks/lib-CHh_1-Oj.js +29 -0
- data/dist/chunks/{pb_form_validation-C3CDCB0e.js → pb_form_validation-B7kuYG-_.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +68 -8
- data/dist/playbook-doc.js +2 -2
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +14 -12
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx +0 -38
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md +0 -1
- data/dist/chunks/_bar_graph-DVfSt34a.js +0 -1
- data/dist/chunks/_typeahead-C2h5Gq3P.js +0 -22
- data/dist/chunks/lib-C0HyLoRj.js +0 -29
- /data/app/pb_kits/playbook/pb_body/docs/{_body_truncate.md → _body_truncate_rails.md} +0 -0
- /data/app/pb_kits/playbook/pb_title/docs/{_title_truncate.md → _title_truncate_rails.md} +0 -0
@@ -1 +1 @@
|
|
1
|
-
import{P as PbEnhancedElement,d as debounce}from"./lib-
|
1
|
+
import{P as PbEnhancedElement,d as debounce}from"./lib-CHh_1-Oj.js";const KIT_SELECTOR='[class^="pb_"][class*="_kit"]';const ERROR_MESSAGE_SELECTOR=".pb_body_kit_negative";const FORM_SELECTOR='form[data-pb-form-validation="true"]';const REQUIRED_FIELDS_SELECTOR="input[required],textarea[required],select[required]";const FIELD_EVENTS=["change","valid","invalid"];class PbFormValidation extends PbEnhancedElement{static get selector(){return FORM_SELECTOR}connect(){this.formValidationFields.forEach((field=>{FIELD_EVENTS.forEach((e=>{field.addEventListener(e,debounce((event=>{this.validateFormField(event)}),250),false)}))}))}validateFormField(event){event.preventDefault();const{target:target}=event;target.setCustomValidity("");const isValid=event.target.validity.valid;if(isValid){this.clearError(target)}else{this.showValidationMessage(target)}}showValidationMessage(target){const{parentElement:parentElement}=target;this.clearError(target);parentElement.closest(KIT_SELECTOR).classList.add("error");const errorMessageContainer=this.errorMessageContainer;if(target.dataset.message)target.setCustomValidity(target.dataset.message);errorMessageContainer.innerHTML=target.validationMessage;parentElement.appendChild(errorMessageContainer)}clearError(target){const{parentElement:parentElement}=target;parentElement.closest(KIT_SELECTOR).classList.remove("error");const errorMessageContainer=parentElement.querySelector(ERROR_MESSAGE_SELECTOR);if(errorMessageContainer)errorMessageContainer.remove()}get errorMessageContainer(){const errorContainer=document.createElement("div");const kitClassName=ERROR_MESSAGE_SELECTOR.replace(/\./,"");errorContainer.classList.add(kitClassName);return errorContainer}get formValidationFields(){return this._formValidationFields=this._formValidationFields||this.element.querySelectorAll(REQUIRED_FIELDS_SELECTOR)}}window.PbFormValidation=PbFormValidation;
|
data/dist/chunks/vendor.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import"./_weekday_stacked-
|
1
|
+
import"./_weekday_stacked-_LSSbN1y.js";import"./lazysizes-B7xYodB-.js";import"./_typeahead-mrBE9f17.js";import"./_circle_chart-D01WLw-z.js";import"./lib-CHh_1-Oj.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-trix";import"trix";import"react-is";
|
data/dist/menu.yml
CHANGED
@@ -19,6 +19,74 @@ react_only: &2
|
|
19
19
|
swift_only:
|
20
20
|
- swift
|
21
21
|
kits:
|
22
|
+
- category: advanced_table
|
23
|
+
description: The Advanced Table can be used to display complex, nested data in
|
24
|
+
a way that allows for expansion and/or sorting.
|
25
|
+
components:
|
26
|
+
- name: default
|
27
|
+
parent: advanced_table
|
28
|
+
kit_section: ["Default (Required Props)", "Table Options", "Table Props", "Table with No Subrows or Expansion" ]
|
29
|
+
platforms: *1
|
30
|
+
status: stable
|
31
|
+
icons_used: true
|
32
|
+
react_rendered: false
|
33
|
+
enhanced_element_used: true
|
34
|
+
- name: sorting
|
35
|
+
parent: advanced_table
|
36
|
+
kit_section: ["Enable Sorting", "Sort Control", "Custom Sort"]
|
37
|
+
platforms: *1
|
38
|
+
status: stable
|
39
|
+
icons_used: true
|
40
|
+
react_rendered: false
|
41
|
+
enhanced_element_used: true
|
42
|
+
- name: pagination_&_data_states
|
43
|
+
parent: advanced_table
|
44
|
+
kit_section: ["Pagination", "Pagination Props", "Loading State", "Inline Row Loading", "Infinite Scroll"]
|
45
|
+
platforms: *1
|
46
|
+
status: stable
|
47
|
+
icons_used: true
|
48
|
+
react_rendered: false
|
49
|
+
enhanced_element_used: true
|
50
|
+
- name: row_interaction
|
51
|
+
parent: advanced_table
|
52
|
+
kit_section: ["Expanded Control", "Expand by Depth", "SubRow Headers", "Pinned Rows", "Selectable Rows", "Selectable Rows (No Subrows)", "Selectable Rows (With Actions)", "Selectable Rows (No Actions Bar)"]
|
53
|
+
platforms: *1
|
54
|
+
status: stable
|
55
|
+
icons_used: true
|
56
|
+
react_rendered: false
|
57
|
+
enhanced_element_used: true
|
58
|
+
- name: column_configuration
|
59
|
+
parent: advanced_table
|
60
|
+
kit_section: ["Column Visibility Control", "Column Visibility Control With State", "Column Visibility Control with Custom Dropdown", "Column Visibility Control with Multi-Header Columns", "Multi-Header Columns", "Multi-Header Columns (Multiple Levels)", "Multi-Header Columns with Custom Cells"]
|
61
|
+
platforms: *1
|
62
|
+
status: stable
|
63
|
+
icons_used: true
|
64
|
+
react_rendered: false
|
65
|
+
enhanced_element_used: true
|
66
|
+
- name: cell_behavior
|
67
|
+
parent: advanced_table
|
68
|
+
kit_section: ["Custom Components for Cells", "Custom Header Cell", "Inline Cell Editing"]
|
69
|
+
platforms: *1
|
70
|
+
status: stable
|
71
|
+
icons_used: true
|
72
|
+
react_rendered: false
|
73
|
+
enhanced_element_used: true
|
74
|
+
- name: layout_&_positioning
|
75
|
+
parent: advanced_table
|
76
|
+
kit_section: ["Sticky Header", "Sticky Header for Responsive Table", "Sticky Columns", "Sticky Columns with Sticky Header", "Responsive Tables", "Fullscreen", "Advanced Table Scrollbar None"]
|
77
|
+
platforms: *1
|
78
|
+
status: stable
|
79
|
+
icons_used: true
|
80
|
+
react_rendered: false
|
81
|
+
enhanced_element_used: true
|
82
|
+
- name: styling
|
83
|
+
parent: advanced_table
|
84
|
+
kit_section: ["Collapsible Trail","Row Styling", "Column Styling", "Column Styling with Multiple Headers", "Column Group Border Color"]
|
85
|
+
platforms: *1
|
86
|
+
status: stable
|
87
|
+
icons_used: true
|
88
|
+
react_rendered: false
|
89
|
+
enhanced_element_used: true
|
22
90
|
- category: alerts_and_dialogs
|
23
91
|
description:
|
24
92
|
components:
|
@@ -118,14 +186,6 @@ kits:
|
|
118
186
|
icons_used: false
|
119
187
|
react_rendered: false
|
120
188
|
enhanced_element_used: true
|
121
|
-
- name: advanced_table
|
122
|
-
platforms: *1
|
123
|
-
description: The Advanced Table can be used to display complex, nested data in
|
124
|
-
a way that allows for expansion and/or sorting.
|
125
|
-
status: stable
|
126
|
-
icons_used: true
|
127
|
-
react_rendered: false
|
128
|
-
enhanced_element_used: true
|
129
189
|
- name: list
|
130
190
|
platforms: *1
|
131
191
|
description: Lists display a vertical set of related content.
|