playbook_ui 14.11.1.pre.alpha.PBNTR769sticky5359 → 14.11.1.pre.alpha.PBNTR798datepickerturbo5537

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +0 -6
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.md +2 -2
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  6. data/app/pb_kits/playbook/pb_button/button.html.erb +2 -3
  7. data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +1 -6
  8. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +24 -16
  9. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +2 -0
  10. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md +1 -1
  11. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames.html.erb +13 -0
  12. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames_rails.md +3 -0
  13. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +1 -0
  14. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.html.erb +3 -9
  15. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.md +5 -0
  16. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.html.erb +38 -0
  17. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.md +3 -0
  18. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +1 -0
  19. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.md +1 -1
  20. data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +7 -12
  21. data/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +9 -14
  22. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb +6 -11
  23. data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb +8 -14
  24. data/app/pb_kits/playbook/pb_list/item.html.erb +30 -8
  25. data/app/pb_kits/playbook/pb_list/item.rb +7 -0
  26. data/app/pb_kits/playbook/pb_list/list.html.erb +31 -11
  27. data/app/pb_kits/playbook/pb_list/list.rb +4 -0
  28. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx +6 -1
  29. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +30 -12
  30. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.html.erb +15 -0
  31. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.jsx +24 -0
  32. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.md +1 -0
  33. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +3 -1
  34. data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +1 -0
  35. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +3 -0
  36. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js +20 -1
  37. data/app/pb_kits/playbook/pb_radio/_radio.scss +12 -8
  38. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx +8 -3
  39. data/app/pb_kits/playbook/pb_selectable_list/selectable_list.html.erb +17 -3
  40. data/app/pb_kits/playbook/pb_selectable_list/selectable_list.rb +3 -0
  41. data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.html.erb +11 -4
  42. data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.rb +3 -0
  43. data/app/pb_kits/playbook/pb_table/_table.tsx +2 -3
  44. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.html.erb +74 -0
  45. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_rails.md +3 -0
  46. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md +2 -2
  47. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.html.erb +74 -0
  48. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_rails.md +3 -0
  49. data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -0
  50. data/app/pb_kits/playbook/pb_table/index.ts +93 -34
  51. data/app/pb_kits/playbook/pb_table/styles/_scroll.scss +6 -5
  52. data/app/pb_kits/playbook/pb_table/table.html.erb +1 -1
  53. data/app/pb_kits/playbook/pb_table/table.rb +17 -2
  54. data/app/pb_kits/playbook/pb_table/utilities/addDataTitle.ts +22 -0
  55. data/app/pb_kits/playbook/pb_timeline/_timeline.scss +30 -30
  56. data/dist/chunks/{_typeahead-BNULwihE.js → _typeahead-TN5aDUj9.js} +2 -2
  57. data/dist/chunks/_weekday_stacked-BcnpLG66.js +45 -0
  58. data/dist/chunks/{lib-B7sgJtGS.js → lib-OFT985dg.js} +2 -2
  59. data/dist/chunks/{pb_form_validation-C5Cc0-1v.js → pb_form_validation-CrsXd1-Y.js} +1 -1
  60. data/dist/chunks/vendor.js +1 -1
  61. data/dist/playbook-doc.js +1 -1
  62. data/dist/playbook-rails-react-bindings.js +1 -1
  63. data/dist/playbook-rails.js +1 -1
  64. data/dist/playbook.css +1 -1
  65. data/lib/playbook/version.rb +1 -1
  66. metadata +33 -7
  67. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_responsive.jsx +0 -52
  68. data/dist/chunks/_weekday_stacked-BKWemDAe.js +0 -45
@@ -1 +1 @@
1
- import{P as PbEnhancedElement,d as debounce}from"./lib-B7sgJtGS.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;
1
+ import{P as PbEnhancedElement,d as debounce}from"./lib-OFT985dg.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;
@@ -1 +1 @@
1
- import"./_weekday_stacked-BKWemDAe.js";import"./lazysizes-B7xYodB-.js";import"./_typeahead-BNULwihE.js";import"./lib-B7sgJtGS.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-trix";import"trix";import"react-is";
1
+ import"./_weekday_stacked-BcnpLG66.js";import"./lazysizes-B7xYodB-.js";import"./_typeahead-TN5aDUj9.js";import"./lib-OFT985dg.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-trix";import"trix";import"react-is";